cortex-react-ui 0.2.10 → 0.2.11
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/lib/cjs/Camera/Camera.d.ts +1 -0
- package/lib/cjs/Map/Map.d.ts +16 -0
- package/lib/cjs/Map/components/CenterActiveAreaControl.d.ts +5 -0
- package/lib/cjs/Map/components/DrawTools.d.ts +18 -0
- package/lib/cjs/Map/components/LocationContext.d.ts +7 -0
- package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -0
- package/lib/cjs/Map/components/Maps.d.ts +22 -0
- package/lib/cjs/Map/config/appConfig.d.ts +4 -0
- package/lib/cjs/Map/config/config.d.ts +6 -0
- package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -0
- package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -0
- package/lib/cjs/Map/index.d.ts +1 -0
- package/lib/cjs/Map/models/index.d.ts +2 -0
- package/lib/cjs/Map/models/location.d.ts +6 -0
- package/lib/cjs/Map/models/locationSearch.d.ts +4 -0
- package/lib/cjs/Map/models/point.d.ts +6 -0
- package/lib/cjs/Map/utils/logger.d.ts +17 -0
- package/lib/cjs/Map/utils/toolkit.d.ts +129 -0
- package/lib/cjs/Scanner/ScanConfirmationDialog.d.ts +1 -0
- package/lib/cjs/Scanner/Scanner.d.ts +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/setRef.d.ts +1 -0
- package/lib/esm/Camera/Camera.d.ts +1 -0
- package/lib/esm/Map/Map.d.ts +16 -0
- package/lib/esm/Map/components/CenterActiveAreaControl.d.ts +5 -0
- package/lib/esm/Map/components/DrawTools.d.ts +18 -0
- package/lib/esm/Map/components/LocationContext.d.ts +7 -0
- package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -0
- package/lib/esm/Map/components/Maps.d.ts +22 -0
- package/lib/esm/Map/config/appConfig.d.ts +4 -0
- package/lib/esm/Map/config/config.d.ts +6 -0
- package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -0
- package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -0
- package/lib/esm/Map/index.d.ts +1 -0
- package/lib/esm/Map/models/index.d.ts +2 -0
- package/lib/esm/Map/models/location.d.ts +6 -0
- package/lib/esm/Map/models/locationSearch.d.ts +4 -0
- package/lib/esm/Map/models/point.d.ts +6 -0
- package/lib/esm/Map/utils/logger.d.ts +17 -0
- package/lib/esm/Map/utils/toolkit.d.ts +129 -0
- package/lib/esm/Scanner/ScanConfirmationDialog.d.ts +1 -0
- package/lib/esm/Scanner/Scanner.d.ts +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/setRef.d.ts +1 -0
- package/lib/images/layers-2x.png +0 -0
- package/lib/images/layers.png +0 -0
- package/lib/images/marker-icon-2x.png +0 -0
- package/lib/images/marker-icon.png +0 -0
- package/lib/images/marker-shadow.png +0 -0
- package/lib/index.d.ts +1 -0
- package/lib/styles/Map/index.scss +50 -0
- package/lib/styles/Scanner/index.scss +110 -0
- package/lib/styles/index.scss +2 -0
- package/package.json +20 -4
- package/lib/styles/Scanner/index.css +0 -75
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MapsProps } from './components/Maps';
|
|
3
|
+
import 'leaflet/dist/leaflet.css';
|
|
4
|
+
import 'leaflet-draw/dist/leaflet.draw.css';
|
|
5
|
+
import { Location } from './models';
|
|
6
|
+
declare const Map: React.FC<AppProps>;
|
|
7
|
+
export type AppProps = MapsProps & {
|
|
8
|
+
onClose?: (() => void);
|
|
9
|
+
onSave?: ((locations: Location[]) => void);
|
|
10
|
+
onChange?: ((locations: Location[]) => void);
|
|
11
|
+
customButtons?: {
|
|
12
|
+
cancelButton?: HTMLElement;
|
|
13
|
+
saveButton?: HTMLElement;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Map;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ControlPosition } from 'leaflet';
|
|
2
|
+
export declare const DrawTools: (props: DrawToolsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type DrawToolsProps = {
|
|
4
|
+
position?: ControlPosition | undefined;
|
|
5
|
+
handleOnCreated?: (v: void) => void;
|
|
6
|
+
handleOnDeleted?: (v: void) => void;
|
|
7
|
+
handleOnEdited?: (v: void) => void;
|
|
8
|
+
draw?: drawType;
|
|
9
|
+
editable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type drawType = {
|
|
12
|
+
polyline?: boolean;
|
|
13
|
+
polygon?: boolean;
|
|
14
|
+
rectangle?: boolean;
|
|
15
|
+
circle?: boolean;
|
|
16
|
+
marker?: boolean;
|
|
17
|
+
circlemarker?: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Location } from '../models';
|
|
3
|
+
export type LocationContent = {
|
|
4
|
+
locations: Location[];
|
|
5
|
+
setLocations: React.Dispatch<React.SetStateAction<Location[]>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const LocationContext: import("react").Context<LocationContent>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import 'leaflet.fullscreen/Control.FullScreen.css';
|
|
2
|
+
import { ControlPosition } from 'leaflet';
|
|
3
|
+
export declare const MapFullscreenControl: (props: MapFullscreenControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
/** Props interface for MapFullscreenControl component */
|
|
5
|
+
export type MapFullscreenControlProps = {
|
|
6
|
+
/** Change the content of the button, can be HTML, default null */
|
|
7
|
+
content?: string | undefined;
|
|
8
|
+
/** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
|
|
9
|
+
position?: ControlPosition | undefined;
|
|
10
|
+
/** Change the title of the button, default Full Screen */
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
/** Change the title of the button when fullscreen is on, default Exit Full Screen */
|
|
13
|
+
titleCancel?: string | undefined;
|
|
14
|
+
/** Force separate button to detach from zoom buttons, default false */
|
|
15
|
+
forceSeparateButton?: boolean | undefined;
|
|
16
|
+
/** Force use of pseudo full screen even if full screen API is available, default false */
|
|
17
|
+
forcePseudoFullscreen?: boolean | undefined;
|
|
18
|
+
/** Use pseudo fullscreen */
|
|
19
|
+
pseudoFullscreen?: boolean | undefined;
|
|
20
|
+
/** Dom element to render in full screen, false by default, fallback to map._container */
|
|
21
|
+
fullscreenElement?: false | HTMLElement | undefined;
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MapContainerProps } from 'react-leaflet';
|
|
2
|
+
import { LatLngTuple } from 'leaflet';
|
|
3
|
+
import { Location } from '../models';
|
|
4
|
+
import { CenterActiveAreaControlProps } from './CenterActiveAreaControl';
|
|
5
|
+
import { MapFullscreenControlProps } from './MapFullscreenControl';
|
|
6
|
+
import { DrawToolsProps } from './DrawTools';
|
|
7
|
+
declare const Maps: (props: MapsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type MapsProps = {
|
|
9
|
+
MapContainerProps?: MapContainerProps;
|
|
10
|
+
center?: LatLngTuple;
|
|
11
|
+
fullscreen?: MapFullscreenControlProps | boolean;
|
|
12
|
+
centerActiveArea?: CenterActiveAreaControlProps | boolean;
|
|
13
|
+
drawTools?: DrawToolsProps | boolean;
|
|
14
|
+
minZoom?: number;
|
|
15
|
+
maxZoom?: number;
|
|
16
|
+
zoom?: number;
|
|
17
|
+
data?: Location[];
|
|
18
|
+
toggleSatelliteView?: boolean;
|
|
19
|
+
singlePosition?: boolean;
|
|
20
|
+
onChange?: (locations: Location[]) => void;
|
|
21
|
+
};
|
|
22
|
+
export default Maps;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const getGeoJSONTest: () => {
|
|
2
|
+
type: string;
|
|
3
|
+
features: {
|
|
4
|
+
type: string;
|
|
5
|
+
properties: {
|
|
6
|
+
"marker-color": string;
|
|
7
|
+
"marker-size": string;
|
|
8
|
+
"marker-symbol": string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
geometry: {
|
|
12
|
+
type: string;
|
|
13
|
+
coordinates: number[];
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useLocationContext: () => import("../components/LocationContext").LocationContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Map';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface LogOptions {
|
|
2
|
+
tags?: string[];
|
|
3
|
+
context?: any;
|
|
4
|
+
method?: Function | string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum LogLevel {
|
|
7
|
+
Info = 0,
|
|
8
|
+
Warning = 1,
|
|
9
|
+
Error = 2
|
|
10
|
+
}
|
|
11
|
+
declare class Logger {
|
|
12
|
+
info(msg: any | any[], options?: LogOptions): void;
|
|
13
|
+
warn(msg: any | any[], options?: LogOptions): void;
|
|
14
|
+
error(msg: any | any[], options?: LogOptions): void;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: Logger;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
interface MapOptions {
|
|
2
|
+
transformIsoToDate?: boolean;
|
|
3
|
+
strictMapping?: boolean;
|
|
4
|
+
ignoreStrictMappingWhenNull?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface DiffOptions {
|
|
7
|
+
objectKey?: string;
|
|
8
|
+
predicate?: (item: any, array: any[]) => boolean;
|
|
9
|
+
format?: (item: any) => any;
|
|
10
|
+
alternativeFormat?: (item: any) => any;
|
|
11
|
+
}
|
|
12
|
+
export default class ToolKit {
|
|
13
|
+
/**
|
|
14
|
+
* Type checks
|
|
15
|
+
*/
|
|
16
|
+
static isEmailFormat(email: string): boolean;
|
|
17
|
+
static isDefined<T>(arg: T): arg is NonNullable<T>;
|
|
18
|
+
static isObject(arg: any): arg is Object;
|
|
19
|
+
static isString(arg: any): arg is string;
|
|
20
|
+
static isFunction(arg: any): arg is Function;
|
|
21
|
+
static isArray(arg: any): arg is any[];
|
|
22
|
+
static isBoolean(arg: any): arg is boolean;
|
|
23
|
+
static isNumber(arg: any): arg is number;
|
|
24
|
+
static isValidNumber(arg: any): arg is number;
|
|
25
|
+
static isNaN(arg: any): boolean;
|
|
26
|
+
static isFloat(value: number): boolean;
|
|
27
|
+
static isDate(arg: any): arg is Date;
|
|
28
|
+
static isValidDate(arg: any): arg is Date;
|
|
29
|
+
static hasValue(arg: any): boolean;
|
|
30
|
+
static isUndefined(arg: any): arg is undefined;
|
|
31
|
+
static isNull(arg: any): arg is null;
|
|
32
|
+
static isUndefinedOrNull(arg: any): arg is undefined | null;
|
|
33
|
+
static isNativeTypeObject(arg: any): boolean;
|
|
34
|
+
static isEmpty<T extends string | any[]>(arg: T): boolean;
|
|
35
|
+
static noop(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Array
|
|
38
|
+
*/
|
|
39
|
+
static take<T>(array: T[], count: number, from?: number): T[];
|
|
40
|
+
static addRange(src: any[], newElements: any[]): void;
|
|
41
|
+
static removeFromCollection<T>(array: T[], predicate: (item: T, index: number) => boolean): boolean;
|
|
42
|
+
static removeAt<T>(array: T[], index: number): boolean;
|
|
43
|
+
static replaceAt<T>(array: T[], index: number, item: T): void;
|
|
44
|
+
static replaceCollectionItem<T>(array: T[], item: T, predicate: (item: T, index: number) => boolean): void;
|
|
45
|
+
static clearCollection(collection: any[]): void;
|
|
46
|
+
static diffCollection(array: any[], values: any[], options?: DiffOptions): any[];
|
|
47
|
+
static findIndex<T>(array: T[], predicate: (item: T, index: number) => boolean): number;
|
|
48
|
+
static find<T>(array: T[], predicate: (item: T, index: number) => boolean): T | null;
|
|
49
|
+
static orderBy<T>(array: T[], propertyAccessor: string, options?: {
|
|
50
|
+
nullFirst?: boolean;
|
|
51
|
+
ascending?: boolean;
|
|
52
|
+
}): void;
|
|
53
|
+
static countCollection<T>(array: T[], predicate: (item: T, index: number) => boolean): number;
|
|
54
|
+
static isCollectionOf<T = any>(array: T[], instanceOf: any): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* String
|
|
57
|
+
*/
|
|
58
|
+
static fixedLenInteger(value: number, length: number): string;
|
|
59
|
+
static fixedLenString(value: string, length: number): string;
|
|
60
|
+
static toCamelCase(value: string): string;
|
|
61
|
+
static capitalize(value: string): string;
|
|
62
|
+
/**
|
|
63
|
+
* Number
|
|
64
|
+
*/
|
|
65
|
+
static randomNumber(minValue: number, maxValue: number): number;
|
|
66
|
+
/**
|
|
67
|
+
* Date
|
|
68
|
+
*/
|
|
69
|
+
static dateOnly(date: Date): Date;
|
|
70
|
+
static formatDateTime(date: Date, timezone?: string): string;
|
|
71
|
+
static formatDateTimeUTC: (date: Date) => string;
|
|
72
|
+
static formatDateUTC: (date: Date, customFn?: (year: string, month: string, day: string) => string) => string;
|
|
73
|
+
static formatDate: (date: Date, customFn?: (year: string, month: string, day: string) => string) => string;
|
|
74
|
+
static formatHourUTC: (value: Date | number, customFn?: (h: string, m: string, s: string) => string) => string;
|
|
75
|
+
static formatHour: (value: Date | number, customFn?: (h: string, m: string, s: string) => string) => string;
|
|
76
|
+
static parseDateUTC(input: string): Date | null;
|
|
77
|
+
static parseDate(input: string): Date | null;
|
|
78
|
+
static parseHour(input: string): Date | null;
|
|
79
|
+
static mergeDateAndTime(date: Date, time: Date): Date | null;
|
|
80
|
+
static safeParseIsoDate<T>(value: T): Date | T;
|
|
81
|
+
static safeParseDate<T>(value: T): Date | T;
|
|
82
|
+
static safeParseUTCDate<T>(value: T): Date | T;
|
|
83
|
+
/**
|
|
84
|
+
* Classes
|
|
85
|
+
*/
|
|
86
|
+
static getClassName(instance: any): string | null;
|
|
87
|
+
static getClassMethodName(instance: any, method: Function): string | null;
|
|
88
|
+
static className(...args: any[]): string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Utilities
|
|
91
|
+
*/
|
|
92
|
+
static getObjectKeysDeep(object: any, prefix?: string): string[];
|
|
93
|
+
static mapToShallowObject(target: any, src: any, filterPredicate?: (key: string, value: any) => boolean): void;
|
|
94
|
+
static mapToDeepObject(target: any, src: any, options?: MapOptions): void;
|
|
95
|
+
static getPropertySafe(obj: any, propertyAccessor: string): any | undefined;
|
|
96
|
+
static cast<T = any>(arg: any): T;
|
|
97
|
+
static safeJsonReplacer(_key: any, value: any): any;
|
|
98
|
+
static safeJsonReviver(_key: any, value: any): any;
|
|
99
|
+
static quickClone<T>(arg: T): T | null;
|
|
100
|
+
static hasProperty(obj: any, prop: string | number): boolean;
|
|
101
|
+
static pureObjectAssign(...values: any[]): any | null;
|
|
102
|
+
static getTimezones(): Record<string, {
|
|
103
|
+
utc: number;
|
|
104
|
+
dst: number;
|
|
105
|
+
code: string;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
108
|
+
declare global {
|
|
109
|
+
interface Date {
|
|
110
|
+
updateTime(time: Date): void;
|
|
111
|
+
updateDate(date: Date): void;
|
|
112
|
+
isDstObserved(): boolean;
|
|
113
|
+
stdTimezoneOffset(): number;
|
|
114
|
+
toTimezone(timezone: string): Date;
|
|
115
|
+
getTimezones(): Record<string, {
|
|
116
|
+
u: number;
|
|
117
|
+
d: number;
|
|
118
|
+
c: string;
|
|
119
|
+
}>;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export declare const removeFromCollection: <T>(array: T[], predicate: (item: T, index: number) => boolean) => boolean;
|
|
123
|
+
type ObserverCallback<T> = (data: T) => unknown;
|
|
124
|
+
export declare class Observer<T extends any = any, CallbackType extends Function = ObserverCallback<T>> {
|
|
125
|
+
protected subscribers: CallbackType[];
|
|
126
|
+
subscribe(callback: CallbackType): () => void;
|
|
127
|
+
notify(data: T): void;
|
|
128
|
+
}
|
|
129
|
+
export {};
|
package/lib/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{useRef as r,useMemo as n,useState as o,useCallback as i,useEffect as a,Fragment as s}from"react";import c from"react-dom";import l from"prop-types";var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function d(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function f(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function h(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var g={exports:{}},m={},w=t,v=Symbol.for("react.element"),y=Symbol.for("react.fragment"),A=Object.prototype.hasOwnProperty,C=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function b(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)A.call(t,n)&&!E.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:v,type:e,key:i,ref:a,props:o,_owner:C.current}}m.Fragment=y,m.jsx=b,m.jsxs=b;var B={};
|
|
1
|
+
import*as e from"react";import t,{useRef as r,useMemo as n,useState as o,useCallback as i,useEffect as a,Fragment as s}from"react";import c from"react-dom";import l from"prop-types";var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function d(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function f(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function h(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var g={exports:{}},m={},w=t,v=Symbol.for("react.element"),y=Symbol.for("react.fragment"),A=Object.prototype.hasOwnProperty,C=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function b(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)A.call(t,n)&&!E.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:v,type:e,key:i,ref:a,props:o,_owner:C.current}}m.Fragment=y,m.jsx=b,m.jsxs=b;var B={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|