@mtes-mct/monitor-ui 2.13.2 → 2.14.0
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/CHANGELOG.md +7 -0
- package/index.js +1568 -1528
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SingleTag.d.ts +6 -0
- package/src/index.d.ts +2 -0
package/index.js
CHANGED
|
@@ -2086,49 +2086,6 @@ const TertiaryButton$1 = styled.button `
|
|
|
2086
2086
|
}
|
|
2087
2087
|
`;
|
|
2088
2088
|
|
|
2089
|
-
const Field$2 = styled.div `
|
|
2090
|
-
align-items: flex-start;
|
|
2091
|
-
display: flex;
|
|
2092
|
-
flex-direction: column;
|
|
2093
|
-
`;
|
|
2094
|
-
|
|
2095
|
-
const Label = styled.label `
|
|
2096
|
-
color: ${p =>
|
|
2097
|
-
// eslint-disable-next-line no-nested-ternary
|
|
2098
|
-
p.isDisabled ? p.theme.color.lightGray : p.hasError ? p.theme.color.maximumRed : p.theme.color.slateGray};
|
|
2099
|
-
display: ${p => (p.isHidden ? 'none' : 'block')};
|
|
2100
|
-
font-size: 13px;
|
|
2101
|
-
line-height: 1.3846;
|
|
2102
|
-
margin-bottom: 4px;
|
|
2103
|
-
`;
|
|
2104
|
-
|
|
2105
|
-
function Legend({ isDisabled = false, isHidden = false, ...nativeProps }) {
|
|
2106
|
-
return jsx(StyledLabel, { as: "legend", isDisabled: isDisabled, isHidden: isHidden, ...nativeProps });
|
|
2107
|
-
}
|
|
2108
|
-
const StyledLabel = styled(Label) `
|
|
2109
|
-
padding: 0;
|
|
2110
|
-
`;
|
|
2111
|
-
|
|
2112
|
-
function Fieldset({ children, hasBorder = false, isHidden = false, isLight = false, legend, ...nativeProps }) {
|
|
2113
|
-
const hasLegend = useMemo(() => Boolean(legend), [legend]);
|
|
2114
|
-
return (jsxs(StyledField, { as: "fieldset", ...nativeProps, children: [legend && jsx(Legend, { isHidden: isHidden, children: legend }), jsx(Box$b, { "$hasBorder": hasBorder, "$hasLegend": hasLegend, "$isLight": isLight, children: children })] }));
|
|
2115
|
-
}
|
|
2116
|
-
const StyledField = styled(Field$2) `
|
|
2117
|
-
border: 0;
|
|
2118
|
-
margin: 0;
|
|
2119
|
-
padding: 0;
|
|
2120
|
-
`;
|
|
2121
|
-
const Box$b = styled.div `
|
|
2122
|
-
background-color: ${p => (p.$isLight ? p.theme.color.white : 'transparent')};
|
|
2123
|
-
padding: ${p => (p.$hasBorder || p.$isLight ? '16px' : 0)};
|
|
2124
|
-
width: 100%;
|
|
2125
|
-
|
|
2126
|
-
${p => p.$hasBorder &&
|
|
2127
|
-
css `
|
|
2128
|
-
border: solid 1px ${p.$isLight ? p.theme.color.white : p.theme.color.gainsboro};
|
|
2129
|
-
`}
|
|
2130
|
-
`;
|
|
2131
|
-
|
|
2132
2089
|
const ICON_SIZE_IN_PX = {
|
|
2133
2090
|
[Size.LARGE]: 26,
|
|
2134
2091
|
[Size.NORMAL]: 20,
|
|
@@ -2189,1672 +2146,1755 @@ const TertiaryButton = styled.button `
|
|
|
2189
2146
|
}
|
|
2190
2147
|
`;
|
|
2191
2148
|
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2149
|
+
/**
|
|
2150
|
+
* Internal component used to wrap SVG icon components
|
|
2151
|
+
*/
|
|
2152
|
+
const IconBox = styled.div `
|
|
2153
|
+
display: inline-block;
|
|
2154
|
+
color: ${p => p.$color ?? 'inherit'};
|
|
2196
2155
|
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2156
|
+
> svg {
|
|
2157
|
+
display: block;
|
|
2158
|
+
height: ${p => p.$size ?? 20}px;
|
|
2159
|
+
width: ${p => p.$size ?? 20}px;
|
|
2160
|
+
}
|
|
2200
2161
|
`;
|
|
2201
2162
|
|
|
2202
|
-
function
|
|
2203
|
-
|
|
2204
|
-
const defaultColor = color || THEME.color.gunMetal;
|
|
2205
|
-
const bulletColor = accent
|
|
2206
|
-
? {
|
|
2207
|
-
[Accent.PRIMARY]: THEME.color.gunMetal,
|
|
2208
|
-
[Accent.SECONDARY]: THEME.color.gunMetal,
|
|
2209
|
-
[Accent.TERTIARY]: THEME.color.white
|
|
2210
|
-
}[accent]
|
|
2211
|
-
: defaultColor;
|
|
2212
|
-
return (jsxs(Fragment, { children: [Icon && jsx(Icon, { size: 1 }), bullet === TagBullet.DISK && jsx(Disk, { "$color": bulletColor }), children] }));
|
|
2213
|
-
}, [accent, bullet, color, children, Icon]);
|
|
2214
|
-
const commonProps = useMemo(() => ({
|
|
2215
|
-
$isLight: isLight,
|
|
2216
|
-
children: commonChildren,
|
|
2217
|
-
...nativeProps
|
|
2218
|
-
}), [commonChildren, isLight, nativeProps]);
|
|
2219
|
-
switch (accent) {
|
|
2220
|
-
case Accent.PRIMARY:
|
|
2221
|
-
return jsx(PrimaryTag, { ...commonProps });
|
|
2222
|
-
case Accent.SECONDARY:
|
|
2223
|
-
return jsx(SecondaryTag, { ...commonProps });
|
|
2224
|
-
case Accent.TERTIARY:
|
|
2225
|
-
return jsx(TertiaryTag, { ...commonProps });
|
|
2226
|
-
default:
|
|
2227
|
-
return jsx(Box$a, { "$color": color, ...commonProps });
|
|
2228
|
-
}
|
|
2163
|
+
function ActivityFeed({ color, size, ...nativeProps }) {
|
|
2164
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(40 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-22 44) rotate(90)", children: [jsx("rect", { height: "11", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "9", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-25 50) rotate(90)", children: [jsx("rect", { height: "8", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "6", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-23 56) rotate(90)", children: [jsx("rect", { height: "10", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "8", x: "1", y: "1" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-34,51a1.994,1.994,0,0,0-1-1.723V46.723A1.994,1.994,0,0,0-34,45a2,2,0,0,0-2-2,2,2,0,0,0-2,2,1.994,1.994,0,0,0,1,1.723v2.554A1.994,1.994,0,0,0-38,51a1.994,1.994,0,0,0,1,1.723v2.554A1.994,1.994,0,0,0-38,57a2,2,0,0,0,2,2,2,2,0,0,0,2-2,1.994,1.994,0,0,0-1-1.723V52.723A1.994,1.994,0,0,0-34,51Z", stroke: "none" }), jsx("path", { d: "M -36 43 C -34.89500045776367 43 -34 43.89500045776367 -34 45 C -34 45.73799896240234 -34.40499877929688 46.37599945068359 -35 46.72299957275391 L -35 49.27700042724609 C -34.40499877929688 49.62400054931641 -34 50.26200103759766 -34 51 C -34 51.73799896240234 -34.40499877929688 52.37599945068359 -35 52.72299957275391 L -35 55.27700042724609 C -34.40499877929688 55.62400054931641 -34 56.26200103759766 -34 57 C -34 58.10499954223633 -34.89500045776367 59 -36 59 C -37.10499954223633 59 -38 58.10499954223633 -38 57 C -38 56.26200103759766 -37.59500122070313 55.62400054931641 -37 55.27700042724609 L -37 52.72299957275391 C -37.59500122070313 52.37599945068359 -38 51.73799896240234 -38 51 C -38 50.26200103759766 -37.59500122070313 49.62400054931641 -37 49.27700042724609 L -37 46.72299957275391 C -37.59500122070313 46.37599945068359 -38 45.73799896240234 -38 45 C -38 43.89500045776367 -37.10499954223633 43 -36 43 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-40 41)", width: "20" })] }) }) }));
|
|
2229
2165
|
}
|
|
2230
|
-
const Box$a = styled.span `
|
|
2231
|
-
align-items: center;
|
|
2232
|
-
background-color: ${p => (p.$isLight ? p.theme.color.white : 'transparent')};
|
|
2233
|
-
border-radius: 11px;
|
|
2234
|
-
color: ${p => (p.$color ? p.$color : p.theme.color.gunMetal)};
|
|
2235
|
-
display: inline-flex;
|
|
2236
|
-
font-size: 13px;
|
|
2237
|
-
line-height: 1.3846;
|
|
2238
|
-
padding: 1px 8px 3px 8px;
|
|
2239
2166
|
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
margin-right: 4px;
|
|
2244
|
-
width: 16px;
|
|
2245
|
-
}
|
|
2167
|
+
function Alert({ color, size, ...nativeProps }) {
|
|
2168
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-220 -208)", children: [jsx("path", { d: "M295,13V8a5,5,0,0,0-4-4.9V1h-2V3.1A5,5,0,0,0,285,8v5l-2,2v2h4.5a2.5,2.5,0,0,0,5,0H297V15Zm-5,5a1,1,0,0,1-1-1h2A1,1,0,0,1,290,18Zm1.486-3H285l2-2V8a3,3,0,0,1,6,0v5l2,2Z", fill: "currentColor", transform: "translate(-60 208)" }), jsx("rect", { fill: "none", height: "20", transform: "translate(220 208)", width: "20" })] }) }) }));
|
|
2169
|
+
}
|
|
2246
2170
|
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
}
|
|
2251
|
-
`;
|
|
2252
|
-
const PrimaryTag = styled(Box$a) `
|
|
2253
|
-
background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
|
|
2254
|
-
color: ${p => p.theme.color.gunMetal};
|
|
2255
|
-
`;
|
|
2256
|
-
// TODO Fix this color.
|
|
2257
|
-
const SecondaryTag = styled(Box$a) `
|
|
2258
|
-
background-color: ${p => (p.$isLight ? '#f6d012' : '#f6d012')};
|
|
2259
|
-
color: ${p => p.theme.color.gunMetal};
|
|
2260
|
-
`;
|
|
2261
|
-
const TertiaryTag = styled(Box$a) `
|
|
2262
|
-
background-color: ${p => (p.$isLight ? p.theme.color.charcoal : p.theme.color.charcoal)};
|
|
2263
|
-
color: ${p => p.theme.color.white};
|
|
2264
|
-
`;
|
|
2171
|
+
function Anchor({ color, size, ...nativeProps }) {
|
|
2172
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsx("path", { d: "M14.6,12.7l1.395,1.4A7.258,7.258,0,0,1,11,17.128V10h3V8H11V6.816a3,3,0,1,0-2,0V8H6v2H9v7.087A7.2,7.2,0,0,1,4.2,14.1L5.6,12.7,2,10v2.7C2,16.192,6.428,19,10.1,19s8.1-2.808,8.1-6.3V10ZM10,3A1,1,0,1,1,9,4,1,1,0,0,1,10,3Z", fill: "currentColor" })] }) }));
|
|
2173
|
+
}
|
|
2265
2174
|
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
flex-wrap: wrap;
|
|
2270
|
-
gap: 8px;
|
|
2271
|
-
`;
|
|
2175
|
+
function Archive({ color, size, ...nativeProps }) {
|
|
2176
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-120)", children: [jsx("path", { d: "M138,2H122V8h1V18h14V8h1ZM124,4h12V6H124Zm11,12H125V8h10Z", fill: "currentColor" }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(128 10)", children: [jsx("rect", { height: "2", stroke: "none", width: "4" }), jsx("rect", { fill: "none", width: "2", x: "1", y: "1" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(120)", width: "20" })] }) }) }));
|
|
2177
|
+
}
|
|
2272
2178
|
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
constructor(response, request, options) {
|
|
2276
|
-
const code = (response.status || response.status === 0) ? response.status : '';
|
|
2277
|
-
const title = response.statusText || '';
|
|
2278
|
-
const status = `${code} ${title}`.trim();
|
|
2279
|
-
const reason = status ? `status code ${status}` : 'an unknown error';
|
|
2280
|
-
super(`Request failed with ${reason}`);
|
|
2281
|
-
Object.defineProperty(this, "response", {
|
|
2282
|
-
enumerable: true,
|
|
2283
|
-
configurable: true,
|
|
2284
|
-
writable: true,
|
|
2285
|
-
value: void 0
|
|
2286
|
-
});
|
|
2287
|
-
Object.defineProperty(this, "request", {
|
|
2288
|
-
enumerable: true,
|
|
2289
|
-
configurable: true,
|
|
2290
|
-
writable: true,
|
|
2291
|
-
value: void 0
|
|
2292
|
-
});
|
|
2293
|
-
Object.defineProperty(this, "options", {
|
|
2294
|
-
enumerable: true,
|
|
2295
|
-
configurable: true,
|
|
2296
|
-
writable: true,
|
|
2297
|
-
value: void 0
|
|
2298
|
-
});
|
|
2299
|
-
this.name = 'HTTPError';
|
|
2300
|
-
this.response = response;
|
|
2301
|
-
this.request = request;
|
|
2302
|
-
this.options = options;
|
|
2303
|
-
}
|
|
2179
|
+
function Attention({ color, size, ...nativeProps }) {
|
|
2180
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(200 -82)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-190,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-190,83Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-190,99Z", stroke: "none" }), jsx("path", { d: "M -190 83 C -185.0290069580078 83 -181 87.02899932861328 -181 92 C -181 96.97100067138672 -185.0290069580078 101 -190 101 C -194.9709930419922 101 -199 96.97100067138672 -199 92 C -199 87.02899932861328 -194.9709930419922 83 -190 83 Z M -190 99 C -186.1340026855469 99 -183 95.86599731445313 -183 92 C -183 88.13400268554688 -186.1340026855469 85 -190 85 C -193.8659973144531 85 -197 88.13400268554688 -197 92 C -197 95.86599731445313 -193.8659973144531 99 -190 99 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-189 93) rotate(180)", children: [jsx("rect", { height: "5", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "3", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-189 96) rotate(180)", children: [jsx("rect", { height: "2", stroke: "none", width: "2" }), jsx("rect", { fill: "none", x: "1", y: "1" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-200 82)", width: "20" })] }) }) }));
|
|
2304
2181
|
}
|
|
2305
2182
|
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
super('Request timed out');
|
|
2309
|
-
Object.defineProperty(this, "request", {
|
|
2310
|
-
enumerable: true,
|
|
2311
|
-
configurable: true,
|
|
2312
|
-
writable: true,
|
|
2313
|
-
value: void 0
|
|
2314
|
-
});
|
|
2315
|
-
this.name = 'TimeoutError';
|
|
2316
|
-
this.request = request;
|
|
2317
|
-
}
|
|
2183
|
+
function Calendar({ color, size, ...nativeProps }) {
|
|
2184
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(280 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-266,44V42h-2v2h-4V42h-2v2h-4V59h16V44Zm2,13h-12V50h12Zm0-9h-12V46h12Z", stroke: "none" }), jsx("path", { d: "M -274 42 L -272 42 L -272 44 L -268 44 L -268 42 L -266 42 L -266 44 L -262 44 L -262 59 L -278 59 L -278 44 L -274 44 L -274 42 Z M -264 48 L -264 46 L -276 46 L -276 48 L -264 48 Z M -264 57 L -264 50 L -276 50 L -276 57 L -264 57 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-274 52)", children: [jsx("rect", { height: "3", stroke: "none", width: "4" }), jsx("rect", { fill: "none", height: "1", width: "2", x: "1", y: "1" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-280 41)", width: "20" })] }) }) }));
|
|
2318
2185
|
}
|
|
2319
2186
|
|
|
2320
|
-
|
|
2321
|
-
|
|
2187
|
+
function Check({ color, size, ...nativeProps }) {
|
|
2188
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(40 -82)", children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-23.99,86.7l-7.778,7.778-4.243-4.243-1.414,1.414,4.243,4.243,1.414,1.414,9.192-9.192Z", stroke: "none" }), jsx("path", { d: "M -23.98955917358398 86.69669342041016 L -22.57537841796875 88.11093139648438 L -31.76775932312012 97.30330657958984 L -37.42462158203125 91.64644622802734 L -36.01044082641602 90.23220825195313 L -31.76775932312012 94.47487640380859 L -23.98955917358398 86.69669342041016 Z", fill: "currentColor", stroke: "none" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-40 82)", width: "20" })] }) }) }));
|
|
2189
|
+
}
|
|
2322
2190
|
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
throw new TypeError('The `options` argument must be an object');
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2329
|
-
return deepMerge({}, ...sources);
|
|
2330
|
-
};
|
|
2331
|
-
const mergeHeaders = (source1 = {}, source2 = {}) => {
|
|
2332
|
-
const result = new globalThis.Headers(source1);
|
|
2333
|
-
const isHeadersInstance = source2 instanceof globalThis.Headers;
|
|
2334
|
-
const source = new globalThis.Headers(source2);
|
|
2335
|
-
for (const [key, value] of source.entries()) {
|
|
2336
|
-
if ((isHeadersInstance && value === 'undefined') || value === undefined) {
|
|
2337
|
-
result.delete(key);
|
|
2338
|
-
}
|
|
2339
|
-
else {
|
|
2340
|
-
result.set(key, value);
|
|
2341
|
-
}
|
|
2342
|
-
}
|
|
2343
|
-
return result;
|
|
2344
|
-
};
|
|
2345
|
-
// TODO: Make this strongly-typed (no `any`).
|
|
2346
|
-
const deepMerge = (...sources) => {
|
|
2347
|
-
let returnValue = {};
|
|
2348
|
-
let headers = {};
|
|
2349
|
-
for (const source of sources) {
|
|
2350
|
-
if (Array.isArray(source)) {
|
|
2351
|
-
if (!Array.isArray(returnValue)) {
|
|
2352
|
-
returnValue = [];
|
|
2353
|
-
}
|
|
2354
|
-
returnValue = [...returnValue, ...source];
|
|
2355
|
-
}
|
|
2356
|
-
else if (isObject$1(source)) {
|
|
2357
|
-
for (let [key, value] of Object.entries(source)) {
|
|
2358
|
-
if (isObject$1(value) && key in returnValue) {
|
|
2359
|
-
value = deepMerge(returnValue[key], value);
|
|
2360
|
-
}
|
|
2361
|
-
returnValue = { ...returnValue, [key]: value };
|
|
2362
|
-
}
|
|
2363
|
-
if (isObject$1(source.headers)) {
|
|
2364
|
-
headers = mergeHeaders(headers, source.headers);
|
|
2365
|
-
returnValue.headers = headers;
|
|
2366
|
-
}
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
return returnValue;
|
|
2370
|
-
};
|
|
2191
|
+
function Chevron({ color, size, ...nativeProps }) {
|
|
2192
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(0 -82)", children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M16.585,87.293,10,93.878,3.415,87.293,2,88.707l6.585,6.585L10,96.707l1.415-1.415L18,88.707Z", stroke: "none" }), jsx("path", { d: "M 3.414670944213867 87.29266357421875 L 10 93.87799072265625 L 16.58533096313477 87.29266357421875 L 18 88.70733642578125 L 10 96.70733642578125 L 2 88.70733642578125 L 3.414670944213867 87.29266357421875 Z", fill: "currentColor", stroke: "none" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(0 82)", width: "20" })] }) }) }));
|
|
2193
|
+
}
|
|
2371
2194
|
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
const supportsReadableStream = typeof globalThis.ReadableStream === 'function';
|
|
2376
|
-
if (supportsReadableStream) {
|
|
2377
|
-
hasContentType = new globalThis.Request('https://a.com', {
|
|
2378
|
-
body: new globalThis.ReadableStream(),
|
|
2379
|
-
method: 'POST',
|
|
2380
|
-
// @ts-expect-error - Types are outdated.
|
|
2381
|
-
get duplex() {
|
|
2382
|
-
duplexAccessed = true;
|
|
2383
|
-
return 'half';
|
|
2384
|
-
},
|
|
2385
|
-
}).headers.has('Content-Type');
|
|
2386
|
-
}
|
|
2387
|
-
return duplexAccessed && !hasContentType;
|
|
2388
|
-
})();
|
|
2389
|
-
const supportsAbortController = typeof globalThis.AbortController === 'function';
|
|
2390
|
-
const supportsResponseStreams = typeof globalThis.ReadableStream === 'function';
|
|
2391
|
-
const supportsFormData = typeof globalThis.FormData === 'function';
|
|
2392
|
-
const requestMethods = ['get', 'post', 'put', 'patch', 'head', 'delete'];
|
|
2393
|
-
const responseTypes = {
|
|
2394
|
-
json: 'application/json',
|
|
2395
|
-
text: 'text/*',
|
|
2396
|
-
formData: 'multipart/form-data',
|
|
2397
|
-
arrayBuffer: '*/*',
|
|
2398
|
-
blob: '*/*',
|
|
2399
|
-
};
|
|
2400
|
-
// The maximum value of a 32bit int (see issue #117)
|
|
2401
|
-
const maxSafeTimeout = 2147483647;
|
|
2402
|
-
const stop = Symbol('stop');
|
|
2195
|
+
function Clock({ color, size, ...nativeProps }) {
|
|
2196
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(240 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-230,42a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-230,42Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-230,58Z", stroke: "none" }), jsx("path", { d: "M -230 42 C -225.0290069580078 42 -221 46.02899932861328 -221 51 C -221 55.97100067138672 -225.0290069580078 60 -230 60 C -234.9709930419922 60 -239 55.97100067138672 -239 51 C -239 46.02899932861328 -234.9709930419922 42 -230 42 Z M -230 58 C -226.1340026855469 58 -223 54.86600112915039 -223 51 C -223 47.13399887084961 -226.1340026855469 44 -230 44 C -233.8659973144531 44 -237 47.13399887084961 -237 51 C -237 54.86600112915039 -233.8659973144531 58 -230 58 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-229,50V46h-2v6h6V50Z", stroke: "none" }), jsx("path", { d: "M -225 52 L -231 52 L -231 46 L -229 46 L -229 50 L -225 50 L -225 52 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-240 41)", width: "20" })] }) }) }));
|
|
2197
|
+
}
|
|
2403
2198
|
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
const retryAfterStatusCodes = [413, 429, 503];
|
|
2408
|
-
const defaultRetryOptions = {
|
|
2409
|
-
limit: 2,
|
|
2410
|
-
methods: retryMethods,
|
|
2411
|
-
statusCodes: retryStatusCodes,
|
|
2412
|
-
afterStatusCodes: retryAfterStatusCodes,
|
|
2413
|
-
maxRetryAfter: Number.POSITIVE_INFINITY,
|
|
2414
|
-
backoffLimit: Number.POSITIVE_INFINITY,
|
|
2415
|
-
};
|
|
2416
|
-
const normalizeRetryOptions = (retry = {}) => {
|
|
2417
|
-
if (typeof retry === 'number') {
|
|
2418
|
-
return {
|
|
2419
|
-
...defaultRetryOptions,
|
|
2420
|
-
limit: retry,
|
|
2421
|
-
};
|
|
2422
|
-
}
|
|
2423
|
-
if (retry.methods && !Array.isArray(retry.methods)) {
|
|
2424
|
-
throw new Error('retry.methods must be an array');
|
|
2425
|
-
}
|
|
2426
|
-
if (retry.statusCodes && !Array.isArray(retry.statusCodes)) {
|
|
2427
|
-
throw new Error('retry.statusCodes must be an array');
|
|
2428
|
-
}
|
|
2429
|
-
return {
|
|
2430
|
-
...defaultRetryOptions,
|
|
2431
|
-
...retry,
|
|
2432
|
-
afterStatusCodes: retryAfterStatusCodes,
|
|
2433
|
-
};
|
|
2434
|
-
};
|
|
2199
|
+
function Close({ color, size, ...nativeProps }) {
|
|
2200
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(160 -82)", children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-142,85.415-143.415,84-150,90.585-156.585,84-158,85.415-151.415,92-158,98.585l1.415,1.415L-150,93.415l6.585,6.585L-142,98.585-148.585,92Z", stroke: "none" }), jsx("path", { d: "M -156.5853271484375 84 L -150 90.5853271484375 L -143.4146728515625 84 L -142 85.4146728515625 L -148.5853271484375 92 L -142 98.5853271484375 L -143.4146728515625 100 L -150 93.4146728515625 L -156.5853271484375 100 L -158 98.5853271484375 L -151.4146728515625 92 L -158 85.4146728515625 L -156.5853271484375 84 Z", fill: "currentColor", stroke: "none" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-160 82)", width: "20" })] }) }) }));
|
|
2201
|
+
}
|
|
2435
2202
|
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
return new Promise((resolve, reject) => {
|
|
2439
|
-
const timeoutId = setTimeout(() => {
|
|
2440
|
-
if (abortController) {
|
|
2441
|
-
abortController.abort();
|
|
2442
|
-
}
|
|
2443
|
-
reject(new TimeoutError(request));
|
|
2444
|
-
}, options.timeout);
|
|
2445
|
-
void options
|
|
2446
|
-
.fetch(request)
|
|
2447
|
-
.then(resolve)
|
|
2448
|
-
.catch(reject)
|
|
2449
|
-
.then(() => {
|
|
2450
|
-
clearTimeout(timeoutId);
|
|
2451
|
-
});
|
|
2452
|
-
});
|
|
2203
|
+
function Confirm({ color, size, ...nativeProps }) {
|
|
2204
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-40)", children: [jsx("path", { d: "M50,1a9,9,0,1,0,9,9A9,9,0,0,0,50,1Zm0,16a7,7,0,1,1,7-7A7,7,0,0,1,50,17Z", fill: "currentColor" }), jsx("path", { d: "M53.382,6.529l-4.243,4.243L47.018,8.65,45.6,10.064l2.121,2.121h0L49.139,13.6,54.8,7.943Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(40)", width: "20" })] }) }) }));
|
|
2453
2205
|
}
|
|
2454
2206
|
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
function composeAbortError(signal) {
|
|
2458
|
-
return new DOMException(signal?.reason ?? 'The operation was aborted.');
|
|
2207
|
+
function Control({ color, size, ...nativeProps }) {
|
|
2208
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsxs("defs", { children: [jsx("clipPath", { children: jsx("use", {}) }), jsx("clipPath", { children: jsx("use", {}) }), jsx("clipPath", { children: jsx("use", {}) })] }), jsxs("g", { transform: "translate(120 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-104 58) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsx("path", { d: "M-107.694,47l1.333,8h-7.277l1.336-8Zm0-2h-4.6a2,2,0,0,0-1.977,1.675L-116,57h12l-1.721-10.325A2,2,0,0,0-107.7,45Z", fill: "currentColor" }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-110.75 41.75)", children: [jsx("rect", { height: "2.25", stroke: "none", width: "1.5" }), jsx("path", { clipPath: "url(#clip)", d: "M0,1h1.5M1,0v2.25M1.5,1.25h-1.5M0.5,2.25v-2.25", fill: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-104.061 43) rotate(45)", children: [jsx("rect", { height: "2.25", stroke: "none", width: "1.5" }), jsx("path", { clipPath: "url(#clip-2)", d: "M0,1h1.5M1,0v2.25M1.5,1.25h-1.5M0.5,2.25v-2.25", fill: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-117 44.061) rotate(-45)", children: [jsx("rect", { height: "2.25", stroke: "none", width: "1.5" }), jsx("path", { clipPath: "url(#clip-3)", d: "M0,1h1.5M1,0v2.25M1.5,1.25h-1.5M0.5,2.25v-2.25", fill: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-120 41)", width: "20" })] })] }) }));
|
|
2459
2209
|
}
|
|
2460
2210
|
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
return new Promise((resolve, reject) => {
|
|
2464
|
-
if (signal) {
|
|
2465
|
-
if (signal.aborted) {
|
|
2466
|
-
reject(composeAbortError(signal));
|
|
2467
|
-
return;
|
|
2468
|
-
}
|
|
2469
|
-
signal.addEventListener('abort', handleAbort, { once: true });
|
|
2470
|
-
}
|
|
2471
|
-
function handleAbort() {
|
|
2472
|
-
reject(composeAbortError(signal));
|
|
2473
|
-
clearTimeout(timeoutId);
|
|
2474
|
-
}
|
|
2475
|
-
const timeoutId = setTimeout(() => {
|
|
2476
|
-
signal?.removeEventListener('abort', handleAbort);
|
|
2477
|
-
resolve();
|
|
2478
|
-
}, ms);
|
|
2479
|
-
});
|
|
2211
|
+
function Delete({ color, size, ...nativeProps }) {
|
|
2212
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-23.798 -14.096)", children: [jsxs("g", { children: [jsx("rect", { fill: "currentColor", height: "6", transform: "translate(31.548 22.096)", width: "1.5" }), jsx("rect", { fill: "currentColor", height: "6", transform: "translate(34.548 22.096)", width: "1.5" }), jsx("path", { d: "M41.8,17.6h-4V16.1h-8v1.5h-4v2h1.5V31.1a1,1,0,0,0,1,1h11a1,1,0,0,0,1-1V19.6h1.5ZM38.3,30.1h-9V19.6h9Z", fill: "currentColor" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(23.798 14.096)", width: "20" })] }) }) }));
|
|
2480
2213
|
}
|
|
2481
2214
|
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
static create(input, options) {
|
|
2485
|
-
const ky = new Ky(input, options);
|
|
2486
|
-
const fn = async () => {
|
|
2487
|
-
if (ky._options.timeout > maxSafeTimeout) {
|
|
2488
|
-
throw new RangeError(`The \`timeout\` option cannot be greater than ${maxSafeTimeout}`);
|
|
2489
|
-
}
|
|
2490
|
-
// Delay the fetch so that body method shortcuts can set the Accept header
|
|
2491
|
-
await Promise.resolve();
|
|
2492
|
-
let response = await ky._fetch();
|
|
2493
|
-
for (const hook of ky._options.hooks.afterResponse) {
|
|
2494
|
-
// eslint-disable-next-line no-await-in-loop
|
|
2495
|
-
const modifiedResponse = await hook(ky.request, ky._options, ky._decorateResponse(response.clone()));
|
|
2496
|
-
if (modifiedResponse instanceof globalThis.Response) {
|
|
2497
|
-
response = modifiedResponse;
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
ky._decorateResponse(response);
|
|
2501
|
-
if (!response.ok && ky._options.throwHttpErrors) {
|
|
2502
|
-
let error = new HTTPError(response, ky.request, ky._options);
|
|
2503
|
-
for (const hook of ky._options.hooks.beforeError) {
|
|
2504
|
-
// eslint-disable-next-line no-await-in-loop
|
|
2505
|
-
error = await hook(error);
|
|
2506
|
-
}
|
|
2507
|
-
throw error;
|
|
2508
|
-
}
|
|
2509
|
-
// If `onDownloadProgress` is passed, it uses the stream API internally
|
|
2510
|
-
/* istanbul ignore next */
|
|
2511
|
-
if (ky._options.onDownloadProgress) {
|
|
2512
|
-
if (typeof ky._options.onDownloadProgress !== 'function') {
|
|
2513
|
-
throw new TypeError('The `onDownloadProgress` option must be a function');
|
|
2514
|
-
}
|
|
2515
|
-
if (!supportsResponseStreams) {
|
|
2516
|
-
throw new Error('Streams are not supported in your environment. `ReadableStream` is missing.');
|
|
2517
|
-
}
|
|
2518
|
-
return ky._stream(response.clone(), ky._options.onDownloadProgress);
|
|
2519
|
-
}
|
|
2520
|
-
return response;
|
|
2521
|
-
};
|
|
2522
|
-
const isRetriableMethod = ky._options.retry.methods.includes(ky.request.method.toLowerCase());
|
|
2523
|
-
const result = (isRetriableMethod ? ky._retry(fn) : fn());
|
|
2524
|
-
for (const [type, mimeType] of Object.entries(responseTypes)) {
|
|
2525
|
-
result[type] = async () => {
|
|
2526
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2527
|
-
ky.request.headers.set('accept', ky.request.headers.get('accept') || mimeType);
|
|
2528
|
-
const awaitedResult = await result;
|
|
2529
|
-
const response = awaitedResult.clone();
|
|
2530
|
-
if (type === 'json') {
|
|
2531
|
-
if (response.status === 204) {
|
|
2532
|
-
return '';
|
|
2533
|
-
}
|
|
2534
|
-
const arrayBuffer = await response.clone().arrayBuffer();
|
|
2535
|
-
const responseSize = arrayBuffer.byteLength;
|
|
2536
|
-
if (responseSize === 0) {
|
|
2537
|
-
return '';
|
|
2538
|
-
}
|
|
2539
|
-
if (options.parseJson) {
|
|
2540
|
-
return options.parseJson(await response.text());
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
return response[type]();
|
|
2544
|
-
};
|
|
2545
|
-
}
|
|
2546
|
-
return result;
|
|
2547
|
-
}
|
|
2548
|
-
// eslint-disable-next-line complexity
|
|
2549
|
-
constructor(input, options = {}) {
|
|
2550
|
-
Object.defineProperty(this, "request", {
|
|
2551
|
-
enumerable: true,
|
|
2552
|
-
configurable: true,
|
|
2553
|
-
writable: true,
|
|
2554
|
-
value: void 0
|
|
2555
|
-
});
|
|
2556
|
-
Object.defineProperty(this, "abortController", {
|
|
2557
|
-
enumerable: true,
|
|
2558
|
-
configurable: true,
|
|
2559
|
-
writable: true,
|
|
2560
|
-
value: void 0
|
|
2561
|
-
});
|
|
2562
|
-
Object.defineProperty(this, "_retryCount", {
|
|
2563
|
-
enumerable: true,
|
|
2564
|
-
configurable: true,
|
|
2565
|
-
writable: true,
|
|
2566
|
-
value: 0
|
|
2567
|
-
});
|
|
2568
|
-
Object.defineProperty(this, "_input", {
|
|
2569
|
-
enumerable: true,
|
|
2570
|
-
configurable: true,
|
|
2571
|
-
writable: true,
|
|
2572
|
-
value: void 0
|
|
2573
|
-
});
|
|
2574
|
-
Object.defineProperty(this, "_options", {
|
|
2575
|
-
enumerable: true,
|
|
2576
|
-
configurable: true,
|
|
2577
|
-
writable: true,
|
|
2578
|
-
value: void 0
|
|
2579
|
-
});
|
|
2580
|
-
this._input = input;
|
|
2581
|
-
this._options = {
|
|
2582
|
-
// TODO: credentials can be removed when the spec change is implemented in all browsers. Context: https://www.chromestatus.com/feature/4539473312350208
|
|
2583
|
-
credentials: this._input.credentials || 'same-origin',
|
|
2584
|
-
...options,
|
|
2585
|
-
headers: mergeHeaders(this._input.headers, options.headers),
|
|
2586
|
-
hooks: deepMerge({
|
|
2587
|
-
beforeRequest: [],
|
|
2588
|
-
beforeRetry: [],
|
|
2589
|
-
beforeError: [],
|
|
2590
|
-
afterResponse: [],
|
|
2591
|
-
}, options.hooks),
|
|
2592
|
-
method: normalizeRequestMethod(options.method ?? this._input.method),
|
|
2593
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2594
|
-
prefixUrl: String(options.prefixUrl || ''),
|
|
2595
|
-
retry: normalizeRetryOptions(options.retry),
|
|
2596
|
-
throwHttpErrors: options.throwHttpErrors !== false,
|
|
2597
|
-
timeout: typeof options.timeout === 'undefined' ? 10000 : options.timeout,
|
|
2598
|
-
fetch: options.fetch ?? globalThis.fetch.bind(globalThis),
|
|
2599
|
-
};
|
|
2600
|
-
if (typeof this._input !== 'string' && !(this._input instanceof URL || this._input instanceof globalThis.Request)) {
|
|
2601
|
-
throw new TypeError('`input` must be a string, URL, or Request');
|
|
2602
|
-
}
|
|
2603
|
-
if (this._options.prefixUrl && typeof this._input === 'string') {
|
|
2604
|
-
if (this._input.startsWith('/')) {
|
|
2605
|
-
throw new Error('`input` must not begin with a slash when using `prefixUrl`');
|
|
2606
|
-
}
|
|
2607
|
-
if (!this._options.prefixUrl.endsWith('/')) {
|
|
2608
|
-
this._options.prefixUrl += '/';
|
|
2609
|
-
}
|
|
2610
|
-
this._input = this._options.prefixUrl + this._input;
|
|
2611
|
-
}
|
|
2612
|
-
if (supportsAbortController) {
|
|
2613
|
-
this.abortController = new globalThis.AbortController();
|
|
2614
|
-
if (this._options.signal) {
|
|
2615
|
-
const originalSignal = this._options.signal;
|
|
2616
|
-
this._options.signal.addEventListener('abort', () => {
|
|
2617
|
-
this.abortController.abort(originalSignal.reason);
|
|
2618
|
-
});
|
|
2619
|
-
}
|
|
2620
|
-
this._options.signal = this.abortController.signal;
|
|
2621
|
-
}
|
|
2622
|
-
this.request = new globalThis.Request(this._input, this._options);
|
|
2623
|
-
if (supportsRequestStreams) {
|
|
2624
|
-
// @ts-expect-error - Types are outdated.
|
|
2625
|
-
this.request.duplex = 'half';
|
|
2626
|
-
}
|
|
2627
|
-
if (this._options.searchParams) {
|
|
2628
|
-
// eslint-disable-next-line unicorn/prevent-abbreviations
|
|
2629
|
-
const textSearchParams = typeof this._options.searchParams === 'string'
|
|
2630
|
-
? this._options.searchParams.replace(/^\?/, '')
|
|
2631
|
-
: new URLSearchParams(this._options.searchParams).toString();
|
|
2632
|
-
// eslint-disable-next-line unicorn/prevent-abbreviations
|
|
2633
|
-
const searchParams = '?' + textSearchParams;
|
|
2634
|
-
const url = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
|
|
2635
|
-
// To provide correct form boundary, Content-Type header should be deleted each time when new Request instantiated from another one
|
|
2636
|
-
if (((supportsFormData && this._options.body instanceof globalThis.FormData)
|
|
2637
|
-
|| this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers['content-type'])) {
|
|
2638
|
-
this.request.headers.delete('content-type');
|
|
2639
|
-
}
|
|
2640
|
-
this.request = new globalThis.Request(new globalThis.Request(url, this.request), this._options);
|
|
2641
|
-
}
|
|
2642
|
-
if (this._options.json !== undefined) {
|
|
2643
|
-
this._options.body = JSON.stringify(this._options.json);
|
|
2644
|
-
this.request.headers.set('content-type', this._options.headers.get('content-type') ?? 'application/json');
|
|
2645
|
-
this.request = new globalThis.Request(this.request, { body: this._options.body });
|
|
2646
|
-
}
|
|
2647
|
-
}
|
|
2648
|
-
_calculateRetryDelay(error) {
|
|
2649
|
-
this._retryCount++;
|
|
2650
|
-
if (this._retryCount < this._options.retry.limit && !(error instanceof TimeoutError)) {
|
|
2651
|
-
if (error instanceof HTTPError) {
|
|
2652
|
-
if (!this._options.retry.statusCodes.includes(error.response.status)) {
|
|
2653
|
-
return 0;
|
|
2654
|
-
}
|
|
2655
|
-
const retryAfter = error.response.headers.get('Retry-After');
|
|
2656
|
-
if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
|
|
2657
|
-
let after = Number(retryAfter);
|
|
2658
|
-
if (Number.isNaN(after)) {
|
|
2659
|
-
after = Date.parse(retryAfter) - Date.now();
|
|
2660
|
-
}
|
|
2661
|
-
else {
|
|
2662
|
-
after *= 1000;
|
|
2663
|
-
}
|
|
2664
|
-
if (typeof this._options.retry.maxRetryAfter !== 'undefined' && after > this._options.retry.maxRetryAfter) {
|
|
2665
|
-
return 0;
|
|
2666
|
-
}
|
|
2667
|
-
return after;
|
|
2668
|
-
}
|
|
2669
|
-
if (error.response.status === 413) {
|
|
2670
|
-
return 0;
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
const BACKOFF_FACTOR = 0.3;
|
|
2674
|
-
return Math.min(this._options.retry.backoffLimit, BACKOFF_FACTOR * (2 ** (this._retryCount - 1)) * 1000);
|
|
2675
|
-
}
|
|
2676
|
-
return 0;
|
|
2677
|
-
}
|
|
2678
|
-
_decorateResponse(response) {
|
|
2679
|
-
if (this._options.parseJson) {
|
|
2680
|
-
response.json = async () => this._options.parseJson(await response.text());
|
|
2681
|
-
}
|
|
2682
|
-
return response;
|
|
2683
|
-
}
|
|
2684
|
-
async _retry(fn) {
|
|
2685
|
-
try {
|
|
2686
|
-
return await fn();
|
|
2687
|
-
// eslint-disable-next-line @typescript-eslint/no-implicit-any-catch
|
|
2688
|
-
}
|
|
2689
|
-
catch (error) {
|
|
2690
|
-
const ms = Math.min(this._calculateRetryDelay(error), maxSafeTimeout);
|
|
2691
|
-
if (ms !== 0 && this._retryCount > 0) {
|
|
2692
|
-
await delay(ms, { signal: this._options.signal });
|
|
2693
|
-
for (const hook of this._options.hooks.beforeRetry) {
|
|
2694
|
-
// eslint-disable-next-line no-await-in-loop
|
|
2695
|
-
const hookResult = await hook({
|
|
2696
|
-
request: this.request,
|
|
2697
|
-
options: this._options,
|
|
2698
|
-
error: error,
|
|
2699
|
-
retryCount: this._retryCount,
|
|
2700
|
-
});
|
|
2701
|
-
// If `stop` is returned from the hook, the retry process is stopped
|
|
2702
|
-
if (hookResult === stop) {
|
|
2703
|
-
return;
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
return this._retry(fn);
|
|
2707
|
-
}
|
|
2708
|
-
throw error;
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
async _fetch() {
|
|
2712
|
-
for (const hook of this._options.hooks.beforeRequest) {
|
|
2713
|
-
// eslint-disable-next-line no-await-in-loop
|
|
2714
|
-
const result = await hook(this.request, this._options);
|
|
2715
|
-
if (result instanceof Request) {
|
|
2716
|
-
this.request = result;
|
|
2717
|
-
break;
|
|
2718
|
-
}
|
|
2719
|
-
if (result instanceof Response) {
|
|
2720
|
-
return result;
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
if (this._options.timeout === false) {
|
|
2724
|
-
return this._options.fetch(this.request.clone());
|
|
2725
|
-
}
|
|
2726
|
-
return timeout(this.request.clone(), this.abortController, this._options);
|
|
2727
|
-
}
|
|
2728
|
-
/* istanbul ignore next */
|
|
2729
|
-
_stream(response, onDownloadProgress) {
|
|
2730
|
-
const totalBytes = Number(response.headers.get('content-length')) || 0;
|
|
2731
|
-
let transferredBytes = 0;
|
|
2732
|
-
if (response.status === 204) {
|
|
2733
|
-
if (onDownloadProgress) {
|
|
2734
|
-
onDownloadProgress({ percent: 1, totalBytes, transferredBytes }, new Uint8Array());
|
|
2735
|
-
}
|
|
2736
|
-
return new globalThis.Response(null, {
|
|
2737
|
-
status: response.status,
|
|
2738
|
-
statusText: response.statusText,
|
|
2739
|
-
headers: response.headers,
|
|
2740
|
-
});
|
|
2741
|
-
}
|
|
2742
|
-
return new globalThis.Response(new globalThis.ReadableStream({
|
|
2743
|
-
async start(controller) {
|
|
2744
|
-
const reader = response.body.getReader();
|
|
2745
|
-
if (onDownloadProgress) {
|
|
2746
|
-
onDownloadProgress({ percent: 0, transferredBytes: 0, totalBytes }, new Uint8Array());
|
|
2747
|
-
}
|
|
2748
|
-
async function read() {
|
|
2749
|
-
const { done, value } = await reader.read();
|
|
2750
|
-
if (done) {
|
|
2751
|
-
controller.close();
|
|
2752
|
-
return;
|
|
2753
|
-
}
|
|
2754
|
-
if (onDownloadProgress) {
|
|
2755
|
-
transferredBytes += value.byteLength;
|
|
2756
|
-
const percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
|
|
2757
|
-
onDownloadProgress({ percent, transferredBytes, totalBytes }, value);
|
|
2758
|
-
}
|
|
2759
|
-
controller.enqueue(value);
|
|
2760
|
-
await read();
|
|
2761
|
-
}
|
|
2762
|
-
await read();
|
|
2763
|
-
},
|
|
2764
|
-
}), {
|
|
2765
|
-
status: response.status,
|
|
2766
|
-
statusText: response.statusText,
|
|
2767
|
-
headers: response.headers,
|
|
2768
|
-
});
|
|
2769
|
-
}
|
|
2215
|
+
function Display({ color, size, ...nativeProps }) {
|
|
2216
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(0 -40)", children: [jsxs("g", { children: [jsx("path", { d: "M10,44a9.674,9.674,0,0,0-9,6,9.674,9.674,0,0,0,9,6,9.674,9.674,0,0,0,9-6A9.674,9.674,0,0,0,10,44Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,10,54Z", fill: "currentColor" }), jsx("circle", { cx: "2.25", cy: "2.25", fill: "currentColor", r: "2.25", transform: "translate(7.75 47.75)" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(0 40)", width: "20" })] }) }) }));
|
|
2770
2217
|
}
|
|
2771
2218
|
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
const ky = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
|
|
2776
|
-
for (const method of requestMethods) {
|
|
2777
|
-
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
2778
|
-
ky[method] = (input, options) => Ky.create(input, validateAndMerge(defaults, options, { method }));
|
|
2779
|
-
}
|
|
2780
|
-
ky.create = (newDefaults) => createInstance(validateAndMerge(newDefaults));
|
|
2781
|
-
ky.extend = (newDefaults) => createInstance(validateAndMerge(defaults, newDefaults));
|
|
2782
|
-
ky.stop = stop;
|
|
2783
|
-
return ky;
|
|
2784
|
-
};
|
|
2785
|
-
const ky = createInstance();
|
|
2786
|
-
var ky$1 = ky;
|
|
2219
|
+
function DoubleChevron({ color, size, ...nativeProps }) {
|
|
2220
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M16.585,3.085,10,9.671,3.415,3.085,2,4.5l6.585,6.585L10,12.5l1.415-1.415L18,4.5Z", stroke: "none" }), jsx("path", { d: "M 3.414670944213867 3.085323333740234 L 10 9.670653343200684 L 16.58533096313477 3.085323333740234 L 18 4.500003814697266 L 10 12.50000381469727 L 2 4.500003814697266 L 3.414670944213867 3.085323333740234 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M16.585,8.085,10,14.671,3.415,8.085,2,9.5l6.585,6.585L10,17.5l1.415-1.415L18,9.5Z", stroke: "none" }), jsx("path", { d: "M 3.414670944213867 8.085323333740234 L 10 14.67065334320068 L 16.58533096313477 8.085323333740234 L 18 9.500003814697266 L 10 17.50000381469727 L 2 9.500003814697266 L 3.414670944213867 8.085323333740234 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2221
|
+
}
|
|
2787
2222
|
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
font-size: 13px;
|
|
2792
|
-
font-weight: 700;
|
|
2793
|
-
line-height: 1.3846;
|
|
2794
|
-
margin-top: 4px;
|
|
2795
|
-
`;
|
|
2223
|
+
function Download({ color, size, ...nativeProps }) {
|
|
2224
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-80)", children: [jsxs("g", { children: [jsx("rect", { fill: "currentColor", height: "2", transform: "translate(84 16)", width: "12" }), jsx("path", { d: "M93,9V2H87V9H84l6,6,6-6Z", fill: "currentColor" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(80)", width: "20" })] }) }) }));
|
|
2225
|
+
}
|
|
2796
2226
|
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
const zoneRefs = Array.isArray(zoneRefOrzoneRefs) ? zoneRefOrzoneRefs : [zoneRefOrzoneRefs];
|
|
2801
|
-
const isEventTargetInZones = pipe(map((zoneRef) => zoneRef.current.contains(eventTarget)), any(identity))(zoneRefs);
|
|
2802
|
-
if (isEventTargetInZones) {
|
|
2803
|
-
return;
|
|
2804
|
-
}
|
|
2805
|
-
action();
|
|
2806
|
-
}, [action, zoneRefOrzoneRefs]);
|
|
2807
|
-
useEffect(() => {
|
|
2808
|
-
const globalContainer = baseContainer ?? window.document;
|
|
2809
|
-
globalContainer.addEventListener('click', handleClickOutside);
|
|
2810
|
-
return () => {
|
|
2811
|
-
globalContainer.removeEventListener('click', handleClickOutside);
|
|
2812
|
-
};
|
|
2813
|
-
}, [baseContainer, handleClickOutside]);
|
|
2814
|
-
};
|
|
2227
|
+
function Drapeau({ color, size, ...nativeProps }) {
|
|
2228
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "#000091", height: "12", transform: "translate(1 4)", width: "6" }), jsx("rect", { fill: "#e1000f", height: "12", transform: "translate(13 4)", width: "6" }), jsx("rect", { fill: "#fff", height: "12", transform: "translate(7 4)", width: "6" }), jsx("rect", { fill: "none", height: "20", width: "20" }), jsx("path", { d: "M19,4V16H1V4H19m1-1H0V17H20V3Z", fill: "#e5e5eb" })] }) }));
|
|
2229
|
+
}
|
|
2815
2230
|
|
|
2816
|
-
function
|
|
2817
|
-
|
|
2818
|
-
disabled, onChange) {
|
|
2819
|
-
useEffect(() => {
|
|
2820
|
-
if (disabled && onChange) {
|
|
2821
|
-
onChange(undefined);
|
|
2822
|
-
}
|
|
2823
|
-
return () => {
|
|
2824
|
-
if (onChange) {
|
|
2825
|
-
onChange(undefined);
|
|
2826
|
-
}
|
|
2827
|
-
};
|
|
2828
|
-
}, [disabled, onChange]);
|
|
2231
|
+
function Duplicate({ color, size, ...nativeProps }) {
|
|
2232
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M6,2V5H3V18H14V15h3V2Zm6,14H5V7h7Zm3-3H14V5H8V4h7Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2829
2233
|
}
|
|
2830
2234
|
|
|
2831
|
-
|
|
2235
|
+
function Edit({ color, size, ...nativeProps }) {
|
|
2236
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-80)", children: [jsx("path", { d: "M86,11.5V14h2.5l7.372-7.372-2.5-2.5ZM97.805,4.7a.664.664,0,0,0,0-.94l-1.56-1.56a.664.664,0,0,0-.94,0l-1.219,1.22,2.5,2.5Z", fill: "currentColor" }), jsx("path", { d: "M95,9v7H84V5h7V3H82V18H97V9Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(80)", width: "20" })] }) }) }));
|
|
2237
|
+
}
|
|
2832
2238
|
|
|
2833
|
-
function
|
|
2834
|
-
|
|
2239
|
+
function EditBis({ color, size, ...nativeProps }) {
|
|
2240
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-80)", children: [jsx("path", { d: "M86,11.5V14h2.5l7.372-7.372-2.5-2.5ZM97.805,4.7a.664.664,0,0,0,0-.94l-1.56-1.56a.664.664,0,0,0-.94,0l-1.219,1.22,2.5,2.5Z", fill: "currentColor" }), jsx("path", { d: "M95,9v7H84V5h7V3H82V18H97V9Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(80)", width: "20" })] }) }) }));
|
|
2835
2241
|
}
|
|
2836
2242
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
2841
|
-
* Released under MIT license <https://lodash.com/license>
|
|
2842
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
2843
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
2844
|
-
*/
|
|
2243
|
+
function Favorite({ color, size, ...nativeProps }) {
|
|
2244
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-300 -208)", children: [jsx("path", { d: "M370,5.015l1.763,3.568,3.936.571-2.848,2.773.673,3.919L370,13.995l-3.524,1.851.673-3.919L364.3,9.154l3.936-.571L370,5.015M370,.5l-3.09,6.254-6.91,1,5,4.869L363.82,19.5,370,16.254l6.18,3.246L375,12.626l5-4.869-6.91-1L370,.5Z", fill: "currentColor", transform: "translate(-60 208)" }), jsx("rect", { fill: "none", height: "20", transform: "translate(300 208)", width: "20" })] }) }) }));
|
|
2245
|
+
}
|
|
2845
2246
|
|
|
2846
|
-
|
|
2847
|
-
|
|
2247
|
+
function FilledArrow({ color, size, ...nativeProps }) {
|
|
2248
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(320 -41)", children: [jsx("path", { d: "M-313,43V59l8-8Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-320 41)", width: "20" })] }) }) }));
|
|
2249
|
+
}
|
|
2848
2250
|
|
|
2849
|
-
|
|
2850
|
-
|
|
2251
|
+
function Filter({ color, size, ...nativeProps }) {
|
|
2252
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-930 -294)", children: [jsx("path", { d: "M2,2V4l5,7.592V18h6V11.592L18,4h0V2Zm9,9v5H9V11H9L4.394,4H15.606Z", fill: "currentColor", transform: "translate(930 294)" }), jsx("rect", { fill: "none", height: "20", transform: "translate(930 294)", width: "20" })] }) }) }));
|
|
2253
|
+
}
|
|
2851
2254
|
|
|
2852
|
-
|
|
2853
|
-
|
|
2255
|
+
function FilterBis({ color, size, ...nativeProps }) {
|
|
2256
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("g", { children: jsx("rect", { fill: "none", height: "20", width: "20" }) }), jsxs("g", { children: [jsx("path", { d: "M18,3.5H8.789a2.5,2.5,0,0,0-4.578,0H2v2H4.211a2.5,2.5,0,0,0,4.578,0H18ZM6.5,5.5a1,1,0,1,1,1-1A1,1,0,0,1,6.5,5.5Z", fill: "currentColor" }), jsx("path", { d: "M18,9H15.789a2.5,2.5,0,0,0-4.578,0H2v2h9.211a2.5,2.5,0,0,0,4.578,0H18Zm-4.5,2a1,1,0,1,1,1-1A1,1,0,0,1,13.5,11Z", fill: "currentColor" }), jsx("path", { d: "M18,14.5H8.789a2.5,2.5,0,0,0-4.578,0H2v2H4.211a2.5,2.5,0,0,0,4.578,0H18Zm-11.5,2a1,1,0,1,1,1-1A1,1,0,0,1,6.5,16.5Z", fill: "currentColor" })] })] }) }));
|
|
2257
|
+
}
|
|
2854
2258
|
|
|
2855
|
-
|
|
2856
|
-
|
|
2259
|
+
function Fishery({ color, size, ...nativeProps }) {
|
|
2260
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(80 -41)", children: [jsx("g", { children: jsx("circle", { cx: "1.5", cy: "1.5", fill: "currentColor", r: "1.5", transform: "translate(-67 49.5)" }) }), jsx("path", { d: "M-70.092,59a1.713,1.713,0,0,1-.533-.07c-.865-.292-.854-1.258-.846-1.964,0-.141,0-.344,0-.494a18.923,18.923,0,0,1-3.218-2.157l-2.7,2.621a1.682,1.682,0,0,1-2.146-.378,2.072,2.072,0,0,1-.34-2.007l1.225-3.545-1.228-3.555a2.06,2.06,0,0,1,.338-1.99,1.68,1.68,0,0,1,2.152-.384l.174.134L-74.69,47.7a19,19,0,0,1,3.214-2.171c.008-.149.006-.352,0-.492-.008-.706-.019-1.673.844-1.965,1.093-.37,4.183.766,5.6,1.454l.091.045c2.717,1.3,4.323,3.052,4.771,5.193A4.455,4.455,0,0,1-60,51h0a4.7,4.7,0,0,1-.184,1.3c-.433,2.078-2.039,3.825-4.757,5.129l-.09.045A14.905,14.905,0,0,1-70.092,59Zm-4.626-6.671a1.261,1.261,0,0,1,.885.359,17.173,17.173,0,0,0,3.482,2.355c.714.425.7,1.231.7,1.941,0,.064,0,.141,0,.22a16.9,16.9,0,0,0,3.812-1.322l.1-.048c.815-.392,3.295-1.583,3.792-3.953a3.177,3.177,0,0,0,.131-.88,2.962,2.962,0,0,0-.115-.816c-.513-2.434-2.993-3.625-3.808-4.016l-.1-.049a16.147,16.147,0,0,0-3.814-1.305c0,.073,0,.144,0,.2.007.713.016,1.521-.649,1.914a17.441,17.441,0,0,0-3.559,2.416,1.19,1.19,0,0,1-.8.335,1.264,1.264,0,0,1-.9-.32l-2.616-2.577a.3.3,0,0,0,.018.084l1.429,4.136-1.425,4.126a.34.34,0,0,0-.021.092l2.573-2.537A1.271,1.271,0,0,1-74.718,52.329Zm-.339-4.316a.543.543,0,0,0-.081.072Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-80 41)", width: "20" })] }) }) }));
|
|
2261
|
+
}
|
|
2857
2262
|
|
|
2858
|
-
|
|
2859
|
-
|
|
2263
|
+
function FishingEngine({ color, size, ...nativeProps }) {
|
|
2264
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(0 -41)", children: [jsx("path", { d: "M11,53h2v1a3,3,0,0,1-6,0V47.789a2.5,2.5,0,1,0-2,0V54a5,5,0,0,0,10,0V48ZM6,46.5a1,1,0,1,1,1-1A1,1,0,0,1,6,46.5Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(0 41)", width: "20" })] }) }) }));
|
|
2265
|
+
}
|
|
2860
2266
|
|
|
2861
|
-
|
|
2862
|
-
|
|
2267
|
+
function FleetSegment({ color, size, ...nativeProps }) {
|
|
2268
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(280 -82)", children: [jsx("path", { d: "M-262,92l-2-.5V88a2,2,0,0,0-2-2h-2V84h-4v2h-2a2,2,0,0,0-2,2v3.5l-2,.5,1.5,6H-278v2h1.6a5.963,5.963,0,0,0,3.2-.99,5.776,5.776,0,0,0,6.4,0,5.879,5.879,0,0,0,3.2.99h1.6V98h-1.5Zm-12-4h8v3l-4-1-4,1Zm.8,8.68a5.751,5.751,0,0,1-1.35.875l-1.025-4.1L-270,92.062l5.575,1.393-1.025,4.1a5.751,5.751,0,0,1-1.35-.875A4.633,4.633,0,0,1-273.2,96.68Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-280 82)", width: "20" })] }) }) }));
|
|
2269
|
+
}
|
|
2863
2270
|
|
|
2864
|
-
|
|
2865
|
-
|
|
2271
|
+
function Focus({ color, size, ...nativeProps }) {
|
|
2272
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(320 -82)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-319,83v7h2V85h5V83Z", stroke: "none" }), jsx("path", { d: "M -319 83 L -312 83 L -312 85 L -317 85 L -317 90 L -319 90 L -319 83 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-317,94h-2v7h7V99h-5Z", stroke: "none" }), jsx("path", { d: "M -319 94 L -317 94 L -317 99 L -312 99 L -312 101 L -319 101 L -319 94 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-308,83v2h5v5h2V83Z", stroke: "none" }), jsx("path", { d: "M -308 83 L -301 83 L -301 90 L -303 90 L -303 85 L -308 85 L -308 83 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-303,99h-5v2h7V94h-2Z", stroke: "none" }), jsx("path", { d: "M -301 101 L -308 101 L -308 99 L -303 99 L -303 94 L -301 94 L -301 101 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-320 82)", width: "20" })] }) }) }));
|
|
2273
|
+
}
|
|
2866
2274
|
|
|
2867
|
-
|
|
2868
|
-
|
|
2275
|
+
function FocusVessel({ color, size, ...nativeProps }) {
|
|
2276
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M8.666,14.994a.138.138,0,0,1-.054-.034.142.142,0,0,1-.04-.081l-.4-3.05-3.05-.4a.139.139,0,0,1-.114-.094.137.137,0,0,1,.033-.144L9.3,6.934A.139.139,0,0,1,9.351,6.9l5.463-1.893a.14.14,0,0,1,.178.178L13.1,10.649a.139.139,0,0,1-.033.053L8.809,14.959a.141.141,0,0,1-.1.041A.161.161,0,0,1,8.666,14.994Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { children: [jsx("path", { d: "M1,1V6H3V3H6V1Z", fill: "currentColor" }), jsx("path", { d: "M14,1V3h3V6h2V1Z", fill: "currentColor" }), jsx("path", { d: "M17,17H14v2h5V14H17Z", fill: "currentColor" }), jsx("path", { d: "M3,14H1v5H6V17H3Z", fill: "currentColor" })] })] }) }));
|
|
2277
|
+
}
|
|
2869
2278
|
|
|
2870
|
-
|
|
2871
|
-
|
|
2279
|
+
function FocusZones({ color, size, ...nativeProps }) {
|
|
2280
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsxs("g", { children: [jsx("path", { d: "M10,5.333A7.524,7.524,0,0,0,3,10a7.583,7.583,0,0,0,14,0A7.524,7.524,0,0,0,10,5.333Zm0,7.778A3.111,3.111,0,1,1,13.111,10,3.111,3.111,0,0,1,10,13.111Z", fill: "currentColor" }), jsx("circle", { cx: "1.75", cy: "1.75", fill: "currentColor", r: "1.75", transform: "translate(8.25 8.25)" })] }), jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { children: [jsx("path", { d: "M1,1V6H3V3H6V1Z", fill: "currentColor" }), jsx("path", { d: "M14,1V3h3V6h2V1Z", fill: "currentColor" }), jsx("path", { d: "M17,17H14v2h5V14H17Z", fill: "currentColor" }), jsx("path", { d: "M3,14H1v5H6V17H3Z", fill: "currentColor" })] })] }) }));
|
|
2281
|
+
}
|
|
2872
2282
|
|
|
2873
|
-
|
|
2874
|
-
|
|
2283
|
+
function Hide({ color, size, ...nativeProps }) {
|
|
2284
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M15.635,5.779l2.143-2.143L16.364,2.222l-2.55,2.55A9.786,9.786,0,0,0,10,4a9.674,9.674,0,0,0-9,6,9.532,9.532,0,0,0,3.365,4.22L2.222,16.364l1.414,1.414,2.55-2.55A9.786,9.786,0,0,0,10,16a9.674,9.674,0,0,0,9-6A9.541,9.541,0,0,0,15.635,5.779ZM6,10a4,4,0,0,1,4-4,3.96,3.96,0,0,1,2.02.566L10.71,7.875A2.225,2.225,0,0,0,10,7.75,2.25,2.25,0,0,0,7.75,10a2.225,2.225,0,0,0,.125.71L6.566,12.02A3.96,3.96,0,0,1,6,10Zm4,4a3.96,3.96,0,0,1-2.02-.566l1.31-1.309a2.225,2.225,0,0,0,.71.125A2.25,2.25,0,0,0,12.25,10a2.225,2.225,0,0,0-.125-.71l1.309-1.31A3.96,3.96,0,0,1,14,10,4,4,0,0,1,10,14Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2285
|
+
}
|
|
2875
2286
|
|
|
2876
|
-
|
|
2877
|
-
|
|
2287
|
+
function Info({ color, size, ...nativeProps }) {
|
|
2288
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(240 -82)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-230,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-230,83Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-230,99Z", stroke: "none" }), jsx("path", { d: "M -230 83 C -225.0290069580078 83 -221 87.02899932861328 -221 92 C -221 96.97100067138672 -225.0290069580078 101 -230 101 C -234.9709930419922 101 -239 96.97100067138672 -239 92 C -239 87.02899932861328 -234.9709930419922 83 -230 83 Z M -230 99 C -226.1340026855469 99 -223 95.86599731445313 -223 92 C -223 88.13400268554688 -226.1340026855469 85 -230 85 C -233.8659973144531 85 -237 88.13400268554688 -237 92 C -237 95.86599731445313 -233.8659973144531 99 -230 99 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-231 91)", children: [jsx("rect", { height: "5", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "3", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-231 88)", children: [jsx("rect", { height: "2", stroke: "none", width: "2" }), jsx("rect", { fill: "none", x: "1", y: "1" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-240 82)", width: "20" })] }) }) }));
|
|
2289
|
+
}
|
|
2878
2290
|
|
|
2879
|
-
|
|
2880
|
-
|
|
2291
|
+
function Infringement({ color, size, ...nativeProps }) {
|
|
2292
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(40 -41)", children: [jsx("path", { d: "M-30,42a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-30,42Zm7,9a6.962,6.962,0,0,1-1.4,4.186L-34.186,45.4A6.962,6.962,0,0,1-30,44,7,7,0,0,1-23,51Zm-14,0a6.962,6.962,0,0,1,1.4-4.186l9.787,9.787A6.962,6.962,0,0,1-30,58,7,7,0,0,1-37,51Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-40 41)", width: "20" })] }) }) }));
|
|
2293
|
+
}
|
|
2881
2294
|
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
* of values.
|
|
2886
|
-
*/
|
|
2887
|
-
var objectToString = objectProto.toString;
|
|
2295
|
+
function Landmark({ color, size, ...nativeProps }) {
|
|
2296
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(120 -82)", children: [jsx("rect", { fill: "currentColor", height: "15", transform: "translate(-114 99) rotate(180)", width: "2" }), jsx("path", { d: "M-113,84V94l12-5Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-120 82)", width: "20" })] }) }) }));
|
|
2297
|
+
}
|
|
2888
2298
|
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2299
|
+
function List({ color, size, ...nativeProps }) {
|
|
2300
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(160 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-142 45) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-142 50) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-142 55) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-158 44.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-158 49.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-158 54.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-160 41)", width: "20" })] }) }) }));
|
|
2301
|
+
}
|
|
2892
2302
|
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
*
|
|
2897
|
-
* @static
|
|
2898
|
-
* @memberOf _
|
|
2899
|
-
* @since 2.4.0
|
|
2900
|
-
* @category Date
|
|
2901
|
-
* @returns {number} Returns the timestamp.
|
|
2902
|
-
* @example
|
|
2903
|
-
*
|
|
2904
|
-
* _.defer(function(stamp) {
|
|
2905
|
-
* console.log(_.now() - stamp);
|
|
2906
|
-
* }, _.now());
|
|
2907
|
-
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
2908
|
-
*/
|
|
2909
|
-
var now = function() {
|
|
2910
|
-
return root.Date.now();
|
|
2911
|
-
};
|
|
2303
|
+
function MapLayers({ color, size, ...nativeProps }) {
|
|
2304
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { children: [jsx("path", { d: "M10,2.332,16.113,6,10,9.668,3.887,6,10,2.332M10,0,0,6l10,6L20,6,10,0Z", fill: "currentColor" }), jsx("path", { d: "M1.913,8.815,0,10l10,6,10-6L18.056,8.834,10,13.668Z", fill: "currentColor" }), jsx("path", { d: "M1.913,12.815,0,14l10,6,10-6-1.944-1.166L10,17.668Z", fill: "currentColor" })] })] }) }));
|
|
2305
|
+
}
|
|
2912
2306
|
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
2917
|
-
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
2918
|
-
* Provide `options` to indicate whether `func` should be invoked on the
|
|
2919
|
-
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
2920
|
-
* with the last arguments provided to the debounced function. Subsequent
|
|
2921
|
-
* calls to the debounced function return the result of the last `func`
|
|
2922
|
-
* invocation.
|
|
2923
|
-
*
|
|
2924
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
2925
|
-
* invoked on the trailing edge of the timeout only if the debounced function
|
|
2926
|
-
* is invoked more than once during the `wait` timeout.
|
|
2927
|
-
*
|
|
2928
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
2929
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
2930
|
-
*
|
|
2931
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
2932
|
-
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
2933
|
-
*
|
|
2934
|
-
* @static
|
|
2935
|
-
* @memberOf _
|
|
2936
|
-
* @since 0.1.0
|
|
2937
|
-
* @category Function
|
|
2938
|
-
* @param {Function} func The function to debounce.
|
|
2939
|
-
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
2940
|
-
* @param {Object} [options={}] The options object.
|
|
2941
|
-
* @param {boolean} [options.leading=false]
|
|
2942
|
-
* Specify invoking on the leading edge of the timeout.
|
|
2943
|
-
* @param {number} [options.maxWait]
|
|
2944
|
-
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
2945
|
-
* @param {boolean} [options.trailing=true]
|
|
2946
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
2947
|
-
* @returns {Function} Returns the new debounced function.
|
|
2948
|
-
* @example
|
|
2949
|
-
*
|
|
2950
|
-
* // Avoid costly calculations while the window size is in flux.
|
|
2951
|
-
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
2952
|
-
*
|
|
2953
|
-
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
2954
|
-
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
2955
|
-
* 'leading': true,
|
|
2956
|
-
* 'trailing': false
|
|
2957
|
-
* }));
|
|
2958
|
-
*
|
|
2959
|
-
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
2960
|
-
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
2961
|
-
* var source = new EventSource('/stream');
|
|
2962
|
-
* jQuery(source).on('message', debounced);
|
|
2963
|
-
*
|
|
2964
|
-
* // Cancel the trailing debounced invocation.
|
|
2965
|
-
* jQuery(window).on('popstate', debounced.cancel);
|
|
2966
|
-
*/
|
|
2967
|
-
function debounce(func, wait, options) {
|
|
2968
|
-
var lastArgs,
|
|
2969
|
-
lastThis,
|
|
2970
|
-
maxWait,
|
|
2971
|
-
result,
|
|
2972
|
-
timerId,
|
|
2973
|
-
lastCallTime,
|
|
2974
|
-
lastInvokeTime = 0,
|
|
2975
|
-
leading = false,
|
|
2976
|
-
maxing = false,
|
|
2977
|
-
trailing = true;
|
|
2307
|
+
function MeasureAngle({ color, size, ...nativeProps }) {
|
|
2308
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(200 -82)", children: [jsxs("g", { children: [jsx("path", { d: "M-183.361,98a14.79,14.79,0,0,0-.559-2.434l-1.9.618A12.726,12.726,0,0,1-185.394,98H-196V87.514a12.554,12.554,0,0,1,2.139.507l.649-1.893A14.771,14.771,0,0,0-196,85.471V84h-2v16h16V98Z", fill: "currentColor" }), jsx("path", { d: "M-186.509,94.491l1.795-.883a14.792,14.792,0,0,0-2.029-3.081l-1.52,1.3A12.726,12.726,0,0,1-186.509,94.491Z", fill: "currentColor" }), jsx("path", { d: "M-188.223,89.024a14.915,14.915,0,0,0-3.048-2.073l-.911,1.781a12.857,12.857,0,0,1,2.638,1.794Z", fill: "currentColor" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-200 82)", width: "20" })] }) }) }));
|
|
2309
|
+
}
|
|
2978
2310
|
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
wait = toNumber(wait) || 0;
|
|
2983
|
-
if (isObject(options)) {
|
|
2984
|
-
leading = !!options.leading;
|
|
2985
|
-
maxing = 'maxWait' in options;
|
|
2986
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2987
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
2988
|
-
}
|
|
2311
|
+
function MeasureBrokenLine({ color, size, ...nativeProps }) {
|
|
2312
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(240 -82)", children: [jsx("path", { d: "M-222.5,87a2,2,0,0,0-2,2,1.978,1.978,0,0,0,.192.842L-227,93.071a1.974,1.974,0,0,0-.5-.071,1.974,1.974,0,0,0-.5.071l-2.691-3.229A1.978,1.978,0,0,0-230.5,89a2,2,0,0,0-2-2,2,2,0,0,0-2,2,1.978,1.978,0,0,0,.192.842L-237,93.071a1.974,1.974,0,0,0-.5-.071,2,2,0,0,0-2,2,2,2,0,0,0,2,2,2,2,0,0,0,2-2,1.978,1.978,0,0,0-.192-.842L-233,90.929a1.974,1.974,0,0,0,.5.071,1.974,1.974,0,0,0,.5-.071l2.691,3.229A1.978,1.978,0,0,0-229.5,95a2,2,0,0,0,2,2,2,2,0,0,0,2-2,1.978,1.978,0,0,0-.192-.842L-223,90.929a1.974,1.974,0,0,0,.5.071,2,2,0,0,0,2-2A2,2,0,0,0-222.5,87Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-240 82)", width: "20" })] }) }) }));
|
|
2313
|
+
}
|
|
2989
2314
|
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2315
|
+
function MeasureCircle({ color, size, ...nativeProps }) {
|
|
2316
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(160 -82)", children: [jsx("path", { d: "M-150,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-150,83Zm0,16a7.008,7.008,0,0,1-7-7,7.008,7.008,0,0,1,7-7,6.953,6.953,0,0,1,4.184,1.4l-1.43,1.43A4.964,4.964,0,0,0-150,87a5,5,0,0,0-5,5,5,5,0,0,0,5,5,5,5,0,0,0,5-5,4.964,4.964,0,0,0-.832-2.754l1.43-1.43A6.953,6.953,0,0,1-143,92,7.008,7.008,0,0,1-150,99Zm3-7a3,3,0,0,1-3,3,3,3,0,0,1-3-3,3,3,0,0,1,3-3,2.965,2.965,0,0,1,1.285.3l-1.992,1.992,1.414,1.414,1.992-1.992A2.965,2.965,0,0,1-147,92Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-160 82)", width: "20" })] }) }) }));
|
|
2317
|
+
}
|
|
2993
2318
|
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
return result;
|
|
2998
|
-
}
|
|
2319
|
+
function MeasureLine({ color, size, ...nativeProps }) {
|
|
2320
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(280 -82)", children: [jsx("path", { d: "M-260,87h-20V97h20Zm-1.818,8.333h-16.363V88.667h1.818V92h1.818V88.667h1.818V92h1.818V88.667h1.819V92h1.818V88.667h1.818V92h1.819V88.667h1.818Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-280 82)", width: "20" })] }) }) }));
|
|
2321
|
+
}
|
|
2999
2322
|
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
// Start the timer for the trailing edge.
|
|
3004
|
-
timerId = setTimeout(timerExpired, wait);
|
|
3005
|
-
// Invoke the leading edge.
|
|
3006
|
-
return leading ? invokeFunc(time) : result;
|
|
3007
|
-
}
|
|
2323
|
+
function Minus({ color, size, ...nativeProps }) {
|
|
2324
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "currentColor", height: "14", transform: "translate(3 11) rotate(-90)", width: "2" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2325
|
+
}
|
|
3008
2326
|
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
result = wait - timeSinceLastCall;
|
|
2327
|
+
function More({ color, size, ...nativeProps }) {
|
|
2328
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(240 -41)", children: [jsxs("g", { children: [jsx("circle", { cx: "2", cy: "2", fill: "currentColor", r: "2", transform: "translate(-232 49)" }), jsx("circle", { cx: "2", cy: "2", fill: "currentColor", r: "2", transform: "translate(-239 49)" }), jsx("circle", { cx: "2", cy: "2", fill: "currentColor", r: "2", transform: "translate(-225 49)" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-240 41)", width: "20" })] }) }) }));
|
|
2329
|
+
}
|
|
3013
2330
|
|
|
3014
|
-
|
|
3015
|
-
|
|
2331
|
+
function Note({ color, size, ...nativeProps }) {
|
|
2332
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M2,2V18H12l6-6V2ZM4,16V4H16v6H10v6Zm8-.828V12h3.172Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2333
|
+
}
|
|
3016
2334
|
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
2335
|
+
function Observation({ color, size, ...nativeProps }) {
|
|
2336
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { fill: "currentColor", strokeMiterlimit: "10", children: [jsx("path", { d: "M 15.5 17 C 13.57009029388428 17 12 15.42990970611572 12 13.5 L 12 12.11200046539307 L 12 11.31332969665527 L 11.22109985351563 11.13675022125244 C 10.82866764068604 11.0477819442749 10.42606067657471 11.0018138885498 10.02403163909912 11.0000524520874 C 10.30024242401123 11.00124073028564 10.57746124267578 11.0228853225708 10.8484001159668 11.06443977355957 L 12 11.24106979370117 L 12 10.07600021362305 L 12 9.093000411987305 L 12 8.244170188903809 L 11.16244983673096 8.106280326843262 C 10.85622978210449 8.055870056152344 10.44736003875732 7.998000144958496 10 7.998000144958496 C 9.552639961242676 7.998000144958496 9.143770217895508 8.055870056152344 8.837550163269043 8.106280326843262 L 8 8.244170188903809 L 8 9.093000411987305 L 8 10.07699966430664 L 8 11.2455997467041 L 9.154560089111328 11.06497955322266 C 9.42243480682373 11.02307319641113 9.698649406433105 11.00124740600586 9.975924491882324 11.0000524520874 C 9.573919296264648 11.0018196105957 9.171308517456055 11.0477876663208 8.778900146484375 11.13675022125244 L 8 11.31332969665527 L 8 12.11200046539307 L 8 13.5 C 8 15.42990970611572 6.429910182952881 17 4.5 17 C 2.570090055465698 17 1 15.42990970611572 1 13.5 C 1 13.03215980529785 1.091449975967407 12.57750988006592 1.27180004119873 12.1486701965332 L 1.28702437877655 12.11246967315674 L 5.101890087127686 3.952510118484497 L 5.178922653198242 3.78773832321167 C 5.439716339111328 3.304912328720093 5.943906784057617 3 6.5 3 C 7.327099800109863 3 8 3.672899961471558 8 4.5 L 8 5.061999797821045 L 8 6.183760166168213 L 9.114399909973145 6.055439949035645 C 9.454680442810059 6.016250133514404 9.736089706420898 5.998000144958496 10 5.998000144958496 C 10.26076984405518 5.998000144958496 10.54312038421631 6.016039848327637 10.88858032226563 6.054769992828369 L 12 6.179389953613281 L 12 5.060999870300293 L 12 4.5 C 12 3.672899961471558 12.67290019989014 3 13.5 3 C 14.06018733978271 3 14.56766128540039 3.309339284896851 14.82675552368164 3.798352241516113 L 14.89809036254883 3.952470064163208 L 18.64599990844727 11.97018814086914 L 18.64599990844727 11.98406982421875 L 18.72974967956543 12.15236186981201 C 18.90907287597656 12.58011913299561 19 13.03350162506104 19 13.5 C 19 15.42990970611572 17.42991065979004 17 15.5 17 Z M 15.5 10.25 C 13.70794010162354 10.25 12.25 11.70794010162354 12.25 13.5 C 12.25 15.29205989837646 13.70794010162354 16.75 15.5 16.75 C 17.29206085205078 16.75 18.75 15.29205989837646 18.75 13.5 C 18.75 11.70794010162354 17.29206085205078 10.25 15.5 10.25 Z M 4.5 10.25 C 2.707940101623535 10.25 1.25 11.70794010162354 1.25 13.5 C 1.25 15.29205989837646 2.707940101623535 16.75 4.5 16.75 C 6.292059898376465 16.75 7.75 15.29205989837646 7.75 13.5 C 7.75 11.70794010162354 6.292059898376465 10.25 4.5 10.25 Z", stroke: "none" }), jsx("path", { d: "M 13 10.06495571136475 C 13.70204067230225 9.552577972412109 14.56627750396729 9.25 15.5 9.25 C 15.77562522888184 9.25 16.04530715942383 9.276392936706543 16.30645370483398 9.326748847961426 L 13.9340877532959 4.251050472259521 C 13.86002540588379 4.125204086303711 13.71336269378662 4 13.5 4 C 13.22430038452148 4 13 4.224299907684326 13 4.5 L 13 7.297770023345947 L 11.10828113555908 7.085675716400146 C 11.18476295471191 7.096925735473633 11.25709533691406 7.108408451080322 11.32489013671875 7.119569778442383 L 13 7.395349979400635 L 13 10.06495571136475 M 7 10.06495571136475 L 7 7.395349979400635 L 8.67510986328125 7.119569778442383 C 8.725531578063965 7.111268520355225 8.778477668762207 7.102787971496582 8.833767890930176 7.094357490539551 L 7 7.305520057678223 L 7 4.5 C 7 4.224299907684326 6.775700092315674 4 6.5 4 C 6.287984848022461 4 6.141829490661621 4.123627662658691 6.067324161529541 4.248665809631348 L 3.69323992729187 9.326807975769043 C 3.954513072967529 9.276401519775391 4.224231719970703 9.25 4.5 9.25 C 5.433722496032715 9.25 6.297959804534912 9.552577972412109 7 10.06495571136475 M 15.5 18 C 13.01500034332275 18 11 15.98499965667725 11 13.5 L 11 12.11200046539307 C 10.67800045013428 12.03899955749512 10.3430004119873 12 10 12 C 9.656000137329102 12 9.321999549865723 12.03899955749512 9 12.11200046539307 L 9 13.5 C 9 15.98499965667725 6.985000133514404 18 4.5 18 C 2.015000104904175 18 0 15.98499965667725 0 13.5 C 0 12.88300037384033 0.125 12.29599952697754 0.3499999940395355 11.76099967956543 L 0.3479999899864197 11.76099967956543 L 0.3540000021457672 11.74699974060059 L 4.196000099182129 3.526999950408936 C 4.576000213623047 2.630000114440918 5.464000225067139 2 6.5 2 C 7.88100004196167 2 9 3.11899995803833 9 4.5 L 9 5.061999797821045 C 9.329999923706055 5.02400016784668 9.661999702453613 4.998000144958496 10 4.998000144958496 C 10.33800029754639 4.998000144958496 10.67000007629395 5.02400016784668 11 5.060999870300293 L 11 4.5 C 11 3.11899995803833 12.11900043487549 2 13.5 2 C 14.53600025177002 2 15.42399978637695 2.630000114440918 15.80399990081787 3.526999950408936 L 15.80399990081787 3.529000043869019 L 19.65200042724609 11.76099967956543 L 19.64999961853027 11.76099967956543 C 19.875 12.29599952697754 20 12.88300037384033 20 13.5 C 20 15.98499965667725 17.98500061035156 18 15.5 18 Z M 15.5 11.25 C 14.25899982452393 11.25 13.25 12.25899982452393 13.25 13.5 C 13.25 14.74100017547607 14.25899982452393 15.75 15.5 15.75 C 16.74099922180176 15.75 17.75 14.74100017547607 17.75 13.5 C 17.75 12.25899982452393 16.74099922180176 11.25 15.5 11.25 Z M 4.5 11.25 C 3.259000062942505 11.25 2.25 12.25899982452393 2.25 13.5 C 2.25 14.74100017547607 3.259000062942505 15.75 4.5 15.75 C 5.741000175476074 15.75 6.75 14.74100017547607 6.75 13.5 C 6.75 12.25899982452393 5.741000175476074 11.25 4.5 11.25 Z M 10 8.998000144958496 C 9.659999847412109 8.998000144958496 9.328000068664551 9.038999557495117 9 9.093000411987305 L 9 10.07699966430664 C 9.326000213623047 10.02600002288818 9.659999847412109 10 10 10 C 10.34000015258789 10 10.67399978637695 10.02600002288818 11 10.07600021362305 L 11 9.093000411987305 C 10.67199993133545 9.038999557495117 10.34000015258789 8.998000144958496 10 8.998000144958496 Z", fill: "currentColor", stroke: "none" })] })] }) }));
|
|
2337
|
+
}
|
|
3020
2338
|
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
3025
|
-
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
3026
|
-
}
|
|
2339
|
+
function Pin({ color, size, ...nativeProps }) {
|
|
2340
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-240)", children: [jsx("path", { d: "M250.94,2l-1.412,1.412.706.707L246.7,7.65h-2.824l-1.412,1.413,3.518,3.52-3.985,4L243.413,18l3.985-4,3.54,3.542,1.413-1.412V13.3l3.531-3.531.706.706L258,9.064Zm0,9.888v2.825l-5.648-5.651h2.824l3.531-3.531,2.824,2.825Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(240)", width: "20" })] }) }) }));
|
|
2341
|
+
}
|
|
3027
2342
|
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
return trailingEdge(time);
|
|
3032
|
-
}
|
|
3033
|
-
// Restart the timer.
|
|
3034
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
3035
|
-
}
|
|
2343
|
+
function Pinpoint({ color, size, ...nativeProps }) {
|
|
2344
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-160)", children: [jsx("path", { d: "M164,8c0,5,6,10,6,10", fill: "currentColor" }), jsx("path", { d: "M170,2a5.961,5.961,0,0,0-5.944,6.777c.016.135.038.27.062.4l.011.055C164.964,13.792,170,18,170,18s5.036-4.208,5.871-8.763l.011-.055c.024-.135.046-.27.062-.4A5.961,5.961,0,0,0,170,2Zm0,9a3,3,0,1,1,3-3A3,3,0,0,1,170,11Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(160)", width: "20" })] }) }) }));
|
|
2345
|
+
}
|
|
3036
2346
|
|
|
3037
|
-
|
|
3038
|
-
|
|
2347
|
+
function PinpointHide({ color, size, ...nativeProps }) {
|
|
2348
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-8.128 -10.447)", children: [jsx("rect", { fill: "none", height: "20", transform: "translate(8.128 10.447)", width: "20" }), jsx("path", { d: "M24.88,13.109l-1.415-1.414L21.6,13.56a5.976,5.976,0,0,0-9.416,5.663c.016.136.038.27.061.405l.012.056a9.7,9.7,0,0,0,.811,2.408l-2.139,2.14,1.414,1.414L14.1,23.893a23.842,23.842,0,0,0,4.032,4.554S23.163,24.239,24,19.684l.011-.056c.024-.135.046-.269.062-.405a5.87,5.87,0,0,0-1.057-4.249Zm-9.752,5.338a2.982,2.982,0,0,1,4.286-2.7l-3.986,3.986A2.969,2.969,0,0,1,15.128,18.447Zm6,0a3,3,0,0,1-3,3,2.965,2.965,0,0,1-1.286-.3l3.986-3.986A2.983,2.983,0,0,1,21.128,18.447Z", fill: "currentColor" })] }) }) }));
|
|
2349
|
+
}
|
|
3039
2350
|
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
return invokeFunc(time);
|
|
3044
|
-
}
|
|
3045
|
-
lastArgs = lastThis = undefined;
|
|
3046
|
-
return result;
|
|
3047
|
-
}
|
|
2351
|
+
function Plane({ color, size, ...nativeProps }) {
|
|
2352
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M18.5,13.6V11.8L11.342,7.3V2.35a1.342,1.342,0,1,0-2.684,0V7.3L1.5,11.8v1.8l7.158-2.25V16.3l-1.79,1.35V19L10,18.1l3.132.9V17.65l-1.79-1.35V11.35Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2353
|
+
}
|
|
3048
2354
|
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
}
|
|
3053
|
-
lastInvokeTime = 0;
|
|
3054
|
-
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
3055
|
-
}
|
|
2355
|
+
function Plus({ color, size, ...nativeProps }) {
|
|
2356
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(120 -82)", children: [jsx("path", { d: "M-102,91h-7V84h-2v7h-7v2h7v7h2V93h7Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(-120 82)", width: "20" })] }) }) }));
|
|
2357
|
+
}
|
|
3056
2358
|
|
|
3057
|
-
|
|
3058
|
-
return
|
|
3059
|
-
|
|
2359
|
+
function Reject({ color, size, ...nativeProps }) {
|
|
2360
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-80)", children: [jsx("path", { d: "M90,1a9,9,0,1,0,9,9A9,9,0,0,0,90,1Zm0,16a7,7,0,1,1,7-7A7,7,0,0,1,90,17Z", fill: "currentColor" }), jsx("path", { d: "M94,7.455,92.545,6,90,8.545,87.455,6,86,7.455,88.545,10,86,12.545,87.455,14,90,11.455,92.545,14,94,12.545,91.455,10Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(80)", width: "20" })] }) }) }));
|
|
2361
|
+
}
|
|
3060
2362
|
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
2363
|
+
function Save({ color, size, ...nativeProps }) {
|
|
2364
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M14.444,2H2V18H18V5.556ZM10,16.222a2.667,2.667,0,1,1,2.667-2.667h0a2.663,2.663,0,0,1-2.659,2.667Zm2.667-8.889H3.778V3.778h8.889Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
|
|
2365
|
+
}
|
|
3064
2366
|
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
2367
|
+
function Search({ color, size, ...nativeProps }) {
|
|
2368
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(200 -41)", children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-181.262,58.262l-5.111-5.111A6.958,6.958,0,0,0-185,49a7,7,0,0,0-7-7,7,7,0,0,0-7,7,7,7,0,0,0,7,7,6.958,6.958,0,0,0,4.151-1.373l5.111,5.111ZM-197,49a5.006,5.006,0,0,1,5-5,5.006,5.006,0,0,1,5,5,5.006,5.006,0,0,1-5,5A5.006,5.006,0,0,1-197,49Z", stroke: "none" }), jsx("path", { d: "M -182.7380065917969 59.73799896240234 L -187.8489990234375 54.62699890136719 C -189.0110015869141 55.48600006103516 -190.4440002441406 56 -192 56 C -195.8659973144531 56 -199 52.86600112915039 -199 49 C -199 45.13399887084961 -195.8659973144531 42 -192 42 C -188.1340026855469 42 -185 45.13399887084961 -185 49 C -185 50.55599975585938 -185.5140075683594 51.98899841308594 -186.3730010986328 53.1510009765625 L -181.2619934082031 58.26200103759766 L -182.7380065917969 59.73799896240234 Z M -192 44 C -194.7570037841797 44 -197 46.24300003051758 -197 49 C -197 51.75699996948242 -194.7570037841797 54 -192 54 C -189.2429962158203 54 -187 51.75699996948242 -187 49 C -187 46.24300003051758 -189.2429962158203 44 -192 44 Z", fill: "currentColor", stroke: "none" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-200 41)", width: "20" })] }) }) }));
|
|
2369
|
+
}
|
|
3068
2370
|
|
|
3069
|
-
|
|
3070
|
-
if (timerId === undefined) {
|
|
3071
|
-
return leadingEdge(lastCallTime);
|
|
3072
|
-
}
|
|
3073
|
-
if (maxing) {
|
|
3074
|
-
// Handle invocations in a tight loop.
|
|
3075
|
-
timerId = setTimeout(timerExpired, wait);
|
|
3076
|
-
return invokeFunc(lastCallTime);
|
|
3077
|
-
}
|
|
3078
|
-
}
|
|
3079
|
-
if (timerId === undefined) {
|
|
3080
|
-
timerId = setTimeout(timerExpired, wait);
|
|
3081
|
-
}
|
|
3082
|
-
return result;
|
|
3083
|
-
}
|
|
3084
|
-
debounced.cancel = cancel;
|
|
3085
|
-
debounced.flush = flush;
|
|
3086
|
-
return debounced;
|
|
2371
|
+
function SelectCircle({ color, size, ...nativeProps }) {
|
|
2372
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsx("path", { d: "M10,0H8.35l-.007,0h-.08l-.012,0H8.142l-.007,0h0l-.012,0H8.094l-.013,0h0l-.008,0H8.065l-.008,0h0l-.014,0h0l-.013,0H8.017L8,.2H8L7.989.2h0L7.98.2h0l-.013,0h0l-.014,0h0l-.008,0H7.936l-.009,0h0l-.014,0h0L7.9.22H7.9l-.008,0h0l-.013,0h0L7.86.23h0l-.024,0h0l-.014,0h0L7.8.243h0l-.014,0h0L7.707.264h0l-.014,0h0A9.947,9.947,0,0,0,5.2,1.222l.961,1.755A8,8,0,0,1,10,2V0ZM3.558,2.351c-.2.172-.4.353-.592.541h0l-.021.021h0l0,0h0l-.015.015h0l-.005,0h0l-.02.02h0l-.005.005h0l-.016.016h0l0,0h0L2.856,3h0l-.005,0v0l0,0h0L2.83,3.03h0l0,0v0l-.014.014h0l0,0h0l0,0h0l-.009.01h0l0,0,0,0,0,0h0L2.762,3.1v0l0,0,0,0-.013.014,0,0,0,0,0,0,0,0,0,0-.007.008h0l0,0,0,0,0,0h0L2.7,3.17l0,0,0,0,0,0,0,0,0,0-.006.006,0,0,0,0,0,0,0,0,0,0-.007.008,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,0-.006.006,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0-.006.006,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0L2.484,3.4v0l-.006.006,0,0,0,0,0,0,0,0v0l-.006.006,0,0,0,.005,0,0,0,0,0,0-.006.007h0l0,.007h0l0,.005,0,0,0,.006h0l-.006.007h0l0,.006v0l0,.005h0l-.006.007h0l-.006.006v0l-.005,0v0l-.012.014h0l-.005.006h0l-.006.007h0l-.006.007h0l0,.006v0l0,.006h0l-.012.014h0l0,.006h0l-.012.014h0l0,.006v0l-.018.021h0l0,.007h0l-.012.015h0l-.006.006h0l-.011.015h0l0,.007h0L2.232,3.7h0l-.012.015h0l-.006.007h0L2.2,3.74h0l0,.007h0l-.018.023h0l-.018.023h0L2.153,3.8h0l-.018.022h0l-.018.023h0l-.024.031h0L2.075,3.9h0l-.018.023h0l-.023.031h0A9.981,9.981,0,0,0,.744,6.209h0l-.015.036h0l-.011.027h0L.707,6.3h0l-.014.036h0l-.011.028h0l0,.009h0L2.541,7.1A8.047,8.047,0,0,1,4.847,3.88L3.558,2.351ZM.144,8.3l-.016.1h0V8.4h0l0,.024v.065h0l0,.015h0v.007h0v.007h0l0,.031h0A9.867,9.867,0,0,0,0,9.677H0v.007H0v.031H0v.007H0v.007H0v.024H0v.007H0v.006H0V9.8H0v.023H0V9.87H0v.008H0v.03H0v.008H0V10H0v.072H0V10.1H0v.04H0v.041H0v.023H0v.008H0v.031H0v.039H0v.04H0V10.4h0v.031h0v.04h0v.031h0v.039h0v.039h0v.039h0v.022h0v.008h0v.022h0V10.7h0v.022h0v.008h0v.062h0V10.8h0v.022h0v.016h0v.015h0v.007h0v.007h0v.039h0v.022h0l0,.015v.024h0v.008h0v.022h0v.008h0v.024l0,.015h0v.014h0v.007h0l0,.015h0v.022h0v.008h0v.024l0,.015h0v.014h0l0,.015h0V11.2h0v.014h0v.015h0v.007h0v.007h0l0,.023v.008h0v.007h0l0,.016h0v.007h0v.007h0l0,.023h0v.006h0v.007h0l0,.015h0v.007h0v.007h0V11.4h0l0,.016h0v.006h0v.007h0l0,.015h0v.008h0v.007h0l0,.023h0v.007h0V11.5h0l0,.015h0v.015h0l0,.023h0v.007h0v.007h0l0,.023h0V11.6h0l0,.03h0l.012.069h0l.007.038h0l.005.031h0l.006.031h0l.007.038h0c.011.059.022.118.034.176h0a9.873,9.873,0,0,0,.331,1.217l1.893-.646A7.991,7.991,0,0,1,2,10a8.162,8.162,0,0,1,.115-1.364L.144,8.3Zm2.947,5.738L1.365,15.047h0l.015.025h0l.015.024h0l0,.008h0l.01.017h0l0,.008h0l.01.016h0l0,.007h0l0,.008h0l.005.008h0l0,.008v0l0,.006h0l.009.016v0l0,.006v0l0,.007h0l0,.007v0l0,.006v0l0,.006v0l0,.008h0l0,.006,0,0,0,.005v0l0,.008h0l0,.006v0l0,.005,0,0,0,.005v0l0,.007,0,0,0,0,0,0,0,0,0,0,0,.007,0,0,0,.005,0,0,0,0,0,0,0,.006,0,0,0,.005,0,0,0,0,0,0,0,0v0l0,.007,0,0,0,0,0,0,0,0,0,0,0,.007,0,0,0,0,0,0,0,0,0,0,0,0,0,.008,0,0,0,0,0,0,0,0,0,0,0,.008,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.008,0,0,0,.005,0,0,0,0v0l.006.009v0l0,.005,0,0,0,.005v0l.011.016,0,0,0,0v0l.011.016v0l0,0,0,0,0,0h0l.007.011h0l0,.005v0l0,.005h0l.011.017v0l0,.005h0l.011.017h0l0,.005v0l.012.018h0l0,.005h0l.016.024h0l0,.005h0l.013.018h0l0,.006h0l.016.023h0l0,.006h0l.013.018h0l0,.006h0l.017.024h0l.017.024h0l.017.024h0l.022.03h0l.018.024h0L2,15.995H2c.045.06.09.12.137.179h0q.081.1.165.2h0l.019.023h0l.043.052h0l.019.023h0L2.4,16.5h0l.025.028h0l.019.023h0l.044.051h0l.019.022h0l.019.022h0l0,0h0l.014.016h0l0,.005h0l.019.021h0l.005.005h0l.014.016h0l0,0,0,0,.014.015h0l.005.005v0l.019.02v0l0,0h0l.014.015v0l0,0h0l.014.015h0l.005,0h0l.014.015h0l0,.005h0l.005,0h0l.013.014,0,0,0,0v0l.014.014h0l0,.005,0,0,0,0h0l.008.009h0l0,0v0l0,0v0l.013.014,0,0,0,0,0,0,.013.013,0,0,0,0,0,0,0,0,0,0,.008.007,0,0,0,0,0,0,0,0,0,0L2.854,17v0l0,0,0,0,0,0,0,0,.013.013,0,0,0,0,0,0,0,0,0,0,.006.006,0,0,0,0,0,0,0,0,0,0,.005.005,0,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.006.006,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,0,.005h0l.006.006,0,0,0,0,0,0,0,0,0,0,.006.005,0,0,0,0,0,0,0,0,0,0,.006.006h0l.005,0,0,0,0,0,0,0,.005,0h0l.006.006,0,0,0,0,0,0,0,0,0,0,.007.006h0l.005.005,0,0,0,0,0,0,.007.006h0l.006.006,0,0,.005,0,0,0,.006,0h0l.007.006h0l0,.005,0,0,0,0v0l.007.006h0l.005.005,0,0,0,0,0,0,.007,0h0l.006,0,0,0,0,0,0,0,.006.005h0l.006.006,0,0,0,0,0,0,0,.005h0l.007.006h0l.006,0h0l0,0h0l.007.006h0l.006.006,0,0,.005,0,0,0,.007,0h0l.007.006h0l.006,0h0l.006,0h0l.007.006h0l.007.005h0l.006,0h0l.014.012h0l.006.005v0L3.5,17.6h0L3.5,17.6h0l.006,0h0l.014.012h0l.006.005h0l.015.012h0l.007.006h0l.014.012h0l.006.006h0l.007.005h0l.015.013h0l.006.006h0l.014.012h0l.007.006h0l.022.018h0l.022.018h0l.007.006h0l.015.012h0l.007,0h0l.022.018h0l.023.018h0l.007,0h0l.015.012h0l.007.005h0l.022.018h0l.023.018h0l.03.024h0l.023.018h0l.024.018h0l.031.024h0a9.867,9.867,0,0,0,.9.616l1.033-1.713a8.066,8.066,0,0,1-2.784-2.82Zm4.226,3.5-.671,1.885a9.967,9.967,0,0,0,2.273.518h0l.046.005h0l.04,0H9.02l.026,0h.02l.027,0h.021l.019,0h.022l.025,0h.029l.018,0H9.25l.018,0h1.194a10.415,10.415,0,0,0,1.112-.113L11.262,17.9a8.055,8.055,0,0,1-3.945-.362Zm8.736-2.308A8.04,8.04,0,0,1,12.8,17.5l.7,1.874c.1-.04.209-.081.313-.124h0l.036-.015h0l.027-.011h0l.026-.012h0l.008,0h0l.018-.007h0l.008,0h0l.007,0h0l.009,0h0l.008,0h0l.007,0h0L14,19.169h0l.007,0h0l.007,0h0l.008,0h0l.007,0h0l.006,0h0l.008,0h0l.007,0h0l.005,0h0l.005,0h0l.007,0,0,0,.006,0h0l0,0h0l.008,0h0l.006,0,0,0,.005,0h0l.006,0,0,0,.006,0,0,0,.005,0,0,0,0,0,0,0,.008,0,0,0,.005,0h0l0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,.007,0,0,0,0,0h0l0,0,0,0,.016-.008h0l0,0,0,0,0,0h0l.009,0h0l0,0,0,0,0,0h0l.01-.005h0l0,0,0,0,0,0h0L14.361,19h0l.006,0h0l.005,0h0l.012-.006h0l.006,0h0l.005,0h0l.018-.009h0l.006,0h0l.019-.01h0l.006,0h0l.006,0h0l.019-.009h0l.007,0h0l.02-.01h0l.007,0h0l.026-.013h0l.006,0h0l.02-.01h0l.006,0h0l.026-.014h0l.026-.014h0a10.018,10.018,0,0,0,1.446-.923h0l.1-.078h0l.006,0h0l.076-.061h0l.023-.019h0l.022-.018h0l0,0h0l.017-.013h0l0,0h0l.022-.018h0l0,0h0l.016-.013h0l0,0h0l.017-.014h0l.005,0h0l.006,0h0l.016-.013h0l0,0v0l.016-.013h0l.005-.005h0l.016-.013h0l0,0h0l0,0h0l.015-.013,0,0,0,0h0l.015-.013h0l0,0,0,0,0,0,0,0,.009-.008h0l0,0,0,0,0,0h0l.015-.013v0l.005,0,0,0,0,0h0l.009-.009h0l0,0,0,0,0,0,0,0,.01-.009h0l0,0,0,0,0,0,0,0,.014-.012,0,0,0,0,0,0,0,0,0,0,.007-.007,0,0,0,0,0,0,0,0,0,0,.009-.008h0l0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.005,0,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.005,0,0,0,0,0,0,0,0,0,0,.006-.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.006-.006h0l0-.005,0,0,0,0,0,0,.006-.006h0l.005-.005,0,0,0,0,0,0,.005,0v0l.006-.006h0l.005,0,0,0,.005,0v0l.007-.006h0l.005,0,0,0,.005,0v0l.013-.012h0L17,17.143v0l.006-.006h0l.006-.007h0l.006-.005v0l.006-.005h0l.006-.006h0l.006-.006h0l.005-.005h0l.013-.013h0l.005-.006h0l.013-.013h0l.006-.007h0l.006-.006h0l.014-.014h0l.006-.005h0l.013-.014h0L17.137,17h0L17.144,17h0l.013-.013h0l.006-.006h0l.014-.013h0l.006-.006h0l.02-.02h0l.02-.02h0l.007-.006h0l.02-.021h0q.16-.168.313-.345l-1.512-1.309ZM18,10.1a8.007,8.007,0,0,1-1.026,3.821l1.742.983a10.02,10.02,0,0,0,.523-1.072h0l.023-.056h0l.006-.014h0l0-.014h0l0-.007h0l.006-.014h0l0-.007h0l0-.006h0l0-.006h0l0-.006h0l0-.006v0l0-.006h0l0-.006v0l0-.006h0l0-.005v0l0-.006h0l0-.006h0l0-.006h0l0-.006v0l0-.005h0l0-.006v-.007h0l0-.006v0l0-.006h0l0-.005v0l0-.006v0l0,0v0l0-.006v-.006l0,0v-.007l0-.005v0l0,0v0l0-.006v0l0,0v0l0-.005v-.007l0,0v-.006l0-.005V13.5l0,0v-.01l0-.005v0l0,0v0l0,0v0l0,0v0l0,0v0l0-.006v0l0,0h0l0-.006v0l0-.011v0l0-.006V13.4l0-.006v-.007l0-.007v0l0-.006v-.008l0-.006V13.35h0l0-.007v0l0-.007h0v-.006l0-.007h0l0,0v0l0-.006v0l0-.012v0l0-.007h0v-.006l0-.007h0l0-.013h0l0-.008h0v0h0l0-.007v0l0,0h0l0-.009h0l0-.013h0l0-.008h0V13.19h0l0-.008h0l.005-.013h0l0-.008h0v0h0l0-.009h0l0-.014h0l0-.013h0l.007-.023h0l.005-.013h0l0-.013h0l0-.009h0l0-.014h0c.014-.041.027-.083.039-.124h0c.026-.083.05-.167.073-.251h0l0-.014h0l0-.014h0l0-.01h0l.014-.051h0l.023-.09h0l.01-.037h0l.009-.037h0l0-.014h0l0-.023h0l0-.013h0l0-.014h0l0-.009h0l0-.013h0l0-.014h0l0-.009h0v0h0l0-.01h0l0-.014h0l.009-.038h0l0-.014h0l.006-.023h0l0-.013h0l0-.014h0l0-.009h0l0-.014h0l0-.014h0v-.008h0l0-.013v0l0-.013h0l0-.009h0v-.005h0l0-.009h0l0-.013v-.01h0v-.013h0l0-.014h0l0-.014h0v-.009h0v0h0v-.01l0-.013h0l0-.008h0v-.006l0-.007v0l0-.013v-.336h0v-.038h0v-.015h0v-.022h0v-.015h0v-.006h0v-.015h0v-.015h0v-.007h0v-.007h0V11.43h0v-.008h0l0-.014h0V11.4h0v-.007h0v-.008h0l0-.014h0l0-.015h0v-.008h0v-.008h0v-.008h0l0-.015h0l0-.024h0l0-.015h0l0-.039h0A10.3,10.3,0,0,0,20,10.13L18,10.1Zm-.267-6.446L16.186,4.927A7.989,7.989,0,0,1,17.862,8.51l1.965-.37a9.834,9.834,0,0,0-.545-1.867h0l-.011-.027h0l-.014-.036h0l-.015-.036h0l-.054-.126h0l-.011-.026h0l-.027-.062h0l-.015-.035h0L19.122,5.9h0l-.016-.036h0l-.012-.026h0l0-.008h0L19.077,5.8h0l-.012-.026h0l0-.008h0l-.008-.018h0l0-.008h0l-.012-.026h0l0-.009h0l-.012-.026h0L19,5.64h0l-.013-.026h0l0-.008h0l-.009-.018h0l0-.008h0l-.013-.026h0l-.013-.026h0l0-.008h0l-.013-.026h0l0-.008h0l-.009-.017h0l0-.008h0L18.9,5.431h0L18.88,5.4h0l-.014-.025h0l-.018-.035h0l-.013-.025h0l-.019-.034h0l-.032-.059h0l-.014-.026h0l-.019-.033h0l-.019-.033h0L18.718,5.1h0L18.7,5.064h0l-.014-.025h0c-.023-.039-.046-.078-.068-.117h0L18.6,4.889h0a10,10,0,0,0-.865-1.231ZM11.829.167l-.363,1.967A7.982,7.982,0,0,1,15.053,3.8l1.265-1.55a10,10,0,0,0-3.042-1.7h0l-.027-.01h0L13.22.53h0l-.009,0h0L13.183.517h0l-.009,0h0L13.155.508h0l-.008,0h0l-.009,0h0L13.118.5h0l-.008,0h0L13.089.486h0l-.007,0h0l-.008,0h0l-.009,0h0l-.008,0h0l-.007,0h0L13.024.465h0l-.007,0h0l-.007,0h0l-.009,0h0l-.008,0h0l-.007,0h0l-.009,0h0l-.009,0h0l-.007,0h0l-.007,0h0l-.009,0h0l-.007,0h-.012l-.006,0h0l-.008,0h0l-.005,0h0l-.005,0h0l-.009,0h0l-.006,0h-.012l-.006,0h0l-.008,0h0l-.006,0h-.012L12.8.4h0l-.005,0h0l-.005,0h-.013l-.007,0-.005,0h-.017l-.005,0-.006,0h-.013l-.005,0H12.7l-.012,0h0l-.005,0h-.012l-.01,0h-.019l-.005,0h0l-.012,0H12.61l-.006,0h0l-.012,0h-.018l-.019,0h-.018l-.02,0h-.01l-.02-.005h0l-.007,0h0l-.007,0h0L12.447.3h-.008L12.41.292h0l-.03-.007h0q-.273-.068-.55-.118Z", fill: "currentColor" })] }) }));
|
|
3087
2373
|
}
|
|
3088
2374
|
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
* method to cancel delayed `func` invocations and a `flush` method to
|
|
3093
|
-
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
3094
|
-
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
3095
|
-
* timeout. The `func` is invoked with the last arguments provided to the
|
|
3096
|
-
* throttled function. Subsequent calls to the throttled function return the
|
|
3097
|
-
* result of the last `func` invocation.
|
|
3098
|
-
*
|
|
3099
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
3100
|
-
* invoked on the trailing edge of the timeout only if the throttled function
|
|
3101
|
-
* is invoked more than once during the `wait` timeout.
|
|
3102
|
-
*
|
|
3103
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
3104
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
3105
|
-
*
|
|
3106
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
3107
|
-
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
3108
|
-
*
|
|
3109
|
-
* @static
|
|
3110
|
-
* @memberOf _
|
|
3111
|
-
* @since 0.1.0
|
|
3112
|
-
* @category Function
|
|
3113
|
-
* @param {Function} func The function to throttle.
|
|
3114
|
-
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
3115
|
-
* @param {Object} [options={}] The options object.
|
|
3116
|
-
* @param {boolean} [options.leading=true]
|
|
3117
|
-
* Specify invoking on the leading edge of the timeout.
|
|
3118
|
-
* @param {boolean} [options.trailing=true]
|
|
3119
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
3120
|
-
* @returns {Function} Returns the new throttled function.
|
|
3121
|
-
* @example
|
|
3122
|
-
*
|
|
3123
|
-
* // Avoid excessively updating the position while scrolling.
|
|
3124
|
-
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
3125
|
-
*
|
|
3126
|
-
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
3127
|
-
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
3128
|
-
* jQuery(element).on('click', throttled);
|
|
3129
|
-
*
|
|
3130
|
-
* // Cancel the trailing throttled invocation.
|
|
3131
|
-
* jQuery(window).on('popstate', throttled.cancel);
|
|
3132
|
-
*/
|
|
3133
|
-
function throttle(func, wait, options) {
|
|
3134
|
-
var leading = true,
|
|
3135
|
-
trailing = true;
|
|
2375
|
+
function SelectPolygon({ color, size, ...nativeProps }) {
|
|
2376
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(120 -41)", children: [jsxs("g", { children: [jsx("path", { d: "M-114.675,45.646l-1.875-.7,1.113-2.994h3.2v2h-1.8Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2", transform: "translate(-117.788 48.28) rotate(-69.601)", width: "2.539" }), jsx("path", { d: "M-116.974,54.383l-2.266-2.192,1.1-2.956,1.875.7-.643,1.731,1.326,1.284Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2.664", transform: "matrix(0.695, -0.719, 0.719, 0.695, -116.207, 55.124)", width: "2" }), jsx("path", { d: "M-111.067,60.1l-2.459-2.379,1.391-1.437,1.135,1.1,1.185-1.041,1.32,1.5Z", fill: "currentColor" }), jsx("path", { d: "M-107.521,56.983l-1.318-1.5,1.4-1.174,1.559-.7.822,1.822-1.423.643Z", fill: "currentColor" }), jsx("path", { d: "M-103.869,54.893l-.82-1.824,1.57-.707-.3-1.7,1.971-.346.565,3.229Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2.862", transform: "translate(-104.11 46.717) rotate(-9.96)", width: "2.001" }), jsx("path", { d: "M-104.308,45.589l-.287-1.635h-1.66v-2h3.34l.578,3.289Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2", transform: "translate(-110.911 41.954)", width: "3.326" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-120 41)", width: "20" })] }) }) }));
|
|
2377
|
+
}
|
|
3136
2378
|
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
}
|
|
3140
|
-
if (isObject(options)) {
|
|
3141
|
-
leading = 'leading' in options ? !!options.leading : leading;
|
|
3142
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
3143
|
-
}
|
|
3144
|
-
return debounce(func, wait, {
|
|
3145
|
-
'leading': leading,
|
|
3146
|
-
'maxWait': wait,
|
|
3147
|
-
'trailing': trailing
|
|
3148
|
-
});
|
|
2379
|
+
function SelectRectangle({ color, size, ...nativeProps }) {
|
|
2380
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(160 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-152 44) rotate(-90)", children: [jsx("rect", { height: "4", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "2", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-152 60) rotate(-90)", children: [jsx("rect", { height: "4", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "2", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-159 49)", children: [jsx("rect", { height: "4", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "2", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-143 49)", children: [jsx("rect", { height: "4", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "2", x: "1", y: "1" })] }), jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-159,42v5h2V44h3V42Z", stroke: "none" }), jsx("path", { d: "M -159 42 L -154 42 L -154 44 L -157 44 L -157 47 L -159 47 L -159 42 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-146,42v2h3v3h2V42Z", stroke: "none" }), jsx("path", { d: "M -146 42 L -141 42 L -141 47 L -143 47 L -143 44 L -146 44 L -146 42 Z", fill: "currentColor", stroke: "none" })] })] }), jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-157,55h-2v5h5V58h-3Z", stroke: "none" }), jsx("path", { d: "M -159 55 L -157 55 L -157 58 L -154 58 L -154 60 L -159 60 L -159 55 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-143,55v3h-3v2h5V55Z", stroke: "none" }), jsx("path", { d: "M -143 55 L -141 55 L -141 60 L -146 60 L -146 58 L -143 58 L -143 55 Z", fill: "currentColor", stroke: "none" })] })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-160 41)", width: "20" })] }) }) }));
|
|
3149
2381
|
}
|
|
3150
2382
|
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
3154
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
3155
|
-
*
|
|
3156
|
-
* @static
|
|
3157
|
-
* @memberOf _
|
|
3158
|
-
* @since 0.1.0
|
|
3159
|
-
* @category Lang
|
|
3160
|
-
* @param {*} value The value to check.
|
|
3161
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
3162
|
-
* @example
|
|
3163
|
-
*
|
|
3164
|
-
* _.isObject({});
|
|
3165
|
-
* // => true
|
|
3166
|
-
*
|
|
3167
|
-
* _.isObject([1, 2, 3]);
|
|
3168
|
-
* // => true
|
|
3169
|
-
*
|
|
3170
|
-
* _.isObject(_.noop);
|
|
3171
|
-
* // => true
|
|
3172
|
-
*
|
|
3173
|
-
* _.isObject(null);
|
|
3174
|
-
* // => false
|
|
3175
|
-
*/
|
|
3176
|
-
function isObject(value) {
|
|
3177
|
-
var type = typeof value;
|
|
3178
|
-
return !!value && (type == 'object' || type == 'function');
|
|
2383
|
+
function SelectZone({ color, size, ...nativeProps }) {
|
|
2384
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(80 -41)", children: [jsxs("g", { children: [jsxs("g", { children: [jsx("path", { d: "M-74.675,45.646l-1.875-.7,1.113-2.994h3.2v2h-1.8Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2", transform: "translate(-77.788 48.28) rotate(-69.601)", width: "2.539" }), jsx("path", { d: "M-77.377,54.526-79.2,52.089l1.06-2.854,1.875.7-.681,1.833,1.172,1.564Z", fill: "currentColor" }), jsx("path", { d: "M-74.679,58.132l-1.9-2.534,1.6-1.2,1.1,1.47,1.779-.445.486,1.939Z", fill: "currentColor" }), jsx("path", { d: "M-62.532,51.889l-1.66-1.115,1.122-1.67-.63-1.91,1.9-.625.935,2.838Z", fill: "currentColor" }), jsx("path", { d: "M-64.211,45.641l-.556-1.687h-1.776v-2h3.224l1.009,3.062Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2", transform: "translate(-70.975 41.954)", width: "3.166" })] }), jsx("path", { d: "M-67.806,56.455l2.689,3.869,2.328-1.612-2.687-3.877,2.71-1.872L-72.02,47.9-70.5,58.35Z", fill: "currentColor" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-80 41)", width: "20" })] }) }) }));
|
|
3179
2385
|
}
|
|
3180
2386
|
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
* and has a `typeof` result of "object".
|
|
3184
|
-
*
|
|
3185
|
-
* @static
|
|
3186
|
-
* @memberOf _
|
|
3187
|
-
* @since 4.0.0
|
|
3188
|
-
* @category Lang
|
|
3189
|
-
* @param {*} value The value to check.
|
|
3190
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
3191
|
-
* @example
|
|
3192
|
-
*
|
|
3193
|
-
* _.isObjectLike({});
|
|
3194
|
-
* // => true
|
|
3195
|
-
*
|
|
3196
|
-
* _.isObjectLike([1, 2, 3]);
|
|
3197
|
-
* // => true
|
|
3198
|
-
*
|
|
3199
|
-
* _.isObjectLike(_.noop);
|
|
3200
|
-
* // => false
|
|
3201
|
-
*
|
|
3202
|
-
* _.isObjectLike(null);
|
|
3203
|
-
* // => false
|
|
3204
|
-
*/
|
|
3205
|
-
function isObjectLike(value) {
|
|
3206
|
-
return !!value && typeof value == 'object';
|
|
2387
|
+
function ShowErsMessages({ color, size, ...nativeProps }) {
|
|
2388
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-40 -41)", children: [jsxs("g", { children: [jsx("path", { d: "M50,42.667a5,5,0,0,0-5,5,4.926,4.926,0,0,0,.047.647c.013.113.031.225.051.337l.01.047C45.8,52.493,50,56,50,56s4.2-3.507,4.892-7.3l.01-.047c.02-.112.038-.224.051-.337A4.926,4.926,0,0,0,55,47.667,5,5,0,0,0,50,42.667Zm0,7.5a2.5,2.5,0,1,1,2.5-2.5A2.5,2.5,0,0,1,50,50.167Z", fill: "currentColor" }), jsxs("g", { fill: "#fff", strokeMiterlimit: "10", children: [jsx("path", { d: "M 50 57.97749710083008 C 49.69147872924805 57.97749710083008 49.38210678100586 57.94551086425781 49.07577133178711 57.88271331787109 C 49.38035202026367 57.93568420410156 49.6889762878418 57.96249771118164 50 57.96249771118164 C 50.3110237121582 57.96249771118164 50.61964797973633 57.93568420410156 50.92422866821289 57.88271331787109 C 50.61789321899414 57.94551086425781 50.30852127075195 57.97749710083008 50 57.97749710083008 Z", stroke: "none" }), jsx("path", { d: "M 46.79999923706055 55.67999649047852 C 48.75200271606445 57.38999557495117 51.24799728393555 57.38999557495117 53.20000076293945 55.67999649047852 C 54.17599868774414 56.52999877929688 55.28799819946289 56.99999618530273 56.40000152587891 56.99999618530273 L 58 56.99999618530273 L 58 58.99999618530273 L 56.40000152587891 58.99999618530273 C 55.29600143432617 58.99999618530273 54.20800018310547 58.65999603271484 53.20000076293945 58.0099983215332 C 51.18400192260742 59.29999923706055 48.81599807739258 59.29999923706055 46.79999923706055 58.0099983215332 C 45.79199981689453 58.64999771118164 44.70399856567383 58.99999618530273 43.59999847412109 58.99999618530273 L 42 58.99999618530273 L 42 56.99999618530273 L 43.59999847412109 56.99999618530273 C 44.71200180053711 56.99999618530273 45.82400131225586 56.52999877929688 46.79999923706055 55.67999649047852 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(40 41)", width: "20" })] }) }) }));
|
|
3207
2389
|
}
|
|
3208
2390
|
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
*
|
|
3212
|
-
* @static
|
|
3213
|
-
* @memberOf _
|
|
3214
|
-
* @since 4.0.0
|
|
3215
|
-
* @category Lang
|
|
3216
|
-
* @param {*} value The value to check.
|
|
3217
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
3218
|
-
* @example
|
|
3219
|
-
*
|
|
3220
|
-
* _.isSymbol(Symbol.iterator);
|
|
3221
|
-
* // => true
|
|
3222
|
-
*
|
|
3223
|
-
* _.isSymbol('abc');
|
|
3224
|
-
* // => false
|
|
3225
|
-
*/
|
|
3226
|
-
function isSymbol(value) {
|
|
3227
|
-
return typeof value == 'symbol' ||
|
|
3228
|
-
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
2391
|
+
function ShowXml({ color, size, ...nativeProps }) {
|
|
2392
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-120)", children: [jsx("path", { d: "M136.646,2H123.354A3.354,3.354,0,0,0,120,5.354v9.292A3.354,3.354,0,0,0,123.354,18h13.292A3.354,3.354,0,0,0,140,14.646V5.354A3.354,3.354,0,0,0,136.646,2ZM125.607,12.863l-1.269-1.98-1.274,1.98h-1.386l1.957-2.988-1.774-2.738h1.352l1.148,1.84,1.125-1.84h1.34l-1.781,2.781L127,12.863Zm7.5,0h-1.074V8.355L130.9,12.863h-1.113l-1.133-4.508v4.508H127.58V7.137h1.731l1.039,3.906,1.027-3.906h1.734Zm5.211,0h-4.031V7.184h1.156V11.9h2.875Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(120)", width: "20" })] }) }) }));
|
|
3229
2393
|
}
|
|
3230
2394
|
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
*
|
|
3234
|
-
* @static
|
|
3235
|
-
* @memberOf _
|
|
3236
|
-
* @since 4.0.0
|
|
3237
|
-
* @category Lang
|
|
3238
|
-
* @param {*} value The value to process.
|
|
3239
|
-
* @returns {number} Returns the number.
|
|
3240
|
-
* @example
|
|
3241
|
-
*
|
|
3242
|
-
* _.toNumber(3.2);
|
|
3243
|
-
* // => 3.2
|
|
3244
|
-
*
|
|
3245
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
3246
|
-
* // => 5e-324
|
|
3247
|
-
*
|
|
3248
|
-
* _.toNumber(Infinity);
|
|
3249
|
-
* // => Infinity
|
|
3250
|
-
*
|
|
3251
|
-
* _.toNumber('3.2');
|
|
3252
|
-
* // => 3.2
|
|
3253
|
-
*/
|
|
3254
|
-
function toNumber(value) {
|
|
3255
|
-
if (typeof value == 'number') {
|
|
3256
|
-
return value;
|
|
3257
|
-
}
|
|
3258
|
-
if (isSymbol(value)) {
|
|
3259
|
-
return NAN;
|
|
3260
|
-
}
|
|
3261
|
-
if (isObject(value)) {
|
|
3262
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
3263
|
-
value = isObject(other) ? (other + '') : other;
|
|
3264
|
-
}
|
|
3265
|
-
if (typeof value != 'string') {
|
|
3266
|
-
return value === 0 ? value : +value;
|
|
3267
|
-
}
|
|
3268
|
-
value = value.replace(reTrim, '');
|
|
3269
|
-
var isBinary = reIsBinary.test(value);
|
|
3270
|
-
return (isBinary || reIsOctal.test(value))
|
|
3271
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
3272
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
2395
|
+
function SortingArrows({ color, size, ...nativeProps }) {
|
|
2396
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-40)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M57.536,11.636,55,14.172V2H53V14.172l-2.536-2.536L49.05,13.05,54,18l4.95-4.95Z", stroke: "none" }), jsx("path", { d: "M 54 18 L 49.05022811889648 13.05023002624512 L 50.46448135375977 11.6360502243042 L 53 14.17156982421875 L 53 2 L 55 2 L 55 14.17156982421875 L 57.53551864624023 11.6360502243042 L 58.94977188110352 13.05023002624512 L 54 18 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M50.95,6.95,46,2,41.05,6.95l1.414,1.414L45,5.828V18h2V5.828l2.536,2.536Z", stroke: "none" }), jsx("path", { d: "M 46 2 L 50.94977188110352 6.949709892272949 L 49.53551864624023 8.363949775695801 L 47 5.828370094299316 L 47 18 L 45 18 L 45 5.828370094299316 L 42.46448135375977 8.363949775695801 L 41.05022811889648 6.949709892272949 L 46 2 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(40)", width: "20" })] }) }) }));
|
|
3273
2397
|
}
|
|
3274
2398
|
|
|
3275
|
-
|
|
2399
|
+
function Summary({ color, size, ...nativeProps }) {
|
|
2400
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsxs("defs", { children: [jsx("clipPath", { children: jsx("use", {}) }), jsx("clipPath", { children: jsx("use", {}) }), jsx("clipPath", { children: jsx("use", {}) })] }), jsxs("g", { transform: "translate(-200)", children: [jsx("path", { d: "M216,4V16H204V4h12M202,2V18h16V2Z", fill: "currentColor" }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(206 6)", children: [jsx("rect", { height: "1.5", stroke: "none", width: "8" }), jsx("path", { clipPath: "url(#clip)", d: "M0,0.5h8M7,0v1.5M8,1h-8M1,1.5v-1.5", fill: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(206 9.25)", children: [jsx("rect", { height: "1.5", stroke: "none", width: "8" }), jsx("path", { clipPath: "url(#clip-2)", d: "M0,0.5h8M7,0v1.5M8,1h-8M1,1.5v-1.5", fill: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(206 12.5)", children: [jsx("rect", { height: "1.5", stroke: "none", width: "8" }), jsx("path", { clipPath: "url(#clip-3)", d: "M0,0.5h8M7,0v1.5M8,1h-8M1,1.5v-1.5", fill: "none" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(200)", width: "20" })] })] }) }));
|
|
2401
|
+
}
|
|
3276
2402
|
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
*
|
|
3280
|
-
* @see https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
3281
|
-
*/
|
|
3282
|
-
function useForceUpdate() {
|
|
3283
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars
|
|
3284
|
-
const [_, forceUpdate] = useReducer(x => x + 1, 0);
|
|
3285
|
-
const forceDebouncedUpdate = useMemo(() => lodash_throttle(forceUpdate, 500), [forceUpdate]);
|
|
3286
|
-
return { forceDebouncedUpdate, forceUpdate };
|
|
2403
|
+
function Tag$1({ color, size, ...nativeProps }) {
|
|
2404
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-160)", children: [jsx("path", { d: "M173.063,6l3.334,4-3.334,4H164V6h9.063M174,4H162V16h12l5-6-5-6Z", fill: "currentColor" }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(170.5 8.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(160)", width: "20" })] }) }) }));
|
|
3287
2405
|
}
|
|
3288
2406
|
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
*/
|
|
3292
|
-
function cleanString(text) {
|
|
3293
|
-
return text.replace(/\s+/g, ' ').trim();
|
|
2407
|
+
function Target({ color, size, ...nativeProps }) {
|
|
2408
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M20,9H17.931A7.994,7.994,0,0,0,11,2.069V0H9V2.069A7.994,7.994,0,0,0,2.069,9H0v2H2.069A7.994,7.994,0,0,0,9,17.931V20h2V17.931A7.994,7.994,0,0,0,17.931,11H20Zm-9,6.91V14H9v1.91A6.008,6.008,0,0,1,4.09,11H6V9H4.09A6.008,6.008,0,0,1,9,4.09V6h2V4.09A6.008,6.008,0,0,1,15.91,9H14v2h1.91A6.008,6.008,0,0,1,11,15.91Z", stroke: "none" }), jsx("path", { d: "M 9 0 L 11 0 L 11 2.069000244140625 C 14.61700057983398 2.520999908447266 17.47900009155273 5.383000373840332 17.93099975585938 9 L 20 9 L 20 11 L 17.93099975585938 11 C 17.47900009155273 14.61700057983398 14.61700057983398 17.47900009155273 11 17.93099975585938 L 11 20 L 9 20 L 9 17.93099975585938 C 5.383000373840332 17.47900009155273 2.520999908447266 14.61700057983398 2.069000244140625 11 L 0 11 L 0 9 L 2.069000244140625 9 C 2.520999908447266 5.383000373840332 5.383000373840332 2.520999908447266 9 2.069000244140625 L 9 0 Z M 11 6 L 9 6 L 9 4.090000152587891 C 6.493000030517578 4.513999938964844 4.513999938964844 6.493000030517578 4.090000152587891 9 L 6 9 L 6 11 L 4.090000152587891 11 C 4.513999938964844 13.50699996948242 6.493000030517578 15.48600006103516 9 15.90999984741211 L 9 14 L 11 14 L 11 15.90999984741211 C 13.50699996948242 15.48600006103516 15.48600006103516 13.50699996948242 15.90999984741211 11 L 14 11 L 14 9 L 15.90999984741211 9 C 15.48600006103516 6.493000030517578 13.50699996948242 4.513999938964844 11 4.090000152587891 L 11 6 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(8.5 8.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsx("path", { d: "M0,0H20V20H0Z", fill: "none" })] }) }));
|
|
3294
2409
|
}
|
|
3295
2410
|
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
2411
|
+
function Unlock({ color, size, ...nativeProps }) {
|
|
2412
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsxs("g", { children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsxs("g", { children: [jsx("circle", { cx: "1.5", cy: "1.5", fill: "currentColor", r: "1.5", transform: "translate(8.5 11.5)" }), jsx("path", { d: "M14.471,7V5.456a4.471,4.471,0,0,0-8.942,0H7.765a2.235,2.235,0,1,1,4.47,0V7H3V19H17V7ZM15,17H5V9H15Z", fill: "currentColor" })] })] })] }) }));
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
function Vessel({ color, size, ...nativeProps }) {
|
|
2416
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-260 -208)", children: [jsx("path", { d: "M327.865,17.99a.226.226,0,0,1-.15-.184l-.64-4.879-4.88-.64a.225.225,0,0,1-.129-.382l6.81-6.811a.222.222,0,0,1,.085-.053L337.7,2.013a.224.224,0,0,1,.285.285l-3.028,8.741a.222.222,0,0,1-.053.085l-6.811,6.81a.225.225,0,0,1-.159.066A.244.244,0,0,1,327.865,17.99Z", fill: "currentColor", transform: "translate(-60 208)" }), jsx("rect", { fill: "none", height: "20", transform: "translate(260 208)", width: "20" })] }) }) }));
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
function ViewOnMap({ color, size, ...nativeProps }) {
|
|
2420
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M18.5,1.523l-6,2.4-5-2-6,2.4V18.477l6-2.4,5,2,6-2.4ZM3.5,5.677l3-1.2v9.846l-3,1.2Zm5,8.646V4.477l3,1.2v9.846Zm8,0-3,1.2V5.677l3-1.2Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(0)", width: "20" })] }) }));
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
function Vms({ color, size, ...nativeProps }) {
|
|
2424
|
+
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M12.5,9A2.5,2.5,0,1,0,9,11.289V19h2V11.289A2.5,2.5,0,0,0,12.5,9Z", fill: "currentColor" }), jsxs("g", { children: [jsx("path", { d: "M12.558,12.049l1.3,1.546a5.994,5.994,0,0,0,0-9.19l-1.3,1.546a3.944,3.944,0,0,1,0,6.1Z", fill: "currentColor", opacity: "0.98" }), jsx("path", { d: "M6.144,13.594l1.3-1.545a3.946,3.946,0,0,1,0-6.095l-1.3-1.543a5.993,5.993,0,0,0,.005,9.183Z", fill: "currentColor", opacity: "0.98" })] }), jsxs("g", { children: [jsx("path", { d: "M4.206,15.9,5.494,14.37A6.983,6.983,0,0,1,5.508,3.66L4.218,2.128A8.992,8.992,0,0,0,4.206,15.9Z", fill: "currentColor", opacity: "0.98" }), jsx("path", { d: "M17,9.021a6.985,6.985,0,0,1-2.494,5.349L15.793,15.9A8.99,8.99,0,0,0,15.772,2.12L14.485,3.654A6.983,6.983,0,0,1,17,9.021Z", fill: "currentColor", opacity: "0.98" })] }), jsx("path", { d: "M0,0H20V20H0Z", fill: "none" })] }) }));
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
2428
|
+
__proto__: null,
|
|
2429
|
+
ActivityFeed: ActivityFeed,
|
|
2430
|
+
Alert: Alert,
|
|
2431
|
+
Anchor: Anchor,
|
|
2432
|
+
Archive: Archive,
|
|
2433
|
+
Attention: Attention,
|
|
2434
|
+
Calendar: Calendar,
|
|
2435
|
+
Check: Check,
|
|
2436
|
+
Chevron: Chevron,
|
|
2437
|
+
Clock: Clock,
|
|
2438
|
+
Close: Close,
|
|
2439
|
+
Confirm: Confirm,
|
|
2440
|
+
Control: Control,
|
|
2441
|
+
Delete: Delete,
|
|
2442
|
+
Display: Display,
|
|
2443
|
+
DoubleChevron: DoubleChevron,
|
|
2444
|
+
Download: Download,
|
|
2445
|
+
Drapeau: Drapeau,
|
|
2446
|
+
Duplicate: Duplicate,
|
|
2447
|
+
Edit: Edit,
|
|
2448
|
+
EditBis: EditBis,
|
|
2449
|
+
Favorite: Favorite,
|
|
2450
|
+
FilledArrow: FilledArrow,
|
|
2451
|
+
Filter: Filter,
|
|
2452
|
+
FilterBis: FilterBis,
|
|
2453
|
+
Fishery: Fishery,
|
|
2454
|
+
FishingEngine: FishingEngine,
|
|
2455
|
+
FleetSegment: FleetSegment,
|
|
2456
|
+
Focus: Focus,
|
|
2457
|
+
FocusVessel: FocusVessel,
|
|
2458
|
+
FocusZones: FocusZones,
|
|
2459
|
+
Hide: Hide,
|
|
2460
|
+
Info: Info,
|
|
2461
|
+
Infringement: Infringement,
|
|
2462
|
+
Landmark: Landmark,
|
|
2463
|
+
List: List,
|
|
2464
|
+
MapLayers: MapLayers,
|
|
2465
|
+
MeasureAngle: MeasureAngle,
|
|
2466
|
+
MeasureBrokenLine: MeasureBrokenLine,
|
|
2467
|
+
MeasureCircle: MeasureCircle,
|
|
2468
|
+
MeasureLine: MeasureLine,
|
|
2469
|
+
Minus: Minus,
|
|
2470
|
+
More: More,
|
|
2471
|
+
Note: Note,
|
|
2472
|
+
Observation: Observation,
|
|
2473
|
+
Pin: Pin,
|
|
2474
|
+
Pinpoint: Pinpoint,
|
|
2475
|
+
PinpointHide: PinpointHide,
|
|
2476
|
+
Plane: Plane,
|
|
2477
|
+
Plus: Plus,
|
|
2478
|
+
Reject: Reject,
|
|
2479
|
+
Save: Save,
|
|
2480
|
+
Search: Search,
|
|
2481
|
+
SelectCircle: SelectCircle,
|
|
2482
|
+
SelectPolygon: SelectPolygon,
|
|
2483
|
+
SelectRectangle: SelectRectangle,
|
|
2484
|
+
SelectZone: SelectZone,
|
|
2485
|
+
ShowErsMessages: ShowErsMessages,
|
|
2486
|
+
ShowXml: ShowXml,
|
|
2487
|
+
SortingArrows: SortingArrows,
|
|
2488
|
+
Summary: Summary,
|
|
2489
|
+
Tag: Tag$1,
|
|
2490
|
+
Target: Target,
|
|
2491
|
+
Unlock: Unlock,
|
|
2492
|
+
Vessel: Vessel,
|
|
2493
|
+
ViewOnMap: ViewOnMap,
|
|
2494
|
+
Vms: Vms
|
|
2495
|
+
});
|
|
2496
|
+
|
|
2497
|
+
function SingleTag({ children, onDelete }) {
|
|
2498
|
+
const handleDelete = useCallback(() => {
|
|
2499
|
+
if (onDelete) {
|
|
2500
|
+
onDelete();
|
|
2501
|
+
}
|
|
2502
|
+
}, [onDelete]);
|
|
2503
|
+
return (jsx("div", { children: jsxs(Box$c, { children: [jsx(Text, { children: children }), jsx(StyledIconButton, { accent: Accent.TERTIARY, Icon: Close, iconSize: 10, onClick: handleDelete })] }) }));
|
|
2504
|
+
}
|
|
2505
|
+
const Box$c = styled.div `
|
|
2506
|
+
align-items: center;
|
|
2507
|
+
display: inline-flex;
|
|
2508
|
+
`;
|
|
2509
|
+
const Text = styled.span `
|
|
2510
|
+
background-color: ${p => p.theme.color.lightGray};
|
|
2511
|
+
color: ${p => p.theme.color.gunMetal};
|
|
2512
|
+
font-size: 13px;
|
|
2513
|
+
line-height: 1.3846;
|
|
2514
|
+
padding: 3px 8px 5px;
|
|
2515
|
+
`;
|
|
2516
|
+
const StyledIconButton = styled(IconButton) `
|
|
2517
|
+
background-color: ${p => p.theme.color.lightGray};
|
|
2518
|
+
margin-left: 1px;
|
|
2519
|
+
padding: 7px;
|
|
2520
|
+
|
|
2521
|
+
:hover,
|
|
2522
|
+
&._hover {
|
|
2523
|
+
background-color: ${p => p.theme.color.lightGray};
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
:active,
|
|
2527
|
+
&._active {
|
|
2528
|
+
background-color: ${p => p.theme.color.lightGray};
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
:disabled,
|
|
2532
|
+
&._disabled {
|
|
2533
|
+
background-color: ${p => p.theme.color.lightGray};
|
|
2534
|
+
}
|
|
2535
|
+
`;
|
|
2536
|
+
|
|
2537
|
+
const Field$2 = styled.div `
|
|
2538
|
+
align-items: flex-start;
|
|
2539
|
+
display: flex;
|
|
2540
|
+
flex-direction: column;
|
|
2541
|
+
`;
|
|
2542
|
+
|
|
2543
|
+
const Label = styled.label `
|
|
2544
|
+
color: ${p =>
|
|
2545
|
+
// eslint-disable-next-line no-nested-ternary
|
|
2546
|
+
p.isDisabled ? p.theme.color.lightGray : p.hasError ? p.theme.color.maximumRed : p.theme.color.slateGray};
|
|
2547
|
+
display: ${p => (p.isHidden ? 'none' : 'block')};
|
|
2548
|
+
font-size: 13px;
|
|
2549
|
+
line-height: 1.3846;
|
|
2550
|
+
margin-bottom: 4px;
|
|
2551
|
+
`;
|
|
2552
|
+
|
|
2553
|
+
function Legend({ isDisabled = false, isHidden = false, ...nativeProps }) {
|
|
2554
|
+
return jsx(StyledLabel, { as: "legend", isDisabled: isDisabled, isHidden: isHidden, ...nativeProps });
|
|
2555
|
+
}
|
|
2556
|
+
const StyledLabel = styled(Label) `
|
|
2557
|
+
padding: 0;
|
|
2558
|
+
`;
|
|
2559
|
+
|
|
2560
|
+
function Fieldset({ children, hasBorder = false, isHidden = false, isLight = false, legend, ...nativeProps }) {
|
|
2561
|
+
const hasLegend = useMemo(() => Boolean(legend), [legend]);
|
|
2562
|
+
return (jsxs(StyledField, { as: "fieldset", ...nativeProps, children: [legend && jsx(Legend, { isHidden: isHidden, children: legend }), jsx(Box$b, { "$hasBorder": hasBorder, "$hasLegend": hasLegend, "$isLight": isLight, children: children })] }));
|
|
2563
|
+
}
|
|
2564
|
+
const StyledField = styled(Field$2) `
|
|
2565
|
+
border: 0;
|
|
2566
|
+
margin: 0;
|
|
2567
|
+
padding: 0;
|
|
2568
|
+
`;
|
|
2569
|
+
const Box$b = styled.div `
|
|
2570
|
+
background-color: ${p => (p.$isLight ? p.theme.color.white : 'transparent')};
|
|
2571
|
+
padding: ${p => (p.$hasBorder || p.$isLight ? '16px' : 0)};
|
|
2572
|
+
width: 100%;
|
|
2573
|
+
|
|
2574
|
+
${p => p.$hasBorder &&
|
|
2575
|
+
css `
|
|
2576
|
+
border: solid 1px ${p.$isLight ? p.theme.color.white : p.theme.color.gainsboro};
|
|
2577
|
+
`}
|
|
2578
|
+
`;
|
|
2579
|
+
|
|
2580
|
+
var TagBullet;
|
|
2581
|
+
(function (TagBullet) {
|
|
2582
|
+
TagBullet["DISK"] = "DISK";
|
|
2583
|
+
})(TagBullet || (TagBullet = {}));
|
|
2584
|
+
|
|
2585
|
+
const Disk = styled.span `
|
|
2586
|
+
background-color: ${p => p.$color};
|
|
2587
|
+
border-radius: 50%;
|
|
2588
|
+
`;
|
|
2589
|
+
|
|
2590
|
+
function Tag({ accent, bullet, children, color, Icon, isLight = false, ...nativeProps }) {
|
|
2591
|
+
const commonChildren = useMemo(() => {
|
|
2592
|
+
const defaultColor = color || THEME.color.gunMetal;
|
|
2593
|
+
const bulletColor = accent
|
|
2594
|
+
? {
|
|
2595
|
+
[Accent.PRIMARY]: THEME.color.gunMetal,
|
|
2596
|
+
[Accent.SECONDARY]: THEME.color.gunMetal,
|
|
2597
|
+
[Accent.TERTIARY]: THEME.color.white
|
|
2598
|
+
}[accent]
|
|
2599
|
+
: defaultColor;
|
|
2600
|
+
return (jsxs(Fragment, { children: [Icon && jsx(Icon, { size: 1 }), bullet === TagBullet.DISK && jsx(Disk, { "$color": bulletColor }), children] }));
|
|
2601
|
+
}, [accent, bullet, color, children, Icon]);
|
|
2602
|
+
const commonProps = useMemo(() => ({
|
|
2603
|
+
$isLight: isLight,
|
|
2604
|
+
children: commonChildren,
|
|
2605
|
+
...nativeProps
|
|
2606
|
+
}), [commonChildren, isLight, nativeProps]);
|
|
2607
|
+
switch (accent) {
|
|
2608
|
+
case Accent.PRIMARY:
|
|
2609
|
+
return jsx(PrimaryTag, { ...commonProps });
|
|
2610
|
+
case Accent.SECONDARY:
|
|
2611
|
+
return jsx(SecondaryTag, { ...commonProps });
|
|
2612
|
+
case Accent.TERTIARY:
|
|
2613
|
+
return jsx(TertiaryTag, { ...commonProps });
|
|
2614
|
+
default:
|
|
2615
|
+
return jsx(Box$a, { "$color": color, ...commonProps });
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
const Box$a = styled.span `
|
|
2619
|
+
align-items: center;
|
|
2620
|
+
background-color: ${p => (p.$isLight ? p.theme.color.white : 'transparent')};
|
|
2621
|
+
border-radius: 11px;
|
|
2622
|
+
color: ${p => (p.$color ? p.$color : p.theme.color.gunMetal)};
|
|
2623
|
+
display: inline-flex;
|
|
2624
|
+
font-size: 13px;
|
|
2625
|
+
line-height: 1.3846;
|
|
2626
|
+
padding: 1px 8px 3px 8px;
|
|
2627
|
+
|
|
2628
|
+
/* Bullet components are a span */
|
|
2629
|
+
> span {
|
|
2630
|
+
height: 16px;
|
|
2631
|
+
margin-right: 4px;
|
|
2632
|
+
width: 16px;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
/* SVG Icon components are wrapped within a <div /> */
|
|
2636
|
+
> div {
|
|
2637
|
+
margin-right: 4px;
|
|
2638
|
+
}
|
|
2639
|
+
`;
|
|
2640
|
+
const PrimaryTag = styled(Box$a) `
|
|
2641
|
+
background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
|
|
2642
|
+
color: ${p => p.theme.color.gunMetal};
|
|
2643
|
+
`;
|
|
2644
|
+
// TODO Fix this color.
|
|
2645
|
+
const SecondaryTag = styled(Box$a) `
|
|
2646
|
+
background-color: ${p => (p.$isLight ? '#f6d012' : '#f6d012')};
|
|
2647
|
+
color: ${p => p.theme.color.gunMetal};
|
|
2648
|
+
`;
|
|
2649
|
+
const TertiaryTag = styled(Box$a) `
|
|
2650
|
+
background-color: ${p => (p.$isLight ? p.theme.color.charcoal : p.theme.color.charcoal)};
|
|
2651
|
+
color: ${p => p.theme.color.white};
|
|
2652
|
+
`;
|
|
2653
|
+
|
|
2654
|
+
const TagGroup = styled.div `
|
|
2655
|
+
align-items: center;
|
|
2656
|
+
display: flex;
|
|
2657
|
+
flex-wrap: wrap;
|
|
2658
|
+
gap: 8px;
|
|
2659
|
+
`;
|
|
2660
|
+
|
|
2661
|
+
// eslint-lint-disable-next-line @typescript-eslint/naming-convention
|
|
2662
|
+
class HTTPError extends Error {
|
|
2663
|
+
constructor(response, request, options) {
|
|
2664
|
+
const code = (response.status || response.status === 0) ? response.status : '';
|
|
2665
|
+
const title = response.statusText || '';
|
|
2666
|
+
const status = `${code} ${title}`.trim();
|
|
2667
|
+
const reason = status ? `status code ${status}` : 'an unknown error';
|
|
2668
|
+
super(`Request failed with ${reason}`);
|
|
2669
|
+
Object.defineProperty(this, "response", {
|
|
2670
|
+
enumerable: true,
|
|
2671
|
+
configurable: true,
|
|
2672
|
+
writable: true,
|
|
2673
|
+
value: void 0
|
|
2674
|
+
});
|
|
2675
|
+
Object.defineProperty(this, "request", {
|
|
2676
|
+
enumerable: true,
|
|
2677
|
+
configurable: true,
|
|
2678
|
+
writable: true,
|
|
2679
|
+
value: void 0
|
|
2680
|
+
});
|
|
2681
|
+
Object.defineProperty(this, "options", {
|
|
2682
|
+
enumerable: true,
|
|
2683
|
+
configurable: true,
|
|
2684
|
+
writable: true,
|
|
2685
|
+
value: void 0
|
|
2686
|
+
});
|
|
2687
|
+
this.name = 'HTTPError';
|
|
2688
|
+
this.response = response;
|
|
2689
|
+
this.request = request;
|
|
2690
|
+
this.options = options;
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
class TimeoutError extends Error {
|
|
2695
|
+
constructor(request) {
|
|
2696
|
+
super('Request timed out');
|
|
2697
|
+
Object.defineProperty(this, "request", {
|
|
2698
|
+
enumerable: true,
|
|
2699
|
+
configurable: true,
|
|
2700
|
+
writable: true,
|
|
2701
|
+
value: void 0
|
|
2702
|
+
});
|
|
2703
|
+
this.name = 'TimeoutError';
|
|
2704
|
+
this.request = request;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2709
|
+
const isObject$1 = (value) => value !== null && typeof value === 'object';
|
|
2710
|
+
|
|
2711
|
+
const validateAndMerge = (...sources) => {
|
|
2712
|
+
for (const source of sources) {
|
|
2713
|
+
if ((!isObject$1(source) || Array.isArray(source)) && typeof source !== 'undefined') {
|
|
2714
|
+
throw new TypeError('The `options` argument must be an object');
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
return deepMerge({}, ...sources);
|
|
2718
|
+
};
|
|
2719
|
+
const mergeHeaders = (source1 = {}, source2 = {}) => {
|
|
2720
|
+
const result = new globalThis.Headers(source1);
|
|
2721
|
+
const isHeadersInstance = source2 instanceof globalThis.Headers;
|
|
2722
|
+
const source = new globalThis.Headers(source2);
|
|
2723
|
+
for (const [key, value] of source.entries()) {
|
|
2724
|
+
if ((isHeadersInstance && value === 'undefined') || value === undefined) {
|
|
2725
|
+
result.delete(key);
|
|
2726
|
+
}
|
|
2727
|
+
else {
|
|
2728
|
+
result.set(key, value);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
return result;
|
|
2732
|
+
};
|
|
2733
|
+
// TODO: Make this strongly-typed (no `any`).
|
|
2734
|
+
const deepMerge = (...sources) => {
|
|
2735
|
+
let returnValue = {};
|
|
2736
|
+
let headers = {};
|
|
2737
|
+
for (const source of sources) {
|
|
2738
|
+
if (Array.isArray(source)) {
|
|
2739
|
+
if (!Array.isArray(returnValue)) {
|
|
2740
|
+
returnValue = [];
|
|
2741
|
+
}
|
|
2742
|
+
returnValue = [...returnValue, ...source];
|
|
2743
|
+
}
|
|
2744
|
+
else if (isObject$1(source)) {
|
|
2745
|
+
for (let [key, value] of Object.entries(source)) {
|
|
2746
|
+
if (isObject$1(value) && key in returnValue) {
|
|
2747
|
+
value = deepMerge(returnValue[key], value);
|
|
2748
|
+
}
|
|
2749
|
+
returnValue = { ...returnValue, [key]: value };
|
|
2750
|
+
}
|
|
2751
|
+
if (isObject$1(source.headers)) {
|
|
2752
|
+
headers = mergeHeaders(headers, source.headers);
|
|
2753
|
+
returnValue.headers = headers;
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
return returnValue;
|
|
2758
|
+
};
|
|
2759
|
+
|
|
2760
|
+
const supportsRequestStreams = (() => {
|
|
2761
|
+
let duplexAccessed = false;
|
|
2762
|
+
let hasContentType = false;
|
|
2763
|
+
const supportsReadableStream = typeof globalThis.ReadableStream === 'function';
|
|
2764
|
+
if (supportsReadableStream) {
|
|
2765
|
+
hasContentType = new globalThis.Request('https://a.com', {
|
|
2766
|
+
body: new globalThis.ReadableStream(),
|
|
2767
|
+
method: 'POST',
|
|
2768
|
+
// @ts-expect-error - Types are outdated.
|
|
2769
|
+
get duplex() {
|
|
2770
|
+
duplexAccessed = true;
|
|
2771
|
+
return 'half';
|
|
2772
|
+
},
|
|
2773
|
+
}).headers.has('Content-Type');
|
|
2774
|
+
}
|
|
2775
|
+
return duplexAccessed && !hasContentType;
|
|
2776
|
+
})();
|
|
2777
|
+
const supportsAbortController = typeof globalThis.AbortController === 'function';
|
|
2778
|
+
const supportsResponseStreams = typeof globalThis.ReadableStream === 'function';
|
|
2779
|
+
const supportsFormData = typeof globalThis.FormData === 'function';
|
|
2780
|
+
const requestMethods = ['get', 'post', 'put', 'patch', 'head', 'delete'];
|
|
2781
|
+
const responseTypes = {
|
|
2782
|
+
json: 'application/json',
|
|
2783
|
+
text: 'text/*',
|
|
2784
|
+
formData: 'multipart/form-data',
|
|
2785
|
+
arrayBuffer: '*/*',
|
|
2786
|
+
blob: '*/*',
|
|
2787
|
+
};
|
|
2788
|
+
// The maximum value of a 32bit int (see issue #117)
|
|
2789
|
+
const maxSafeTimeout = 2147483647;
|
|
2790
|
+
const stop = Symbol('stop');
|
|
2791
|
+
|
|
2792
|
+
const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
2793
|
+
const retryMethods = ['get', 'put', 'head', 'delete', 'options', 'trace'];
|
|
2794
|
+
const retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
|
|
2795
|
+
const retryAfterStatusCodes = [413, 429, 503];
|
|
2796
|
+
const defaultRetryOptions = {
|
|
2797
|
+
limit: 2,
|
|
2798
|
+
methods: retryMethods,
|
|
2799
|
+
statusCodes: retryStatusCodes,
|
|
2800
|
+
afterStatusCodes: retryAfterStatusCodes,
|
|
2801
|
+
maxRetryAfter: Number.POSITIVE_INFINITY,
|
|
2802
|
+
backoffLimit: Number.POSITIVE_INFINITY,
|
|
2803
|
+
};
|
|
2804
|
+
const normalizeRetryOptions = (retry = {}) => {
|
|
2805
|
+
if (typeof retry === 'number') {
|
|
2806
|
+
return {
|
|
2807
|
+
...defaultRetryOptions,
|
|
2808
|
+
limit: retry,
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
if (retry.methods && !Array.isArray(retry.methods)) {
|
|
2812
|
+
throw new Error('retry.methods must be an array');
|
|
2813
|
+
}
|
|
2814
|
+
if (retry.statusCodes && !Array.isArray(retry.statusCodes)) {
|
|
2815
|
+
throw new Error('retry.statusCodes must be an array');
|
|
2816
|
+
}
|
|
2817
|
+
return {
|
|
2818
|
+
...defaultRetryOptions,
|
|
2819
|
+
...retry,
|
|
2820
|
+
afterStatusCodes: retryAfterStatusCodes,
|
|
2821
|
+
};
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
// `Promise.race()` workaround (#91)
|
|
2825
|
+
async function timeout(request, abortController, options) {
|
|
2826
|
+
return new Promise((resolve, reject) => {
|
|
2827
|
+
const timeoutId = setTimeout(() => {
|
|
2828
|
+
if (abortController) {
|
|
2829
|
+
abortController.abort();
|
|
2830
|
+
}
|
|
2831
|
+
reject(new TimeoutError(request));
|
|
2832
|
+
}, options.timeout);
|
|
2833
|
+
void options
|
|
2834
|
+
.fetch(request)
|
|
2835
|
+
.then(resolve)
|
|
2836
|
+
.catch(reject)
|
|
2837
|
+
.then(() => {
|
|
2838
|
+
clearTimeout(timeoutId);
|
|
2839
|
+
});
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
const DOMException = globalThis.DOMException ?? Error;
|
|
2844
|
+
// When targeting Node.js 18, use `signal.throwIfAborted()` (https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/throwIfAborted)
|
|
2845
|
+
function composeAbortError(signal) {
|
|
2846
|
+
return new DOMException(signal?.reason ?? 'The operation was aborted.');
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
// https://github.com/sindresorhus/delay/tree/ab98ae8dfcb38e1593286c94d934e70d14a4e111
|
|
2850
|
+
async function delay(ms, { signal }) {
|
|
2851
|
+
return new Promise((resolve, reject) => {
|
|
2852
|
+
if (signal) {
|
|
2853
|
+
if (signal.aborted) {
|
|
2854
|
+
reject(composeAbortError(signal));
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
signal.addEventListener('abort', handleAbort, { once: true });
|
|
2858
|
+
}
|
|
2859
|
+
function handleAbort() {
|
|
2860
|
+
reject(composeAbortError(signal));
|
|
2861
|
+
clearTimeout(timeoutId);
|
|
2862
|
+
}
|
|
2863
|
+
const timeoutId = setTimeout(() => {
|
|
2864
|
+
signal?.removeEventListener('abort', handleAbort);
|
|
2865
|
+
resolve();
|
|
2866
|
+
}, ms);
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
class Ky {
|
|
2871
|
+
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
2872
|
+
static create(input, options) {
|
|
2873
|
+
const ky = new Ky(input, options);
|
|
2874
|
+
const fn = async () => {
|
|
2875
|
+
if (ky._options.timeout > maxSafeTimeout) {
|
|
2876
|
+
throw new RangeError(`The \`timeout\` option cannot be greater than ${maxSafeTimeout}`);
|
|
2877
|
+
}
|
|
2878
|
+
// Delay the fetch so that body method shortcuts can set the Accept header
|
|
2879
|
+
await Promise.resolve();
|
|
2880
|
+
let response = await ky._fetch();
|
|
2881
|
+
for (const hook of ky._options.hooks.afterResponse) {
|
|
2882
|
+
// eslint-disable-next-line no-await-in-loop
|
|
2883
|
+
const modifiedResponse = await hook(ky.request, ky._options, ky._decorateResponse(response.clone()));
|
|
2884
|
+
if (modifiedResponse instanceof globalThis.Response) {
|
|
2885
|
+
response = modifiedResponse;
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
ky._decorateResponse(response);
|
|
2889
|
+
if (!response.ok && ky._options.throwHttpErrors) {
|
|
2890
|
+
let error = new HTTPError(response, ky.request, ky._options);
|
|
2891
|
+
for (const hook of ky._options.hooks.beforeError) {
|
|
2892
|
+
// eslint-disable-next-line no-await-in-loop
|
|
2893
|
+
error = await hook(error);
|
|
2894
|
+
}
|
|
2895
|
+
throw error;
|
|
2896
|
+
}
|
|
2897
|
+
// If `onDownloadProgress` is passed, it uses the stream API internally
|
|
2898
|
+
/* istanbul ignore next */
|
|
2899
|
+
if (ky._options.onDownloadProgress) {
|
|
2900
|
+
if (typeof ky._options.onDownloadProgress !== 'function') {
|
|
2901
|
+
throw new TypeError('The `onDownloadProgress` option must be a function');
|
|
2902
|
+
}
|
|
2903
|
+
if (!supportsResponseStreams) {
|
|
2904
|
+
throw new Error('Streams are not supported in your environment. `ReadableStream` is missing.');
|
|
2905
|
+
}
|
|
2906
|
+
return ky._stream(response.clone(), ky._options.onDownloadProgress);
|
|
2907
|
+
}
|
|
2908
|
+
return response;
|
|
2909
|
+
};
|
|
2910
|
+
const isRetriableMethod = ky._options.retry.methods.includes(ky.request.method.toLowerCase());
|
|
2911
|
+
const result = (isRetriableMethod ? ky._retry(fn) : fn());
|
|
2912
|
+
for (const [type, mimeType] of Object.entries(responseTypes)) {
|
|
2913
|
+
result[type] = async () => {
|
|
2914
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2915
|
+
ky.request.headers.set('accept', ky.request.headers.get('accept') || mimeType);
|
|
2916
|
+
const awaitedResult = await result;
|
|
2917
|
+
const response = awaitedResult.clone();
|
|
2918
|
+
if (type === 'json') {
|
|
2919
|
+
if (response.status === 204) {
|
|
2920
|
+
return '';
|
|
2921
|
+
}
|
|
2922
|
+
const arrayBuffer = await response.clone().arrayBuffer();
|
|
2923
|
+
const responseSize = arrayBuffer.byteLength;
|
|
2924
|
+
if (responseSize === 0) {
|
|
2925
|
+
return '';
|
|
2926
|
+
}
|
|
2927
|
+
if (options.parseJson) {
|
|
2928
|
+
return options.parseJson(await response.text());
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
return response[type]();
|
|
2932
|
+
};
|
|
2933
|
+
}
|
|
2934
|
+
return result;
|
|
2935
|
+
}
|
|
2936
|
+
// eslint-disable-next-line complexity
|
|
2937
|
+
constructor(input, options = {}) {
|
|
2938
|
+
Object.defineProperty(this, "request", {
|
|
2939
|
+
enumerable: true,
|
|
2940
|
+
configurable: true,
|
|
2941
|
+
writable: true,
|
|
2942
|
+
value: void 0
|
|
2943
|
+
});
|
|
2944
|
+
Object.defineProperty(this, "abortController", {
|
|
2945
|
+
enumerable: true,
|
|
2946
|
+
configurable: true,
|
|
2947
|
+
writable: true,
|
|
2948
|
+
value: void 0
|
|
2949
|
+
});
|
|
2950
|
+
Object.defineProperty(this, "_retryCount", {
|
|
2951
|
+
enumerable: true,
|
|
2952
|
+
configurable: true,
|
|
2953
|
+
writable: true,
|
|
2954
|
+
value: 0
|
|
2955
|
+
});
|
|
2956
|
+
Object.defineProperty(this, "_input", {
|
|
2957
|
+
enumerable: true,
|
|
2958
|
+
configurable: true,
|
|
2959
|
+
writable: true,
|
|
2960
|
+
value: void 0
|
|
2961
|
+
});
|
|
2962
|
+
Object.defineProperty(this, "_options", {
|
|
2963
|
+
enumerable: true,
|
|
2964
|
+
configurable: true,
|
|
2965
|
+
writable: true,
|
|
2966
|
+
value: void 0
|
|
2967
|
+
});
|
|
2968
|
+
this._input = input;
|
|
2969
|
+
this._options = {
|
|
2970
|
+
// TODO: credentials can be removed when the spec change is implemented in all browsers. Context: https://www.chromestatus.com/feature/4539473312350208
|
|
2971
|
+
credentials: this._input.credentials || 'same-origin',
|
|
2972
|
+
...options,
|
|
2973
|
+
headers: mergeHeaders(this._input.headers, options.headers),
|
|
2974
|
+
hooks: deepMerge({
|
|
2975
|
+
beforeRequest: [],
|
|
2976
|
+
beforeRetry: [],
|
|
2977
|
+
beforeError: [],
|
|
2978
|
+
afterResponse: [],
|
|
2979
|
+
}, options.hooks),
|
|
2980
|
+
method: normalizeRequestMethod(options.method ?? this._input.method),
|
|
2981
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2982
|
+
prefixUrl: String(options.prefixUrl || ''),
|
|
2983
|
+
retry: normalizeRetryOptions(options.retry),
|
|
2984
|
+
throwHttpErrors: options.throwHttpErrors !== false,
|
|
2985
|
+
timeout: typeof options.timeout === 'undefined' ? 10000 : options.timeout,
|
|
2986
|
+
fetch: options.fetch ?? globalThis.fetch.bind(globalThis),
|
|
2987
|
+
};
|
|
2988
|
+
if (typeof this._input !== 'string' && !(this._input instanceof URL || this._input instanceof globalThis.Request)) {
|
|
2989
|
+
throw new TypeError('`input` must be a string, URL, or Request');
|
|
2990
|
+
}
|
|
2991
|
+
if (this._options.prefixUrl && typeof this._input === 'string') {
|
|
2992
|
+
if (this._input.startsWith('/')) {
|
|
2993
|
+
throw new Error('`input` must not begin with a slash when using `prefixUrl`');
|
|
2994
|
+
}
|
|
2995
|
+
if (!this._options.prefixUrl.endsWith('/')) {
|
|
2996
|
+
this._options.prefixUrl += '/';
|
|
2997
|
+
}
|
|
2998
|
+
this._input = this._options.prefixUrl + this._input;
|
|
2999
|
+
}
|
|
3000
|
+
if (supportsAbortController) {
|
|
3001
|
+
this.abortController = new globalThis.AbortController();
|
|
3002
|
+
if (this._options.signal) {
|
|
3003
|
+
const originalSignal = this._options.signal;
|
|
3004
|
+
this._options.signal.addEventListener('abort', () => {
|
|
3005
|
+
this.abortController.abort(originalSignal.reason);
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
3008
|
+
this._options.signal = this.abortController.signal;
|
|
3009
|
+
}
|
|
3010
|
+
this.request = new globalThis.Request(this._input, this._options);
|
|
3011
|
+
if (supportsRequestStreams) {
|
|
3012
|
+
// @ts-expect-error - Types are outdated.
|
|
3013
|
+
this.request.duplex = 'half';
|
|
3014
|
+
}
|
|
3015
|
+
if (this._options.searchParams) {
|
|
3016
|
+
// eslint-disable-next-line unicorn/prevent-abbreviations
|
|
3017
|
+
const textSearchParams = typeof this._options.searchParams === 'string'
|
|
3018
|
+
? this._options.searchParams.replace(/^\?/, '')
|
|
3019
|
+
: new URLSearchParams(this._options.searchParams).toString();
|
|
3020
|
+
// eslint-disable-next-line unicorn/prevent-abbreviations
|
|
3021
|
+
const searchParams = '?' + textSearchParams;
|
|
3022
|
+
const url = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
|
|
3023
|
+
// To provide correct form boundary, Content-Type header should be deleted each time when new Request instantiated from another one
|
|
3024
|
+
if (((supportsFormData && this._options.body instanceof globalThis.FormData)
|
|
3025
|
+
|| this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers['content-type'])) {
|
|
3026
|
+
this.request.headers.delete('content-type');
|
|
3027
|
+
}
|
|
3028
|
+
this.request = new globalThis.Request(new globalThis.Request(url, this.request), this._options);
|
|
3029
|
+
}
|
|
3030
|
+
if (this._options.json !== undefined) {
|
|
3031
|
+
this._options.body = JSON.stringify(this._options.json);
|
|
3032
|
+
this.request.headers.set('content-type', this._options.headers.get('content-type') ?? 'application/json');
|
|
3033
|
+
this.request = new globalThis.Request(this.request, { body: this._options.body });
|
|
3034
|
+
}
|
|
3302
3035
|
}
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
const url = queryUrl.replace('%s', queryRef.current);
|
|
3331
|
-
const rawData = await ky$1.get(url).json();
|
|
3332
|
-
const nextData = rawData.map(queryMap);
|
|
3333
|
-
setAutoGeneratedOptions(nextData);
|
|
3036
|
+
_calculateRetryDelay(error) {
|
|
3037
|
+
this._retryCount++;
|
|
3038
|
+
if (this._retryCount < this._options.retry.limit && !(error instanceof TimeoutError)) {
|
|
3039
|
+
if (error instanceof HTTPError) {
|
|
3040
|
+
if (!this._options.retry.statusCodes.includes(error.response.status)) {
|
|
3041
|
+
return 0;
|
|
3042
|
+
}
|
|
3043
|
+
const retryAfter = error.response.headers.get('Retry-After');
|
|
3044
|
+
if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
|
|
3045
|
+
let after = Number(retryAfter);
|
|
3046
|
+
if (Number.isNaN(after)) {
|
|
3047
|
+
after = Date.parse(retryAfter) - Date.now();
|
|
3048
|
+
}
|
|
3049
|
+
else {
|
|
3050
|
+
after *= 1000;
|
|
3051
|
+
}
|
|
3052
|
+
if (typeof this._options.retry.maxRetryAfter !== 'undefined' && after > this._options.retry.maxRetryAfter) {
|
|
3053
|
+
return 0;
|
|
3054
|
+
}
|
|
3055
|
+
return after;
|
|
3056
|
+
}
|
|
3057
|
+
if (error.response.status === 413) {
|
|
3058
|
+
return 0;
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
const BACKOFF_FACTOR = 0.3;
|
|
3062
|
+
return Math.min(this._options.retry.backoffLimit, BACKOFF_FACTOR * (2 ** (this._retryCount - 1)) * 1000);
|
|
3334
3063
|
}
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3064
|
+
return 0;
|
|
3065
|
+
}
|
|
3066
|
+
_decorateResponse(response) {
|
|
3067
|
+
if (this._options.parseJson) {
|
|
3068
|
+
response.json = async () => this._options.parseJson(await response.text());
|
|
3338
3069
|
}
|
|
3339
|
-
|
|
3340
|
-
|
|
3070
|
+
return response;
|
|
3071
|
+
}
|
|
3072
|
+
async _retry(fn) {
|
|
3073
|
+
try {
|
|
3074
|
+
return await fn();
|
|
3075
|
+
// eslint-disable-next-line @typescript-eslint/no-implicit-any-catch
|
|
3341
3076
|
}
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3077
|
+
catch (error) {
|
|
3078
|
+
const ms = Math.min(this._calculateRetryDelay(error), maxSafeTimeout);
|
|
3079
|
+
if (ms !== 0 && this._retryCount > 0) {
|
|
3080
|
+
await delay(ms, { signal: this._options.signal });
|
|
3081
|
+
for (const hook of this._options.hooks.beforeRetry) {
|
|
3082
|
+
// eslint-disable-next-line no-await-in-loop
|
|
3083
|
+
const hookResult = await hook({
|
|
3084
|
+
request: this.request,
|
|
3085
|
+
options: this._options,
|
|
3086
|
+
error: error,
|
|
3087
|
+
retryCount: this._retryCount,
|
|
3088
|
+
});
|
|
3089
|
+
// If `stop` is returned from the hook, the retry process is stopped
|
|
3090
|
+
if (hookResult === stop) {
|
|
3091
|
+
return;
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
return this._retry(fn);
|
|
3095
|
+
}
|
|
3096
|
+
throw error;
|
|
3346
3097
|
}
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3098
|
+
}
|
|
3099
|
+
async _fetch() {
|
|
3100
|
+
for (const hook of this._options.hooks.beforeRequest) {
|
|
3101
|
+
// eslint-disable-next-line no-await-in-loop
|
|
3102
|
+
const result = await hook(this.request, this._options);
|
|
3103
|
+
if (result instanceof Request) {
|
|
3104
|
+
this.request = result;
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
if (result instanceof Response) {
|
|
3108
|
+
return result;
|
|
3109
|
+
}
|
|
3352
3110
|
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
useEffect(() => {
|
|
3356
|
-
if (defaultValue === prevDefaultValuePropRef.current) {
|
|
3357
|
-
return;
|
|
3111
|
+
if (this._options.timeout === false) {
|
|
3112
|
+
return this._options.fetch(this.request.clone());
|
|
3358
3113
|
}
|
|
3359
|
-
|
|
3360
|
-
}
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
}
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
font-size: 13px;
|
|
3375
|
-
width: 100%;
|
|
3376
|
-
}
|
|
3377
|
-
`;
|
|
3378
|
-
const Box$9 = styled.div `
|
|
3379
|
-
position: relative;
|
|
3380
|
-
|
|
3381
|
-
> .rs-picker-select {
|
|
3382
|
-
> .rs-picker-toggle {
|
|
3383
|
-
font-size: 13px;
|
|
3384
|
-
|
|
3385
|
-
> .rs-stack {
|
|
3386
|
-
> .rs-stack-item {
|
|
3387
|
-
> .rs-picker-toggle-placeholder {
|
|
3388
|
-
font-size: 13px;
|
|
3389
|
-
}
|
|
3114
|
+
return timeout(this.request.clone(), this.abortController, this._options);
|
|
3115
|
+
}
|
|
3116
|
+
/* istanbul ignore next */
|
|
3117
|
+
_stream(response, onDownloadProgress) {
|
|
3118
|
+
const totalBytes = Number(response.headers.get('content-length')) || 0;
|
|
3119
|
+
let transferredBytes = 0;
|
|
3120
|
+
if (response.status === 204) {
|
|
3121
|
+
if (onDownloadProgress) {
|
|
3122
|
+
onDownloadProgress({ percent: 1, totalBytes, transferredBytes }, new Uint8Array());
|
|
3123
|
+
}
|
|
3124
|
+
return new globalThis.Response(null, {
|
|
3125
|
+
status: response.status,
|
|
3126
|
+
statusText: response.statusText,
|
|
3127
|
+
headers: response.headers,
|
|
3128
|
+
});
|
|
3390
3129
|
}
|
|
3391
|
-
|
|
3130
|
+
return new globalThis.Response(new globalThis.ReadableStream({
|
|
3131
|
+
async start(controller) {
|
|
3132
|
+
const reader = response.body.getReader();
|
|
3133
|
+
if (onDownloadProgress) {
|
|
3134
|
+
onDownloadProgress({ percent: 0, transferredBytes: 0, totalBytes }, new Uint8Array());
|
|
3135
|
+
}
|
|
3136
|
+
async function read() {
|
|
3137
|
+
const { done, value } = await reader.read();
|
|
3138
|
+
if (done) {
|
|
3139
|
+
controller.close();
|
|
3140
|
+
return;
|
|
3141
|
+
}
|
|
3142
|
+
if (onDownloadProgress) {
|
|
3143
|
+
transferredBytes += value.byteLength;
|
|
3144
|
+
const percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
|
|
3145
|
+
onDownloadProgress({ percent, transferredBytes, totalBytes }, value);
|
|
3146
|
+
}
|
|
3147
|
+
controller.enqueue(value);
|
|
3148
|
+
await read();
|
|
3149
|
+
}
|
|
3150
|
+
await read();
|
|
3151
|
+
},
|
|
3152
|
+
}), {
|
|
3153
|
+
status: response.status,
|
|
3154
|
+
statusText: response.statusText,
|
|
3155
|
+
headers: response.headers,
|
|
3156
|
+
});
|
|
3392
3157
|
}
|
|
3393
|
-
}
|
|
3394
|
-
`;
|
|
3395
|
-
|
|
3396
|
-
function Checkbox({ error, label, onChange, ...originalProps }) {
|
|
3397
|
-
const controlledError = useMemo(() => normalizeString(error), [error]);
|
|
3398
|
-
const hasError = useMemo(() => Boolean(controlledError), [controlledError]);
|
|
3399
|
-
const key = useMemo(() => `${originalProps.name}-${String(originalProps.defaultChecked)}`, [originalProps.defaultChecked, originalProps.name]);
|
|
3400
|
-
const handleChange = useCallback((_, isChecked) => {
|
|
3401
|
-
if (!onChange) {
|
|
3402
|
-
return;
|
|
3403
|
-
}
|
|
3404
|
-
onChange(isChecked);
|
|
3405
|
-
}, [onChange]);
|
|
3406
|
-
useFieldUndefineEffect(originalProps.disabled, onChange);
|
|
3407
|
-
return (jsxs(Field$2, { children: [jsx(StyledCheckbox, { id: originalProps.name, onChange: handleChange, ...originalProps, children: label }, key), hasError && jsx(FieldError, { children: controlledError })] }));
|
|
3408
3158
|
}
|
|
3409
|
-
const StyledCheckbox = styled(Checkbox$1) `
|
|
3410
|
-
> .rs-checkbox-checker {
|
|
3411
|
-
min-height: 0;
|
|
3412
|
-
padding-left: 28px;
|
|
3413
|
-
padding-top: 0;
|
|
3414
3159
|
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3160
|
+
/*! MIT License © Sindre Sorhus */
|
|
3161
|
+
const createInstance = (defaults) => {
|
|
3162
|
+
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
3163
|
+
const ky = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
|
|
3164
|
+
for (const method of requestMethods) {
|
|
3165
|
+
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
3166
|
+
ky[method] = (input, options) => Ky.create(input, validateAndMerge(defaults, options, { method }));
|
|
3418
3167
|
}
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
var dayjs_min = {
|
|
3424
|
-
get exports(){ return dayjs_minExports$1; },
|
|
3425
|
-
set exports(v){ dayjs_minExports$1 = v; },
|
|
3426
|
-
};
|
|
3427
|
-
|
|
3428
|
-
var hasRequiredDayjs_min;
|
|
3429
|
-
|
|
3430
|
-
function requireDayjs_min () {
|
|
3431
|
-
if (hasRequiredDayjs_min) return dayjs_minExports$1;
|
|
3432
|
-
hasRequiredDayjs_min = 1;
|
|
3433
|
-
(function (module, exports) {
|
|
3434
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
3435
|
-
} (dayjs_min));
|
|
3436
|
-
return dayjs_minExports$1;
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
var dayjs_minExports = requireDayjs_min();
|
|
3440
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
3441
|
-
|
|
3442
|
-
var timezoneExports = {};
|
|
3443
|
-
var timezone$1 = {
|
|
3444
|
-
get exports(){ return timezoneExports; },
|
|
3445
|
-
set exports(v){ timezoneExports = v; },
|
|
3446
|
-
};
|
|
3447
|
-
|
|
3448
|
-
(function (module, exports) {
|
|
3449
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10));}var d=r[3],l=24===d?0:d,v=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",h=+e;return (o.utc(v).valueOf()-(h-=h%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,"minute");}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return "timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return [i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t;};}}));
|
|
3450
|
-
} (timezone$1));
|
|
3451
|
-
|
|
3452
|
-
var timezone = timezoneExports;
|
|
3453
|
-
|
|
3454
|
-
var utcExports = {};
|
|
3455
|
-
var utc$1 = {
|
|
3456
|
-
get exports(){ return utcExports; },
|
|
3457
|
-
set exports(v){ utcExports = v; },
|
|
3168
|
+
ky.create = (newDefaults) => createInstance(validateAndMerge(newDefaults));
|
|
3169
|
+
ky.extend = (newDefaults) => createInstance(validateAndMerge(defaults, newDefaults));
|
|
3170
|
+
ky.stop = stop;
|
|
3171
|
+
return ky;
|
|
3458
3172
|
};
|
|
3173
|
+
const ky = createInstance();
|
|
3174
|
+
var ky$1 = ky;
|
|
3459
3175
|
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3176
|
+
const FieldError = styled.p `
|
|
3177
|
+
color: ${p => p.theme.color.maximumRed};
|
|
3178
|
+
display: ${p => (p.isDisabled ? 'none' : 'block')};
|
|
3179
|
+
font-size: 13px;
|
|
3180
|
+
font-weight: 700;
|
|
3181
|
+
line-height: 1.3846;
|
|
3182
|
+
margin-top: 4px;
|
|
3183
|
+
`;
|
|
3465
3184
|
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3185
|
+
const useClickOutsideEffect = (zoneRefOrzoneRefs, action, baseContainer) => {
|
|
3186
|
+
const handleClickOutside = useCallback((event) => {
|
|
3187
|
+
const eventTarget = event.target;
|
|
3188
|
+
const zoneRefs = Array.isArray(zoneRefOrzoneRefs) ? zoneRefOrzoneRefs : [zoneRefOrzoneRefs];
|
|
3189
|
+
const isEventTargetInZones = pipe(map((zoneRef) => zoneRef.current.contains(eventTarget)), any(identity))(zoneRefs);
|
|
3190
|
+
if (isEventTargetInZones) {
|
|
3191
|
+
return;
|
|
3192
|
+
}
|
|
3193
|
+
action();
|
|
3194
|
+
}, [action, zoneRefOrzoneRefs]);
|
|
3195
|
+
useEffect(() => {
|
|
3196
|
+
const globalContainer = baseContainer ?? window.document;
|
|
3197
|
+
globalContainer.addEventListener('click', handleClickOutside);
|
|
3198
|
+
return () => {
|
|
3199
|
+
globalContainer.removeEventListener('click', handleClickOutside);
|
|
3200
|
+
};
|
|
3201
|
+
}, [baseContainer, handleClickOutside]);
|
|
3470
3202
|
};
|
|
3471
3203
|
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
* @example
|
|
3486
|
-
* `2022-01-02T03:04:05.006Z` => `2022-01-02T03:04:05.006+01:00` (or `+02:00` during DST) in Europe/Paris timezone.
|
|
3487
|
-
*/
|
|
3488
|
-
function getLocalizedDayjs(utcDate) {
|
|
3489
|
-
// The number of minutes returned by getTimezoneOffset() is positive if the local time zone is behind UTC,
|
|
3490
|
-
// and negative if the local time zone is ahead of UTC. For example, for UTC+10, -600 will be returned.
|
|
3491
|
-
const timezoneOffsetInMinutes = new Date().getTimezoneOffset();
|
|
3492
|
-
return dayjs(utcDate).add(timezoneOffsetInMinutes, 'minutes');
|
|
3204
|
+
function useFieldUndefineEffect(
|
|
3205
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3206
|
+
disabled, onChange) {
|
|
3207
|
+
useEffect(() => {
|
|
3208
|
+
if (disabled && onChange) {
|
|
3209
|
+
onChange(undefined);
|
|
3210
|
+
}
|
|
3211
|
+
return () => {
|
|
3212
|
+
if (onChange) {
|
|
3213
|
+
onChange(undefined);
|
|
3214
|
+
}
|
|
3215
|
+
};
|
|
3216
|
+
}, [disabled, onChange]);
|
|
3493
3217
|
}
|
|
3494
3218
|
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
* @example
|
|
3500
|
-
* `2022-01-02T03:04:05.006+01:00` => `2022-01-02T03:04:05.006Z`.
|
|
3501
|
-
*/
|
|
3502
|
-
function getUtcizedDayjs(localDate) {
|
|
3503
|
-
const definedLocalDate = localDate || new Date();
|
|
3504
|
-
// The number of minutes returned by getTimezoneOffset() is positive if the local time zone is behind UTC,
|
|
3505
|
-
// and negative if the local time zone is ahead of UTC. For example, for UTC+10, -600 will be returned.
|
|
3506
|
-
const timezoneOffsetInMinutes = definedLocalDate.getTimezoneOffset();
|
|
3507
|
-
return dayjs(definedLocalDate).subtract(timezoneOffsetInMinutes, 'minutes');
|
|
3219
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
3220
|
+
|
|
3221
|
+
function getDefaultExportFromCjs (x) {
|
|
3222
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3508
3223
|
}
|
|
3509
3224
|
|
|
3510
3225
|
/**
|
|
3511
|
-
*
|
|
3226
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
3227
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
3228
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
3229
|
+
* Released under MIT license <https://lodash.com/license>
|
|
3230
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
3231
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
3512
3232
|
*/
|
|
3513
|
-
const IconBox = styled.div `
|
|
3514
|
-
display: inline-block;
|
|
3515
|
-
color: ${p => p.$color ?? 'inherit'};
|
|
3516
|
-
|
|
3517
|
-
> svg {
|
|
3518
|
-
display: block;
|
|
3519
|
-
height: ${p => p.$size ?? 20}px;
|
|
3520
|
-
width: ${p => p.$size ?? 20}px;
|
|
3521
|
-
}
|
|
3522
|
-
`;
|
|
3523
|
-
|
|
3524
|
-
function ActivityFeed({ color, size, ...nativeProps }) {
|
|
3525
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(40 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-22 44) rotate(90)", children: [jsx("rect", { height: "11", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "9", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-25 50) rotate(90)", children: [jsx("rect", { height: "8", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "6", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-23 56) rotate(90)", children: [jsx("rect", { height: "10", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "8", x: "1", y: "1" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-34,51a1.994,1.994,0,0,0-1-1.723V46.723A1.994,1.994,0,0,0-34,45a2,2,0,0,0-2-2,2,2,0,0,0-2,2,1.994,1.994,0,0,0,1,1.723v2.554A1.994,1.994,0,0,0-38,51a1.994,1.994,0,0,0,1,1.723v2.554A1.994,1.994,0,0,0-38,57a2,2,0,0,0,2,2,2,2,0,0,0,2-2,1.994,1.994,0,0,0-1-1.723V52.723A1.994,1.994,0,0,0-34,51Z", stroke: "none" }), jsx("path", { d: "M -36 43 C -34.89500045776367 43 -34 43.89500045776367 -34 45 C -34 45.73799896240234 -34.40499877929688 46.37599945068359 -35 46.72299957275391 L -35 49.27700042724609 C -34.40499877929688 49.62400054931641 -34 50.26200103759766 -34 51 C -34 51.73799896240234 -34.40499877929688 52.37599945068359 -35 52.72299957275391 L -35 55.27700042724609 C -34.40499877929688 55.62400054931641 -34 56.26200103759766 -34 57 C -34 58.10499954223633 -34.89500045776367 59 -36 59 C -37.10499954223633 59 -38 58.10499954223633 -38 57 C -38 56.26200103759766 -37.59500122070313 55.62400054931641 -37 55.27700042724609 L -37 52.72299957275391 C -37.59500122070313 52.37599945068359 -38 51.73799896240234 -38 51 C -38 50.26200103759766 -37.59500122070313 49.62400054931641 -37 49.27700042724609 L -37 46.72299957275391 C -37.59500122070313 46.37599945068359 -38 45.73799896240234 -38 45 C -38 43.89500045776367 -37.10499954223633 43 -36 43 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-40 41)", width: "20" })] }) }) }));
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
function Alert({ color, size, ...nativeProps }) {
|
|
3529
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-220 -208)", children: [jsx("path", { d: "M295,13V8a5,5,0,0,0-4-4.9V1h-2V3.1A5,5,0,0,0,285,8v5l-2,2v2h4.5a2.5,2.5,0,0,0,5,0H297V15Zm-5,5a1,1,0,0,1-1-1h2A1,1,0,0,1,290,18Zm1.486-3H285l2-2V8a3,3,0,0,1,6,0v5l2,2Z", fill: "currentColor", transform: "translate(-60 208)" }), jsx("rect", { fill: "none", height: "20", transform: "translate(220 208)", width: "20" })] }) }) }));
|
|
3530
|
-
}
|
|
3531
|
-
|
|
3532
|
-
function Anchor({ color, size, ...nativeProps }) {
|
|
3533
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsx("path", { d: "M14.6,12.7l1.395,1.4A7.258,7.258,0,0,1,11,17.128V10h3V8H11V6.816a3,3,0,1,0-2,0V8H6v2H9v7.087A7.2,7.2,0,0,1,4.2,14.1L5.6,12.7,2,10v2.7C2,16.192,6.428,19,10.1,19s8.1-2.808,8.1-6.3V10ZM10,3A1,1,0,1,1,9,4,1,1,0,0,1,10,3Z", fill: "currentColor" })] }) }));
|
|
3534
|
-
}
|
|
3535
3233
|
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
|
-
function Attention({ color, size, ...nativeProps }) {
|
|
3541
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(200 -82)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M-190,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-190,83Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-190,99Z", stroke: "none" }), jsx("path", { d: "M -190 83 C -185.0290069580078 83 -181 87.02899932861328 -181 92 C -181 96.97100067138672 -185.0290069580078 101 -190 101 C -194.9709930419922 101 -199 96.97100067138672 -199 92 C -199 87.02899932861328 -194.9709930419922 83 -190 83 Z M -190 99 C -186.1340026855469 99 -183 95.86599731445313 -183 92 C -183 88.13400268554688 -186.1340026855469 85 -190 85 C -193.8659973144531 85 -197 88.13400268554688 -197 92 C -197 95.86599731445313 -193.8659973144531 99 -190 99 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-189 93) rotate(180)", children: [jsx("rect", { height: "5", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "3", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-189 96) rotate(180)", children: [jsx("rect", { height: "2", stroke: "none", width: "2" }), jsx("rect", { fill: "none", x: "1", y: "1" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-200 82)", width: "20" })] }) }) }));
|
|
3542
|
-
}
|
|
3234
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
3235
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
3543
3236
|
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
}
|
|
3237
|
+
/** Used as references for various `Number` constants. */
|
|
3238
|
+
var NAN = 0 / 0;
|
|
3547
3239
|
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
}
|
|
3240
|
+
/** `Object#toString` result references. */
|
|
3241
|
+
var symbolTag = '[object Symbol]';
|
|
3551
3242
|
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
}
|
|
3243
|
+
/** Used to match leading and trailing whitespace. */
|
|
3244
|
+
var reTrim = /^\s+|\s+$/g;
|
|
3555
3245
|
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
}
|
|
3246
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
3247
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
3559
3248
|
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
}
|
|
3249
|
+
/** Used to detect binary string values. */
|
|
3250
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
3563
3251
|
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
}
|
|
3252
|
+
/** Used to detect octal string values. */
|
|
3253
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
3567
3254
|
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
}
|
|
3255
|
+
/** Built-in method references without a dependency on `root`. */
|
|
3256
|
+
var freeParseInt = parseInt;
|
|
3571
3257
|
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
}
|
|
3258
|
+
/** Detect free variable `global` from Node.js. */
|
|
3259
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
3575
3260
|
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
}
|
|
3261
|
+
/** Detect free variable `self`. */
|
|
3262
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
3579
3263
|
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
}
|
|
3264
|
+
/** Used as a reference to the global object. */
|
|
3265
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
3583
3266
|
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
}
|
|
3267
|
+
/** Used for built-in method references. */
|
|
3268
|
+
var objectProto = Object.prototype;
|
|
3587
3269
|
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3270
|
+
/**
|
|
3271
|
+
* Used to resolve the
|
|
3272
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3273
|
+
* of values.
|
|
3274
|
+
*/
|
|
3275
|
+
var objectToString = objectProto.toString;
|
|
3591
3276
|
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3277
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
3278
|
+
var nativeMax = Math.max,
|
|
3279
|
+
nativeMin = Math.min;
|
|
3595
3280
|
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3281
|
+
/**
|
|
3282
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
3283
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
3284
|
+
*
|
|
3285
|
+
* @static
|
|
3286
|
+
* @memberOf _
|
|
3287
|
+
* @since 2.4.0
|
|
3288
|
+
* @category Date
|
|
3289
|
+
* @returns {number} Returns the timestamp.
|
|
3290
|
+
* @example
|
|
3291
|
+
*
|
|
3292
|
+
* _.defer(function(stamp) {
|
|
3293
|
+
* console.log(_.now() - stamp);
|
|
3294
|
+
* }, _.now());
|
|
3295
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
3296
|
+
*/
|
|
3297
|
+
var now = function() {
|
|
3298
|
+
return root.Date.now();
|
|
3299
|
+
};
|
|
3599
3300
|
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3301
|
+
/**
|
|
3302
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
3303
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
3304
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
3305
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
3306
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
3307
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
3308
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
3309
|
+
* calls to the debounced function return the result of the last `func`
|
|
3310
|
+
* invocation.
|
|
3311
|
+
*
|
|
3312
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
3313
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
3314
|
+
* is invoked more than once during the `wait` timeout.
|
|
3315
|
+
*
|
|
3316
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
3317
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
3318
|
+
*
|
|
3319
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
3320
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
3321
|
+
*
|
|
3322
|
+
* @static
|
|
3323
|
+
* @memberOf _
|
|
3324
|
+
* @since 0.1.0
|
|
3325
|
+
* @category Function
|
|
3326
|
+
* @param {Function} func The function to debounce.
|
|
3327
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
3328
|
+
* @param {Object} [options={}] The options object.
|
|
3329
|
+
* @param {boolean} [options.leading=false]
|
|
3330
|
+
* Specify invoking on the leading edge of the timeout.
|
|
3331
|
+
* @param {number} [options.maxWait]
|
|
3332
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
3333
|
+
* @param {boolean} [options.trailing=true]
|
|
3334
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
3335
|
+
* @returns {Function} Returns the new debounced function.
|
|
3336
|
+
* @example
|
|
3337
|
+
*
|
|
3338
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
3339
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
3340
|
+
*
|
|
3341
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
3342
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
3343
|
+
* 'leading': true,
|
|
3344
|
+
* 'trailing': false
|
|
3345
|
+
* }));
|
|
3346
|
+
*
|
|
3347
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
3348
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
3349
|
+
* var source = new EventSource('/stream');
|
|
3350
|
+
* jQuery(source).on('message', debounced);
|
|
3351
|
+
*
|
|
3352
|
+
* // Cancel the trailing debounced invocation.
|
|
3353
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
3354
|
+
*/
|
|
3355
|
+
function debounce(func, wait, options) {
|
|
3356
|
+
var lastArgs,
|
|
3357
|
+
lastThis,
|
|
3358
|
+
maxWait,
|
|
3359
|
+
result,
|
|
3360
|
+
timerId,
|
|
3361
|
+
lastCallTime,
|
|
3362
|
+
lastInvokeTime = 0,
|
|
3363
|
+
leading = false,
|
|
3364
|
+
maxing = false,
|
|
3365
|
+
trailing = true;
|
|
3603
3366
|
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
}
|
|
3367
|
+
if (typeof func != 'function') {
|
|
3368
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
3369
|
+
}
|
|
3370
|
+
wait = toNumber(wait) || 0;
|
|
3371
|
+
if (isObject(options)) {
|
|
3372
|
+
leading = !!options.leading;
|
|
3373
|
+
maxing = 'maxWait' in options;
|
|
3374
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
3375
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
3376
|
+
}
|
|
3607
3377
|
|
|
3608
|
-
function
|
|
3609
|
-
|
|
3610
|
-
|
|
3378
|
+
function invokeFunc(time) {
|
|
3379
|
+
var args = lastArgs,
|
|
3380
|
+
thisArg = lastThis;
|
|
3611
3381
|
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3382
|
+
lastArgs = lastThis = undefined;
|
|
3383
|
+
lastInvokeTime = time;
|
|
3384
|
+
result = func.apply(thisArg, args);
|
|
3385
|
+
return result;
|
|
3386
|
+
}
|
|
3615
3387
|
|
|
3616
|
-
function
|
|
3617
|
-
|
|
3618
|
-
|
|
3388
|
+
function leadingEdge(time) {
|
|
3389
|
+
// Reset any `maxWait` timer.
|
|
3390
|
+
lastInvokeTime = time;
|
|
3391
|
+
// Start the timer for the trailing edge.
|
|
3392
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3393
|
+
// Invoke the leading edge.
|
|
3394
|
+
return leading ? invokeFunc(time) : result;
|
|
3395
|
+
}
|
|
3619
3396
|
|
|
3620
|
-
function
|
|
3621
|
-
|
|
3622
|
-
|
|
3397
|
+
function remainingWait(time) {
|
|
3398
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
3399
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
3400
|
+
result = wait - timeSinceLastCall;
|
|
3623
3401
|
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
}
|
|
3402
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
|
3403
|
+
}
|
|
3627
3404
|
|
|
3628
|
-
function
|
|
3629
|
-
|
|
3630
|
-
|
|
3405
|
+
function shouldInvoke(time) {
|
|
3406
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
3407
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
3631
3408
|
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3409
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
3410
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
3411
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
3412
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
3413
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
3414
|
+
}
|
|
3635
3415
|
|
|
3636
|
-
function
|
|
3637
|
-
|
|
3638
|
-
|
|
3416
|
+
function timerExpired() {
|
|
3417
|
+
var time = now();
|
|
3418
|
+
if (shouldInvoke(time)) {
|
|
3419
|
+
return trailingEdge(time);
|
|
3420
|
+
}
|
|
3421
|
+
// Restart the timer.
|
|
3422
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
3423
|
+
}
|
|
3639
3424
|
|
|
3640
|
-
function
|
|
3641
|
-
|
|
3642
|
-
}
|
|
3425
|
+
function trailingEdge(time) {
|
|
3426
|
+
timerId = undefined;
|
|
3643
3427
|
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3428
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
3429
|
+
// debounced at least once.
|
|
3430
|
+
if (trailing && lastArgs) {
|
|
3431
|
+
return invokeFunc(time);
|
|
3432
|
+
}
|
|
3433
|
+
lastArgs = lastThis = undefined;
|
|
3434
|
+
return result;
|
|
3435
|
+
}
|
|
3647
3436
|
|
|
3648
|
-
function
|
|
3649
|
-
|
|
3650
|
-
|
|
3437
|
+
function cancel() {
|
|
3438
|
+
if (timerId !== undefined) {
|
|
3439
|
+
clearTimeout(timerId);
|
|
3440
|
+
}
|
|
3441
|
+
lastInvokeTime = 0;
|
|
3442
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
3443
|
+
}
|
|
3651
3444
|
|
|
3652
|
-
function
|
|
3653
|
-
return
|
|
3654
|
-
}
|
|
3445
|
+
function flush() {
|
|
3446
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
3447
|
+
}
|
|
3655
3448
|
|
|
3656
|
-
function
|
|
3657
|
-
|
|
3658
|
-
|
|
3449
|
+
function debounced() {
|
|
3450
|
+
var time = now(),
|
|
3451
|
+
isInvoking = shouldInvoke(time);
|
|
3659
3452
|
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3453
|
+
lastArgs = arguments;
|
|
3454
|
+
lastThis = this;
|
|
3455
|
+
lastCallTime = time;
|
|
3663
3456
|
|
|
3664
|
-
|
|
3665
|
-
|
|
3457
|
+
if (isInvoking) {
|
|
3458
|
+
if (timerId === undefined) {
|
|
3459
|
+
return leadingEdge(lastCallTime);
|
|
3460
|
+
}
|
|
3461
|
+
if (maxing) {
|
|
3462
|
+
// Handle invocations in a tight loop.
|
|
3463
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3464
|
+
return invokeFunc(lastCallTime);
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
if (timerId === undefined) {
|
|
3468
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3469
|
+
}
|
|
3470
|
+
return result;
|
|
3471
|
+
}
|
|
3472
|
+
debounced.cancel = cancel;
|
|
3473
|
+
debounced.flush = flush;
|
|
3474
|
+
return debounced;
|
|
3666
3475
|
}
|
|
3667
3476
|
|
|
3668
|
-
|
|
3669
|
-
|
|
3477
|
+
/**
|
|
3478
|
+
* Creates a throttled function that only invokes `func` at most once per
|
|
3479
|
+
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
3480
|
+
* method to cancel delayed `func` invocations and a `flush` method to
|
|
3481
|
+
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
3482
|
+
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
3483
|
+
* timeout. The `func` is invoked with the last arguments provided to the
|
|
3484
|
+
* throttled function. Subsequent calls to the throttled function return the
|
|
3485
|
+
* result of the last `func` invocation.
|
|
3486
|
+
*
|
|
3487
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
3488
|
+
* invoked on the trailing edge of the timeout only if the throttled function
|
|
3489
|
+
* is invoked more than once during the `wait` timeout.
|
|
3490
|
+
*
|
|
3491
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
3492
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
3493
|
+
*
|
|
3494
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
3495
|
+
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
3496
|
+
*
|
|
3497
|
+
* @static
|
|
3498
|
+
* @memberOf _
|
|
3499
|
+
* @since 0.1.0
|
|
3500
|
+
* @category Function
|
|
3501
|
+
* @param {Function} func The function to throttle.
|
|
3502
|
+
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
3503
|
+
* @param {Object} [options={}] The options object.
|
|
3504
|
+
* @param {boolean} [options.leading=true]
|
|
3505
|
+
* Specify invoking on the leading edge of the timeout.
|
|
3506
|
+
* @param {boolean} [options.trailing=true]
|
|
3507
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
3508
|
+
* @returns {Function} Returns the new throttled function.
|
|
3509
|
+
* @example
|
|
3510
|
+
*
|
|
3511
|
+
* // Avoid excessively updating the position while scrolling.
|
|
3512
|
+
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
3513
|
+
*
|
|
3514
|
+
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
3515
|
+
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
3516
|
+
* jQuery(element).on('click', throttled);
|
|
3517
|
+
*
|
|
3518
|
+
* // Cancel the trailing throttled invocation.
|
|
3519
|
+
* jQuery(window).on('popstate', throttled.cancel);
|
|
3520
|
+
*/
|
|
3521
|
+
function throttle(func, wait, options) {
|
|
3522
|
+
var leading = true,
|
|
3523
|
+
trailing = true;
|
|
3524
|
+
|
|
3525
|
+
if (typeof func != 'function') {
|
|
3526
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
3527
|
+
}
|
|
3528
|
+
if (isObject(options)) {
|
|
3529
|
+
leading = 'leading' in options ? !!options.leading : leading;
|
|
3530
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
3531
|
+
}
|
|
3532
|
+
return debounce(func, wait, {
|
|
3533
|
+
'leading': leading,
|
|
3534
|
+
'maxWait': wait,
|
|
3535
|
+
'trailing': trailing
|
|
3536
|
+
});
|
|
3670
3537
|
}
|
|
3671
3538
|
|
|
3672
|
-
|
|
3673
|
-
|
|
3539
|
+
/**
|
|
3540
|
+
* Checks if `value` is the
|
|
3541
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
3542
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
3543
|
+
*
|
|
3544
|
+
* @static
|
|
3545
|
+
* @memberOf _
|
|
3546
|
+
* @since 0.1.0
|
|
3547
|
+
* @category Lang
|
|
3548
|
+
* @param {*} value The value to check.
|
|
3549
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
3550
|
+
* @example
|
|
3551
|
+
*
|
|
3552
|
+
* _.isObject({});
|
|
3553
|
+
* // => true
|
|
3554
|
+
*
|
|
3555
|
+
* _.isObject([1, 2, 3]);
|
|
3556
|
+
* // => true
|
|
3557
|
+
*
|
|
3558
|
+
* _.isObject(_.noop);
|
|
3559
|
+
* // => true
|
|
3560
|
+
*
|
|
3561
|
+
* _.isObject(null);
|
|
3562
|
+
* // => false
|
|
3563
|
+
*/
|
|
3564
|
+
function isObject(value) {
|
|
3565
|
+
var type = typeof value;
|
|
3566
|
+
return !!value && (type == 'object' || type == 'function');
|
|
3674
3567
|
}
|
|
3675
3568
|
|
|
3676
|
-
|
|
3677
|
-
|
|
3569
|
+
/**
|
|
3570
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
3571
|
+
* and has a `typeof` result of "object".
|
|
3572
|
+
*
|
|
3573
|
+
* @static
|
|
3574
|
+
* @memberOf _
|
|
3575
|
+
* @since 4.0.0
|
|
3576
|
+
* @category Lang
|
|
3577
|
+
* @param {*} value The value to check.
|
|
3578
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
3579
|
+
* @example
|
|
3580
|
+
*
|
|
3581
|
+
* _.isObjectLike({});
|
|
3582
|
+
* // => true
|
|
3583
|
+
*
|
|
3584
|
+
* _.isObjectLike([1, 2, 3]);
|
|
3585
|
+
* // => true
|
|
3586
|
+
*
|
|
3587
|
+
* _.isObjectLike(_.noop);
|
|
3588
|
+
* // => false
|
|
3589
|
+
*
|
|
3590
|
+
* _.isObjectLike(null);
|
|
3591
|
+
* // => false
|
|
3592
|
+
*/
|
|
3593
|
+
function isObjectLike(value) {
|
|
3594
|
+
return !!value && typeof value == 'object';
|
|
3678
3595
|
}
|
|
3679
3596
|
|
|
3680
|
-
|
|
3681
|
-
|
|
3597
|
+
/**
|
|
3598
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
3599
|
+
*
|
|
3600
|
+
* @static
|
|
3601
|
+
* @memberOf _
|
|
3602
|
+
* @since 4.0.0
|
|
3603
|
+
* @category Lang
|
|
3604
|
+
* @param {*} value The value to check.
|
|
3605
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
3606
|
+
* @example
|
|
3607
|
+
*
|
|
3608
|
+
* _.isSymbol(Symbol.iterator);
|
|
3609
|
+
* // => true
|
|
3610
|
+
*
|
|
3611
|
+
* _.isSymbol('abc');
|
|
3612
|
+
* // => false
|
|
3613
|
+
*/
|
|
3614
|
+
function isSymbol(value) {
|
|
3615
|
+
return typeof value == 'symbol' ||
|
|
3616
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
3682
3617
|
}
|
|
3683
3618
|
|
|
3684
|
-
|
|
3685
|
-
|
|
3619
|
+
/**
|
|
3620
|
+
* Converts `value` to a number.
|
|
3621
|
+
*
|
|
3622
|
+
* @static
|
|
3623
|
+
* @memberOf _
|
|
3624
|
+
* @since 4.0.0
|
|
3625
|
+
* @category Lang
|
|
3626
|
+
* @param {*} value The value to process.
|
|
3627
|
+
* @returns {number} Returns the number.
|
|
3628
|
+
* @example
|
|
3629
|
+
*
|
|
3630
|
+
* _.toNumber(3.2);
|
|
3631
|
+
* // => 3.2
|
|
3632
|
+
*
|
|
3633
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
3634
|
+
* // => 5e-324
|
|
3635
|
+
*
|
|
3636
|
+
* _.toNumber(Infinity);
|
|
3637
|
+
* // => Infinity
|
|
3638
|
+
*
|
|
3639
|
+
* _.toNumber('3.2');
|
|
3640
|
+
* // => 3.2
|
|
3641
|
+
*/
|
|
3642
|
+
function toNumber(value) {
|
|
3643
|
+
if (typeof value == 'number') {
|
|
3644
|
+
return value;
|
|
3645
|
+
}
|
|
3646
|
+
if (isSymbol(value)) {
|
|
3647
|
+
return NAN;
|
|
3648
|
+
}
|
|
3649
|
+
if (isObject(value)) {
|
|
3650
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
3651
|
+
value = isObject(other) ? (other + '') : other;
|
|
3652
|
+
}
|
|
3653
|
+
if (typeof value != 'string') {
|
|
3654
|
+
return value === 0 ? value : +value;
|
|
3655
|
+
}
|
|
3656
|
+
value = value.replace(reTrim, '');
|
|
3657
|
+
var isBinary = reIsBinary.test(value);
|
|
3658
|
+
return (isBinary || reIsOctal.test(value))
|
|
3659
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
3660
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
3686
3661
|
}
|
|
3687
3662
|
|
|
3688
|
-
|
|
3689
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(240 -41)", children: [jsxs("g", { children: [jsx("circle", { cx: "2", cy: "2", fill: "currentColor", r: "2", transform: "translate(-232 49)" }), jsx("circle", { cx: "2", cy: "2", fill: "currentColor", r: "2", transform: "translate(-239 49)" }), jsx("circle", { cx: "2", cy: "2", fill: "currentColor", r: "2", transform: "translate(-225 49)" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-240 41)", width: "20" })] }) }) }));
|
|
3690
|
-
}
|
|
3663
|
+
var lodash_throttle = throttle;
|
|
3691
3664
|
|
|
3692
|
-
|
|
3693
|
-
|
|
3665
|
+
/**
|
|
3666
|
+
* Force component re-rendering
|
|
3667
|
+
*
|
|
3668
|
+
* @see https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
3669
|
+
*/
|
|
3670
|
+
function useForceUpdate() {
|
|
3671
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars
|
|
3672
|
+
const [_, forceUpdate] = useReducer(x => x + 1, 0);
|
|
3673
|
+
const forceDebouncedUpdate = useMemo(() => lodash_throttle(forceUpdate, 500), [forceUpdate]);
|
|
3674
|
+
return { forceDebouncedUpdate, forceUpdate };
|
|
3694
3675
|
}
|
|
3695
3676
|
|
|
3696
|
-
|
|
3697
|
-
|
|
3677
|
+
/**
|
|
3678
|
+
* Trim and single-space a string
|
|
3679
|
+
*/
|
|
3680
|
+
function cleanString(text) {
|
|
3681
|
+
return text.replace(/\s+/g, ' ').trim();
|
|
3698
3682
|
}
|
|
3699
3683
|
|
|
3700
|
-
|
|
3701
|
-
|
|
3684
|
+
/**
|
|
3685
|
+
* Normalize a string, making them undefined if empty-ish
|
|
3686
|
+
*/
|
|
3687
|
+
function normalizeString(text) {
|
|
3688
|
+
if (!text) {
|
|
3689
|
+
return undefined;
|
|
3690
|
+
}
|
|
3691
|
+
const cleanText = cleanString(text);
|
|
3692
|
+
return cleanText.length > 0 ? cleanText : undefined;
|
|
3702
3693
|
}
|
|
3703
3694
|
|
|
3704
|
-
function
|
|
3705
|
-
|
|
3695
|
+
function AutoComplete({ baseContainer, defaultValue, error, isLabelHidden, isLight = false, label, onChange, onQuery, options, queryMap, queryUrl, ...originalProps }) {
|
|
3696
|
+
// eslint-disable-next-line no-null/no-null
|
|
3697
|
+
const boxRef = useRef(null);
|
|
3698
|
+
const queryRef = useRef(undefined);
|
|
3699
|
+
const prevDefaultValuePropRef = useRef(defaultValue);
|
|
3700
|
+
const [autoGeneratedOptions, setAutoGeneratedOptions] = useState([]);
|
|
3701
|
+
const [controlledDefaultValue, setDefaultControlledValue] = useState(defaultValue);
|
|
3702
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
3703
|
+
const { forceUpdate } = useForceUpdate();
|
|
3704
|
+
const controlledError = useMemo(() => normalizeString(error), [error]);
|
|
3705
|
+
const controlledOptions = useMemo(() => options ?? autoGeneratedOptions, [autoGeneratedOptions, options]);
|
|
3706
|
+
const controlledValueAsLabel = useMemo(() => {
|
|
3707
|
+
const foundOption = controlledOptions.find(propEq('value', controlledDefaultValue));
|
|
3708
|
+
return foundOption ? foundOption.label : undefined;
|
|
3709
|
+
}, [controlledDefaultValue, controlledOptions]);
|
|
3710
|
+
const hasError = useMemo(() => Boolean(controlledError), [controlledError]);
|
|
3711
|
+
const key = useMemo(() => `${originalProps.name}-${JSON.stringify(controlledDefaultValue)}`, [controlledDefaultValue, originalProps.name]);
|
|
3712
|
+
const close = useCallback(() => {
|
|
3713
|
+
setIsOpen(false);
|
|
3714
|
+
}, []);
|
|
3715
|
+
const handleChange = useCallback(async (nextQuery) => {
|
|
3716
|
+
queryRef.current = normalizeString(nextQuery);
|
|
3717
|
+
if (queryUrl && queryMap && queryRef.current) {
|
|
3718
|
+
const url = queryUrl.replace('%s', queryRef.current);
|
|
3719
|
+
const rawData = await ky$1.get(url).json();
|
|
3720
|
+
const nextData = rawData.map(queryMap);
|
|
3721
|
+
setAutoGeneratedOptions(nextData);
|
|
3722
|
+
}
|
|
3723
|
+
setIsOpen(Boolean(queryRef.current));
|
|
3724
|
+
if (onChange && !queryRef.current) {
|
|
3725
|
+
onChange(undefined);
|
|
3726
|
+
}
|
|
3727
|
+
if (onQuery) {
|
|
3728
|
+
onQuery(queryRef.current);
|
|
3729
|
+
}
|
|
3730
|
+
}, [onChange, onQuery, queryMap, queryUrl]);
|
|
3731
|
+
const handleSelect = useCallback((nextValue) => {
|
|
3732
|
+
if (onChange) {
|
|
3733
|
+
onChange(nextValue);
|
|
3734
|
+
}
|
|
3735
|
+
setDefaultControlledValue(nextValue);
|
|
3736
|
+
}, [onChange]);
|
|
3737
|
+
const open = useCallback(() => {
|
|
3738
|
+
if (!queryRef.current) {
|
|
3739
|
+
return;
|
|
3740
|
+
}
|
|
3741
|
+
setIsOpen(true);
|
|
3742
|
+
}, []);
|
|
3743
|
+
useEffect(() => {
|
|
3744
|
+
if (defaultValue === prevDefaultValuePropRef.current) {
|
|
3745
|
+
return;
|
|
3746
|
+
}
|
|
3747
|
+
setDefaultControlledValue(defaultValue);
|
|
3748
|
+
}, [defaultValue]);
|
|
3749
|
+
useFieldUndefineEffect(originalProps.disabled, onChange);
|
|
3750
|
+
useClickOutsideEffect(boxRef, close, baseContainer);
|
|
3751
|
+
useEffect(() => {
|
|
3752
|
+
forceUpdate();
|
|
3753
|
+
}, [forceUpdate]);
|
|
3754
|
+
return (jsxs(Field$2, { children: [jsx(Label, { hasError: hasError, htmlFor: originalProps.name, isHidden: isLabelHidden, children: label }), jsx(Box$9, { ref: boxRef, onClick: open, children: boxRef.current && (jsx(StyledAutoComplete, { "$isLight": isLight, container: boxRef.current, data: controlledOptions, defaultValue: controlledValueAsLabel, id: originalProps.name, onChange: handleChange, onSelect: handleSelect, open: isOpen, ...originalProps }, key)) }), hasError && jsx(FieldError, { children: controlledError })] }));
|
|
3706
3755
|
}
|
|
3756
|
+
const StyledAutoComplete = styled(AutoComplete$1) `
|
|
3757
|
+
font-size: 13px;
|
|
3707
3758
|
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3759
|
+
> input {
|
|
3760
|
+
background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
|
|
3761
|
+
border: 0;
|
|
3762
|
+
font-size: 13px;
|
|
3763
|
+
width: 100%;
|
|
3764
|
+
}
|
|
3765
|
+
`;
|
|
3766
|
+
const Box$9 = styled.div `
|
|
3767
|
+
position: relative;
|
|
3711
3768
|
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3769
|
+
> .rs-picker-select {
|
|
3770
|
+
> .rs-picker-toggle {
|
|
3771
|
+
font-size: 13px;
|
|
3715
3772
|
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3773
|
+
> .rs-stack {
|
|
3774
|
+
> .rs-stack-item {
|
|
3775
|
+
> .rs-picker-toggle-placeholder {
|
|
3776
|
+
font-size: 13px;
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
`;
|
|
3719
3783
|
|
|
3720
|
-
function
|
|
3721
|
-
|
|
3784
|
+
function Checkbox({ error, label, onChange, ...originalProps }) {
|
|
3785
|
+
const controlledError = useMemo(() => normalizeString(error), [error]);
|
|
3786
|
+
const hasError = useMemo(() => Boolean(controlledError), [controlledError]);
|
|
3787
|
+
const key = useMemo(() => `${originalProps.name}-${String(originalProps.defaultChecked)}`, [originalProps.defaultChecked, originalProps.name]);
|
|
3788
|
+
const handleChange = useCallback((_, isChecked) => {
|
|
3789
|
+
if (!onChange) {
|
|
3790
|
+
return;
|
|
3791
|
+
}
|
|
3792
|
+
onChange(isChecked);
|
|
3793
|
+
}, [onChange]);
|
|
3794
|
+
useFieldUndefineEffect(originalProps.disabled, onChange);
|
|
3795
|
+
return (jsxs(Field$2, { children: [jsx(StyledCheckbox, { id: originalProps.name, onChange: handleChange, ...originalProps, children: label }, key), hasError && jsx(FieldError, { children: controlledError })] }));
|
|
3722
3796
|
}
|
|
3797
|
+
const StyledCheckbox = styled(Checkbox$1) `
|
|
3798
|
+
> .rs-checkbox-checker {
|
|
3799
|
+
min-height: 0;
|
|
3800
|
+
padding-left: 28px;
|
|
3801
|
+
padding-top: 0;
|
|
3723
3802
|
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3803
|
+
.rs-checkbox-wrapper {
|
|
3804
|
+
left: 2px;
|
|
3805
|
+
top: 2px !important;
|
|
3806
|
+
}
|
|
3807
|
+
}
|
|
3808
|
+
`;
|
|
3727
3809
|
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
}
|
|
3810
|
+
var dayjs_minExports$1 = {};
|
|
3811
|
+
var dayjs_min = {
|
|
3812
|
+
get exports(){ return dayjs_minExports$1; },
|
|
3813
|
+
set exports(v){ dayjs_minExports$1 = v; },
|
|
3814
|
+
};
|
|
3731
3815
|
|
|
3732
|
-
|
|
3733
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsx("path", { d: "M10,0H8.35l-.007,0h-.08l-.012,0H8.142l-.007,0h0l-.012,0H8.094l-.013,0h0l-.008,0H8.065l-.008,0h0l-.014,0h0l-.013,0H8.017L8,.2H8L7.989.2h0L7.98.2h0l-.013,0h0l-.014,0h0l-.008,0H7.936l-.009,0h0l-.014,0h0L7.9.22H7.9l-.008,0h0l-.013,0h0L7.86.23h0l-.024,0h0l-.014,0h0L7.8.243h0l-.014,0h0L7.707.264h0l-.014,0h0A9.947,9.947,0,0,0,5.2,1.222l.961,1.755A8,8,0,0,1,10,2V0ZM3.558,2.351c-.2.172-.4.353-.592.541h0l-.021.021h0l0,0h0l-.015.015h0l-.005,0h0l-.02.02h0l-.005.005h0l-.016.016h0l0,0h0L2.856,3h0l-.005,0v0l0,0h0L2.83,3.03h0l0,0v0l-.014.014h0l0,0h0l0,0h0l-.009.01h0l0,0,0,0,0,0h0L2.762,3.1v0l0,0,0,0-.013.014,0,0,0,0,0,0,0,0,0,0-.007.008h0l0,0,0,0,0,0h0L2.7,3.17l0,0,0,0,0,0,0,0,0,0-.006.006,0,0,0,0,0,0,0,0,0,0-.007.008,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,0-.006.006,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0-.006.006,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0L2.484,3.4v0l-.006.006,0,0,0,0,0,0,0,0v0l-.006.006,0,0,0,.005,0,0,0,0,0,0-.006.007h0l0,.007h0l0,.005,0,0,0,.006h0l-.006.007h0l0,.006v0l0,.005h0l-.006.007h0l-.006.006v0l-.005,0v0l-.012.014h0l-.005.006h0l-.006.007h0l-.006.007h0l0,.006v0l0,.006h0l-.012.014h0l0,.006h0l-.012.014h0l0,.006v0l-.018.021h0l0,.007h0l-.012.015h0l-.006.006h0l-.011.015h0l0,.007h0L2.232,3.7h0l-.012.015h0l-.006.007h0L2.2,3.74h0l0,.007h0l-.018.023h0l-.018.023h0L2.153,3.8h0l-.018.022h0l-.018.023h0l-.024.031h0L2.075,3.9h0l-.018.023h0l-.023.031h0A9.981,9.981,0,0,0,.744,6.209h0l-.015.036h0l-.011.027h0L.707,6.3h0l-.014.036h0l-.011.028h0l0,.009h0L2.541,7.1A8.047,8.047,0,0,1,4.847,3.88L3.558,2.351ZM.144,8.3l-.016.1h0V8.4h0l0,.024v.065h0l0,.015h0v.007h0v.007h0l0,.031h0A9.867,9.867,0,0,0,0,9.677H0v.007H0v.031H0v.007H0v.007H0v.024H0v.007H0v.006H0V9.8H0v.023H0V9.87H0v.008H0v.03H0v.008H0V10H0v.072H0V10.1H0v.04H0v.041H0v.023H0v.008H0v.031H0v.039H0v.04H0V10.4h0v.031h0v.04h0v.031h0v.039h0v.039h0v.039h0v.022h0v.008h0v.022h0V10.7h0v.022h0v.008h0v.062h0V10.8h0v.022h0v.016h0v.015h0v.007h0v.007h0v.039h0v.022h0l0,.015v.024h0v.008h0v.022h0v.008h0v.024l0,.015h0v.014h0v.007h0l0,.015h0v.022h0v.008h0v.024l0,.015h0v.014h0l0,.015h0V11.2h0v.014h0v.015h0v.007h0v.007h0l0,.023v.008h0v.007h0l0,.016h0v.007h0v.007h0l0,.023h0v.006h0v.007h0l0,.015h0v.007h0v.007h0V11.4h0l0,.016h0v.006h0v.007h0l0,.015h0v.008h0v.007h0l0,.023h0v.007h0V11.5h0l0,.015h0v.015h0l0,.023h0v.007h0v.007h0l0,.023h0V11.6h0l0,.03h0l.012.069h0l.007.038h0l.005.031h0l.006.031h0l.007.038h0c.011.059.022.118.034.176h0a9.873,9.873,0,0,0,.331,1.217l1.893-.646A7.991,7.991,0,0,1,2,10a8.162,8.162,0,0,1,.115-1.364L.144,8.3Zm2.947,5.738L1.365,15.047h0l.015.025h0l.015.024h0l0,.008h0l.01.017h0l0,.008h0l.01.016h0l0,.007h0l0,.008h0l.005.008h0l0,.008v0l0,.006h0l.009.016v0l0,.006v0l0,.007h0l0,.007v0l0,.006v0l0,.006v0l0,.008h0l0,.006,0,0,0,.005v0l0,.008h0l0,.006v0l0,.005,0,0,0,.005v0l0,.007,0,0,0,0,0,0,0,0,0,0,0,.007,0,0,0,.005,0,0,0,0,0,0,0,.006,0,0,0,.005,0,0,0,0,0,0,0,0v0l0,.007,0,0,0,0,0,0,0,0,0,0,0,.007,0,0,0,0,0,0,0,0,0,0,0,0,0,.008,0,0,0,0,0,0,0,0,0,0,0,.008,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.008,0,0,0,.005,0,0,0,0v0l.006.009v0l0,.005,0,0,0,.005v0l.011.016,0,0,0,0v0l.011.016v0l0,0,0,0,0,0h0l.007.011h0l0,.005v0l0,.005h0l.011.017v0l0,.005h0l.011.017h0l0,.005v0l.012.018h0l0,.005h0l.016.024h0l0,.005h0l.013.018h0l0,.006h0l.016.023h0l0,.006h0l.013.018h0l0,.006h0l.017.024h0l.017.024h0l.017.024h0l.022.03h0l.018.024h0L2,15.995H2c.045.06.09.12.137.179h0q.081.1.165.2h0l.019.023h0l.043.052h0l.019.023h0L2.4,16.5h0l.025.028h0l.019.023h0l.044.051h0l.019.022h0l.019.022h0l0,0h0l.014.016h0l0,.005h0l.019.021h0l.005.005h0l.014.016h0l0,0,0,0,.014.015h0l.005.005v0l.019.02v0l0,0h0l.014.015v0l0,0h0l.014.015h0l.005,0h0l.014.015h0l0,.005h0l.005,0h0l.013.014,0,0,0,0v0l.014.014h0l0,.005,0,0,0,0h0l.008.009h0l0,0v0l0,0v0l.013.014,0,0,0,0,0,0,.013.013,0,0,0,0,0,0,0,0,0,0,.008.007,0,0,0,0,0,0,0,0,0,0L2.854,17v0l0,0,0,0,0,0,0,0,.013.013,0,0,0,0,0,0,0,0,0,0,.006.006,0,0,0,0,0,0,0,0,0,0,.005.005,0,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.006.006,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,0,.005h0l.006.006,0,0,0,0,0,0,0,0,0,0,.006.005,0,0,0,0,0,0,0,0,0,0,.006.006h0l.005,0,0,0,0,0,0,0,.005,0h0l.006.006,0,0,0,0,0,0,0,0,0,0,.007.006h0l.005.005,0,0,0,0,0,0,.007.006h0l.006.006,0,0,.005,0,0,0,.006,0h0l.007.006h0l0,.005,0,0,0,0v0l.007.006h0l.005.005,0,0,0,0,0,0,.007,0h0l.006,0,0,0,0,0,0,0,.006.005h0l.006.006,0,0,0,0,0,0,0,.005h0l.007.006h0l.006,0h0l0,0h0l.007.006h0l.006.006,0,0,.005,0,0,0,.007,0h0l.007.006h0l.006,0h0l.006,0h0l.007.006h0l.007.005h0l.006,0h0l.014.012h0l.006.005v0L3.5,17.6h0L3.5,17.6h0l.006,0h0l.014.012h0l.006.005h0l.015.012h0l.007.006h0l.014.012h0l.006.006h0l.007.005h0l.015.013h0l.006.006h0l.014.012h0l.007.006h0l.022.018h0l.022.018h0l.007.006h0l.015.012h0l.007,0h0l.022.018h0l.023.018h0l.007,0h0l.015.012h0l.007.005h0l.022.018h0l.023.018h0l.03.024h0l.023.018h0l.024.018h0l.031.024h0a9.867,9.867,0,0,0,.9.616l1.033-1.713a8.066,8.066,0,0,1-2.784-2.82Zm4.226,3.5-.671,1.885a9.967,9.967,0,0,0,2.273.518h0l.046.005h0l.04,0H9.02l.026,0h.02l.027,0h.021l.019,0h.022l.025,0h.029l.018,0H9.25l.018,0h1.194a10.415,10.415,0,0,0,1.112-.113L11.262,17.9a8.055,8.055,0,0,1-3.945-.362Zm8.736-2.308A8.04,8.04,0,0,1,12.8,17.5l.7,1.874c.1-.04.209-.081.313-.124h0l.036-.015h0l.027-.011h0l.026-.012h0l.008,0h0l.018-.007h0l.008,0h0l.007,0h0l.009,0h0l.008,0h0l.007,0h0L14,19.169h0l.007,0h0l.007,0h0l.008,0h0l.007,0h0l.006,0h0l.008,0h0l.007,0h0l.005,0h0l.005,0h0l.007,0,0,0,.006,0h0l0,0h0l.008,0h0l.006,0,0,0,.005,0h0l.006,0,0,0,.006,0,0,0,.005,0,0,0,0,0,0,0,.008,0,0,0,.005,0h0l0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,.007,0,0,0,0,0h0l0,0,0,0,.016-.008h0l0,0,0,0,0,0h0l.009,0h0l0,0,0,0,0,0h0l.01-.005h0l0,0,0,0,0,0h0L14.361,19h0l.006,0h0l.005,0h0l.012-.006h0l.006,0h0l.005,0h0l.018-.009h0l.006,0h0l.019-.01h0l.006,0h0l.006,0h0l.019-.009h0l.007,0h0l.02-.01h0l.007,0h0l.026-.013h0l.006,0h0l.02-.01h0l.006,0h0l.026-.014h0l.026-.014h0a10.018,10.018,0,0,0,1.446-.923h0l.1-.078h0l.006,0h0l.076-.061h0l.023-.019h0l.022-.018h0l0,0h0l.017-.013h0l0,0h0l.022-.018h0l0,0h0l.016-.013h0l0,0h0l.017-.014h0l.005,0h0l.006,0h0l.016-.013h0l0,0v0l.016-.013h0l.005-.005h0l.016-.013h0l0,0h0l0,0h0l.015-.013,0,0,0,0h0l.015-.013h0l0,0,0,0,0,0,0,0,.009-.008h0l0,0,0,0,0,0h0l.015-.013v0l.005,0,0,0,0,0h0l.009-.009h0l0,0,0,0,0,0,0,0,.01-.009h0l0,0,0,0,0,0,0,0,.014-.012,0,0,0,0,0,0,0,0,0,0,.007-.007,0,0,0,0,0,0,0,0,0,0,.009-.008h0l0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.005,0,0,0,0,0,0,0,0,0,0,0,0,.006,0,0,0,0,0,0,0,0,0,0,0,0,0,.005,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.005,0,0,0,0,0,0,0,0,0,0,.006-.006,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.006-.006h0l0-.005,0,0,0,0,0,0,.006-.006h0l.005-.005,0,0,0,0,0,0,.005,0v0l.006-.006h0l.005,0,0,0,.005,0v0l.007-.006h0l.005,0,0,0,.005,0v0l.013-.012h0L17,17.143v0l.006-.006h0l.006-.007h0l.006-.005v0l.006-.005h0l.006-.006h0l.006-.006h0l.005-.005h0l.013-.013h0l.005-.006h0l.013-.013h0l.006-.007h0l.006-.006h0l.014-.014h0l.006-.005h0l.013-.014h0L17.137,17h0L17.144,17h0l.013-.013h0l.006-.006h0l.014-.013h0l.006-.006h0l.02-.02h0l.02-.02h0l.007-.006h0l.02-.021h0q.16-.168.313-.345l-1.512-1.309ZM18,10.1a8.007,8.007,0,0,1-1.026,3.821l1.742.983a10.02,10.02,0,0,0,.523-1.072h0l.023-.056h0l.006-.014h0l0-.014h0l0-.007h0l.006-.014h0l0-.007h0l0-.006h0l0-.006h0l0-.006h0l0-.006v0l0-.006h0l0-.006v0l0-.006h0l0-.005v0l0-.006h0l0-.006h0l0-.006h0l0-.006v0l0-.005h0l0-.006v-.007h0l0-.006v0l0-.006h0l0-.005v0l0-.006v0l0,0v0l0-.006v-.006l0,0v-.007l0-.005v0l0,0v0l0-.006v0l0,0v0l0-.005v-.007l0,0v-.006l0-.005V13.5l0,0v-.01l0-.005v0l0,0v0l0,0v0l0,0v0l0,0v0l0-.006v0l0,0h0l0-.006v0l0-.011v0l0-.006V13.4l0-.006v-.007l0-.007v0l0-.006v-.008l0-.006V13.35h0l0-.007v0l0-.007h0v-.006l0-.007h0l0,0v0l0-.006v0l0-.012v0l0-.007h0v-.006l0-.007h0l0-.013h0l0-.008h0v0h0l0-.007v0l0,0h0l0-.009h0l0-.013h0l0-.008h0V13.19h0l0-.008h0l.005-.013h0l0-.008h0v0h0l0-.009h0l0-.014h0l0-.013h0l.007-.023h0l.005-.013h0l0-.013h0l0-.009h0l0-.014h0c.014-.041.027-.083.039-.124h0c.026-.083.05-.167.073-.251h0l0-.014h0l0-.014h0l0-.01h0l.014-.051h0l.023-.09h0l.01-.037h0l.009-.037h0l0-.014h0l0-.023h0l0-.013h0l0-.014h0l0-.009h0l0-.013h0l0-.014h0l0-.009h0v0h0l0-.01h0l0-.014h0l.009-.038h0l0-.014h0l.006-.023h0l0-.013h0l0-.014h0l0-.009h0l0-.014h0l0-.014h0v-.008h0l0-.013v0l0-.013h0l0-.009h0v-.005h0l0-.009h0l0-.013v-.01h0v-.013h0l0-.014h0l0-.014h0v-.009h0v0h0v-.01l0-.013h0l0-.008h0v-.006l0-.007v0l0-.013v-.336h0v-.038h0v-.015h0v-.022h0v-.015h0v-.006h0v-.015h0v-.015h0v-.007h0v-.007h0V11.43h0v-.008h0l0-.014h0V11.4h0v-.007h0v-.008h0l0-.014h0l0-.015h0v-.008h0v-.008h0v-.008h0l0-.015h0l0-.024h0l0-.015h0l0-.039h0A10.3,10.3,0,0,0,20,10.13L18,10.1Zm-.267-6.446L16.186,4.927A7.989,7.989,0,0,1,17.862,8.51l1.965-.37a9.834,9.834,0,0,0-.545-1.867h0l-.011-.027h0l-.014-.036h0l-.015-.036h0l-.054-.126h0l-.011-.026h0l-.027-.062h0l-.015-.035h0L19.122,5.9h0l-.016-.036h0l-.012-.026h0l0-.008h0L19.077,5.8h0l-.012-.026h0l0-.008h0l-.008-.018h0l0-.008h0l-.012-.026h0l0-.009h0l-.012-.026h0L19,5.64h0l-.013-.026h0l0-.008h0l-.009-.018h0l0-.008h0l-.013-.026h0l-.013-.026h0l0-.008h0l-.013-.026h0l0-.008h0l-.009-.017h0l0-.008h0L18.9,5.431h0L18.88,5.4h0l-.014-.025h0l-.018-.035h0l-.013-.025h0l-.019-.034h0l-.032-.059h0l-.014-.026h0l-.019-.033h0l-.019-.033h0L18.718,5.1h0L18.7,5.064h0l-.014-.025h0c-.023-.039-.046-.078-.068-.117h0L18.6,4.889h0a10,10,0,0,0-.865-1.231ZM11.829.167l-.363,1.967A7.982,7.982,0,0,1,15.053,3.8l1.265-1.55a10,10,0,0,0-3.042-1.7h0l-.027-.01h0L13.22.53h0l-.009,0h0L13.183.517h0l-.009,0h0L13.155.508h0l-.008,0h0l-.009,0h0L13.118.5h0l-.008,0h0L13.089.486h0l-.007,0h0l-.008,0h0l-.009,0h0l-.008,0h0l-.007,0h0L13.024.465h0l-.007,0h0l-.007,0h0l-.009,0h0l-.008,0h0l-.007,0h0l-.009,0h0l-.009,0h0l-.007,0h0l-.007,0h0l-.009,0h0l-.007,0h-.012l-.006,0h0l-.008,0h0l-.005,0h0l-.005,0h0l-.009,0h0l-.006,0h-.012l-.006,0h0l-.008,0h0l-.006,0h-.012L12.8.4h0l-.005,0h0l-.005,0h-.013l-.007,0-.005,0h-.017l-.005,0-.006,0h-.013l-.005,0H12.7l-.012,0h0l-.005,0h-.012l-.01,0h-.019l-.005,0h0l-.012,0H12.61l-.006,0h0l-.012,0h-.018l-.019,0h-.018l-.02,0h-.01l-.02-.005h0l-.007,0h0l-.007,0h0L12.447.3h-.008L12.41.292h0l-.03-.007h0q-.273-.068-.55-.118Z", fill: "currentColor" })] }) }));
|
|
3734
|
-
}
|
|
3816
|
+
var hasRequiredDayjs_min;
|
|
3735
3817
|
|
|
3736
|
-
function
|
|
3737
|
-
|
|
3818
|
+
function requireDayjs_min () {
|
|
3819
|
+
if (hasRequiredDayjs_min) return dayjs_minExports$1;
|
|
3820
|
+
hasRequiredDayjs_min = 1;
|
|
3821
|
+
(function (module, exports) {
|
|
3822
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
3823
|
+
} (dayjs_min));
|
|
3824
|
+
return dayjs_minExports$1;
|
|
3738
3825
|
}
|
|
3739
3826
|
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
}
|
|
3827
|
+
var dayjs_minExports = requireDayjs_min();
|
|
3828
|
+
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
3743
3829
|
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
}
|
|
3830
|
+
var timezoneExports = {};
|
|
3831
|
+
var timezone$1 = {
|
|
3832
|
+
get exports(){ return timezoneExports; },
|
|
3833
|
+
set exports(v){ timezoneExports = v; },
|
|
3834
|
+
};
|
|
3747
3835
|
|
|
3748
|
-
function
|
|
3749
|
-
|
|
3750
|
-
}
|
|
3836
|
+
(function (module, exports) {
|
|
3837
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10));}var d=r[3],l=24===d?0:d,v=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",h=+e;return (o.utc(v).valueOf()-(h-=h%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,"minute");}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return "timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return [i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t;};}}));
|
|
3838
|
+
} (timezone$1));
|
|
3751
3839
|
|
|
3752
|
-
|
|
3753
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-120)", children: [jsx("path", { d: "M136.646,2H123.354A3.354,3.354,0,0,0,120,5.354v9.292A3.354,3.354,0,0,0,123.354,18h13.292A3.354,3.354,0,0,0,140,14.646V5.354A3.354,3.354,0,0,0,136.646,2ZM125.607,12.863l-1.269-1.98-1.274,1.98h-1.386l1.957-2.988-1.774-2.738h1.352l1.148,1.84,1.125-1.84h1.34l-1.781,2.781L127,12.863Zm7.5,0h-1.074V8.355L130.9,12.863h-1.113l-1.133-4.508v4.508H127.58V7.137h1.731l1.039,3.906,1.027-3.906h1.734Zm5.211,0h-4.031V7.184h1.156V11.9h2.875Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(120)", width: "20" })] }) }) }));
|
|
3754
|
-
}
|
|
3840
|
+
var timezone = timezoneExports;
|
|
3755
3841
|
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
}
|
|
3842
|
+
var utcExports = {};
|
|
3843
|
+
var utc$1 = {
|
|
3844
|
+
get exports(){ return utcExports; },
|
|
3845
|
+
set exports(v){ utcExports = v; },
|
|
3846
|
+
};
|
|
3759
3847
|
|
|
3760
|
-
function
|
|
3761
|
-
|
|
3762
|
-
}
|
|
3848
|
+
(function (module, exports) {
|
|
3849
|
+
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
3850
|
+
} (utc$1));
|
|
3763
3851
|
|
|
3764
|
-
|
|
3765
|
-
return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-160)", children: [jsx("path", { d: "M173.063,6l3.334,4-3.334,4H164V6h9.063M174,4H162V16h12l5-6-5-6Z", fill: "currentColor" }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(170.5 8.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(160)", width: "20" })] }) }) }));
|
|
3766
|
-
}
|
|
3852
|
+
var utc = utcExports;
|
|
3767
3853
|
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
}
|
|
3854
|
+
var frExports = {};
|
|
3855
|
+
var fr = {
|
|
3856
|
+
get exports(){ return frExports; },
|
|
3857
|
+
set exports(v){ frExports = v; },
|
|
3858
|
+
};
|
|
3771
3859
|
|
|
3772
|
-
function
|
|
3773
|
-
|
|
3774
|
-
}
|
|
3860
|
+
(function (module, exports) {
|
|
3861
|
+
!function(e,n){module.exports=n(requireDayjs_min());}(commonjsGlobal,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return ""+e+(1===e?"er":"")}};return t.default.locale(i,null,!0),i}));
|
|
3862
|
+
} (fr));
|
|
3775
3863
|
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3864
|
+
dayjs.extend(timezone);
|
|
3865
|
+
dayjs.extend(utc);
|
|
3866
|
+
dayjs.locale('fr');
|
|
3867
|
+
dayjs.tz.setDefault('UTC');
|
|
3779
3868
|
|
|
3780
|
-
|
|
3781
|
-
|
|
3869
|
+
// TODO Use `date-fns` instead of `dayjs`.
|
|
3870
|
+
/**
|
|
3871
|
+
* Get a Dayjs instance of a UTC date treated as if it was a locally timezoned one
|
|
3872
|
+
*
|
|
3873
|
+
* @example
|
|
3874
|
+
* `2022-01-02T03:04:05.006Z` => `2022-01-02T03:04:05.006+01:00` (or `+02:00` during DST) in Europe/Paris timezone.
|
|
3875
|
+
*/
|
|
3876
|
+
function getLocalizedDayjs(utcDate) {
|
|
3877
|
+
// The number of minutes returned by getTimezoneOffset() is positive if the local time zone is behind UTC,
|
|
3878
|
+
// and negative if the local time zone is ahead of UTC. For example, for UTC+10, -600 will be returned.
|
|
3879
|
+
const timezoneOffsetInMinutes = new Date().getTimezoneOffset();
|
|
3880
|
+
return dayjs(utcDate).add(timezoneOffsetInMinutes, 'minutes');
|
|
3782
3881
|
}
|
|
3783
3882
|
|
|
3784
|
-
|
|
3785
|
-
|
|
3883
|
+
// TODO Use `date-fns` instead of `dayjs`.
|
|
3884
|
+
/**
|
|
3885
|
+
* Get a Dayjs instance of a locally timezoned date treated as if it was a UTC one
|
|
3886
|
+
*
|
|
3887
|
+
* @example
|
|
3888
|
+
* `2022-01-02T03:04:05.006+01:00` => `2022-01-02T03:04:05.006Z`.
|
|
3889
|
+
*/
|
|
3890
|
+
function getUtcizedDayjs(localDate) {
|
|
3891
|
+
const definedLocalDate = localDate || new Date();
|
|
3892
|
+
// The number of minutes returned by getTimezoneOffset() is positive if the local time zone is behind UTC,
|
|
3893
|
+
// and negative if the local time zone is ahead of UTC. For example, for UTC+10, -600 will be returned.
|
|
3894
|
+
const timezoneOffsetInMinutes = definedLocalDate.getTimezoneOffset();
|
|
3895
|
+
return dayjs(definedLocalDate).subtract(timezoneOffsetInMinutes, 'minutes');
|
|
3786
3896
|
}
|
|
3787
3897
|
|
|
3788
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
3789
|
-
__proto__: null,
|
|
3790
|
-
ActivityFeed: ActivityFeed,
|
|
3791
|
-
Alert: Alert,
|
|
3792
|
-
Anchor: Anchor,
|
|
3793
|
-
Archive: Archive,
|
|
3794
|
-
Attention: Attention,
|
|
3795
|
-
Calendar: Calendar,
|
|
3796
|
-
Check: Check,
|
|
3797
|
-
Chevron: Chevron,
|
|
3798
|
-
Clock: Clock,
|
|
3799
|
-
Close: Close,
|
|
3800
|
-
Confirm: Confirm,
|
|
3801
|
-
Control: Control,
|
|
3802
|
-
Delete: Delete,
|
|
3803
|
-
Display: Display,
|
|
3804
|
-
DoubleChevron: DoubleChevron,
|
|
3805
|
-
Download: Download,
|
|
3806
|
-
Drapeau: Drapeau,
|
|
3807
|
-
Duplicate: Duplicate,
|
|
3808
|
-
Edit: Edit,
|
|
3809
|
-
EditBis: EditBis,
|
|
3810
|
-
Favorite: Favorite,
|
|
3811
|
-
FilledArrow: FilledArrow,
|
|
3812
|
-
Filter: Filter,
|
|
3813
|
-
FilterBis: FilterBis,
|
|
3814
|
-
Fishery: Fishery,
|
|
3815
|
-
FishingEngine: FishingEngine,
|
|
3816
|
-
FleetSegment: FleetSegment,
|
|
3817
|
-
Focus: Focus,
|
|
3818
|
-
FocusVessel: FocusVessel,
|
|
3819
|
-
FocusZones: FocusZones,
|
|
3820
|
-
Hide: Hide,
|
|
3821
|
-
Info: Info,
|
|
3822
|
-
Infringement: Infringement,
|
|
3823
|
-
Landmark: Landmark,
|
|
3824
|
-
List: List,
|
|
3825
|
-
MapLayers: MapLayers,
|
|
3826
|
-
MeasureAngle: MeasureAngle,
|
|
3827
|
-
MeasureBrokenLine: MeasureBrokenLine,
|
|
3828
|
-
MeasureCircle: MeasureCircle,
|
|
3829
|
-
MeasureLine: MeasureLine,
|
|
3830
|
-
Minus: Minus,
|
|
3831
|
-
More: More,
|
|
3832
|
-
Note: Note,
|
|
3833
|
-
Observation: Observation,
|
|
3834
|
-
Pin: Pin,
|
|
3835
|
-
Pinpoint: Pinpoint,
|
|
3836
|
-
PinpointHide: PinpointHide,
|
|
3837
|
-
Plane: Plane,
|
|
3838
|
-
Plus: Plus,
|
|
3839
|
-
Reject: Reject,
|
|
3840
|
-
Save: Save,
|
|
3841
|
-
Search: Search,
|
|
3842
|
-
SelectCircle: SelectCircle,
|
|
3843
|
-
SelectPolygon: SelectPolygon,
|
|
3844
|
-
SelectRectangle: SelectRectangle,
|
|
3845
|
-
SelectZone: SelectZone,
|
|
3846
|
-
ShowErsMessages: ShowErsMessages,
|
|
3847
|
-
ShowXml: ShowXml,
|
|
3848
|
-
SortingArrows: SortingArrows,
|
|
3849
|
-
Summary: Summary,
|
|
3850
|
-
Tag: Tag,
|
|
3851
|
-
Target: Target,
|
|
3852
|
-
Unlock: Unlock,
|
|
3853
|
-
Vessel: Vessel,
|
|
3854
|
-
ViewOnMap: ViewOnMap,
|
|
3855
|
-
Vms: Vms
|
|
3856
|
-
});
|
|
3857
|
-
|
|
3858
3898
|
function NumberInputWithRef({ defaultValue, isLight, max, min, onBack, onClick, onFilled, onFocus, onFormatError, onInput, onNext, onPrevious, size, ...nativeProps }, ref) {
|
|
3859
3899
|
const inputRef = useRef();
|
|
3860
3900
|
const placeholder = useMemo(() => '-'.repeat(size), [size]);
|
|
@@ -5600,5 +5640,5 @@ function FormikTextInput({ name, ...originalProps }) {
|
|
|
5600
5640
|
|
|
5601
5641
|
const noop = () => { };
|
|
5602
5642
|
|
|
5603
|
-
export { Accent, AutoComplete, Button, Checkbox, DatePicker, DateRangePicker, Dropdown, Field$2 as Field, Fieldset, FormikAutoComplete, FormikCheckbox, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NumberInput, OnlyFontGlobalStyle, Select, Size, THEME, Tag
|
|
5643
|
+
export { Accent, AutoComplete, Button, Checkbox, DatePicker, DateRangePicker, Dropdown, Field$2 as Field, Fieldset, FormikAutoComplete, FormikCheckbox, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NumberInput, OnlyFontGlobalStyle, Select, SingleTag, Size, THEME, Tag, TagGroup, TextInput, Textarea, ThemeProvider, dayjs, getLocalizedDayjs, getUtcizedDayjs, noop, stopMouseEventPropagation, useClickOutsideEffect, useForceUpdate };
|
|
5604
5644
|
//# sourceMappingURL=index.js.map
|