ode-explorer 1.4.13-develop.202407101230 → 1.4.14-develop-b2school.202407181501
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2904 -399
- package/dist/version.txt +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -74,9 +74,9 @@ var require_index = __commonJS({
|
|
|
74
74
|
if (mutation.type !== "childList") {
|
|
75
75
|
continue;
|
|
76
76
|
}
|
|
77
|
-
for (const
|
|
78
|
-
if (
|
|
79
|
-
processPreload(
|
|
77
|
+
for (const node2 of mutation.addedNodes) {
|
|
78
|
+
if (node2.tagName === "LINK" && node2.rel === "modulepreload")
|
|
79
|
+
processPreload(node2);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}).observe(document, { childList: true, subtree: true });
|
|
@@ -421,10 +421,10 @@ var require_index = __commonJS({
|
|
|
421
421
|
react.exports = react_production_min;
|
|
422
422
|
}
|
|
423
423
|
var reactExports = react.exports;
|
|
424
|
-
const React = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
|
|
425
|
-
const React$
|
|
424
|
+
const React$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
|
|
425
|
+
const React$3 = /* @__PURE__ */ _mergeNamespaces({
|
|
426
426
|
__proto__: null,
|
|
427
|
-
default: React
|
|
427
|
+
default: React$2
|
|
428
428
|
}, [reactExports]);
|
|
429
429
|
/**
|
|
430
430
|
* @license React
|
|
@@ -1350,7 +1350,7 @@ var require_index = __commonJS({
|
|
|
1350
1350
|
return false;
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
function capitalize(string) {
|
|
1353
|
+
function capitalize$2(string) {
|
|
1354
1354
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1355
1355
|
}
|
|
1356
1356
|
class LanguageUtil {
|
|
@@ -1388,7 +1388,7 @@ var require_index = __commonJS({
|
|
|
1388
1388
|
p2[0] = p2[0].toLowerCase();
|
|
1389
1389
|
p2[1] = p2[1].toUpperCase();
|
|
1390
1390
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1391
|
-
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1391
|
+
p2[1] = capitalize$2(p2[1].toLowerCase());
|
|
1392
1392
|
} else if (p2.length === 3) {
|
|
1393
1393
|
p2[0] = p2[0].toLowerCase();
|
|
1394
1394
|
if (p2[1].length === 2)
|
|
@@ -1396,9 +1396,9 @@ var require_index = __commonJS({
|
|
|
1396
1396
|
if (p2[0] !== "sgn" && p2[2].length === 2)
|
|
1397
1397
|
p2[2] = p2[2].toUpperCase();
|
|
1398
1398
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1399
|
-
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1399
|
+
p2[1] = capitalize$2(p2[1].toLowerCase());
|
|
1400
1400
|
if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
|
|
1401
|
-
p2[2] = capitalize(p2[2].toLowerCase());
|
|
1401
|
+
p2[2] = capitalize$2(p2[2].toLowerCase());
|
|
1402
1402
|
}
|
|
1403
1403
|
return p2.join("-");
|
|
1404
1404
|
}
|
|
@@ -4444,7 +4444,35 @@ var require_index = __commonJS({
|
|
|
4444
4444
|
)
|
|
4445
4445
|
]
|
|
4446
4446
|
}
|
|
4447
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
4447
|
+
), SvgBookmark$1 = SvgBookmark, SvgBurgerMenu = ({
|
|
4448
|
+
title,
|
|
4449
|
+
titleId,
|
|
4450
|
+
...props
|
|
4451
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4452
|
+
"svg",
|
|
4453
|
+
{
|
|
4454
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4455
|
+
width: "24",
|
|
4456
|
+
height: "24",
|
|
4457
|
+
fill: "none",
|
|
4458
|
+
viewBox: "0 0 24 24",
|
|
4459
|
+
"aria-hidden": "true",
|
|
4460
|
+
"aria-labelledby": titleId,
|
|
4461
|
+
...props,
|
|
4462
|
+
children: [
|
|
4463
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
4464
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4465
|
+
"path",
|
|
4466
|
+
{
|
|
4467
|
+
fill: "currentColor",
|
|
4468
|
+
fillRule: "evenodd",
|
|
4469
|
+
d: "M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",
|
|
4470
|
+
clipRule: "evenodd"
|
|
4471
|
+
}
|
|
4472
|
+
)
|
|
4473
|
+
]
|
|
4474
|
+
}
|
|
4475
|
+
), SvgBurgerMenu$1 = SvgBurgerMenu, SvgClose = ({
|
|
4448
4476
|
title,
|
|
4449
4477
|
titleId,
|
|
4450
4478
|
...props
|
|
@@ -8480,10 +8508,10 @@ var require_index = __commonJS({
|
|
|
8480
8508
|
return str.toLowerCase();
|
|
8481
8509
|
}, majorize = function(version) {
|
|
8482
8510
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
8483
|
-
},
|
|
8511
|
+
}, trim2 = function(str, len2) {
|
|
8484
8512
|
if (typeof str === STR_TYPE) {
|
|
8485
8513
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
8486
|
-
return typeof
|
|
8514
|
+
return typeof len2 === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
8487
8515
|
}
|
|
8488
8516
|
};
|
|
8489
8517
|
var rgxMapper = function(ua2, arrays) {
|
|
@@ -9316,7 +9344,7 @@ var require_index = __commonJS({
|
|
|
9316
9344
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
9317
9345
|
// HbbTV devices
|
|
9318
9346
|
],
|
|
9319
|
-
[[VENDOR,
|
|
9347
|
+
[[VENDOR, trim2], [MODEL, trim2], [TYPE, SMARTTV]],
|
|
9320
9348
|
[
|
|
9321
9349
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
9322
9350
|
// SmartTV from Unidentified Vendors
|
|
@@ -9660,7 +9688,7 @@ var require_index = __commonJS({
|
|
|
9660
9688
|
return _ua;
|
|
9661
9689
|
};
|
|
9662
9690
|
this.setUA = function(ua3) {
|
|
9663
|
-
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ?
|
|
9691
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim2(ua3, UA_MAX_LENGTH) : ua3;
|
|
9664
9692
|
return this;
|
|
9665
9693
|
};
|
|
9666
9694
|
this.setUA(_ua);
|
|
@@ -9711,7 +9739,7 @@ var require_index = __commonJS({
|
|
|
9711
9739
|
return t2;
|
|
9712
9740
|
}
|
|
9713
9741
|
return e2;
|
|
9714
|
-
}, i$
|
|
9742
|
+
}, i$2 = (e2, t2, r2, i2, p2) => {
|
|
9715
9743
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
9716
9744
|
let t3 = 0, r3 = 11;
|
|
9717
9745
|
for (; t3 < e3.length; )
|
|
@@ -9741,7 +9769,7 @@ var require_index = __commonJS({
|
|
|
9741
9769
|
}, "");
|
|
9742
9770
|
function u$4(e2) {
|
|
9743
9771
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
9744
|
-
return i$
|
|
9772
|
+
return i$2(l2.unshift ? l2.raw ? p$4(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t$3(r2.target), r2.g, r2.o, r2.k);
|
|
9745
9773
|
}
|
|
9746
9774
|
let d$1, f$1, g$1;
|
|
9747
9775
|
u$4.bind({ g: 1 });
|
|
@@ -17371,8 +17399,8 @@ to {
|
|
|
17371
17399
|
required: "required",
|
|
17372
17400
|
validate: "validate"
|
|
17373
17401
|
};
|
|
17374
|
-
const HookFormContext = React.createContext(null);
|
|
17375
|
-
const useFormContext = () => React.useContext(HookFormContext);
|
|
17402
|
+
const HookFormContext = React$2.createContext(null);
|
|
17403
|
+
const useFormContext = () => React$2.useContext(HookFormContext);
|
|
17376
17404
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
17377
17405
|
const result = {
|
|
17378
17406
|
defaultValues: control._defaultValues
|
|
@@ -17400,9 +17428,9 @@ to {
|
|
|
17400
17428
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
17401
17429
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
17402
17430
|
function useSubscribe(props) {
|
|
17403
|
-
const _props = React.useRef(props);
|
|
17431
|
+
const _props = React$2.useRef(props);
|
|
17404
17432
|
_props.current = props;
|
|
17405
|
-
React.useEffect(() => {
|
|
17433
|
+
React$2.useEffect(() => {
|
|
17406
17434
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
17407
17435
|
next: _props.current.next
|
|
17408
17436
|
});
|
|
@@ -17414,9 +17442,9 @@ to {
|
|
|
17414
17442
|
function useFormState(props) {
|
|
17415
17443
|
const methods = useFormContext();
|
|
17416
17444
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
17417
|
-
const [formState, updateFormState] = React.useState(control._formState);
|
|
17418
|
-
const _mounted = React.useRef(true);
|
|
17419
|
-
const _localProxyFormState = React.useRef({
|
|
17445
|
+
const [formState, updateFormState] = React$2.useState(control._formState);
|
|
17446
|
+
const _mounted = React$2.useRef(true);
|
|
17447
|
+
const _localProxyFormState = React$2.useRef({
|
|
17420
17448
|
isDirty: false,
|
|
17421
17449
|
isLoading: false,
|
|
17422
17450
|
dirtyFields: false,
|
|
@@ -17425,7 +17453,7 @@ to {
|
|
|
17425
17453
|
isValid: false,
|
|
17426
17454
|
errors: false
|
|
17427
17455
|
});
|
|
17428
|
-
const _name = React.useRef(name);
|
|
17456
|
+
const _name = React$2.useRef(name);
|
|
17429
17457
|
_name.current = name;
|
|
17430
17458
|
useSubscribe({
|
|
17431
17459
|
disabled,
|
|
@@ -17435,7 +17463,7 @@ to {
|
|
|
17435
17463
|
}),
|
|
17436
17464
|
subject: control._subjects.state
|
|
17437
17465
|
});
|
|
17438
|
-
React.useEffect(() => {
|
|
17466
|
+
React$2.useEffect(() => {
|
|
17439
17467
|
_mounted.current = true;
|
|
17440
17468
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
17441
17469
|
return () => {
|
|
@@ -17459,7 +17487,7 @@ to {
|
|
|
17459
17487
|
function useWatch(props) {
|
|
17460
17488
|
const methods = useFormContext();
|
|
17461
17489
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
17462
|
-
const _name = React.useRef(name);
|
|
17490
|
+
const _name = React$2.useRef(name);
|
|
17463
17491
|
_name.current = name;
|
|
17464
17492
|
useSubscribe({
|
|
17465
17493
|
disabled,
|
|
@@ -17470,8 +17498,8 @@ to {
|
|
|
17470
17498
|
}
|
|
17471
17499
|
}
|
|
17472
17500
|
});
|
|
17473
|
-
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
17474
|
-
React.useEffect(() => control._removeUnmounted());
|
|
17501
|
+
const [value, updateValue] = React$2.useState(control._getWatch(name, defaultValue2));
|
|
17502
|
+
React$2.useEffect(() => control._removeUnmounted());
|
|
17475
17503
|
return value;
|
|
17476
17504
|
}
|
|
17477
17505
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17507,12 +17535,12 @@ to {
|
|
|
17507
17535
|
control,
|
|
17508
17536
|
name
|
|
17509
17537
|
});
|
|
17510
|
-
const _registerProps = React.useRef(control.register(name, {
|
|
17538
|
+
const _registerProps = React$2.useRef(control.register(name, {
|
|
17511
17539
|
...props.rules,
|
|
17512
17540
|
value,
|
|
17513
17541
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17514
17542
|
}));
|
|
17515
|
-
React.useEffect(() => {
|
|
17543
|
+
React$2.useEffect(() => {
|
|
17516
17544
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17517
17545
|
const updateMounted = (name2, value2) => {
|
|
17518
17546
|
const field = get(control._fields, name2);
|
|
@@ -17532,7 +17560,7 @@ to {
|
|
|
17532
17560
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17533
17561
|
};
|
|
17534
17562
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17535
|
-
React.useEffect(() => {
|
|
17563
|
+
React$2.useEffect(() => {
|
|
17536
17564
|
if (get(control._fields, name)) {
|
|
17537
17565
|
control._updateDisabledField({
|
|
17538
17566
|
disabled,
|
|
@@ -17547,14 +17575,14 @@ to {
|
|
|
17547
17575
|
name,
|
|
17548
17576
|
value,
|
|
17549
17577
|
...isBoolean$1(disabled) || isBoolean$1(formState.disabled) ? { disabled: formState.disabled || disabled } : {},
|
|
17550
|
-
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17578
|
+
onChange: React$2.useCallback((event) => _registerProps.current.onChange({
|
|
17551
17579
|
target: {
|
|
17552
17580
|
value: getEventValue(event),
|
|
17553
17581
|
name
|
|
17554
17582
|
},
|
|
17555
17583
|
type: EVENTS.CHANGE
|
|
17556
17584
|
}), [name]),
|
|
17557
|
-
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17585
|
+
onBlur: React$2.useCallback(() => _registerProps.current.onBlur({
|
|
17558
17586
|
target: {
|
|
17559
17587
|
value: get(control._formValues, name),
|
|
17560
17588
|
name
|
|
@@ -18797,9 +18825,9 @@ to {
|
|
|
18797
18825
|
};
|
|
18798
18826
|
}
|
|
18799
18827
|
function useForm(props = {}) {
|
|
18800
|
-
const _formControl = React.useRef();
|
|
18801
|
-
const _values = React.useRef();
|
|
18802
|
-
const [formState, updateFormState] = React.useState({
|
|
18828
|
+
const _formControl = React$2.useRef();
|
|
18829
|
+
const _values = React$2.useRef();
|
|
18830
|
+
const [formState, updateFormState] = React$2.useState({
|
|
18803
18831
|
isDirty: false,
|
|
18804
18832
|
isValidating: false,
|
|
18805
18833
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18830,8 +18858,8 @@ to {
|
|
|
18830
18858
|
}
|
|
18831
18859
|
}
|
|
18832
18860
|
});
|
|
18833
|
-
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18834
|
-
React.useEffect(() => {
|
|
18861
|
+
React$2.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18862
|
+
React$2.useEffect(() => {
|
|
18835
18863
|
if (control._proxyFormState.isDirty) {
|
|
18836
18864
|
const isDirty = control._getDirty();
|
|
18837
18865
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18841,7 +18869,7 @@ to {
|
|
|
18841
18869
|
}
|
|
18842
18870
|
}
|
|
18843
18871
|
}, [control, formState.isDirty]);
|
|
18844
|
-
React.useEffect(() => {
|
|
18872
|
+
React$2.useEffect(() => {
|
|
18845
18873
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18846
18874
|
control._reset(props.values, control._options.resetOptions);
|
|
18847
18875
|
_values.current = props.values;
|
|
@@ -18850,12 +18878,12 @@ to {
|
|
|
18850
18878
|
control._resetDefaultValues();
|
|
18851
18879
|
}
|
|
18852
18880
|
}, [props.values, control]);
|
|
18853
|
-
React.useEffect(() => {
|
|
18881
|
+
React$2.useEffect(() => {
|
|
18854
18882
|
if (props.errors) {
|
|
18855
18883
|
control._setErrors(props.errors);
|
|
18856
18884
|
}
|
|
18857
18885
|
}, [props.errors, control]);
|
|
18858
|
-
React.useEffect(() => {
|
|
18886
|
+
React$2.useEffect(() => {
|
|
18859
18887
|
if (!control._state.mount) {
|
|
18860
18888
|
control._updateValid();
|
|
18861
18889
|
control._state.mount = true;
|
|
@@ -18869,9 +18897,9 @@ to {
|
|
|
18869
18897
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18870
18898
|
return _formControl.current;
|
|
18871
18899
|
}
|
|
18872
|
-
function getWindow$3(
|
|
18900
|
+
function getWindow$3(node2) {
|
|
18873
18901
|
var _node$ownerDocument;
|
|
18874
|
-
return (
|
|
18902
|
+
return (node2 == null ? void 0 : (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18875
18903
|
}
|
|
18876
18904
|
function isElement$3(value) {
|
|
18877
18905
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18908,8 +18936,8 @@ to {
|
|
|
18908
18936
|
}
|
|
18909
18937
|
return values.includes(pointerType);
|
|
18910
18938
|
}
|
|
18911
|
-
function getDocument$1(
|
|
18912
|
-
return (
|
|
18939
|
+
function getDocument$1(node2) {
|
|
18940
|
+
return (node2 == null ? void 0 : node2.ownerDocument) || document;
|
|
18913
18941
|
}
|
|
18914
18942
|
function getTarget(event) {
|
|
18915
18943
|
if ("composedPath" in event) {
|
|
@@ -19485,19 +19513,19 @@ to {
|
|
|
19485
19513
|
}
|
|
19486
19514
|
};
|
|
19487
19515
|
};
|
|
19488
|
-
function getNodeName$1(
|
|
19489
|
-
if (isNode$1(
|
|
19490
|
-
return (
|
|
19516
|
+
function getNodeName$1(node2) {
|
|
19517
|
+
if (isNode$1(node2)) {
|
|
19518
|
+
return (node2.nodeName || "").toLowerCase();
|
|
19491
19519
|
}
|
|
19492
19520
|
return "#document";
|
|
19493
19521
|
}
|
|
19494
|
-
function getWindow$2(
|
|
19522
|
+
function getWindow$2(node2) {
|
|
19495
19523
|
var _node$ownerDocument;
|
|
19496
|
-
return (
|
|
19524
|
+
return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
19497
19525
|
}
|
|
19498
|
-
function getDocumentElement$1(
|
|
19526
|
+
function getDocumentElement$1(node2) {
|
|
19499
19527
|
var _ref;
|
|
19500
|
-
return (_ref = (isNode$1(
|
|
19528
|
+
return (_ref = (isNode$1(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
19501
19529
|
}
|
|
19502
19530
|
function isNode$1(value) {
|
|
19503
19531
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -19558,8 +19586,8 @@ to {
|
|
|
19558
19586
|
return false;
|
|
19559
19587
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
19560
19588
|
}
|
|
19561
|
-
function isLastTraversableNode(
|
|
19562
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
19589
|
+
function isLastTraversableNode(node2) {
|
|
19590
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node2));
|
|
19563
19591
|
}
|
|
19564
19592
|
function getComputedStyle$3(element) {
|
|
19565
19593
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19576,30 +19604,30 @@ to {
|
|
|
19576
19604
|
scrollTop: element.scrollY
|
|
19577
19605
|
};
|
|
19578
19606
|
}
|
|
19579
|
-
function getParentNode$1(
|
|
19580
|
-
if (getNodeName$1(
|
|
19581
|
-
return
|
|
19607
|
+
function getParentNode$1(node2) {
|
|
19608
|
+
if (getNodeName$1(node2) === "html") {
|
|
19609
|
+
return node2;
|
|
19582
19610
|
}
|
|
19583
19611
|
const result = (
|
|
19584
19612
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
isShadowRoot$1(
|
|
19588
|
-
getDocumentElement$1(
|
|
19613
|
+
node2.assignedSlot || // DOM Element detected.
|
|
19614
|
+
node2.parentNode || // ShadowRoot detected.
|
|
19615
|
+
isShadowRoot$1(node2) && node2.host || // Fallback.
|
|
19616
|
+
getDocumentElement$1(node2)
|
|
19589
19617
|
);
|
|
19590
19618
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19591
19619
|
}
|
|
19592
|
-
function getNearestOverflowAncestor(
|
|
19593
|
-
const parentNode = getParentNode$1(
|
|
19620
|
+
function getNearestOverflowAncestor(node2) {
|
|
19621
|
+
const parentNode = getParentNode$1(node2);
|
|
19594
19622
|
if (isLastTraversableNode(parentNode)) {
|
|
19595
|
-
return
|
|
19623
|
+
return node2.ownerDocument ? node2.ownerDocument.body : node2.body;
|
|
19596
19624
|
}
|
|
19597
19625
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19598
19626
|
return parentNode;
|
|
19599
19627
|
}
|
|
19600
19628
|
return getNearestOverflowAncestor(parentNode);
|
|
19601
19629
|
}
|
|
19602
|
-
function getOverflowAncestors(
|
|
19630
|
+
function getOverflowAncestors(node2, list, traverseIframes) {
|
|
19603
19631
|
var _node$ownerDocument2;
|
|
19604
19632
|
if (list === void 0) {
|
|
19605
19633
|
list = [];
|
|
@@ -19607,8 +19635,8 @@ to {
|
|
|
19607
19635
|
if (traverseIframes === void 0) {
|
|
19608
19636
|
traverseIframes = true;
|
|
19609
19637
|
}
|
|
19610
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19611
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19638
|
+
const scrollableAncestor = getNearestOverflowAncestor(node2);
|
|
19639
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19612
19640
|
const win = getWindow$2(scrollableAncestor);
|
|
19613
19641
|
if (isBody) {
|
|
19614
19642
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -20270,16 +20298,16 @@ to {
|
|
|
20270
20298
|
}
|
|
20271
20299
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
20272
20300
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
20273
|
-
const setReference = reactExports.useCallback((
|
|
20274
|
-
if (
|
|
20275
|
-
referenceRef.current =
|
|
20276
|
-
_setReference(
|
|
20301
|
+
const setReference = reactExports.useCallback((node2) => {
|
|
20302
|
+
if (node2 !== referenceRef.current) {
|
|
20303
|
+
referenceRef.current = node2;
|
|
20304
|
+
_setReference(node2);
|
|
20277
20305
|
}
|
|
20278
20306
|
}, []);
|
|
20279
|
-
const setFloating = reactExports.useCallback((
|
|
20280
|
-
if (
|
|
20281
|
-
floatingRef.current =
|
|
20282
|
-
_setFloating(
|
|
20307
|
+
const setFloating = reactExports.useCallback((node2) => {
|
|
20308
|
+
if (node2 !== floatingRef.current) {
|
|
20309
|
+
floatingRef.current = node2;
|
|
20310
|
+
_setFloating(node2);
|
|
20283
20311
|
}
|
|
20284
20312
|
}, []);
|
|
20285
20313
|
const referenceEl = externalReference || _reference;
|
|
@@ -20417,7 +20445,7 @@ to {
|
|
|
20417
20445
|
}, []);
|
|
20418
20446
|
return id2;
|
|
20419
20447
|
}
|
|
20420
|
-
const useReactId = React$
|
|
20448
|
+
const useReactId = React$3[/* @__PURE__ */ "useId".toString()];
|
|
20421
20449
|
const useId = useReactId || useFloatingId;
|
|
20422
20450
|
function createPubSub() {
|
|
20423
20451
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -20583,7 +20611,7 @@ to {
|
|
|
20583
20611
|
return;
|
|
20584
20612
|
}
|
|
20585
20613
|
unbindMouseMoveRef.current();
|
|
20586
|
-
const
|
|
20614
|
+
const doc2 = getDocument$1(floating);
|
|
20587
20615
|
clearTimeout(restTimeoutRef.current);
|
|
20588
20616
|
if (handleCloseRef.current) {
|
|
20589
20617
|
if (!open) {
|
|
@@ -20601,9 +20629,9 @@ to {
|
|
|
20601
20629
|
}
|
|
20602
20630
|
});
|
|
20603
20631
|
const handler = handlerRef.current;
|
|
20604
|
-
|
|
20632
|
+
doc2.addEventListener("mousemove", handler);
|
|
20605
20633
|
unbindMouseMoveRef.current = () => {
|
|
20606
|
-
|
|
20634
|
+
doc2.removeEventListener("mousemove", handler);
|
|
20607
20635
|
};
|
|
20608
20636
|
return;
|
|
20609
20637
|
}
|
|
@@ -20659,7 +20687,7 @@ to {
|
|
|
20659
20687
|
if (isElement$3(domReference) && floating) {
|
|
20660
20688
|
var _tree$nodesRef$curren, _tree$nodesRef$curren2;
|
|
20661
20689
|
const ref2 = domReference;
|
|
20662
|
-
const parentFloating = tree == null ? void 0 : (_tree$nodesRef$curren = tree.nodesRef.current.find((
|
|
20690
|
+
const parentFloating = tree == null ? void 0 : (_tree$nodesRef$curren = tree.nodesRef.current.find((node2) => node2.id === parentId)) == null ? void 0 : (_tree$nodesRef$curren2 = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren2.elements.floating;
|
|
20663
20691
|
if (parentFloating) {
|
|
20664
20692
|
parentFloating.style.pointerEvents = "";
|
|
20665
20693
|
}
|
|
@@ -20728,24 +20756,24 @@ to {
|
|
|
20728
20756
|
}, [events2, enabled, restMs, open, onOpenChange, closeWithDelay]);
|
|
20729
20757
|
}
|
|
20730
20758
|
function getChildren$1(nodes, id2) {
|
|
20731
|
-
let allChildren = nodes.filter((
|
|
20759
|
+
let allChildren = nodes.filter((node2) => {
|
|
20732
20760
|
var _node$context;
|
|
20733
|
-
return
|
|
20761
|
+
return node2.parentId === id2 && ((_node$context = node2.context) == null ? void 0 : _node$context.open);
|
|
20734
20762
|
});
|
|
20735
20763
|
let currentChildren = allChildren;
|
|
20736
20764
|
while (currentChildren.length) {
|
|
20737
|
-
currentChildren = nodes.filter((
|
|
20765
|
+
currentChildren = nodes.filter((node2) => {
|
|
20738
20766
|
var _currentChildren;
|
|
20739
20767
|
return (_currentChildren = currentChildren) == null ? void 0 : _currentChildren.some((n2) => {
|
|
20740
20768
|
var _node$context2;
|
|
20741
|
-
return
|
|
20769
|
+
return node2.parentId === n2.id && ((_node$context2 = node2.context) == null ? void 0 : _node$context2.open);
|
|
20742
20770
|
});
|
|
20743
20771
|
});
|
|
20744
20772
|
allChildren = allChildren.concat(currentChildren);
|
|
20745
20773
|
}
|
|
20746
20774
|
return allChildren;
|
|
20747
20775
|
}
|
|
20748
|
-
const useInsertionEffect = React$
|
|
20776
|
+
const useInsertionEffect = React$3[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
20749
20777
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
20750
20778
|
function useEffectEvent(callback) {
|
|
20751
20779
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -20784,23 +20812,23 @@ to {
|
|
|
20784
20812
|
const dataRef = reactExports.useRef({});
|
|
20785
20813
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
20786
20814
|
const floatingId = useId();
|
|
20787
|
-
const setPositionReference = reactExports.useCallback((
|
|
20788
|
-
const positionReference = isElement$3(
|
|
20789
|
-
getBoundingClientRect: () =>
|
|
20790
|
-
contextElement:
|
|
20791
|
-
} :
|
|
20815
|
+
const setPositionReference = reactExports.useCallback((node2) => {
|
|
20816
|
+
const positionReference = isElement$3(node2) ? {
|
|
20817
|
+
getBoundingClientRect: () => node2.getBoundingClientRect(),
|
|
20818
|
+
contextElement: node2
|
|
20819
|
+
} : node2;
|
|
20792
20820
|
position.refs.setReference(positionReference);
|
|
20793
20821
|
}, [position.refs]);
|
|
20794
|
-
const setReference = reactExports.useCallback((
|
|
20795
|
-
if (isElement$3(
|
|
20796
|
-
domReferenceRef.current =
|
|
20797
|
-
setDomReference(
|
|
20822
|
+
const setReference = reactExports.useCallback((node2) => {
|
|
20823
|
+
if (isElement$3(node2) || node2 === null) {
|
|
20824
|
+
domReferenceRef.current = node2;
|
|
20825
|
+
setDomReference(node2);
|
|
20798
20826
|
}
|
|
20799
20827
|
if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
20800
20828
|
// `null` to support `positionReference` + an unstable `reference`
|
|
20801
20829
|
// callback ref.
|
|
20802
|
-
|
|
20803
|
-
position.refs.setReference(
|
|
20830
|
+
node2 !== null && !isElement$3(node2)) {
|
|
20831
|
+
position.refs.setReference(node2);
|
|
20804
20832
|
}
|
|
20805
20833
|
}, [position.refs]);
|
|
20806
20834
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -20825,9 +20853,9 @@ to {
|
|
|
20825
20853
|
onOpenChange
|
|
20826
20854
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
20827
20855
|
index(() => {
|
|
20828
|
-
const
|
|
20829
|
-
if (
|
|
20830
|
-
|
|
20856
|
+
const node2 = tree == null ? void 0 : tree.nodesRef.current.find((node22) => node22.id === nodeId);
|
|
20857
|
+
if (node2) {
|
|
20858
|
+
node2.context = context2;
|
|
20831
20859
|
}
|
|
20832
20860
|
});
|
|
20833
20861
|
return reactExports.useMemo(() => ({
|
|
@@ -21060,30 +21088,30 @@ to {
|
|
|
21060
21088
|
function getNodeName(element) {
|
|
21061
21089
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
21062
21090
|
}
|
|
21063
|
-
function getWindow$1(
|
|
21064
|
-
if (
|
|
21091
|
+
function getWindow$1(node2) {
|
|
21092
|
+
if (node2 == null) {
|
|
21065
21093
|
return window;
|
|
21066
21094
|
}
|
|
21067
|
-
if (
|
|
21068
|
-
var ownerDocument =
|
|
21095
|
+
if (node2.toString() !== "[object Window]") {
|
|
21096
|
+
var ownerDocument = node2.ownerDocument;
|
|
21069
21097
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
21070
21098
|
}
|
|
21071
|
-
return
|
|
21099
|
+
return node2;
|
|
21072
21100
|
}
|
|
21073
|
-
function isElement$1(
|
|
21074
|
-
var OwnElement = getWindow$1(
|
|
21075
|
-
return
|
|
21101
|
+
function isElement$1(node2) {
|
|
21102
|
+
var OwnElement = getWindow$1(node2).Element;
|
|
21103
|
+
return node2 instanceof OwnElement || node2 instanceof Element;
|
|
21076
21104
|
}
|
|
21077
|
-
function isHTMLElement(
|
|
21078
|
-
var OwnElement = getWindow$1(
|
|
21079
|
-
return
|
|
21105
|
+
function isHTMLElement(node2) {
|
|
21106
|
+
var OwnElement = getWindow$1(node2).HTMLElement;
|
|
21107
|
+
return node2 instanceof OwnElement || node2 instanceof HTMLElement;
|
|
21080
21108
|
}
|
|
21081
|
-
function isShadowRoot(
|
|
21109
|
+
function isShadowRoot(node2) {
|
|
21082
21110
|
if (typeof ShadowRoot === "undefined") {
|
|
21083
21111
|
return false;
|
|
21084
21112
|
}
|
|
21085
|
-
var OwnElement = getWindow$1(
|
|
21086
|
-
return
|
|
21113
|
+
var OwnElement = getWindow$1(node2).ShadowRoot;
|
|
21114
|
+
return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
|
|
21087
21115
|
}
|
|
21088
21116
|
function applyStyles(_ref) {
|
|
21089
21117
|
var state = _ref.state;
|
|
@@ -21341,7 +21369,7 @@ to {
|
|
|
21341
21369
|
var basePlacement = getBasePlacement(state.placement);
|
|
21342
21370
|
var axis = getMainAxisFromPlacement(basePlacement);
|
|
21343
21371
|
var isVertical = [left, right].indexOf(basePlacement) >= 0;
|
|
21344
|
-
var
|
|
21372
|
+
var len2 = isVertical ? "height" : "width";
|
|
21345
21373
|
if (!arrowElement || !popperOffsets2) {
|
|
21346
21374
|
return;
|
|
21347
21375
|
}
|
|
@@ -21349,14 +21377,14 @@ to {
|
|
|
21349
21377
|
var arrowRect = getLayoutRect(arrowElement);
|
|
21350
21378
|
var minProp = axis === "y" ? top : left;
|
|
21351
21379
|
var maxProp = axis === "y" ? bottom : right;
|
|
21352
|
-
var endDiff = state.rects.reference[
|
|
21380
|
+
var endDiff = state.rects.reference[len2] + state.rects.reference[axis] - popperOffsets2[axis] - state.rects.popper[len2];
|
|
21353
21381
|
var startDiff = popperOffsets2[axis] - state.rects.reference[axis];
|
|
21354
21382
|
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
21355
21383
|
var clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
21356
21384
|
var centerToReference = endDiff / 2 - startDiff / 2;
|
|
21357
21385
|
var min2 = paddingObject[minProp];
|
|
21358
|
-
var max2 = clientSize - arrowRect[
|
|
21359
|
-
var center = clientSize / 2 - arrowRect[
|
|
21386
|
+
var max2 = clientSize - arrowRect[len2] - paddingObject[maxProp];
|
|
21387
|
+
var center = clientSize / 2 - arrowRect[len2] / 2 + centerToReference;
|
|
21360
21388
|
var offset2 = within(min2, center, max2);
|
|
21361
21389
|
var axisProp = axis;
|
|
21362
21390
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$);
|
|
@@ -21565,8 +21593,8 @@ to {
|
|
|
21565
21593
|
return hash$1[matched];
|
|
21566
21594
|
});
|
|
21567
21595
|
}
|
|
21568
|
-
function getWindowScroll(
|
|
21569
|
-
var win = getWindow$1(
|
|
21596
|
+
function getWindowScroll(node2) {
|
|
21597
|
+
var win = getWindow$1(node2);
|
|
21570
21598
|
var scrollLeft = win.pageXOffset;
|
|
21571
21599
|
var scrollTop = win.pageYOffset;
|
|
21572
21600
|
return {
|
|
@@ -21624,14 +21652,14 @@ to {
|
|
|
21624
21652
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
21625
21653
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
21626
21654
|
}
|
|
21627
|
-
function getScrollParent(
|
|
21628
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
21629
|
-
return
|
|
21655
|
+
function getScrollParent(node2) {
|
|
21656
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0) {
|
|
21657
|
+
return node2.ownerDocument.body;
|
|
21630
21658
|
}
|
|
21631
|
-
if (isHTMLElement(
|
|
21632
|
-
return
|
|
21659
|
+
if (isHTMLElement(node2) && isScrollParent(node2)) {
|
|
21660
|
+
return node2;
|
|
21633
21661
|
}
|
|
21634
|
-
return getScrollParent(getParentNode(
|
|
21662
|
+
return getScrollParent(getParentNode(node2));
|
|
21635
21663
|
}
|
|
21636
21664
|
function listScrollParents(element, list) {
|
|
21637
21665
|
var _element$ownerDocumen;
|
|
@@ -21740,13 +21768,13 @@ to {
|
|
|
21740
21768
|
}
|
|
21741
21769
|
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
|
|
21742
21770
|
if (mainAxis != null) {
|
|
21743
|
-
var
|
|
21771
|
+
var len2 = mainAxis === "y" ? "height" : "width";
|
|
21744
21772
|
switch (variation) {
|
|
21745
21773
|
case start$4:
|
|
21746
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference2[
|
|
21774
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference2[len2] / 2 - element[len2] / 2);
|
|
21747
21775
|
break;
|
|
21748
21776
|
case end:
|
|
21749
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference2[
|
|
21777
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference2[len2] / 2 - element[len2] / 2);
|
|
21750
21778
|
break;
|
|
21751
21779
|
}
|
|
21752
21780
|
}
|
|
@@ -21853,7 +21881,7 @@ to {
|
|
|
21853
21881
|
var _basePlacement = getBasePlacement(placement);
|
|
21854
21882
|
var isStartVariation = getVariation(placement) === start$4;
|
|
21855
21883
|
var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
|
|
21856
|
-
var
|
|
21884
|
+
var len2 = isVertical ? "width" : "height";
|
|
21857
21885
|
var overflow = detectOverflow(state, {
|
|
21858
21886
|
placement,
|
|
21859
21887
|
boundary,
|
|
@@ -21862,7 +21890,7 @@ to {
|
|
|
21862
21890
|
padding
|
|
21863
21891
|
});
|
|
21864
21892
|
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
|
|
21865
|
-
if (referenceRect[
|
|
21893
|
+
if (referenceRect[len2] > popperRect[len2]) {
|
|
21866
21894
|
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
21867
21895
|
}
|
|
21868
21896
|
var altVariationSide = getOppositePlacement(mainVariationSide);
|
|
@@ -22067,13 +22095,13 @@ to {
|
|
|
22067
22095
|
var _offsetModifierState$;
|
|
22068
22096
|
var mainSide = mainAxis === "y" ? top : left;
|
|
22069
22097
|
var altSide = mainAxis === "y" ? bottom : right;
|
|
22070
|
-
var
|
|
22098
|
+
var len2 = mainAxis === "y" ? "height" : "width";
|
|
22071
22099
|
var offset2 = popperOffsets2[mainAxis];
|
|
22072
22100
|
var min$12 = offset2 + overflow[mainSide];
|
|
22073
22101
|
var max2 = offset2 - overflow[altSide];
|
|
22074
|
-
var additive = tether ? -popperRect[
|
|
22075
|
-
var minLen = variation === start$4 ? referenceRect[
|
|
22076
|
-
var maxLen = variation === start$4 ? -popperRect[
|
|
22102
|
+
var additive = tether ? -popperRect[len2] / 2 : 0;
|
|
22103
|
+
var minLen = variation === start$4 ? referenceRect[len2] : popperRect[len2];
|
|
22104
|
+
var maxLen = variation === start$4 ? -popperRect[len2] : -referenceRect[len2];
|
|
22077
22105
|
var arrowElement = state.elements.arrow;
|
|
22078
22106
|
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
|
|
22079
22107
|
width: 0,
|
|
@@ -22082,9 +22110,9 @@ to {
|
|
|
22082
22110
|
var arrowPaddingObject = state.modifiersData["arrow#persistent"] ? state.modifiersData["arrow#persistent"].padding : getFreshSideObject();
|
|
22083
22111
|
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
|
22084
22112
|
var arrowPaddingMax = arrowPaddingObject[altSide];
|
|
22085
|
-
var arrowLen = within(0, referenceRect[
|
|
22086
|
-
var minOffset = isBasePlacement ? referenceRect[
|
|
22087
|
-
var maxOffset = isBasePlacement ? -referenceRect[
|
|
22113
|
+
var arrowLen = within(0, referenceRect[len2], arrowRect[len2]);
|
|
22114
|
+
var minOffset = isBasePlacement ? referenceRect[len2] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
22115
|
+
var maxOffset = isBasePlacement ? -referenceRect[len2] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
22088
22116
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
22089
22117
|
var clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
22090
22118
|
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
@@ -22125,11 +22153,11 @@ to {
|
|
|
22125
22153
|
scrollTop: element.scrollTop
|
|
22126
22154
|
};
|
|
22127
22155
|
}
|
|
22128
|
-
function getNodeScroll(
|
|
22129
|
-
if (
|
|
22130
|
-
return getWindowScroll(
|
|
22156
|
+
function getNodeScroll(node2) {
|
|
22157
|
+
if (node2 === getWindow$1(node2) || !isHTMLElement(node2)) {
|
|
22158
|
+
return getWindowScroll(node2);
|
|
22131
22159
|
} else {
|
|
22132
|
-
return getHTMLElementScroll(
|
|
22160
|
+
return getHTMLElementScroll(node2);
|
|
22133
22161
|
}
|
|
22134
22162
|
}
|
|
22135
22163
|
function isElementScaled(element) {
|
|
@@ -22662,7 +22690,35 @@ to {
|
|
|
22662
22690
|
)
|
|
22663
22691
|
]
|
|
22664
22692
|
}
|
|
22665
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
22693
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoAssistance = ({
|
|
22694
|
+
title,
|
|
22695
|
+
titleId,
|
|
22696
|
+
...props
|
|
22697
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
22698
|
+
"svg",
|
|
22699
|
+
{
|
|
22700
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22701
|
+
width: "24",
|
|
22702
|
+
height: "24",
|
|
22703
|
+
fill: "none",
|
|
22704
|
+
viewBox: "0 0 24 24",
|
|
22705
|
+
"aria-hidden": "true",
|
|
22706
|
+
"aria-labelledby": titleId,
|
|
22707
|
+
...props,
|
|
22708
|
+
children: [
|
|
22709
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
22710
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22711
|
+
"path",
|
|
22712
|
+
{
|
|
22713
|
+
fill: "currentColor",
|
|
22714
|
+
fillRule: "evenodd",
|
|
22715
|
+
d: "M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.67.67 0 0 1-.945.121L7.27 8.63a.72.72 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03S12.814 20 11.73 20c-1.086 0-1.969-.91-1.969-2.03",
|
|
22716
|
+
clipRule: "evenodd"
|
|
22717
|
+
}
|
|
22718
|
+
)
|
|
22719
|
+
]
|
|
22720
|
+
}
|
|
22721
|
+
), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
|
|
22666
22722
|
title,
|
|
22667
22723
|
titleId,
|
|
22668
22724
|
...props
|
|
@@ -22713,7 +22769,33 @@ to {
|
|
|
22713
22769
|
)
|
|
22714
22770
|
]
|
|
22715
22771
|
}
|
|
22716
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
22772
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneAssistance = ({
|
|
22773
|
+
title,
|
|
22774
|
+
titleId,
|
|
22775
|
+
...props
|
|
22776
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
22777
|
+
"svg",
|
|
22778
|
+
{
|
|
22779
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22780
|
+
width: "24",
|
|
22781
|
+
height: "24",
|
|
22782
|
+
fill: "none",
|
|
22783
|
+
viewBox: "0 0 24 24",
|
|
22784
|
+
"aria-hidden": "true",
|
|
22785
|
+
"aria-labelledby": titleId,
|
|
22786
|
+
...props,
|
|
22787
|
+
children: [
|
|
22788
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
22789
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22790
|
+
"path",
|
|
22791
|
+
{
|
|
22792
|
+
fill: "currentColor",
|
|
22793
|
+
d: "M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.96.96 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"
|
|
22794
|
+
}
|
|
22795
|
+
)
|
|
22796
|
+
]
|
|
22797
|
+
}
|
|
22798
|
+
), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
|
|
22717
22799
|
title,
|
|
22718
22800
|
titleId,
|
|
22719
22801
|
...props
|
|
@@ -23055,11 +23137,11 @@ to {
|
|
|
23055
23137
|
var evt = prefix2 ? prefix2 + event : event;
|
|
23056
23138
|
if (!this._events[evt])
|
|
23057
23139
|
return false;
|
|
23058
|
-
var listeners = this._events[evt],
|
|
23140
|
+
var listeners = this._events[evt], len2 = arguments.length, args, i2;
|
|
23059
23141
|
if (listeners.fn) {
|
|
23060
23142
|
if (listeners.once)
|
|
23061
23143
|
this.removeListener(event, listeners.fn, void 0, true);
|
|
23062
|
-
switch (
|
|
23144
|
+
switch (len2) {
|
|
23063
23145
|
case 1:
|
|
23064
23146
|
return listeners.fn.call(listeners.context), true;
|
|
23065
23147
|
case 2:
|
|
@@ -23073,7 +23155,7 @@ to {
|
|
|
23073
23155
|
case 6:
|
|
23074
23156
|
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
23075
23157
|
}
|
|
23076
|
-
for (i2 = 1, args = new Array(
|
|
23158
|
+
for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
|
|
23077
23159
|
args[i2 - 1] = arguments[i2];
|
|
23078
23160
|
}
|
|
23079
23161
|
listeners.fn.apply(listeners.context, args);
|
|
@@ -23082,7 +23164,7 @@ to {
|
|
|
23082
23164
|
for (i2 = 0; i2 < length; i2++) {
|
|
23083
23165
|
if (listeners[i2].once)
|
|
23084
23166
|
this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
23085
|
-
switch (
|
|
23167
|
+
switch (len2) {
|
|
23086
23168
|
case 1:
|
|
23087
23169
|
listeners[i2].fn.call(listeners[i2].context);
|
|
23088
23170
|
break;
|
|
@@ -23097,7 +23179,7 @@ to {
|
|
|
23097
23179
|
break;
|
|
23098
23180
|
default:
|
|
23099
23181
|
if (!args)
|
|
23100
|
-
for (j2 = 1, args = new Array(
|
|
23182
|
+
for (j2 = 1, args = new Array(len2 - 1); j2 < len2; j2++) {
|
|
23101
23183
|
args[j2 - 1] = arguments[j2];
|
|
23102
23184
|
}
|
|
23103
23185
|
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
@@ -23336,10 +23418,10 @@ to {
|
|
|
23336
23418
|
} while (a2 !== start2);
|
|
23337
23419
|
}
|
|
23338
23420
|
function eliminateHoles(data, holeIndices, outerNode, dim) {
|
|
23339
|
-
var queue = [], i2,
|
|
23340
|
-
for (i2 = 0,
|
|
23421
|
+
var queue = [], i2, len2, start2, end2, list;
|
|
23422
|
+
for (i2 = 0, len2 = holeIndices.length; i2 < len2; i2++) {
|
|
23341
23423
|
start2 = holeIndices[i2] * dim;
|
|
23342
|
-
end2 = i2 <
|
|
23424
|
+
end2 = i2 < len2 - 1 ? holeIndices[i2 + 1] * dim : data.length;
|
|
23343
23425
|
list = linkedList(data, start2, end2, dim, false);
|
|
23344
23426
|
if (list === list.next)
|
|
23345
23427
|
list.steiner = true;
|
|
@@ -23533,7 +23615,7 @@ to {
|
|
|
23533
23615
|
return inside;
|
|
23534
23616
|
}
|
|
23535
23617
|
function splitPolygon(a2, b2) {
|
|
23536
|
-
var a22 = new Node$
|
|
23618
|
+
var a22 = new Node$2(a2.i, a2.x, a2.y), b22 = new Node$2(b2.i, b2.x, b2.y), an2 = a2.next, bp = b2.prev;
|
|
23537
23619
|
a2.next = b2;
|
|
23538
23620
|
b2.prev = a2;
|
|
23539
23621
|
a22.next = an2;
|
|
@@ -23545,7 +23627,7 @@ to {
|
|
|
23545
23627
|
return b22;
|
|
23546
23628
|
}
|
|
23547
23629
|
function insertNode(i2, x2, y2, last) {
|
|
23548
|
-
var p2 = new Node$
|
|
23630
|
+
var p2 = new Node$2(i2, x2, y2);
|
|
23549
23631
|
if (!last) {
|
|
23550
23632
|
p2.prev = p2;
|
|
23551
23633
|
p2.next = p2;
|
|
@@ -23565,7 +23647,7 @@ to {
|
|
|
23565
23647
|
if (p2.nextZ)
|
|
23566
23648
|
p2.nextZ.prevZ = p2.prevZ;
|
|
23567
23649
|
}
|
|
23568
|
-
function Node$
|
|
23650
|
+
function Node$2(i2, x2, y2) {
|
|
23569
23651
|
this.i = i2;
|
|
23570
23652
|
this.x = x2;
|
|
23571
23653
|
this.y = y2;
|
|
@@ -23581,9 +23663,9 @@ to {
|
|
|
23581
23663
|
var outerLen = hasHoles ? holeIndices[0] * dim : data.length;
|
|
23582
23664
|
var polygonArea = Math.abs(signedArea(data, 0, outerLen, dim));
|
|
23583
23665
|
if (hasHoles) {
|
|
23584
|
-
for (var i2 = 0,
|
|
23666
|
+
for (var i2 = 0, len2 = holeIndices.length; i2 < len2; i2++) {
|
|
23585
23667
|
var start2 = holeIndices[i2] * dim;
|
|
23586
|
-
var end2 = i2 <
|
|
23668
|
+
var end2 = i2 < len2 - 1 ? holeIndices[i2 + 1] * dim : data.length;
|
|
23587
23669
|
polygonArea -= Math.abs(signedArea(data, start2, end2, dim));
|
|
23588
23670
|
}
|
|
23589
23671
|
}
|
|
@@ -25035,13 +25117,13 @@ to {
|
|
|
25035
25117
|
}
|
|
25036
25118
|
};
|
|
25037
25119
|
var listGet = function(objects, key) {
|
|
25038
|
-
var
|
|
25039
|
-
return
|
|
25120
|
+
var node2 = listGetNode(objects, key);
|
|
25121
|
+
return node2 && node2.value;
|
|
25040
25122
|
};
|
|
25041
25123
|
var listSet = function(objects, key, value) {
|
|
25042
|
-
var
|
|
25043
|
-
if (
|
|
25044
|
-
|
|
25124
|
+
var node2 = listGetNode(objects, key);
|
|
25125
|
+
if (node2) {
|
|
25126
|
+
node2.value = value;
|
|
25045
25127
|
} else {
|
|
25046
25128
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
25047
25129
|
{
|
|
@@ -25804,7 +25886,7 @@ to {
|
|
|
25804
25886
|
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$3.strictNullHandling
|
|
25805
25887
|
};
|
|
25806
25888
|
};
|
|
25807
|
-
var parse$
|
|
25889
|
+
var parse$2 = function(str, opts) {
|
|
25808
25890
|
var options = normalizeParseOptions(opts);
|
|
25809
25891
|
if (str === "" || str === null || typeof str === "undefined") {
|
|
25810
25892
|
return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
@@ -25823,11 +25905,11 @@ to {
|
|
|
25823
25905
|
return utils.compact(obj);
|
|
25824
25906
|
};
|
|
25825
25907
|
var stringify = stringify_1;
|
|
25826
|
-
var parse = parse$
|
|
25908
|
+
var parse$1 = parse$2;
|
|
25827
25909
|
var formats$1 = formats$4;
|
|
25828
|
-
var lib = {
|
|
25910
|
+
var lib$3 = {
|
|
25829
25911
|
formats: formats$1,
|
|
25830
|
-
parse,
|
|
25912
|
+
parse: parse$1,
|
|
25831
25913
|
stringify
|
|
25832
25914
|
};
|
|
25833
25915
|
var punycode = punycodeExports;
|
|
@@ -25888,7 +25970,7 @@ to {
|
|
|
25888
25970
|
"ftp:": true,
|
|
25889
25971
|
"gopher:": true,
|
|
25890
25972
|
"file:": true
|
|
25891
|
-
}, querystring = lib;
|
|
25973
|
+
}, querystring = lib$3;
|
|
25892
25974
|
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
25893
25975
|
if (url && typeof url === "object" && url instanceof Url) {
|
|
25894
25976
|
return url;
|
|
@@ -26693,7 +26775,7 @@ Deprecated since v${version}`), console.warn(stack))), warnings[message] = true;
|
|
|
26693
26775
|
return { r: e$1(r2.r, 0, 255), g: e$1(r2.g, 0, 255), b: e$1(r2.b, 0, 255), a: e$1(r2.a) };
|
|
26694
26776
|
}, o = function(r2) {
|
|
26695
26777
|
return { r: n$2(r2.r), g: n$2(r2.g), b: n$2(r2.b), a: n$2(r2.a, 3) };
|
|
26696
|
-
}, i = /^#([0-9a-f]{3,8})$/i, s = function(r2) {
|
|
26778
|
+
}, i$1 = /^#([0-9a-f]{3,8})$/i, s = function(r2) {
|
|
26697
26779
|
var t2 = r2.toString(16);
|
|
26698
26780
|
return t2.length < 2 ? "0" + t2 : t2;
|
|
26699
26781
|
}, h$2 = function(r2) {
|
|
@@ -26715,7 +26797,7 @@ Deprecated since v${version}`), console.warn(stack))), warnings[message] = true;
|
|
|
26715
26797
|
return { h: (t2 = h$2(r2)).h, s: (u2 = (200 - (n2 = t2.s)) * (e2 = t2.v) / 100) > 0 && u2 < 200 ? n2 * e2 / 100 / (u2 <= 100 ? u2 : 200 - u2) * 100 : 0, l: u2 / 2, a: t2.a };
|
|
26716
26798
|
var t2, n2, e2, u2;
|
|
26717
26799
|
}, l$1 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, p$2 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, v$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, m$2 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y = { string: [[function(r2) {
|
|
26718
|
-
var t2 = i.exec(r2);
|
|
26800
|
+
var t2 = i$1.exec(r2);
|
|
26719
26801
|
return t2 ? (r2 = t2[1]).length <= 4 ? { r: parseInt(r2[0] + r2[0], 16), g: parseInt(r2[1] + r2[1], 16), b: parseInt(r2[2] + r2[2], 16), a: 4 === r2.length ? n$2(parseInt(r2[3] + r2[3], 16) / 255, 2) : 1 } : 6 === r2.length || 8 === r2.length ? { r: parseInt(r2.substr(0, 2), 16), g: parseInt(r2.substr(2, 2), 16), b: parseInt(r2.substr(4, 2), 16), a: 8 === r2.length ? n$2(parseInt(r2.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
26720
26802
|
}, "hex"], [function(r2) {
|
|
26721
26803
|
var t2 = v$1.exec(r2) || m$2.exec(r2);
|
|
@@ -27170,10 +27252,10 @@ Deprecated since v${version}`), console.warn(stack))), warnings[message] = true;
|
|
|
27170
27252
|
if (startIdx >= length || removeCount === 0)
|
|
27171
27253
|
return;
|
|
27172
27254
|
removeCount = startIdx + removeCount > length ? length - startIdx : removeCount;
|
|
27173
|
-
const
|
|
27174
|
-
for (i2 = startIdx; i2 <
|
|
27255
|
+
const len2 = length - removeCount;
|
|
27256
|
+
for (i2 = startIdx; i2 < len2; ++i2)
|
|
27175
27257
|
arr2[i2] = arr2[i2 + removeCount];
|
|
27176
|
-
arr2.length =
|
|
27258
|
+
arr2.length = len2;
|
|
27177
27259
|
}
|
|
27178
27260
|
function sign(n2) {
|
|
27179
27261
|
return n2 === 0 ? 0 : n2 < 0 ? -1 : 1;
|
|
@@ -27640,7 +27722,7 @@ else `), i2 < maxIfs - 1 && (src += `if(test == ${i2}.0){}`);
|
|
|
27640
27722
|
throw new Error("max arguments reached");
|
|
27641
27723
|
const { name, items } = this;
|
|
27642
27724
|
this._aliasCount++;
|
|
27643
|
-
for (let i2 = 0,
|
|
27725
|
+
for (let i2 = 0, len2 = items.length; i2 < len2; i2++)
|
|
27644
27726
|
items[i2][name](a0, a1, a2, a3, a4, a5, a6, a7);
|
|
27645
27727
|
return items === this.items && this._aliasCount--, this;
|
|
27646
27728
|
}
|
|
@@ -29854,12 +29936,12 @@ void main(void){
|
|
|
29854
29936
|
break;
|
|
29855
29937
|
}
|
|
29856
29938
|
if (!parsed) {
|
|
29857
|
-
const
|
|
29939
|
+
const template2 = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
|
|
29858
29940
|
funcFragments.push(`
|
|
29859
29941
|
cu = ud["${i2}"];
|
|
29860
29942
|
cv = cu.value;
|
|
29861
29943
|
v = uv["${i2}"];
|
|
29862
|
-
${
|
|
29944
|
+
${template2};`);
|
|
29863
29945
|
}
|
|
29864
29946
|
}
|
|
29865
29947
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -31278,8 +31360,8 @@ void main(void)
|
|
|
31278
31360
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
31279
31361
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
31280
31362
|
*/
|
|
31281
|
-
constructor(baseTexture, frame, orig,
|
|
31282
|
-
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim =
|
|
31363
|
+
constructor(baseTexture, frame, orig, trim2, rotate2, anchor, borders) {
|
|
31364
|
+
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim = trim2, this.valid = false, this.destroyed = false, this._uvs = DEFAULT_UVS, this.uvMatrix = null, this.orig = orig || frame, this._rotate = Number(rotate2 || 0), rotate2 === true)
|
|
31283
31365
|
this._rotate = 2;
|
|
31284
31366
|
else if (this._rotate % 2 !== 0)
|
|
31285
31367
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -32519,14 +32601,14 @@ void main(void)
|
|
|
32519
32601
|
this._textureID = tex._updateID, this._updateID++;
|
|
32520
32602
|
const uvs = tex._uvs;
|
|
32521
32603
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
32522
|
-
const orig = tex.orig,
|
|
32523
|
-
|
|
32524
|
-
orig.width /
|
|
32604
|
+
const orig = tex.orig, trim2 = tex.trim;
|
|
32605
|
+
trim2 && (tempMat$1.set(
|
|
32606
|
+
orig.width / trim2.width,
|
|
32525
32607
|
0,
|
|
32526
32608
|
0,
|
|
32527
|
-
orig.height /
|
|
32528
|
-
-
|
|
32529
|
-
-
|
|
32609
|
+
orig.height / trim2.height,
|
|
32610
|
+
-trim2.x / trim2.width,
|
|
32611
|
+
-trim2.y / trim2.height
|
|
32530
32612
|
), this.mapCoord.append(tempMat$1));
|
|
32531
32613
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
32532
32614
|
return frame[0] = (tex._frame.x + margin + offset2) / texBase.width, frame[1] = (tex._frame.y + margin + offset2) / texBase.height, frame[2] = (tex._frame.x + tex._frame.width - margin + offset2) / texBase.width, frame[3] = (tex._frame.y + tex._frame.height - margin + offset2) / texBase.height, this.uClampOffset[0] = offset2 / texBase.realWidth, this.uClampOffset[1] = offset2 / texBase.realHeight, this.isSimple = tex._frame.width === texBase.width && tex._frame.height === texBase.height && tex.rotate === 0, true;
|
|
@@ -33360,12 +33442,12 @@ void main(void)
|
|
|
33360
33442
|
|
|
33361
33443
|
`);
|
|
33362
33444
|
} else {
|
|
33363
|
-
const
|
|
33445
|
+
const template2 = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
33364
33446
|
funcFragments.push(`
|
|
33365
33447
|
cv = ud.${name}.value;
|
|
33366
33448
|
v = uv.${name};
|
|
33367
33449
|
offset = ${uboElement.offset / 4};
|
|
33368
|
-
${
|
|
33450
|
+
${template2};
|
|
33369
33451
|
`);
|
|
33370
33452
|
}
|
|
33371
33453
|
}
|
|
@@ -35483,7 +35565,7 @@ void main(void)
|
|
|
35483
35565
|
}
|
|
35484
35566
|
/** Destroy this BaseImageResource. */
|
|
35485
35567
|
dispose() {
|
|
35486
|
-
for (let i2 = 0,
|
|
35568
|
+
for (let i2 = 0, len2 = this.length; i2 < len2; i2++)
|
|
35487
35569
|
this.items[i2].destroy();
|
|
35488
35570
|
this.items = null, this.itemDirtyIds = null, this._load = null;
|
|
35489
35571
|
}
|
|
@@ -36934,9 +37016,9 @@ void main(void)
|
|
|
36934
37016
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
36935
37017
|
return;
|
|
36936
37018
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
36937
|
-
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData,
|
|
37019
|
+
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData, trim2 = texture.trim, orig = texture.orig, anchor = this._anchor;
|
|
36938
37020
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
36939
|
-
if (
|
|
37021
|
+
if (trim2 ? (w1 = trim2.x - anchor._x * orig.width, w0 = w1 + trim2.width, h1 = trim2.y - anchor._y * orig.height, h0 = h1 + trim2.height) : (w1 = -anchor._x * orig.width, w0 = w1 + orig.width, h1 = -anchor._y * orig.height, h0 = h1 + orig.height), vertexData[0] = a2 * w1 + c6 * h1 + tx, vertexData[1] = d2 * h1 + b2 * w1 + ty, vertexData[2] = a2 * w0 + c6 * h1 + tx, vertexData[3] = d2 * h1 + b2 * w0 + ty, vertexData[4] = a2 * w0 + c6 * h0 + tx, vertexData[5] = d2 * h0 + b2 * w0 + ty, vertexData[6] = a2 * w1 + c6 * h0 + tx, vertexData[7] = d2 * h0 + b2 * w1 + ty, this._roundPixels) {
|
|
36940
37022
|
const resolution = settings.RESOLUTION;
|
|
36941
37023
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
36942
37024
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -36970,8 +37052,8 @@ void main(void)
|
|
|
36970
37052
|
}
|
|
36971
37053
|
/** Updates the bounds of the sprite. */
|
|
36972
37054
|
_calculateBounds() {
|
|
36973
|
-
const
|
|
36974
|
-
!
|
|
37055
|
+
const trim2 = this._texture.trim, orig = this._texture.orig;
|
|
37056
|
+
!trim2 || trim2.width === orig.width && trim2.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
|
|
36975
37057
|
}
|
|
36976
37058
|
/**
|
|
36977
37059
|
* Gets the local bounds of the sprite object.
|
|
@@ -37380,7 +37462,7 @@ void main(void)
|
|
|
37380
37462
|
static measureFont(font) {
|
|
37381
37463
|
if (_TextMetrics2._fonts[font])
|
|
37382
37464
|
return _TextMetrics2._fonts[font];
|
|
37383
|
-
const
|
|
37465
|
+
const properties2 = {
|
|
37384
37466
|
ascent: 0,
|
|
37385
37467
|
descent: 0,
|
|
37386
37468
|
fontSize: 0
|
|
@@ -37390,7 +37472,7 @@ void main(void)
|
|
|
37390
37472
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
37391
37473
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
37392
37474
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
37393
|
-
return _TextMetrics2._fonts[font] =
|
|
37475
|
+
return _TextMetrics2._fonts[font] = properties2, properties2;
|
|
37394
37476
|
canvas.width = width, canvas.height = height, context2.fillStyle = "#f00", context2.fillRect(0, 0, width, height), context2.font = font, context2.textBaseline = "alphabetic", context2.fillStyle = "#000", context2.fillText(metricsString, 0, baseline);
|
|
37395
37477
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
37396
37478
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -37405,7 +37487,7 @@ void main(void)
|
|
|
37405
37487
|
else
|
|
37406
37488
|
break;
|
|
37407
37489
|
}
|
|
37408
|
-
for (
|
|
37490
|
+
for (properties2.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
37409
37491
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
37410
37492
|
if (imagedata[idx + j2] !== 255) {
|
|
37411
37493
|
stop2 = true;
|
|
@@ -37416,7 +37498,7 @@ void main(void)
|
|
|
37416
37498
|
else
|
|
37417
37499
|
break;
|
|
37418
37500
|
}
|
|
37419
|
-
return
|
|
37501
|
+
return properties2.descent = i2 - baseline, properties2.fontSize = properties2.ascent + properties2.descent, _TextMetrics2._fonts[font] = properties2, properties2;
|
|
37420
37502
|
}
|
|
37421
37503
|
/**
|
|
37422
37504
|
* Clear font metrics in metrics cache.
|
|
@@ -37788,8 +37870,8 @@ void main(void)
|
|
|
37788
37870
|
get trim() {
|
|
37789
37871
|
return this._trim;
|
|
37790
37872
|
}
|
|
37791
|
-
set trim(
|
|
37792
|
-
this._trim !==
|
|
37873
|
+
set trim(trim2) {
|
|
37874
|
+
this._trim !== trim2 && (this._trim = trim2, this.styleID++);
|
|
37793
37875
|
}
|
|
37794
37876
|
/**
|
|
37795
37877
|
* How newlines and spaces should be handled.
|
|
@@ -38223,7 +38305,7 @@ void main(void)
|
|
|
38223
38305
|
}
|
|
38224
38306
|
};
|
|
38225
38307
|
_Text.defaultAutoResolution = true;
|
|
38226
|
-
let Text = _Text;
|
|
38308
|
+
let Text$2 = _Text;
|
|
38227
38309
|
class BitmapFontData {
|
|
38228
38310
|
constructor() {
|
|
38229
38311
|
this.info = [], this.common = [], this.page = [], this.char = [], this.kerning = [], this.distanceField = [];
|
|
@@ -38630,9 +38712,9 @@ void main(void)
|
|
|
38630
38712
|
}), positionX += (textureGlyphWidth + 2 * padding) * resolution, positionX = Math.ceil(positionX);
|
|
38631
38713
|
}
|
|
38632
38714
|
if (!(options == null ? void 0 : options.skipKerning))
|
|
38633
|
-
for (let i2 = 0,
|
|
38715
|
+
for (let i2 = 0, len2 = charsList.length; i2 < len2; i2++) {
|
|
38634
38716
|
const first = charsList[i2];
|
|
38635
|
-
for (let j2 = 0; j2 <
|
|
38717
|
+
for (let j2 = 0; j2 < len2; j2++) {
|
|
38636
38718
|
const second = charsList[j2], c12 = context2.measureText(first).width, c22 = context2.measureText(second).width, amount = context2.measureText(first + second).width - (c12 + c22);
|
|
38637
38719
|
amount && fontData.kerning.push({
|
|
38638
38720
|
first: extractCharCode(first),
|
|
@@ -38857,8 +38939,8 @@ void main(void)
|
|
|
38857
38939
|
if (!this.getBounds().contains(point.x, point.y))
|
|
38858
38940
|
return false;
|
|
38859
38941
|
this.worldTransform.applyInverse(point, tempPoint$1);
|
|
38860
|
-
const vertices = this.geometry.getBuffer("aVertexPosition").data, points = tempPolygon.points, indices2 = this.geometry.getIndex().data,
|
|
38861
|
-
for (let i2 = 0; i2 + 2 <
|
|
38942
|
+
const vertices = this.geometry.getBuffer("aVertexPosition").data, points = tempPolygon.points, indices2 = this.geometry.getIndex().data, len2 = indices2.length, step = this.drawMode === 4 ? 3 : 1;
|
|
38943
|
+
for (let i2 = 0; i2 + 2 < len2; i2 += step) {
|
|
38862
38944
|
const ind0 = indices2[i2] * 2, ind1 = indices2[i2 + 1] * 2, ind2 = indices2[i2 + 2] * 2;
|
|
38863
38945
|
if (points[0] = vertices[ind0], points[1] = vertices[ind0 + 1], points[2] = vertices[ind1], points[3] = vertices[ind1 + 1], points[4] = vertices[ind2], points[5] = vertices[ind2 + 1], tempPolygon.contains(tempPoint$1.x, tempPoint$1.y))
|
|
38864
38946
|
return true;
|
|
@@ -40743,8 +40825,8 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), asse
|
|
|
40743
40825
|
};
|
|
40744
40826
|
extensions$1.add(detectDefaults);
|
|
40745
40827
|
const inWorker = "WorkerGlobalScope" in globalThis && globalThis instanceof globalThis.WorkerGlobalScope;
|
|
40746
|
-
function testVideoFormat(
|
|
40747
|
-
return inWorker ? false : document.createElement("video").canPlayType(
|
|
40828
|
+
function testVideoFormat(mimeType2) {
|
|
40829
|
+
return inWorker ? false : document.createElement("video").canPlayType(mimeType2) !== "";
|
|
40748
40830
|
}
|
|
40749
40831
|
const detectWebm = {
|
|
40750
40832
|
extension: {
|
|
@@ -41932,8 +42014,8 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), asse
|
|
|
41932
42014
|
*/
|
|
41933
42015
|
startPoly() {
|
|
41934
42016
|
if (this.currentPath) {
|
|
41935
|
-
const points = this.currentPath.points,
|
|
41936
|
-
|
|
42017
|
+
const points = this.currentPath.points, len2 = this.currentPath.points.length;
|
|
42018
|
+
len2 > 2 && (this.drawShape(this.currentPath), this.currentPath = new Polygon(), this.currentPath.closeStroke = false, this.currentPath.points.push(points[len2 - 2], points[len2 - 1]));
|
|
41937
42019
|
} else
|
|
41938
42020
|
this.currentPath = new Polygon(), this.currentPath.closeStroke = false;
|
|
41939
42021
|
}
|
|
@@ -42191,9 +42273,9 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), asse
|
|
|
42191
42273
|
}
|
|
42192
42274
|
/** Populating batches for rendering. */
|
|
42193
42275
|
_populateBatches() {
|
|
42194
|
-
const geometry = this._geometry, blendMode = this.blendMode,
|
|
42195
|
-
this.batchTint = -1, this._transformID = -1, this.batchDirty = geometry.batchDirty, this.batches.length =
|
|
42196
|
-
for (let i2 = 0; i2 <
|
|
42276
|
+
const geometry = this._geometry, blendMode = this.blendMode, len2 = geometry.batches.length;
|
|
42277
|
+
this.batchTint = -1, this._transformID = -1, this.batchDirty = geometry.batchDirty, this.batches.length = len2, this.vertexData = new Float32Array(geometry.points);
|
|
42278
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
42197
42279
|
const gI = geometry.batches[i2], color = gI.style.color, vertexData = new Float32Array(
|
|
42198
42280
|
this.vertexData.buffer,
|
|
42199
42281
|
gI.attribStart * 4 * 2,
|
|
@@ -42667,17 +42749,17 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), asse
|
|
|
42667
42749
|
* @param {boolean} [autoResize=false] - If true, container allocates more batches in case
|
|
42668
42750
|
* there are more than `maxSize` particles.
|
|
42669
42751
|
*/
|
|
42670
|
-
constructor(maxSize = 1500,
|
|
42752
|
+
constructor(maxSize = 1500, properties2, batchSize = 16384, autoResize2 = false) {
|
|
42671
42753
|
super();
|
|
42672
42754
|
const maxBatchSize = 16384;
|
|
42673
|
-
batchSize > maxBatchSize && (batchSize = maxBatchSize), this._properties = [false, true, false, false, false], this._maxSize = maxSize, this._batchSize = batchSize, this._buffers = null, this._bufferUpdateIDs = [], this._updateID = 0, this.interactiveChildren = false, this.blendMode = BLEND_MODES.NORMAL, this.autoResize = autoResize2, this.roundPixels = true, this.baseTexture = null, this.setProperties(
|
|
42755
|
+
batchSize > maxBatchSize && (batchSize = maxBatchSize), this._properties = [false, true, false, false, false], this._maxSize = maxSize, this._batchSize = batchSize, this._buffers = null, this._bufferUpdateIDs = [], this._updateID = 0, this.interactiveChildren = false, this.blendMode = BLEND_MODES.NORMAL, this.autoResize = autoResize2, this.roundPixels = true, this.baseTexture = null, this.setProperties(properties2), this._tintColor = new Color(0), this.tintRgb = new Float32Array(3), this.tint = 16777215;
|
|
42674
42756
|
}
|
|
42675
42757
|
/**
|
|
42676
42758
|
* Sets the private properties array to dynamic / static based on the passed properties object
|
|
42677
42759
|
* @param properties - The properties to be uploaded
|
|
42678
42760
|
*/
|
|
42679
|
-
setProperties(
|
|
42680
|
-
|
|
42761
|
+
setProperties(properties2) {
|
|
42762
|
+
properties2 && (this._properties[0] = "vertices" in properties2 || "scale" in properties2 ? !!properties2.vertices || !!properties2.scale : this._properties[0], this._properties[1] = "position" in properties2 ? !!properties2.position : this._properties[1], this._properties[2] = "rotation" in properties2 ? !!properties2.rotation : this._properties[2], this._properties[3] = "uvs" in properties2 ? !!properties2.uvs : this._properties[3], this._properties[4] = "tint" in properties2 || "alpha" in properties2 ? !!properties2.tint || !!properties2.alpha : this._properties[4]);
|
|
42681
42763
|
}
|
|
42682
42764
|
updateTransform() {
|
|
42683
42765
|
this.displayObjectUpdateTransform();
|
|
@@ -42739,10 +42821,10 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), asse
|
|
|
42739
42821
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
42740
42822
|
* @param {number} size - The size of the batch.
|
|
42741
42823
|
*/
|
|
42742
|
-
constructor(
|
|
42824
|
+
constructor(properties2, dynamicPropertyFlags, size2) {
|
|
42743
42825
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
42744
|
-
for (let i2 = 0; i2 <
|
|
42745
|
-
let property =
|
|
42826
|
+
for (let i2 = 0; i2 < properties2.length; ++i2) {
|
|
42827
|
+
let property = properties2[i2];
|
|
42746
42828
|
property = {
|
|
42747
42829
|
attributeName: property.attributeName,
|
|
42748
42830
|
size: property.size,
|
|
@@ -42979,8 +43061,8 @@ void main(void){
|
|
|
42979
43061
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
42980
43062
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
42981
43063
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
42982
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
42983
|
-
|
|
43064
|
+
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim2 = texture.trim, orig = texture.orig;
|
|
43065
|
+
trim2 ? (w1 = trim2.x - sprite.anchor.x * orig.width, w0 = w1 + trim2.width, h1 = trim2.y - sprite.anchor.y * orig.height, h0 = h1 + trim2.height) : (w0 = orig.width * (1 - sprite.anchor.x), w1 = orig.width * -sprite.anchor.x, h0 = orig.height * (1 - sprite.anchor.y), h1 = orig.height * -sprite.anchor.y), array[offset2] = w1 * sx, array[offset2 + 1] = h1 * sy, array[offset2 + stride] = w0 * sx, array[offset2 + stride + 1] = h1 * sy, array[offset2 + stride * 2] = w0 * sx, array[offset2 + stride * 2 + 1] = h0 * sy, array[offset2 + stride * 3] = w1 * sx, array[offset2 + stride * 3 + 1] = h0 * sy, offset2 += stride * 4;
|
|
42984
43066
|
}
|
|
42985
43067
|
}
|
|
42986
43068
|
/**
|
|
@@ -43895,7 +43977,7 @@ void main(void)
|
|
|
43895
43977
|
return c6;
|
|
43896
43978
|
}, s2;
|
|
43897
43979
|
}, oe = function(e2, n2) {
|
|
43898
|
-
var t2 = n2.text, r2 = void 0 === t2 ? "" : t2, l2 = n2.style, a2 = void 0 === l2 ? {} : l2, i2 = n2.isSprite, o2 = new Text(r2, a2);
|
|
43980
|
+
var t2 = n2.text, r2 = void 0 === t2 ? "" : t2, l2 = n2.style, a2 = void 0 === l2 ? {} : l2, i2 = n2.isSprite, o2 = new Text$2(r2, a2);
|
|
43899
43981
|
return i2 ? (o2.updateText(), new Sprite(o2.texture)) : o2;
|
|
43900
43982
|
}, ue = ["tileScale", "tilePosition", "image", "texture"], se = function(e2, n2) {
|
|
43901
43983
|
var t2 = n2.width, r2 = void 0 === t2 ? 100 : t2, l2 = n2.height, a2 = void 0 === l2 ? 100 : l2, i2 = W$1("TilingSprite", e2, n2), o2 = new TilingSprite(i2, r2, a2);
|
|
@@ -44186,7 +44268,7 @@ void main(void)
|
|
|
44186
44268
|
*/
|
|
44187
44269
|
function Te() {
|
|
44188
44270
|
return Pe || (Pe = 1, ke = function(e2) {
|
|
44189
|
-
var n2 = {}, t2 = React, r2 = Ne(), l2 = Object.assign;
|
|
44271
|
+
var n2 = {}, t2 = React$2, r2 = Ne(), l2 = Object.assign;
|
|
44190
44272
|
function a2(e3) {
|
|
44191
44273
|
for (var n3 = "https://reactjs.org/docs/error-decoder.html?invariant=" + e3, t3 = 1; t3 < arguments.length; t3++)
|
|
44192
44274
|
n3 += "&args[]=" + encodeURIComponent(arguments[t3]);
|
|
@@ -48358,10 +48440,10 @@ void main(void)
|
|
|
48358
48440
|
return e3.__proto__ || Object.getPrototypeOf(e3);
|
|
48359
48441
|
}, ln(e2);
|
|
48360
48442
|
}
|
|
48361
|
-
var an = React.createContext(null), on = an.Provider, un = an.Consumer, sn = function(e2) {
|
|
48362
|
-
var n2 = React.forwardRef(function(n3, t2) {
|
|
48363
|
-
return React.createElement(un, null, function(r2) {
|
|
48364
|
-
return React.createElement(e2, Je({}, n3, { ref: t2, app: r2 }));
|
|
48443
|
+
var an = React$2.createContext(null), on = an.Provider, un = an.Consumer, sn = function(e2) {
|
|
48444
|
+
var n2 = React$2.forwardRef(function(n3, t2) {
|
|
48445
|
+
return React$2.createElement(un, null, function(r2) {
|
|
48446
|
+
return React$2.createElement(e2, Je({}, n3, { ref: t2, app: r2 }));
|
|
48365
48447
|
});
|
|
48366
48448
|
});
|
|
48367
48449
|
return n2.displayName = "withPIXIApp(".concat(e2.displayName || e2.name, ")"), n2;
|
|
@@ -48425,7 +48507,7 @@ void main(void)
|
|
|
48425
48507
|
if ("function" != typeof n3 && null !== n3)
|
|
48426
48508
|
throw new TypeError("Super expression must either be null or a function");
|
|
48427
48509
|
e3.prototype = Object.create(n3 && n3.prototype, { constructor: { value: e3, writable: true, configurable: true } }), Object.defineProperty(e3, "prototype", { writable: false }), n3 && tn(e3, n3);
|
|
48428
|
-
}(a2, React.Component);
|
|
48510
|
+
}(a2, React$2.Component);
|
|
48429
48511
|
var n2, t2, l2 = cn(a2);
|
|
48430
48512
|
function a2() {
|
|
48431
48513
|
var e3;
|
|
@@ -48453,14 +48535,14 @@ void main(void)
|
|
|
48453
48535
|
null != e3 && e3.resolution && (e3.resolution = this.app.renderer.resolution);
|
|
48454
48536
|
} }, { key: "getChildren", value: function() {
|
|
48455
48537
|
var e3 = this.props.children;
|
|
48456
|
-
return React.createElement(on, { value: this.app }, e3);
|
|
48538
|
+
return React$2.createElement(on, { value: this.app }, e3);
|
|
48457
48539
|
} }, { key: "componentDidCatch", value: function(e3, n3) {
|
|
48458
48540
|
console.error("Error occurred in `Stage`."), console.error(e3), console.error(n3);
|
|
48459
48541
|
} }, { key: "componentWillUnmount", value: function() {
|
|
48460
48542
|
this.props.onUnmount(this.app), this._ticker && (this._ticker.remove(this.renderStage), this._ticker.destroy()), this.app.stage.off("__REACT_PIXI_REQUEST_RENDER__", this.needsRenderUpdate), We.updateContainer(null, this.mountNode, this), this._mediaQuery && (this._mediaQuery.removeListener(this.updateSize), this._mediaQuery = null), this.app.destroy();
|
|
48461
48543
|
} }, { key: "render", value: function() {
|
|
48462
48544
|
var e3, n3, t3 = this, r2 = this.props.options;
|
|
48463
|
-
return r2 && r2.view ? (N(r2.view instanceof HTMLCanvasElement, "options.view needs to be a `HTMLCanvasElement`"), null) : React.createElement("canvas", Je({}, (e3 = this.props, n3 = [].concat(z(Object.keys(mn)), z(Object.keys(B))), Object.keys(e3).filter(function(e4) {
|
|
48545
|
+
return r2 && r2.view ? (N(r2.view instanceof HTMLCanvasElement, "options.view needs to be a `HTMLCanvasElement`"), null) : React$2.createElement("canvas", Je({}, (e3 = this.props, n3 = [].concat(z(Object.keys(mn)), z(Object.keys(B))), Object.keys(e3).filter(function(e4) {
|
|
48464
48546
|
return !n3.includes(e4);
|
|
48465
48547
|
}).reduce(function(n4, t4) {
|
|
48466
48548
|
return dn(dn({}, n4), {}, _({}, t4, e3[t4]));
|
|
@@ -48561,7 +48643,7 @@ void main(void)
|
|
|
48561
48643
|
return n3.every(function(e4) {
|
|
48562
48644
|
return "function" == typeof e4;
|
|
48563
48645
|
});
|
|
48564
|
-
}(a2) && a2.call(e2, u2), React.createElement(e2, Je({}, s2, { filters: o2.current }), l2);
|
|
48646
|
+
}(a2) && a2.call(e2, u2), React$2.createElement(e2, Je({}, s2, { filters: o2.current }), l2);
|
|
48565
48647
|
};
|
|
48566
48648
|
return r2.displayName = "FilterWrapper", r2.propTypes = { children: k$1.node, apply: k$1.func }, r2;
|
|
48567
48649
|
}, _n = ve.BitmapText, Cn = ve.Container, zn = ve.Graphics, Nn = ve.NineSlicePlane, Tn = ve.ParticleContainer, In = ve.Sprite, Rn = ve.AnimatedSprite, On = ve.Text, jn = ve.TilingSprite, Ln = ve.SimpleMesh, Dn = ve.SimpleRope;
|
|
@@ -48797,10 +48879,10 @@ void main(void)
|
|
|
48797
48879
|
function generateBlurFragSource(kernelSize) {
|
|
48798
48880
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
48799
48881
|
let fragSource = fragTemplate, blurLoop = "";
|
|
48800
|
-
const
|
|
48882
|
+
const template2 = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
48801
48883
|
let value;
|
|
48802
48884
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
48803
|
-
let blur =
|
|
48885
|
+
let blur = template2.replace("%index%", i2.toString());
|
|
48804
48886
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
48805
48887
|
`;
|
|
48806
48888
|
}
|
|
@@ -48839,10 +48921,10 @@ void main(void)
|
|
|
48839
48921
|
}`;
|
|
48840
48922
|
function generateBlurVertSource(kernelSize, x2) {
|
|
48841
48923
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
48842
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
48843
|
-
x2 ?
|
|
48924
|
+
let vertSource = vertTemplate, blurLoop = "", template2;
|
|
48925
|
+
x2 ? template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
48844
48926
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
48845
|
-
let blur =
|
|
48927
|
+
let blur = template2.replace("%index%", i2.toString());
|
|
48846
48928
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
48847
48929
|
`;
|
|
48848
48930
|
}
|
|
@@ -52777,7 +52859,7 @@ void main()
|
|
|
52777
52859
|
return false;
|
|
52778
52860
|
}
|
|
52779
52861
|
function drawText(_helper, item) {
|
|
52780
|
-
return item instanceof Text ? (item.updateText(true), true) : false;
|
|
52862
|
+
return item instanceof Text$2 ? (item.updateText(true), true) : false;
|
|
52781
52863
|
}
|
|
52782
52864
|
function calculateTextStyle(_helper, item) {
|
|
52783
52865
|
if (item instanceof TextStyle) {
|
|
@@ -52787,7 +52869,7 @@ void main()
|
|
|
52787
52869
|
return false;
|
|
52788
52870
|
}
|
|
52789
52871
|
function findText(item, queue) {
|
|
52790
|
-
if (item instanceof Text) {
|
|
52872
|
+
if (item instanceof Text$2) {
|
|
52791
52873
|
queue.includes(item.style) || queue.push(item.style), queue.includes(item) || queue.push(item);
|
|
52792
52874
|
const texture = item._texture.baseTexture;
|
|
52793
52875
|
return queue.includes(texture) || queue.push(texture), true;
|
|
@@ -52835,7 +52917,7 @@ void main()
|
|
|
52835
52917
|
const item = this.queue[0];
|
|
52836
52918
|
let uploaded = false;
|
|
52837
52919
|
if (item && !item._destroyed) {
|
|
52838
|
-
for (let i2 = 0,
|
|
52920
|
+
for (let i2 = 0, len2 = this.uploadHooks.length; i2 < len2; i2++)
|
|
52839
52921
|
if (this.uploadHooks[i2](this.uploadHookHelper, item)) {
|
|
52840
52922
|
this.queue.shift(), uploaded = true;
|
|
52841
52923
|
break;
|
|
@@ -52849,7 +52931,7 @@ void main()
|
|
|
52849
52931
|
this.ticking = false;
|
|
52850
52932
|
const completes = this.completes.slice(0);
|
|
52851
52933
|
this.completes.length = 0;
|
|
52852
|
-
for (let i2 = 0,
|
|
52934
|
+
for (let i2 = 0, len2 = completes.length; i2 < len2; i2++)
|
|
52853
52935
|
completes[i2]();
|
|
52854
52936
|
}
|
|
52855
52937
|
}
|
|
@@ -52878,7 +52960,7 @@ void main()
|
|
|
52878
52960
|
* @returns Instance of plugin for chaining.
|
|
52879
52961
|
*/
|
|
52880
52962
|
add(item) {
|
|
52881
|
-
for (let i2 = 0,
|
|
52963
|
+
for (let i2 = 0, len2 = this.addHooks.length; i2 < len2 && !this.addHooks[i2](item, this.queue); i2++)
|
|
52882
52964
|
;
|
|
52883
52965
|
if (item instanceof Container)
|
|
52884
52966
|
for (let i2 = item.children.length - 1; i2 >= 0; i2--)
|
|
@@ -52983,7 +53065,7 @@ void main()
|
|
|
52983
53065
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
52984
53066
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
52985
53067
|
if (rect) {
|
|
52986
|
-
let frame = null,
|
|
53068
|
+
let frame = null, trim2 = null;
|
|
52987
53069
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
52988
53070
|
0,
|
|
52989
53071
|
0,
|
|
@@ -53000,7 +53082,7 @@ void main()
|
|
|
53000
53082
|
Math.floor(rect.y) / this.resolution,
|
|
53001
53083
|
Math.floor(rect.w) / this.resolution,
|
|
53002
53084
|
Math.floor(rect.h) / this.resolution
|
|
53003
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
53085
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim2 = new Rectangle(
|
|
53004
53086
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
53005
53087
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
53006
53088
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -53009,7 +53091,7 @@ void main()
|
|
|
53009
53091
|
this.baseTexture,
|
|
53010
53092
|
frame,
|
|
53011
53093
|
orig,
|
|
53012
|
-
|
|
53094
|
+
trim2,
|
|
53013
53095
|
data.rotated ? 2 : 0,
|
|
53014
53096
|
data.anchor,
|
|
53015
53097
|
data.borders
|
|
@@ -54641,7 +54723,7 @@ void main()
|
|
|
54641
54723
|
var $node = Symbol.for("Animated:node");
|
|
54642
54724
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
54643
54725
|
var getAnimated = (owner) => owner && owner[$node];
|
|
54644
|
-
var setAnimated = (owner,
|
|
54726
|
+
var setAnimated = (owner, node2) => defineHidden(owner, $node, node2);
|
|
54645
54727
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
54646
54728
|
var Animated = class {
|
|
54647
54729
|
constructor() {
|
|
@@ -54768,7 +54850,7 @@ void main()
|
|
|
54768
54850
|
}
|
|
54769
54851
|
reset() {
|
|
54770
54852
|
if (this.payload) {
|
|
54771
|
-
each(this.payload, (
|
|
54853
|
+
each(this.payload, (node2) => node2.reset());
|
|
54772
54854
|
}
|
|
54773
54855
|
}
|
|
54774
54856
|
/** Create a payload set. */
|
|
@@ -54786,7 +54868,7 @@ void main()
|
|
|
54786
54868
|
}
|
|
54787
54869
|
const payload = getPayload(source);
|
|
54788
54870
|
if (payload) {
|
|
54789
|
-
each(payload, (
|
|
54871
|
+
each(payload, (node2) => this.add(node2));
|
|
54790
54872
|
}
|
|
54791
54873
|
}
|
|
54792
54874
|
};
|
|
@@ -54799,12 +54881,12 @@ void main()
|
|
|
54799
54881
|
return new AnimatedArray(source);
|
|
54800
54882
|
}
|
|
54801
54883
|
getValue() {
|
|
54802
|
-
return this.source.map((
|
|
54884
|
+
return this.source.map((node2) => node2.getValue());
|
|
54803
54885
|
}
|
|
54804
54886
|
setValue(source) {
|
|
54805
54887
|
const payload = this.getPayload();
|
|
54806
54888
|
if (source.length == payload.length) {
|
|
54807
|
-
return payload.map((
|
|
54889
|
+
return payload.map((node2, i2) => node2.setValue(source[i2])).some(Boolean);
|
|
54808
54890
|
}
|
|
54809
54891
|
super.setValue(source.map(makeAnimated));
|
|
54810
54892
|
return true;
|
|
@@ -55339,8 +55421,8 @@ void main()
|
|
|
55339
55421
|
}
|
|
55340
55422
|
/** Get the current value */
|
|
55341
55423
|
get() {
|
|
55342
|
-
const
|
|
55343
|
-
return
|
|
55424
|
+
const node2 = getAnimated(this);
|
|
55425
|
+
return node2 && node2.getValue();
|
|
55344
55426
|
}
|
|
55345
55427
|
/** Create a spring that maps our value to another value */
|
|
55346
55428
|
to(...args) {
|
|
@@ -55430,8 +55512,8 @@ void main()
|
|
|
55430
55512
|
return getFluidValue(this.animation.to);
|
|
55431
55513
|
}
|
|
55432
55514
|
get velocity() {
|
|
55433
|
-
const
|
|
55434
|
-
return
|
|
55515
|
+
const node2 = getAnimated(this);
|
|
55516
|
+
return node2 instanceof AnimatedValue ? node2.lastVelocity || 0 : node2.getPayload().map((node22) => node22.lastVelocity || 0);
|
|
55435
55517
|
}
|
|
55436
55518
|
/**
|
|
55437
55519
|
* When true, this value has been animated at least once.
|
|
@@ -55470,24 +55552,24 @@ void main()
|
|
|
55470
55552
|
if (!payload && hasFluidValue(anim.to)) {
|
|
55471
55553
|
toValues = toArray(getFluidValue(anim.to));
|
|
55472
55554
|
}
|
|
55473
|
-
anim.values.forEach((
|
|
55474
|
-
if (
|
|
55555
|
+
anim.values.forEach((node22, i2) => {
|
|
55556
|
+
if (node22.done)
|
|
55475
55557
|
return;
|
|
55476
55558
|
const to2 = (
|
|
55477
55559
|
// Animated strings always go from 0 to 1.
|
|
55478
|
-
|
|
55560
|
+
node22.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
55479
55561
|
);
|
|
55480
55562
|
let finished = anim.immediate;
|
|
55481
55563
|
let position = to2;
|
|
55482
55564
|
if (!finished) {
|
|
55483
|
-
position =
|
|
55565
|
+
position = node22.lastPosition;
|
|
55484
55566
|
if (config2.tension <= 0) {
|
|
55485
|
-
|
|
55567
|
+
node22.done = true;
|
|
55486
55568
|
return;
|
|
55487
55569
|
}
|
|
55488
|
-
let elapsed =
|
|
55570
|
+
let elapsed = node22.elapsedTime += dt;
|
|
55489
55571
|
const from = anim.fromValues[i2];
|
|
55490
|
-
const v0 =
|
|
55572
|
+
const v0 = node22.v0 != null ? node22.v0 : node22.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
55491
55573
|
let velocity;
|
|
55492
55574
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
55493
55575
|
if (!is.und(config2.duration)) {
|
|
@@ -55495,30 +55577,30 @@ void main()
|
|
|
55495
55577
|
if (config2.duration > 0) {
|
|
55496
55578
|
if (this._memoizedDuration !== config2.duration) {
|
|
55497
55579
|
this._memoizedDuration = config2.duration;
|
|
55498
|
-
if (
|
|
55499
|
-
|
|
55500
|
-
elapsed =
|
|
55580
|
+
if (node22.durationProgress > 0) {
|
|
55581
|
+
node22.elapsedTime = config2.duration * node22.durationProgress;
|
|
55582
|
+
elapsed = node22.elapsedTime += dt;
|
|
55501
55583
|
}
|
|
55502
55584
|
}
|
|
55503
55585
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
55504
55586
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
55505
|
-
|
|
55587
|
+
node22.durationProgress = p2;
|
|
55506
55588
|
}
|
|
55507
55589
|
position = from + config2.easing(p2) * (to2 - from);
|
|
55508
|
-
velocity = (position -
|
|
55590
|
+
velocity = (position - node22.lastPosition) / dt;
|
|
55509
55591
|
finished = p2 == 1;
|
|
55510
55592
|
} else if (config2.decay) {
|
|
55511
55593
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
55512
55594
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
55513
55595
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
55514
|
-
finished = Math.abs(
|
|
55596
|
+
finished = Math.abs(node22.lastPosition - position) <= precision;
|
|
55515
55597
|
velocity = v0 * e2;
|
|
55516
55598
|
} else {
|
|
55517
|
-
velocity =
|
|
55599
|
+
velocity = node22.lastVelocity == null ? v0 : node22.lastVelocity;
|
|
55518
55600
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
55519
55601
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
55520
55602
|
const canBounce = !is.und(bounceFactor);
|
|
55521
|
-
const isGrowing = from == to2 ?
|
|
55603
|
+
const isGrowing = from == to2 ? node22.v0 > 0 : from < to2;
|
|
55522
55604
|
let isMoving;
|
|
55523
55605
|
let isBouncing = false;
|
|
55524
55606
|
const step = 1;
|
|
@@ -55545,7 +55627,7 @@ void main()
|
|
|
55545
55627
|
position = position + velocity * step;
|
|
55546
55628
|
}
|
|
55547
55629
|
}
|
|
55548
|
-
|
|
55630
|
+
node22.lastVelocity = velocity;
|
|
55549
55631
|
if (Number.isNaN(position)) {
|
|
55550
55632
|
console.warn(`Got NaN while animating:`, this);
|
|
55551
55633
|
finished = true;
|
|
@@ -55555,20 +55637,20 @@ void main()
|
|
|
55555
55637
|
finished = false;
|
|
55556
55638
|
}
|
|
55557
55639
|
if (finished) {
|
|
55558
|
-
|
|
55640
|
+
node22.done = true;
|
|
55559
55641
|
} else {
|
|
55560
55642
|
idle = false;
|
|
55561
55643
|
}
|
|
55562
|
-
if (
|
|
55644
|
+
if (node22.setValue(position, config2.round)) {
|
|
55563
55645
|
changed = true;
|
|
55564
55646
|
}
|
|
55565
55647
|
});
|
|
55566
|
-
const
|
|
55567
|
-
const currVal =
|
|
55648
|
+
const node2 = getAnimated(this);
|
|
55649
|
+
const currVal = node2.getValue();
|
|
55568
55650
|
if (idle) {
|
|
55569
55651
|
const finalVal = getFluidValue(anim.to);
|
|
55570
55652
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
55571
|
-
|
|
55653
|
+
node2.setValue(finalVal);
|
|
55572
55654
|
this._onChange(finalVal);
|
|
55573
55655
|
} else if (changed && config2.decay) {
|
|
55574
55656
|
this._onChange(currVal);
|
|
@@ -55798,8 +55880,8 @@ void main()
|
|
|
55798
55880
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
55799
55881
|
);
|
|
55800
55882
|
}
|
|
55801
|
-
let
|
|
55802
|
-
if (!
|
|
55883
|
+
let node2 = getAnimated(this);
|
|
55884
|
+
if (!node2 || is.und(to2)) {
|
|
55803
55885
|
return resolve(getFinishedResult(this, true));
|
|
55804
55886
|
}
|
|
55805
55887
|
const reset = (
|
|
@@ -55814,16 +55896,16 @@ void main()
|
|
|
55814
55896
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
55815
55897
|
if (hasToChanged) {
|
|
55816
55898
|
const nodeType = getAnimatedType(to2);
|
|
55817
|
-
if (nodeType !==
|
|
55899
|
+
if (nodeType !== node2.constructor) {
|
|
55818
55900
|
if (immediate) {
|
|
55819
|
-
|
|
55901
|
+
node2 = this._set(goal);
|
|
55820
55902
|
} else
|
|
55821
55903
|
throw Error(
|
|
55822
|
-
`Cannot animate between ${
|
|
55904
|
+
`Cannot animate between ${node2.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
55823
55905
|
);
|
|
55824
55906
|
}
|
|
55825
55907
|
}
|
|
55826
|
-
const goalType =
|
|
55908
|
+
const goalType = node2.constructor;
|
|
55827
55909
|
let started = hasFluidValue(to2);
|
|
55828
55910
|
let finished = false;
|
|
55829
55911
|
if (!started) {
|
|
@@ -55845,7 +55927,7 @@ void main()
|
|
|
55845
55927
|
}
|
|
55846
55928
|
if (!hasAsyncTo) {
|
|
55847
55929
|
if (started || hasFluidValue(prevTo)) {
|
|
55848
|
-
anim.values =
|
|
55930
|
+
anim.values = node2.getPayload();
|
|
55849
55931
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
55850
55932
|
}
|
|
55851
55933
|
if (anim.immediate != immediate) {
|
|
@@ -55967,7 +56049,7 @@ void main()
|
|
|
55967
56049
|
const anim = this.animation;
|
|
55968
56050
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
55969
56051
|
if (!anim.immediate) {
|
|
55970
|
-
anim.fromValues = anim.values.map((
|
|
56052
|
+
anim.fromValues = anim.values.map((node2) => node2.lastPosition);
|
|
55971
56053
|
}
|
|
55972
56054
|
if (!isAnimating(this)) {
|
|
55973
56055
|
setActiveBit(this, true);
|
|
@@ -55992,8 +56074,8 @@ void main()
|
|
|
55992
56074
|
if (isAnimating(this)) {
|
|
55993
56075
|
setActiveBit(this, false);
|
|
55994
56076
|
const anim = this.animation;
|
|
55995
|
-
each(anim.values, (
|
|
55996
|
-
|
|
56077
|
+
each(anim.values, (node2) => {
|
|
56078
|
+
node2.done = true;
|
|
55997
56079
|
});
|
|
55998
56080
|
if (anim.toValues) {
|
|
55999
56081
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -56866,8 +56948,8 @@ void main()
|
|
|
56866
56948
|
_start() {
|
|
56867
56949
|
if (this.idle && !checkIdle(this._active)) {
|
|
56868
56950
|
this.idle = false;
|
|
56869
|
-
each(getPayload(this), (
|
|
56870
|
-
|
|
56951
|
+
each(getPayload(this), (node2) => {
|
|
56952
|
+
node2.done = false;
|
|
56871
56953
|
});
|
|
56872
56954
|
if (globals_exports.skipAnimation) {
|
|
56873
56955
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -56932,8 +57014,8 @@ void main()
|
|
|
56932
57014
|
function becomeIdle(self2) {
|
|
56933
57015
|
if (!self2.idle) {
|
|
56934
57016
|
self2.idle = true;
|
|
56935
|
-
each(getPayload(self2), (
|
|
56936
|
-
|
|
57017
|
+
each(getPayload(self2), (node2) => {
|
|
57018
|
+
node2.done = true;
|
|
56937
57019
|
});
|
|
56938
57020
|
callFluidObservers(self2, {
|
|
56939
57021
|
type: "idle",
|
|
@@ -57531,9 +57613,9 @@ void main()
|
|
|
57531
57613
|
}
|
|
57532
57614
|
};
|
|
57533
57615
|
function getDocument() {
|
|
57534
|
-
const
|
|
57535
|
-
extend$2(
|
|
57536
|
-
return
|
|
57616
|
+
const doc2 = typeof document !== "undefined" ? document : {};
|
|
57617
|
+
extend$2(doc2, ssrDocument);
|
|
57618
|
+
return doc2;
|
|
57537
57619
|
}
|
|
57538
57620
|
const ssrWindow = {
|
|
57539
57621
|
document: ssrDocument,
|
|
@@ -57681,11 +57763,11 @@ void main()
|
|
|
57681
57763
|
function isObject$1(o2) {
|
|
57682
57764
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
57683
57765
|
}
|
|
57684
|
-
function isNode(
|
|
57766
|
+
function isNode(node2) {
|
|
57685
57767
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
57686
|
-
return
|
|
57768
|
+
return node2 instanceof HTMLElement;
|
|
57687
57769
|
}
|
|
57688
|
-
return
|
|
57770
|
+
return node2 && (node2.nodeType === 1 || node2.nodeType === 11);
|
|
57689
57771
|
}
|
|
57690
57772
|
function extend$1() {
|
|
57691
57773
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -57694,7 +57776,7 @@ void main()
|
|
|
57694
57776
|
const nextSource = i2 < 0 || arguments.length <= i2 ? void 0 : arguments[i2];
|
|
57695
57777
|
if (nextSource !== void 0 && nextSource !== null && !isNode(nextSource)) {
|
|
57696
57778
|
const keysArray = Object.keys(Object(nextSource)).filter((key) => noExtend.indexOf(key) < 0);
|
|
57697
|
-
for (let nextIndex = 0,
|
|
57779
|
+
for (let nextIndex = 0, len2 = keysArray.length; nextIndex < len2; nextIndex += 1) {
|
|
57698
57780
|
const nextKey2 = keysArray[nextIndex];
|
|
57699
57781
|
const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey2);
|
|
57700
57782
|
if (desc !== void 0 && desc.enumerable) {
|
|
@@ -58713,8 +58795,8 @@ void main()
|
|
|
58713
58795
|
"marginRight": "marginBottom"
|
|
58714
58796
|
}[property];
|
|
58715
58797
|
}
|
|
58716
|
-
function getDirectionPropertyValue(
|
|
58717
|
-
return parseFloat(
|
|
58798
|
+
function getDirectionPropertyValue(node2, label) {
|
|
58799
|
+
return parseFloat(node2.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
58718
58800
|
}
|
|
58719
58801
|
const params = swiper.params;
|
|
58720
58802
|
const {
|
|
@@ -59224,10 +59306,10 @@ void main()
|
|
|
59224
59306
|
if (!swiper || swiper.destroyed || !swiper.params)
|
|
59225
59307
|
return;
|
|
59226
59308
|
let amount = swiper.params.lazyPreloadPrevNext;
|
|
59227
|
-
const
|
|
59228
|
-
if (!
|
|
59309
|
+
const len2 = swiper.slides.length;
|
|
59310
|
+
if (!len2 || !amount || amount < 0)
|
|
59229
59311
|
return;
|
|
59230
|
-
amount = Math.min(amount,
|
|
59312
|
+
amount = Math.min(amount, len2);
|
|
59231
59313
|
const slidesPerView = swiper.params.slidesPerView === "auto" ? swiper.slidesPerViewDynamic() : Math.ceil(swiper.params.slidesPerView);
|
|
59232
59314
|
const activeIndex = swiper.activeIndex;
|
|
59233
59315
|
if (swiper.params.grid && swiper.params.grid.rows > 1) {
|
|
@@ -59247,12 +59329,12 @@ void main()
|
|
|
59247
59329
|
const slideIndexLastInView = activeIndex + slidesPerView - 1;
|
|
59248
59330
|
if (swiper.params.rewind || swiper.params.loop) {
|
|
59249
59331
|
for (let i2 = activeIndex - amount; i2 <= slideIndexLastInView + amount; i2 += 1) {
|
|
59250
|
-
const realIndex = (i2 %
|
|
59332
|
+
const realIndex = (i2 % len2 + len2) % len2;
|
|
59251
59333
|
if (realIndex < activeIndex || realIndex > slideIndexLastInView)
|
|
59252
59334
|
unlazy(swiper, realIndex);
|
|
59253
59335
|
}
|
|
59254
59336
|
} else {
|
|
59255
|
-
for (let i2 = Math.max(activeIndex - amount, 0); i2 <= Math.min(slideIndexLastInView + amount,
|
|
59337
|
+
for (let i2 = Math.max(activeIndex - amount, 0); i2 <= Math.min(slideIndexLastInView + amount, len2 - 1); i2 += 1) {
|
|
59256
59338
|
if (i2 !== activeIndex && (i2 > slideIndexLastInView || i2 < activeIndex)) {
|
|
59257
59339
|
unlazy(swiper, i2);
|
|
59258
59340
|
}
|
|
@@ -62314,7 +62396,7 @@ void main()
|
|
|
62314
62396
|
}
|
|
62315
62397
|
function processChildren(c6) {
|
|
62316
62398
|
const slides = [];
|
|
62317
|
-
React.Children.toArray(c6).forEach((child) => {
|
|
62399
|
+
React$2.Children.toArray(c6).forEach((child) => {
|
|
62318
62400
|
if (isChildSwiperSlide(child)) {
|
|
62319
62401
|
slides.push(child);
|
|
62320
62402
|
} else if (child.props && child.props.children) {
|
|
@@ -62331,7 +62413,7 @@ void main()
|
|
|
62331
62413
|
"wrapper-start": [],
|
|
62332
62414
|
"wrapper-end": []
|
|
62333
62415
|
};
|
|
62334
|
-
React.Children.toArray(c6).forEach((child) => {
|
|
62416
|
+
React$2.Children.toArray(c6).forEach((child) => {
|
|
62335
62417
|
if (isChildSwiperSlide(child)) {
|
|
62336
62418
|
slides.push(child);
|
|
62337
62419
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -62382,7 +62464,7 @@ void main()
|
|
|
62382
62464
|
}
|
|
62383
62465
|
}
|
|
62384
62466
|
return slidesToRender.map((child, index2) => {
|
|
62385
|
-
return /* @__PURE__ */ React.cloneElement(child, {
|
|
62467
|
+
return /* @__PURE__ */ React$2.cloneElement(child, {
|
|
62386
62468
|
swiper,
|
|
62387
62469
|
style,
|
|
62388
62470
|
key: `slide-${index2}`
|
|
@@ -62542,29 +62624,29 @@ void main()
|
|
|
62542
62624
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
62543
62625
|
}
|
|
62544
62626
|
return slides.map((child, index2) => {
|
|
62545
|
-
return /* @__PURE__ */ React.cloneElement(child, {
|
|
62627
|
+
return /* @__PURE__ */ React$2.cloneElement(child, {
|
|
62546
62628
|
swiper: swiperRef.current,
|
|
62547
62629
|
swiperSlideIndex: index2
|
|
62548
62630
|
});
|
|
62549
62631
|
});
|
|
62550
62632
|
}
|
|
62551
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
62633
|
+
return /* @__PURE__ */ React$2.createElement(Tag, _extends({
|
|
62552
62634
|
ref: swiperElRef,
|
|
62553
62635
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
62554
|
-
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
62636
|
+
}, restProps), /* @__PURE__ */ React$2.createElement(SwiperContext.Provider, {
|
|
62555
62637
|
value: swiperRef.current
|
|
62556
|
-
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
62638
|
+
}, slots["container-start"], /* @__PURE__ */ React$2.createElement(WrapperTag, {
|
|
62557
62639
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
62558
|
-
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
62640
|
+
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", {
|
|
62559
62641
|
ref: prevElRef,
|
|
62560
62642
|
className: "swiper-button-prev"
|
|
62561
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
62643
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
62562
62644
|
ref: nextElRef,
|
|
62563
62645
|
className: "swiper-button-next"
|
|
62564
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
62646
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
|
|
62565
62647
|
ref: scrollbarElRef,
|
|
62566
62648
|
className: "swiper-scrollbar"
|
|
62567
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
62649
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
|
|
62568
62650
|
ref: paginationElRef,
|
|
62569
62651
|
className: "swiper-pagination"
|
|
62570
62652
|
}), slots["container-end"]));
|
|
@@ -62630,25 +62712,2329 @@ void main()
|
|
|
62630
62712
|
const onLoad2 = () => {
|
|
62631
62713
|
setLazyLoaded(true);
|
|
62632
62714
|
};
|
|
62633
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
62715
|
+
return /* @__PURE__ */ React$2.createElement(Tag, _extends({
|
|
62634
62716
|
ref: slideElRef,
|
|
62635
62717
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
62636
62718
|
"data-swiper-slide-index": virtualIndex,
|
|
62637
62719
|
onLoad: onLoad2
|
|
62638
|
-
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
62720
|
+
}, rest), zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
|
|
62639
62721
|
value: slideData
|
|
62640
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
62722
|
+
}, /* @__PURE__ */ React$2.createElement("div", {
|
|
62641
62723
|
className: "swiper-zoom-container",
|
|
62642
62724
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
62643
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
62725
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
|
|
62644
62726
|
className: "swiper-lazy-preloader"
|
|
62645
|
-
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
62727
|
+
}))), !zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
|
|
62646
62728
|
value: slideData
|
|
62647
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
62729
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
|
|
62648
62730
|
className: "swiper-lazy-preloader"
|
|
62649
62731
|
})));
|
|
62650
62732
|
});
|
|
62651
62733
|
SwiperSlide.displayName = "SwiperSlide";
|
|
62734
|
+
var lib$2 = {};
|
|
62735
|
+
var lib$1 = {};
|
|
62736
|
+
(function(exports2) {
|
|
62737
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62738
|
+
exports2.Doctype = exports2.CDATA = exports2.Tag = exports2.Style = exports2.Script = exports2.Comment = exports2.Directive = exports2.Text = exports2.Root = exports2.isTag = exports2.ElementType = void 0;
|
|
62739
|
+
var ElementType;
|
|
62740
|
+
(function(ElementType2) {
|
|
62741
|
+
ElementType2["Root"] = "root";
|
|
62742
|
+
ElementType2["Text"] = "text";
|
|
62743
|
+
ElementType2["Directive"] = "directive";
|
|
62744
|
+
ElementType2["Comment"] = "comment";
|
|
62745
|
+
ElementType2["Script"] = "script";
|
|
62746
|
+
ElementType2["Style"] = "style";
|
|
62747
|
+
ElementType2["Tag"] = "tag";
|
|
62748
|
+
ElementType2["CDATA"] = "cdata";
|
|
62749
|
+
ElementType2["Doctype"] = "doctype";
|
|
62750
|
+
})(ElementType = exports2.ElementType || (exports2.ElementType = {}));
|
|
62751
|
+
function isTag2(elem) {
|
|
62752
|
+
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
62753
|
+
}
|
|
62754
|
+
exports2.isTag = isTag2;
|
|
62755
|
+
exports2.Root = ElementType.Root;
|
|
62756
|
+
exports2.Text = ElementType.Text;
|
|
62757
|
+
exports2.Directive = ElementType.Directive;
|
|
62758
|
+
exports2.Comment = ElementType.Comment;
|
|
62759
|
+
exports2.Script = ElementType.Script;
|
|
62760
|
+
exports2.Style = ElementType.Style;
|
|
62761
|
+
exports2.Tag = ElementType.Tag;
|
|
62762
|
+
exports2.CDATA = ElementType.CDATA;
|
|
62763
|
+
exports2.Doctype = ElementType.Doctype;
|
|
62764
|
+
})(lib$1);
|
|
62765
|
+
var node = {};
|
|
62766
|
+
var __extends = commonjsGlobal$1 && commonjsGlobal$1.__extends || /* @__PURE__ */ function() {
|
|
62767
|
+
var extendStatics = function(d2, b2) {
|
|
62768
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
62769
|
+
d3.__proto__ = b3;
|
|
62770
|
+
} || function(d3, b3) {
|
|
62771
|
+
for (var p2 in b3)
|
|
62772
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
62773
|
+
d3[p2] = b3[p2];
|
|
62774
|
+
};
|
|
62775
|
+
return extendStatics(d2, b2);
|
|
62776
|
+
};
|
|
62777
|
+
return function(d2, b2) {
|
|
62778
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
62779
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
62780
|
+
extendStatics(d2, b2);
|
|
62781
|
+
function __() {
|
|
62782
|
+
this.constructor = d2;
|
|
62783
|
+
}
|
|
62784
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
62785
|
+
};
|
|
62786
|
+
}();
|
|
62787
|
+
var __assign = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
62788
|
+
__assign = Object.assign || function(t2) {
|
|
62789
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
62790
|
+
s2 = arguments[i2];
|
|
62791
|
+
for (var p2 in s2)
|
|
62792
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
62793
|
+
t2[p2] = s2[p2];
|
|
62794
|
+
}
|
|
62795
|
+
return t2;
|
|
62796
|
+
};
|
|
62797
|
+
return __assign.apply(this, arguments);
|
|
62798
|
+
};
|
|
62799
|
+
Object.defineProperty(node, "__esModule", { value: true });
|
|
62800
|
+
node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.CDATA = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
|
|
62801
|
+
var domelementtype_1 = lib$1;
|
|
62802
|
+
var Node$1 = (
|
|
62803
|
+
/** @class */
|
|
62804
|
+
function() {
|
|
62805
|
+
function Node2() {
|
|
62806
|
+
this.parent = null;
|
|
62807
|
+
this.prev = null;
|
|
62808
|
+
this.next = null;
|
|
62809
|
+
this.startIndex = null;
|
|
62810
|
+
this.endIndex = null;
|
|
62811
|
+
}
|
|
62812
|
+
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
62813
|
+
// Read-write aliases for properties
|
|
62814
|
+
/**
|
|
62815
|
+
* Same as {@link parent}.
|
|
62816
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
62817
|
+
*/
|
|
62818
|
+
get: function() {
|
|
62819
|
+
return this.parent;
|
|
62820
|
+
},
|
|
62821
|
+
set: function(parent) {
|
|
62822
|
+
this.parent = parent;
|
|
62823
|
+
},
|
|
62824
|
+
enumerable: false,
|
|
62825
|
+
configurable: true
|
|
62826
|
+
});
|
|
62827
|
+
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
62828
|
+
/**
|
|
62829
|
+
* Same as {@link prev}.
|
|
62830
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
62831
|
+
*/
|
|
62832
|
+
get: function() {
|
|
62833
|
+
return this.prev;
|
|
62834
|
+
},
|
|
62835
|
+
set: function(prev) {
|
|
62836
|
+
this.prev = prev;
|
|
62837
|
+
},
|
|
62838
|
+
enumerable: false,
|
|
62839
|
+
configurable: true
|
|
62840
|
+
});
|
|
62841
|
+
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
62842
|
+
/**
|
|
62843
|
+
* Same as {@link next}.
|
|
62844
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
62845
|
+
*/
|
|
62846
|
+
get: function() {
|
|
62847
|
+
return this.next;
|
|
62848
|
+
},
|
|
62849
|
+
set: function(next) {
|
|
62850
|
+
this.next = next;
|
|
62851
|
+
},
|
|
62852
|
+
enumerable: false,
|
|
62853
|
+
configurable: true
|
|
62854
|
+
});
|
|
62855
|
+
Node2.prototype.cloneNode = function(recursive) {
|
|
62856
|
+
if (recursive === void 0) {
|
|
62857
|
+
recursive = false;
|
|
62858
|
+
}
|
|
62859
|
+
return cloneNode(this, recursive);
|
|
62860
|
+
};
|
|
62861
|
+
return Node2;
|
|
62862
|
+
}()
|
|
62863
|
+
);
|
|
62864
|
+
node.Node = Node$1;
|
|
62865
|
+
var DataNode = (
|
|
62866
|
+
/** @class */
|
|
62867
|
+
function(_super) {
|
|
62868
|
+
__extends(DataNode2, _super);
|
|
62869
|
+
function DataNode2(data) {
|
|
62870
|
+
var _this = _super.call(this) || this;
|
|
62871
|
+
_this.data = data;
|
|
62872
|
+
return _this;
|
|
62873
|
+
}
|
|
62874
|
+
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
62875
|
+
/**
|
|
62876
|
+
* Same as {@link data}.
|
|
62877
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
62878
|
+
*/
|
|
62879
|
+
get: function() {
|
|
62880
|
+
return this.data;
|
|
62881
|
+
},
|
|
62882
|
+
set: function(data) {
|
|
62883
|
+
this.data = data;
|
|
62884
|
+
},
|
|
62885
|
+
enumerable: false,
|
|
62886
|
+
configurable: true
|
|
62887
|
+
});
|
|
62888
|
+
return DataNode2;
|
|
62889
|
+
}(Node$1)
|
|
62890
|
+
);
|
|
62891
|
+
node.DataNode = DataNode;
|
|
62892
|
+
var Text$1 = (
|
|
62893
|
+
/** @class */
|
|
62894
|
+
function(_super) {
|
|
62895
|
+
__extends(Text2, _super);
|
|
62896
|
+
function Text2() {
|
|
62897
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62898
|
+
_this.type = domelementtype_1.ElementType.Text;
|
|
62899
|
+
return _this;
|
|
62900
|
+
}
|
|
62901
|
+
Object.defineProperty(Text2.prototype, "nodeType", {
|
|
62902
|
+
get: function() {
|
|
62903
|
+
return 3;
|
|
62904
|
+
},
|
|
62905
|
+
enumerable: false,
|
|
62906
|
+
configurable: true
|
|
62907
|
+
});
|
|
62908
|
+
return Text2;
|
|
62909
|
+
}(DataNode)
|
|
62910
|
+
);
|
|
62911
|
+
node.Text = Text$1;
|
|
62912
|
+
var Comment$1 = (
|
|
62913
|
+
/** @class */
|
|
62914
|
+
function(_super) {
|
|
62915
|
+
__extends(Comment2, _super);
|
|
62916
|
+
function Comment2() {
|
|
62917
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62918
|
+
_this.type = domelementtype_1.ElementType.Comment;
|
|
62919
|
+
return _this;
|
|
62920
|
+
}
|
|
62921
|
+
Object.defineProperty(Comment2.prototype, "nodeType", {
|
|
62922
|
+
get: function() {
|
|
62923
|
+
return 8;
|
|
62924
|
+
},
|
|
62925
|
+
enumerable: false,
|
|
62926
|
+
configurable: true
|
|
62927
|
+
});
|
|
62928
|
+
return Comment2;
|
|
62929
|
+
}(DataNode)
|
|
62930
|
+
);
|
|
62931
|
+
node.Comment = Comment$1;
|
|
62932
|
+
var ProcessingInstruction$1 = (
|
|
62933
|
+
/** @class */
|
|
62934
|
+
function(_super) {
|
|
62935
|
+
__extends(ProcessingInstruction2, _super);
|
|
62936
|
+
function ProcessingInstruction2(name, data) {
|
|
62937
|
+
var _this = _super.call(this, data) || this;
|
|
62938
|
+
_this.name = name;
|
|
62939
|
+
_this.type = domelementtype_1.ElementType.Directive;
|
|
62940
|
+
return _this;
|
|
62941
|
+
}
|
|
62942
|
+
Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
|
|
62943
|
+
get: function() {
|
|
62944
|
+
return 1;
|
|
62945
|
+
},
|
|
62946
|
+
enumerable: false,
|
|
62947
|
+
configurable: true
|
|
62948
|
+
});
|
|
62949
|
+
return ProcessingInstruction2;
|
|
62950
|
+
}(DataNode)
|
|
62951
|
+
);
|
|
62952
|
+
node.ProcessingInstruction = ProcessingInstruction$1;
|
|
62953
|
+
var NodeWithChildren = (
|
|
62954
|
+
/** @class */
|
|
62955
|
+
function(_super) {
|
|
62956
|
+
__extends(NodeWithChildren2, _super);
|
|
62957
|
+
function NodeWithChildren2(children) {
|
|
62958
|
+
var _this = _super.call(this) || this;
|
|
62959
|
+
_this.children = children;
|
|
62960
|
+
return _this;
|
|
62961
|
+
}
|
|
62962
|
+
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
62963
|
+
// Aliases
|
|
62964
|
+
/** First child of the node. */
|
|
62965
|
+
get: function() {
|
|
62966
|
+
var _a2;
|
|
62967
|
+
return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
|
|
62968
|
+
},
|
|
62969
|
+
enumerable: false,
|
|
62970
|
+
configurable: true
|
|
62971
|
+
});
|
|
62972
|
+
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
62973
|
+
/** Last child of the node. */
|
|
62974
|
+
get: function() {
|
|
62975
|
+
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
62976
|
+
},
|
|
62977
|
+
enumerable: false,
|
|
62978
|
+
configurable: true
|
|
62979
|
+
});
|
|
62980
|
+
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
62981
|
+
/**
|
|
62982
|
+
* Same as {@link children}.
|
|
62983
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
62984
|
+
*/
|
|
62985
|
+
get: function() {
|
|
62986
|
+
return this.children;
|
|
62987
|
+
},
|
|
62988
|
+
set: function(children) {
|
|
62989
|
+
this.children = children;
|
|
62990
|
+
},
|
|
62991
|
+
enumerable: false,
|
|
62992
|
+
configurable: true
|
|
62993
|
+
});
|
|
62994
|
+
return NodeWithChildren2;
|
|
62995
|
+
}(Node$1)
|
|
62996
|
+
);
|
|
62997
|
+
node.NodeWithChildren = NodeWithChildren;
|
|
62998
|
+
var CDATA = (
|
|
62999
|
+
/** @class */
|
|
63000
|
+
function(_super) {
|
|
63001
|
+
__extends(CDATA2, _super);
|
|
63002
|
+
function CDATA2() {
|
|
63003
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63004
|
+
_this.type = domelementtype_1.ElementType.CDATA;
|
|
63005
|
+
return _this;
|
|
63006
|
+
}
|
|
63007
|
+
Object.defineProperty(CDATA2.prototype, "nodeType", {
|
|
63008
|
+
get: function() {
|
|
63009
|
+
return 4;
|
|
63010
|
+
},
|
|
63011
|
+
enumerable: false,
|
|
63012
|
+
configurable: true
|
|
63013
|
+
});
|
|
63014
|
+
return CDATA2;
|
|
63015
|
+
}(NodeWithChildren)
|
|
63016
|
+
);
|
|
63017
|
+
node.CDATA = CDATA;
|
|
63018
|
+
var Document = (
|
|
63019
|
+
/** @class */
|
|
63020
|
+
function(_super) {
|
|
63021
|
+
__extends(Document2, _super);
|
|
63022
|
+
function Document2() {
|
|
63023
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63024
|
+
_this.type = domelementtype_1.ElementType.Root;
|
|
63025
|
+
return _this;
|
|
63026
|
+
}
|
|
63027
|
+
Object.defineProperty(Document2.prototype, "nodeType", {
|
|
63028
|
+
get: function() {
|
|
63029
|
+
return 9;
|
|
63030
|
+
},
|
|
63031
|
+
enumerable: false,
|
|
63032
|
+
configurable: true
|
|
63033
|
+
});
|
|
63034
|
+
return Document2;
|
|
63035
|
+
}(NodeWithChildren)
|
|
63036
|
+
);
|
|
63037
|
+
node.Document = Document;
|
|
63038
|
+
var Element$2 = (
|
|
63039
|
+
/** @class */
|
|
63040
|
+
function(_super) {
|
|
63041
|
+
__extends(Element2, _super);
|
|
63042
|
+
function Element2(name, attribs, children, type2) {
|
|
63043
|
+
if (children === void 0) {
|
|
63044
|
+
children = [];
|
|
63045
|
+
}
|
|
63046
|
+
if (type2 === void 0) {
|
|
63047
|
+
type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
63048
|
+
}
|
|
63049
|
+
var _this = _super.call(this, children) || this;
|
|
63050
|
+
_this.name = name;
|
|
63051
|
+
_this.attribs = attribs;
|
|
63052
|
+
_this.type = type2;
|
|
63053
|
+
return _this;
|
|
63054
|
+
}
|
|
63055
|
+
Object.defineProperty(Element2.prototype, "nodeType", {
|
|
63056
|
+
get: function() {
|
|
63057
|
+
return 1;
|
|
63058
|
+
},
|
|
63059
|
+
enumerable: false,
|
|
63060
|
+
configurable: true
|
|
63061
|
+
});
|
|
63062
|
+
Object.defineProperty(Element2.prototype, "tagName", {
|
|
63063
|
+
// DOM Level 1 aliases
|
|
63064
|
+
/**
|
|
63065
|
+
* Same as {@link name}.
|
|
63066
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
63067
|
+
*/
|
|
63068
|
+
get: function() {
|
|
63069
|
+
return this.name;
|
|
63070
|
+
},
|
|
63071
|
+
set: function(name) {
|
|
63072
|
+
this.name = name;
|
|
63073
|
+
},
|
|
63074
|
+
enumerable: false,
|
|
63075
|
+
configurable: true
|
|
63076
|
+
});
|
|
63077
|
+
Object.defineProperty(Element2.prototype, "attributes", {
|
|
63078
|
+
get: function() {
|
|
63079
|
+
var _this = this;
|
|
63080
|
+
return Object.keys(this.attribs).map(function(name) {
|
|
63081
|
+
var _a2, _b2;
|
|
63082
|
+
return {
|
|
63083
|
+
name,
|
|
63084
|
+
value: _this.attribs[name],
|
|
63085
|
+
namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
|
|
63086
|
+
prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
|
|
63087
|
+
};
|
|
63088
|
+
});
|
|
63089
|
+
},
|
|
63090
|
+
enumerable: false,
|
|
63091
|
+
configurable: true
|
|
63092
|
+
});
|
|
63093
|
+
return Element2;
|
|
63094
|
+
}(NodeWithChildren)
|
|
63095
|
+
);
|
|
63096
|
+
node.Element = Element$2;
|
|
63097
|
+
function isTag(node2) {
|
|
63098
|
+
return (0, domelementtype_1.isTag)(node2);
|
|
63099
|
+
}
|
|
63100
|
+
node.isTag = isTag;
|
|
63101
|
+
function isCDATA(node2) {
|
|
63102
|
+
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
63103
|
+
}
|
|
63104
|
+
node.isCDATA = isCDATA;
|
|
63105
|
+
function isText(node2) {
|
|
63106
|
+
return node2.type === domelementtype_1.ElementType.Text;
|
|
63107
|
+
}
|
|
63108
|
+
node.isText = isText;
|
|
63109
|
+
function isComment(node2) {
|
|
63110
|
+
return node2.type === domelementtype_1.ElementType.Comment;
|
|
63111
|
+
}
|
|
63112
|
+
node.isComment = isComment;
|
|
63113
|
+
function isDirective(node2) {
|
|
63114
|
+
return node2.type === domelementtype_1.ElementType.Directive;
|
|
63115
|
+
}
|
|
63116
|
+
node.isDirective = isDirective;
|
|
63117
|
+
function isDocument(node2) {
|
|
63118
|
+
return node2.type === domelementtype_1.ElementType.Root;
|
|
63119
|
+
}
|
|
63120
|
+
node.isDocument = isDocument;
|
|
63121
|
+
function hasChildren$1(node2) {
|
|
63122
|
+
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
63123
|
+
}
|
|
63124
|
+
node.hasChildren = hasChildren$1;
|
|
63125
|
+
function cloneNode(node2, recursive) {
|
|
63126
|
+
if (recursive === void 0) {
|
|
63127
|
+
recursive = false;
|
|
63128
|
+
}
|
|
63129
|
+
var result;
|
|
63130
|
+
if (isText(node2)) {
|
|
63131
|
+
result = new Text$1(node2.data);
|
|
63132
|
+
} else if (isComment(node2)) {
|
|
63133
|
+
result = new Comment$1(node2.data);
|
|
63134
|
+
} else if (isTag(node2)) {
|
|
63135
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
63136
|
+
var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
|
|
63137
|
+
children.forEach(function(child) {
|
|
63138
|
+
return child.parent = clone_1;
|
|
63139
|
+
});
|
|
63140
|
+
if (node2.namespace != null) {
|
|
63141
|
+
clone_1.namespace = node2.namespace;
|
|
63142
|
+
}
|
|
63143
|
+
if (node2["x-attribsNamespace"]) {
|
|
63144
|
+
clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
|
|
63145
|
+
}
|
|
63146
|
+
if (node2["x-attribsPrefix"]) {
|
|
63147
|
+
clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
|
|
63148
|
+
}
|
|
63149
|
+
result = clone_1;
|
|
63150
|
+
} else if (isCDATA(node2)) {
|
|
63151
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
63152
|
+
var clone_2 = new CDATA(children);
|
|
63153
|
+
children.forEach(function(child) {
|
|
63154
|
+
return child.parent = clone_2;
|
|
63155
|
+
});
|
|
63156
|
+
result = clone_2;
|
|
63157
|
+
} else if (isDocument(node2)) {
|
|
63158
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
63159
|
+
var clone_3 = new Document(children);
|
|
63160
|
+
children.forEach(function(child) {
|
|
63161
|
+
return child.parent = clone_3;
|
|
63162
|
+
});
|
|
63163
|
+
if (node2["x-mode"]) {
|
|
63164
|
+
clone_3["x-mode"] = node2["x-mode"];
|
|
63165
|
+
}
|
|
63166
|
+
result = clone_3;
|
|
63167
|
+
} else if (isDirective(node2)) {
|
|
63168
|
+
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
63169
|
+
if (node2["x-name"] != null) {
|
|
63170
|
+
instruction["x-name"] = node2["x-name"];
|
|
63171
|
+
instruction["x-publicId"] = node2["x-publicId"];
|
|
63172
|
+
instruction["x-systemId"] = node2["x-systemId"];
|
|
63173
|
+
}
|
|
63174
|
+
result = instruction;
|
|
63175
|
+
} else {
|
|
63176
|
+
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
63177
|
+
}
|
|
63178
|
+
result.startIndex = node2.startIndex;
|
|
63179
|
+
result.endIndex = node2.endIndex;
|
|
63180
|
+
if (node2.sourceCodeLocation != null) {
|
|
63181
|
+
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
63182
|
+
}
|
|
63183
|
+
return result;
|
|
63184
|
+
}
|
|
63185
|
+
node.cloneNode = cloneNode;
|
|
63186
|
+
function cloneChildren(childs) {
|
|
63187
|
+
var children = childs.map(function(child) {
|
|
63188
|
+
return cloneNode(child, true);
|
|
63189
|
+
});
|
|
63190
|
+
for (var i2 = 1; i2 < children.length; i2++) {
|
|
63191
|
+
children[i2].prev = children[i2 - 1];
|
|
63192
|
+
children[i2 - 1].next = children[i2];
|
|
63193
|
+
}
|
|
63194
|
+
return children;
|
|
63195
|
+
}
|
|
63196
|
+
(function(exports2) {
|
|
63197
|
+
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
63198
|
+
if (k22 === void 0)
|
|
63199
|
+
k22 = k2;
|
|
63200
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
63201
|
+
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
63202
|
+
desc = { enumerable: true, get: function() {
|
|
63203
|
+
return m2[k2];
|
|
63204
|
+
} };
|
|
63205
|
+
}
|
|
63206
|
+
Object.defineProperty(o2, k22, desc);
|
|
63207
|
+
} : function(o2, m2, k2, k22) {
|
|
63208
|
+
if (k22 === void 0)
|
|
63209
|
+
k22 = k2;
|
|
63210
|
+
o2[k22] = m2[k2];
|
|
63211
|
+
});
|
|
63212
|
+
var __exportStar = commonjsGlobal$1 && commonjsGlobal$1.__exportStar || function(m2, exports3) {
|
|
63213
|
+
for (var p2 in m2)
|
|
63214
|
+
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2))
|
|
63215
|
+
__createBinding(exports3, m2, p2);
|
|
63216
|
+
};
|
|
63217
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
63218
|
+
exports2.DomHandler = void 0;
|
|
63219
|
+
var domelementtype_12 = lib$1;
|
|
63220
|
+
var node_js_1 = node;
|
|
63221
|
+
__exportStar(node, exports2);
|
|
63222
|
+
var defaultOpts = {
|
|
63223
|
+
withStartIndices: false,
|
|
63224
|
+
withEndIndices: false,
|
|
63225
|
+
xmlMode: false
|
|
63226
|
+
};
|
|
63227
|
+
var DomHandler = (
|
|
63228
|
+
/** @class */
|
|
63229
|
+
function() {
|
|
63230
|
+
function DomHandler2(callback, options, elementCB) {
|
|
63231
|
+
this.dom = [];
|
|
63232
|
+
this.root = new node_js_1.Document(this.dom);
|
|
63233
|
+
this.done = false;
|
|
63234
|
+
this.tagStack = [this.root];
|
|
63235
|
+
this.lastNode = null;
|
|
63236
|
+
this.parser = null;
|
|
63237
|
+
if (typeof options === "function") {
|
|
63238
|
+
elementCB = options;
|
|
63239
|
+
options = defaultOpts;
|
|
63240
|
+
}
|
|
63241
|
+
if (typeof callback === "object") {
|
|
63242
|
+
options = callback;
|
|
63243
|
+
callback = void 0;
|
|
63244
|
+
}
|
|
63245
|
+
this.callback = callback !== null && callback !== void 0 ? callback : null;
|
|
63246
|
+
this.options = options !== null && options !== void 0 ? options : defaultOpts;
|
|
63247
|
+
this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
|
|
63248
|
+
}
|
|
63249
|
+
DomHandler2.prototype.onparserinit = function(parser) {
|
|
63250
|
+
this.parser = parser;
|
|
63251
|
+
};
|
|
63252
|
+
DomHandler2.prototype.onreset = function() {
|
|
63253
|
+
this.dom = [];
|
|
63254
|
+
this.root = new node_js_1.Document(this.dom);
|
|
63255
|
+
this.done = false;
|
|
63256
|
+
this.tagStack = [this.root];
|
|
63257
|
+
this.lastNode = null;
|
|
63258
|
+
this.parser = null;
|
|
63259
|
+
};
|
|
63260
|
+
DomHandler2.prototype.onend = function() {
|
|
63261
|
+
if (this.done)
|
|
63262
|
+
return;
|
|
63263
|
+
this.done = true;
|
|
63264
|
+
this.parser = null;
|
|
63265
|
+
this.handleCallback(null);
|
|
63266
|
+
};
|
|
63267
|
+
DomHandler2.prototype.onerror = function(error) {
|
|
63268
|
+
this.handleCallback(error);
|
|
63269
|
+
};
|
|
63270
|
+
DomHandler2.prototype.onclosetag = function() {
|
|
63271
|
+
this.lastNode = null;
|
|
63272
|
+
var elem = this.tagStack.pop();
|
|
63273
|
+
if (this.options.withEndIndices) {
|
|
63274
|
+
elem.endIndex = this.parser.endIndex;
|
|
63275
|
+
}
|
|
63276
|
+
if (this.elementCB)
|
|
63277
|
+
this.elementCB(elem);
|
|
63278
|
+
};
|
|
63279
|
+
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
63280
|
+
var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
63281
|
+
var element = new node_js_1.Element(name, attribs, void 0, type2);
|
|
63282
|
+
this.addNode(element);
|
|
63283
|
+
this.tagStack.push(element);
|
|
63284
|
+
};
|
|
63285
|
+
DomHandler2.prototype.ontext = function(data) {
|
|
63286
|
+
var lastNode = this.lastNode;
|
|
63287
|
+
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
63288
|
+
lastNode.data += data;
|
|
63289
|
+
if (this.options.withEndIndices) {
|
|
63290
|
+
lastNode.endIndex = this.parser.endIndex;
|
|
63291
|
+
}
|
|
63292
|
+
} else {
|
|
63293
|
+
var node2 = new node_js_1.Text(data);
|
|
63294
|
+
this.addNode(node2);
|
|
63295
|
+
this.lastNode = node2;
|
|
63296
|
+
}
|
|
63297
|
+
};
|
|
63298
|
+
DomHandler2.prototype.oncomment = function(data) {
|
|
63299
|
+
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
63300
|
+
this.lastNode.data += data;
|
|
63301
|
+
return;
|
|
63302
|
+
}
|
|
63303
|
+
var node2 = new node_js_1.Comment(data);
|
|
63304
|
+
this.addNode(node2);
|
|
63305
|
+
this.lastNode = node2;
|
|
63306
|
+
};
|
|
63307
|
+
DomHandler2.prototype.oncommentend = function() {
|
|
63308
|
+
this.lastNode = null;
|
|
63309
|
+
};
|
|
63310
|
+
DomHandler2.prototype.oncdatastart = function() {
|
|
63311
|
+
var text = new node_js_1.Text("");
|
|
63312
|
+
var node2 = new node_js_1.CDATA([text]);
|
|
63313
|
+
this.addNode(node2);
|
|
63314
|
+
text.parent = node2;
|
|
63315
|
+
this.lastNode = text;
|
|
63316
|
+
};
|
|
63317
|
+
DomHandler2.prototype.oncdataend = function() {
|
|
63318
|
+
this.lastNode = null;
|
|
63319
|
+
};
|
|
63320
|
+
DomHandler2.prototype.onprocessinginstruction = function(name, data) {
|
|
63321
|
+
var node2 = new node_js_1.ProcessingInstruction(name, data);
|
|
63322
|
+
this.addNode(node2);
|
|
63323
|
+
};
|
|
63324
|
+
DomHandler2.prototype.handleCallback = function(error) {
|
|
63325
|
+
if (typeof this.callback === "function") {
|
|
63326
|
+
this.callback(error, this.dom);
|
|
63327
|
+
} else if (error) {
|
|
63328
|
+
throw error;
|
|
63329
|
+
}
|
|
63330
|
+
};
|
|
63331
|
+
DomHandler2.prototype.addNode = function(node2) {
|
|
63332
|
+
var parent = this.tagStack[this.tagStack.length - 1];
|
|
63333
|
+
var previousSibling = parent.children[parent.children.length - 1];
|
|
63334
|
+
if (this.options.withStartIndices) {
|
|
63335
|
+
node2.startIndex = this.parser.startIndex;
|
|
63336
|
+
}
|
|
63337
|
+
if (this.options.withEndIndices) {
|
|
63338
|
+
node2.endIndex = this.parser.endIndex;
|
|
63339
|
+
}
|
|
63340
|
+
parent.children.push(node2);
|
|
63341
|
+
if (previousSibling) {
|
|
63342
|
+
node2.prev = previousSibling;
|
|
63343
|
+
previousSibling.next = node2;
|
|
63344
|
+
}
|
|
63345
|
+
node2.parent = parent;
|
|
63346
|
+
this.lastNode = null;
|
|
63347
|
+
};
|
|
63348
|
+
return DomHandler2;
|
|
63349
|
+
}()
|
|
63350
|
+
);
|
|
63351
|
+
exports2.DomHandler = DomHandler;
|
|
63352
|
+
exports2.default = DomHandler;
|
|
63353
|
+
})(lib$2);
|
|
63354
|
+
var HTML = "html";
|
|
63355
|
+
var HEAD = "head";
|
|
63356
|
+
var BODY = "body";
|
|
63357
|
+
var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
|
|
63358
|
+
var HEAD_TAG_REGEX = /<head[^]*>/i;
|
|
63359
|
+
var BODY_TAG_REGEX = /<body[^]*>/i;
|
|
63360
|
+
var parseFromDocument = function() {
|
|
63361
|
+
throw new Error(
|
|
63362
|
+
"This browser does not support `document.implementation.createHTMLDocument`"
|
|
63363
|
+
);
|
|
63364
|
+
};
|
|
63365
|
+
var parseFromString = function() {
|
|
63366
|
+
throw new Error(
|
|
63367
|
+
"This browser does not support `DOMParser.prototype.parseFromString`"
|
|
63368
|
+
);
|
|
63369
|
+
};
|
|
63370
|
+
var DOMParser$1 = typeof window === "object" && window.DOMParser;
|
|
63371
|
+
if (typeof DOMParser$1 === "function") {
|
|
63372
|
+
var domParser = new DOMParser$1();
|
|
63373
|
+
var mimeType = "text/html";
|
|
63374
|
+
parseFromString = function(html, tagName2) {
|
|
63375
|
+
if (tagName2) {
|
|
63376
|
+
html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
|
|
63377
|
+
}
|
|
63378
|
+
return domParser.parseFromString(html, mimeType);
|
|
63379
|
+
};
|
|
63380
|
+
parseFromDocument = parseFromString;
|
|
63381
|
+
}
|
|
63382
|
+
if (typeof document === "object" && document.implementation) {
|
|
63383
|
+
var doc = document.implementation.createHTMLDocument();
|
|
63384
|
+
parseFromDocument = function(html, tagName2) {
|
|
63385
|
+
if (tagName2) {
|
|
63386
|
+
var element = doc.documentElement.querySelector(tagName2);
|
|
63387
|
+
element.innerHTML = html;
|
|
63388
|
+
return doc;
|
|
63389
|
+
}
|
|
63390
|
+
doc.documentElement.innerHTML = html;
|
|
63391
|
+
return doc;
|
|
63392
|
+
};
|
|
63393
|
+
}
|
|
63394
|
+
var template = typeof document === "object" ? document.createElement("template") : {};
|
|
63395
|
+
var parseFromTemplate;
|
|
63396
|
+
if (template.content) {
|
|
63397
|
+
parseFromTemplate = function(html) {
|
|
63398
|
+
template.innerHTML = html;
|
|
63399
|
+
return template.content.childNodes;
|
|
63400
|
+
};
|
|
63401
|
+
}
|
|
63402
|
+
function domparser$1(html) {
|
|
63403
|
+
var firstTagName;
|
|
63404
|
+
var match = html.match(FIRST_TAG_REGEX);
|
|
63405
|
+
if (match && match[1]) {
|
|
63406
|
+
firstTagName = match[1].toLowerCase();
|
|
63407
|
+
}
|
|
63408
|
+
var doc2;
|
|
63409
|
+
var element;
|
|
63410
|
+
var elements;
|
|
63411
|
+
switch (firstTagName) {
|
|
63412
|
+
case HTML:
|
|
63413
|
+
doc2 = parseFromString(html);
|
|
63414
|
+
if (!HEAD_TAG_REGEX.test(html)) {
|
|
63415
|
+
element = doc2.querySelector(HEAD);
|
|
63416
|
+
if (element) {
|
|
63417
|
+
element.parentNode.removeChild(element);
|
|
63418
|
+
}
|
|
63419
|
+
}
|
|
63420
|
+
if (!BODY_TAG_REGEX.test(html)) {
|
|
63421
|
+
element = doc2.querySelector(BODY);
|
|
63422
|
+
if (element) {
|
|
63423
|
+
element.parentNode.removeChild(element);
|
|
63424
|
+
}
|
|
63425
|
+
}
|
|
63426
|
+
return doc2.querySelectorAll(HTML);
|
|
63427
|
+
case HEAD:
|
|
63428
|
+
case BODY:
|
|
63429
|
+
doc2 = parseFromDocument(html);
|
|
63430
|
+
elements = doc2.querySelectorAll(firstTagName);
|
|
63431
|
+
if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
|
|
63432
|
+
return elements[0].parentNode.childNodes;
|
|
63433
|
+
}
|
|
63434
|
+
return elements;
|
|
63435
|
+
default:
|
|
63436
|
+
if (parseFromTemplate) {
|
|
63437
|
+
return parseFromTemplate(html);
|
|
63438
|
+
}
|
|
63439
|
+
element = parseFromDocument(html, BODY).querySelector(BODY);
|
|
63440
|
+
return element.childNodes;
|
|
63441
|
+
}
|
|
63442
|
+
}
|
|
63443
|
+
var domparser_1 = domparser$1;
|
|
63444
|
+
var utilities$5 = {};
|
|
63445
|
+
var constants$1 = {};
|
|
63446
|
+
constants$1.CASE_SENSITIVE_TAG_NAMES = [
|
|
63447
|
+
"animateMotion",
|
|
63448
|
+
"animateTransform",
|
|
63449
|
+
"clipPath",
|
|
63450
|
+
"feBlend",
|
|
63451
|
+
"feColorMatrix",
|
|
63452
|
+
"feComponentTransfer",
|
|
63453
|
+
"feComposite",
|
|
63454
|
+
"feConvolveMatrix",
|
|
63455
|
+
"feDiffuseLighting",
|
|
63456
|
+
"feDisplacementMap",
|
|
63457
|
+
"feDropShadow",
|
|
63458
|
+
"feFlood",
|
|
63459
|
+
"feFuncA",
|
|
63460
|
+
"feFuncB",
|
|
63461
|
+
"feFuncG",
|
|
63462
|
+
"feFuncR",
|
|
63463
|
+
"feGaussianBlur",
|
|
63464
|
+
"feImage",
|
|
63465
|
+
"feMerge",
|
|
63466
|
+
"feMergeNode",
|
|
63467
|
+
"feMorphology",
|
|
63468
|
+
"feOffset",
|
|
63469
|
+
"fePointLight",
|
|
63470
|
+
"feSpecularLighting",
|
|
63471
|
+
"feSpotLight",
|
|
63472
|
+
"feTile",
|
|
63473
|
+
"feTurbulence",
|
|
63474
|
+
"foreignObject",
|
|
63475
|
+
"linearGradient",
|
|
63476
|
+
"radialGradient",
|
|
63477
|
+
"textPath"
|
|
63478
|
+
];
|
|
63479
|
+
var domhandler$1 = lib$2;
|
|
63480
|
+
var constants = constants$1;
|
|
63481
|
+
var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
|
|
63482
|
+
var Comment = domhandler$1.Comment;
|
|
63483
|
+
var Element$1 = domhandler$1.Element;
|
|
63484
|
+
var ProcessingInstruction = domhandler$1.ProcessingInstruction;
|
|
63485
|
+
var Text = domhandler$1.Text;
|
|
63486
|
+
var caseSensitiveTagNamesMap = {};
|
|
63487
|
+
var tagName;
|
|
63488
|
+
for (var i = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i < len; i++) {
|
|
63489
|
+
tagName = CASE_SENSITIVE_TAG_NAMES[i];
|
|
63490
|
+
caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
|
|
63491
|
+
}
|
|
63492
|
+
function getCaseSensitiveTagName(tagName2) {
|
|
63493
|
+
return caseSensitiveTagNamesMap[tagName2];
|
|
63494
|
+
}
|
|
63495
|
+
function formatAttributes(attributes) {
|
|
63496
|
+
var result = {};
|
|
63497
|
+
var attribute;
|
|
63498
|
+
for (var i2 = 0, len2 = attributes.length; i2 < len2; i2++) {
|
|
63499
|
+
attribute = attributes[i2];
|
|
63500
|
+
result[attribute.name] = attribute.value;
|
|
63501
|
+
}
|
|
63502
|
+
return result;
|
|
63503
|
+
}
|
|
63504
|
+
function formatTagName(tagName2) {
|
|
63505
|
+
tagName2 = tagName2.toLowerCase();
|
|
63506
|
+
var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
|
|
63507
|
+
if (caseSensitiveTagName) {
|
|
63508
|
+
return caseSensitiveTagName;
|
|
63509
|
+
}
|
|
63510
|
+
return tagName2;
|
|
63511
|
+
}
|
|
63512
|
+
function formatDOM$1(nodes, parent, directive) {
|
|
63513
|
+
parent = parent || null;
|
|
63514
|
+
var result = [];
|
|
63515
|
+
var tagName2;
|
|
63516
|
+
for (var index2 = 0, len2 = nodes.length; index2 < len2; index2++) {
|
|
63517
|
+
var node2 = nodes[index2];
|
|
63518
|
+
var current;
|
|
63519
|
+
switch (node2.nodeType) {
|
|
63520
|
+
case 1:
|
|
63521
|
+
tagName2 = formatTagName(node2.nodeName);
|
|
63522
|
+
current = new Element$1(tagName2, formatAttributes(node2.attributes));
|
|
63523
|
+
current.children = formatDOM$1(
|
|
63524
|
+
// template children are on content
|
|
63525
|
+
tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
|
|
63526
|
+
current
|
|
63527
|
+
);
|
|
63528
|
+
break;
|
|
63529
|
+
case 3:
|
|
63530
|
+
current = new Text(node2.nodeValue);
|
|
63531
|
+
break;
|
|
63532
|
+
case 8:
|
|
63533
|
+
current = new Comment(node2.nodeValue);
|
|
63534
|
+
break;
|
|
63535
|
+
default:
|
|
63536
|
+
continue;
|
|
63537
|
+
}
|
|
63538
|
+
var prev = result[index2 - 1] || null;
|
|
63539
|
+
if (prev) {
|
|
63540
|
+
prev.next = current;
|
|
63541
|
+
}
|
|
63542
|
+
current.parent = parent;
|
|
63543
|
+
current.prev = prev;
|
|
63544
|
+
current.next = null;
|
|
63545
|
+
result.push(current);
|
|
63546
|
+
}
|
|
63547
|
+
if (directive) {
|
|
63548
|
+
current = new ProcessingInstruction(
|
|
63549
|
+
directive.substring(0, directive.indexOf(" ")).toLowerCase(),
|
|
63550
|
+
directive
|
|
63551
|
+
);
|
|
63552
|
+
current.next = result[0] || null;
|
|
63553
|
+
current.parent = parent;
|
|
63554
|
+
result.unshift(current);
|
|
63555
|
+
if (result[1]) {
|
|
63556
|
+
result[1].prev = result[0];
|
|
63557
|
+
}
|
|
63558
|
+
}
|
|
63559
|
+
return result;
|
|
63560
|
+
}
|
|
63561
|
+
utilities$5.formatAttributes = formatAttributes;
|
|
63562
|
+
utilities$5.formatDOM = formatDOM$1;
|
|
63563
|
+
var domparser = domparser_1;
|
|
63564
|
+
var utilities$4 = utilities$5;
|
|
63565
|
+
var formatDOM = utilities$4.formatDOM;
|
|
63566
|
+
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
|
|
63567
|
+
function HTMLDOMParser(html) {
|
|
63568
|
+
if (typeof html !== "string") {
|
|
63569
|
+
throw new TypeError("First argument must be a string");
|
|
63570
|
+
}
|
|
63571
|
+
if (html === "") {
|
|
63572
|
+
return [];
|
|
63573
|
+
}
|
|
63574
|
+
var match = html.match(DIRECTIVE_REGEX);
|
|
63575
|
+
var directive;
|
|
63576
|
+
if (match && match[1]) {
|
|
63577
|
+
directive = match[1];
|
|
63578
|
+
}
|
|
63579
|
+
return formatDOM(domparser(html), null, directive);
|
|
63580
|
+
}
|
|
63581
|
+
var htmlToDom = HTMLDOMParser;
|
|
63582
|
+
var lib = {};
|
|
63583
|
+
var possibleStandardNamesOptimized$1 = {};
|
|
63584
|
+
var SAME$1 = 0;
|
|
63585
|
+
possibleStandardNamesOptimized$1.SAME = SAME$1;
|
|
63586
|
+
var CAMELCASE$1 = 1;
|
|
63587
|
+
possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
|
|
63588
|
+
possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
63589
|
+
accept: 0,
|
|
63590
|
+
acceptCharset: 1,
|
|
63591
|
+
"accept-charset": "acceptCharset",
|
|
63592
|
+
accessKey: 1,
|
|
63593
|
+
action: 0,
|
|
63594
|
+
allowFullScreen: 1,
|
|
63595
|
+
alt: 0,
|
|
63596
|
+
as: 0,
|
|
63597
|
+
async: 0,
|
|
63598
|
+
autoCapitalize: 1,
|
|
63599
|
+
autoComplete: 1,
|
|
63600
|
+
autoCorrect: 1,
|
|
63601
|
+
autoFocus: 1,
|
|
63602
|
+
autoPlay: 1,
|
|
63603
|
+
autoSave: 1,
|
|
63604
|
+
capture: 0,
|
|
63605
|
+
cellPadding: 1,
|
|
63606
|
+
cellSpacing: 1,
|
|
63607
|
+
challenge: 0,
|
|
63608
|
+
charSet: 1,
|
|
63609
|
+
checked: 0,
|
|
63610
|
+
children: 0,
|
|
63611
|
+
cite: 0,
|
|
63612
|
+
class: "className",
|
|
63613
|
+
classID: 1,
|
|
63614
|
+
className: 1,
|
|
63615
|
+
cols: 0,
|
|
63616
|
+
colSpan: 1,
|
|
63617
|
+
content: 0,
|
|
63618
|
+
contentEditable: 1,
|
|
63619
|
+
contextMenu: 1,
|
|
63620
|
+
controls: 0,
|
|
63621
|
+
controlsList: 1,
|
|
63622
|
+
coords: 0,
|
|
63623
|
+
crossOrigin: 1,
|
|
63624
|
+
dangerouslySetInnerHTML: 1,
|
|
63625
|
+
data: 0,
|
|
63626
|
+
dateTime: 1,
|
|
63627
|
+
default: 0,
|
|
63628
|
+
defaultChecked: 1,
|
|
63629
|
+
defaultValue: 1,
|
|
63630
|
+
defer: 0,
|
|
63631
|
+
dir: 0,
|
|
63632
|
+
disabled: 0,
|
|
63633
|
+
disablePictureInPicture: 1,
|
|
63634
|
+
disableRemotePlayback: 1,
|
|
63635
|
+
download: 0,
|
|
63636
|
+
draggable: 0,
|
|
63637
|
+
encType: 1,
|
|
63638
|
+
enterKeyHint: 1,
|
|
63639
|
+
for: "htmlFor",
|
|
63640
|
+
form: 0,
|
|
63641
|
+
formMethod: 1,
|
|
63642
|
+
formAction: 1,
|
|
63643
|
+
formEncType: 1,
|
|
63644
|
+
formNoValidate: 1,
|
|
63645
|
+
formTarget: 1,
|
|
63646
|
+
frameBorder: 1,
|
|
63647
|
+
headers: 0,
|
|
63648
|
+
height: 0,
|
|
63649
|
+
hidden: 0,
|
|
63650
|
+
high: 0,
|
|
63651
|
+
href: 0,
|
|
63652
|
+
hrefLang: 1,
|
|
63653
|
+
htmlFor: 1,
|
|
63654
|
+
httpEquiv: 1,
|
|
63655
|
+
"http-equiv": "httpEquiv",
|
|
63656
|
+
icon: 0,
|
|
63657
|
+
id: 0,
|
|
63658
|
+
innerHTML: 1,
|
|
63659
|
+
inputMode: 1,
|
|
63660
|
+
integrity: 0,
|
|
63661
|
+
is: 0,
|
|
63662
|
+
itemID: 1,
|
|
63663
|
+
itemProp: 1,
|
|
63664
|
+
itemRef: 1,
|
|
63665
|
+
itemScope: 1,
|
|
63666
|
+
itemType: 1,
|
|
63667
|
+
keyParams: 1,
|
|
63668
|
+
keyType: 1,
|
|
63669
|
+
kind: 0,
|
|
63670
|
+
label: 0,
|
|
63671
|
+
lang: 0,
|
|
63672
|
+
list: 0,
|
|
63673
|
+
loop: 0,
|
|
63674
|
+
low: 0,
|
|
63675
|
+
manifest: 0,
|
|
63676
|
+
marginWidth: 1,
|
|
63677
|
+
marginHeight: 1,
|
|
63678
|
+
max: 0,
|
|
63679
|
+
maxLength: 1,
|
|
63680
|
+
media: 0,
|
|
63681
|
+
mediaGroup: 1,
|
|
63682
|
+
method: 0,
|
|
63683
|
+
min: 0,
|
|
63684
|
+
minLength: 1,
|
|
63685
|
+
multiple: 0,
|
|
63686
|
+
muted: 0,
|
|
63687
|
+
name: 0,
|
|
63688
|
+
noModule: 1,
|
|
63689
|
+
nonce: 0,
|
|
63690
|
+
noValidate: 1,
|
|
63691
|
+
open: 0,
|
|
63692
|
+
optimum: 0,
|
|
63693
|
+
pattern: 0,
|
|
63694
|
+
placeholder: 0,
|
|
63695
|
+
playsInline: 1,
|
|
63696
|
+
poster: 0,
|
|
63697
|
+
preload: 0,
|
|
63698
|
+
profile: 0,
|
|
63699
|
+
radioGroup: 1,
|
|
63700
|
+
readOnly: 1,
|
|
63701
|
+
referrerPolicy: 1,
|
|
63702
|
+
rel: 0,
|
|
63703
|
+
required: 0,
|
|
63704
|
+
reversed: 0,
|
|
63705
|
+
role: 0,
|
|
63706
|
+
rows: 0,
|
|
63707
|
+
rowSpan: 1,
|
|
63708
|
+
sandbox: 0,
|
|
63709
|
+
scope: 0,
|
|
63710
|
+
scoped: 0,
|
|
63711
|
+
scrolling: 0,
|
|
63712
|
+
seamless: 0,
|
|
63713
|
+
selected: 0,
|
|
63714
|
+
shape: 0,
|
|
63715
|
+
size: 0,
|
|
63716
|
+
sizes: 0,
|
|
63717
|
+
span: 0,
|
|
63718
|
+
spellCheck: 1,
|
|
63719
|
+
src: 0,
|
|
63720
|
+
srcDoc: 1,
|
|
63721
|
+
srcLang: 1,
|
|
63722
|
+
srcSet: 1,
|
|
63723
|
+
start: 0,
|
|
63724
|
+
step: 0,
|
|
63725
|
+
style: 0,
|
|
63726
|
+
summary: 0,
|
|
63727
|
+
tabIndex: 1,
|
|
63728
|
+
target: 0,
|
|
63729
|
+
title: 0,
|
|
63730
|
+
type: 0,
|
|
63731
|
+
useMap: 1,
|
|
63732
|
+
value: 0,
|
|
63733
|
+
width: 0,
|
|
63734
|
+
wmode: 0,
|
|
63735
|
+
wrap: 0,
|
|
63736
|
+
about: 0,
|
|
63737
|
+
accentHeight: 1,
|
|
63738
|
+
"accent-height": "accentHeight",
|
|
63739
|
+
accumulate: 0,
|
|
63740
|
+
additive: 0,
|
|
63741
|
+
alignmentBaseline: 1,
|
|
63742
|
+
"alignment-baseline": "alignmentBaseline",
|
|
63743
|
+
allowReorder: 1,
|
|
63744
|
+
alphabetic: 0,
|
|
63745
|
+
amplitude: 0,
|
|
63746
|
+
arabicForm: 1,
|
|
63747
|
+
"arabic-form": "arabicForm",
|
|
63748
|
+
ascent: 0,
|
|
63749
|
+
attributeName: 1,
|
|
63750
|
+
attributeType: 1,
|
|
63751
|
+
autoReverse: 1,
|
|
63752
|
+
azimuth: 0,
|
|
63753
|
+
baseFrequency: 1,
|
|
63754
|
+
baselineShift: 1,
|
|
63755
|
+
"baseline-shift": "baselineShift",
|
|
63756
|
+
baseProfile: 1,
|
|
63757
|
+
bbox: 0,
|
|
63758
|
+
begin: 0,
|
|
63759
|
+
bias: 0,
|
|
63760
|
+
by: 0,
|
|
63761
|
+
calcMode: 1,
|
|
63762
|
+
capHeight: 1,
|
|
63763
|
+
"cap-height": "capHeight",
|
|
63764
|
+
clip: 0,
|
|
63765
|
+
clipPath: 1,
|
|
63766
|
+
"clip-path": "clipPath",
|
|
63767
|
+
clipPathUnits: 1,
|
|
63768
|
+
clipRule: 1,
|
|
63769
|
+
"clip-rule": "clipRule",
|
|
63770
|
+
color: 0,
|
|
63771
|
+
colorInterpolation: 1,
|
|
63772
|
+
"color-interpolation": "colorInterpolation",
|
|
63773
|
+
colorInterpolationFilters: 1,
|
|
63774
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
63775
|
+
colorProfile: 1,
|
|
63776
|
+
"color-profile": "colorProfile",
|
|
63777
|
+
colorRendering: 1,
|
|
63778
|
+
"color-rendering": "colorRendering",
|
|
63779
|
+
contentScriptType: 1,
|
|
63780
|
+
contentStyleType: 1,
|
|
63781
|
+
cursor: 0,
|
|
63782
|
+
cx: 0,
|
|
63783
|
+
cy: 0,
|
|
63784
|
+
d: 0,
|
|
63785
|
+
datatype: 0,
|
|
63786
|
+
decelerate: 0,
|
|
63787
|
+
descent: 0,
|
|
63788
|
+
diffuseConstant: 1,
|
|
63789
|
+
direction: 0,
|
|
63790
|
+
display: 0,
|
|
63791
|
+
divisor: 0,
|
|
63792
|
+
dominantBaseline: 1,
|
|
63793
|
+
"dominant-baseline": "dominantBaseline",
|
|
63794
|
+
dur: 0,
|
|
63795
|
+
dx: 0,
|
|
63796
|
+
dy: 0,
|
|
63797
|
+
edgeMode: 1,
|
|
63798
|
+
elevation: 0,
|
|
63799
|
+
enableBackground: 1,
|
|
63800
|
+
"enable-background": "enableBackground",
|
|
63801
|
+
end: 0,
|
|
63802
|
+
exponent: 0,
|
|
63803
|
+
externalResourcesRequired: 1,
|
|
63804
|
+
fill: 0,
|
|
63805
|
+
fillOpacity: 1,
|
|
63806
|
+
"fill-opacity": "fillOpacity",
|
|
63807
|
+
fillRule: 1,
|
|
63808
|
+
"fill-rule": "fillRule",
|
|
63809
|
+
filter: 0,
|
|
63810
|
+
filterRes: 1,
|
|
63811
|
+
filterUnits: 1,
|
|
63812
|
+
floodOpacity: 1,
|
|
63813
|
+
"flood-opacity": "floodOpacity",
|
|
63814
|
+
floodColor: 1,
|
|
63815
|
+
"flood-color": "floodColor",
|
|
63816
|
+
focusable: 0,
|
|
63817
|
+
fontFamily: 1,
|
|
63818
|
+
"font-family": "fontFamily",
|
|
63819
|
+
fontSize: 1,
|
|
63820
|
+
"font-size": "fontSize",
|
|
63821
|
+
fontSizeAdjust: 1,
|
|
63822
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
63823
|
+
fontStretch: 1,
|
|
63824
|
+
"font-stretch": "fontStretch",
|
|
63825
|
+
fontStyle: 1,
|
|
63826
|
+
"font-style": "fontStyle",
|
|
63827
|
+
fontVariant: 1,
|
|
63828
|
+
"font-variant": "fontVariant",
|
|
63829
|
+
fontWeight: 1,
|
|
63830
|
+
"font-weight": "fontWeight",
|
|
63831
|
+
format: 0,
|
|
63832
|
+
from: 0,
|
|
63833
|
+
fx: 0,
|
|
63834
|
+
fy: 0,
|
|
63835
|
+
g1: 0,
|
|
63836
|
+
g2: 0,
|
|
63837
|
+
glyphName: 1,
|
|
63838
|
+
"glyph-name": "glyphName",
|
|
63839
|
+
glyphOrientationHorizontal: 1,
|
|
63840
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
63841
|
+
glyphOrientationVertical: 1,
|
|
63842
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
63843
|
+
glyphRef: 1,
|
|
63844
|
+
gradientTransform: 1,
|
|
63845
|
+
gradientUnits: 1,
|
|
63846
|
+
hanging: 0,
|
|
63847
|
+
horizAdvX: 1,
|
|
63848
|
+
"horiz-adv-x": "horizAdvX",
|
|
63849
|
+
horizOriginX: 1,
|
|
63850
|
+
"horiz-origin-x": "horizOriginX",
|
|
63851
|
+
ideographic: 0,
|
|
63852
|
+
imageRendering: 1,
|
|
63853
|
+
"image-rendering": "imageRendering",
|
|
63854
|
+
in2: 0,
|
|
63855
|
+
in: 0,
|
|
63856
|
+
inlist: 0,
|
|
63857
|
+
intercept: 0,
|
|
63858
|
+
k1: 0,
|
|
63859
|
+
k2: 0,
|
|
63860
|
+
k3: 0,
|
|
63861
|
+
k4: 0,
|
|
63862
|
+
k: 0,
|
|
63863
|
+
kernelMatrix: 1,
|
|
63864
|
+
kernelUnitLength: 1,
|
|
63865
|
+
kerning: 0,
|
|
63866
|
+
keyPoints: 1,
|
|
63867
|
+
keySplines: 1,
|
|
63868
|
+
keyTimes: 1,
|
|
63869
|
+
lengthAdjust: 1,
|
|
63870
|
+
letterSpacing: 1,
|
|
63871
|
+
"letter-spacing": "letterSpacing",
|
|
63872
|
+
lightingColor: 1,
|
|
63873
|
+
"lighting-color": "lightingColor",
|
|
63874
|
+
limitingConeAngle: 1,
|
|
63875
|
+
local: 0,
|
|
63876
|
+
markerEnd: 1,
|
|
63877
|
+
"marker-end": "markerEnd",
|
|
63878
|
+
markerHeight: 1,
|
|
63879
|
+
markerMid: 1,
|
|
63880
|
+
"marker-mid": "markerMid",
|
|
63881
|
+
markerStart: 1,
|
|
63882
|
+
"marker-start": "markerStart",
|
|
63883
|
+
markerUnits: 1,
|
|
63884
|
+
markerWidth: 1,
|
|
63885
|
+
mask: 0,
|
|
63886
|
+
maskContentUnits: 1,
|
|
63887
|
+
maskUnits: 1,
|
|
63888
|
+
mathematical: 0,
|
|
63889
|
+
mode: 0,
|
|
63890
|
+
numOctaves: 1,
|
|
63891
|
+
offset: 0,
|
|
63892
|
+
opacity: 0,
|
|
63893
|
+
operator: 0,
|
|
63894
|
+
order: 0,
|
|
63895
|
+
orient: 0,
|
|
63896
|
+
orientation: 0,
|
|
63897
|
+
origin: 0,
|
|
63898
|
+
overflow: 0,
|
|
63899
|
+
overlinePosition: 1,
|
|
63900
|
+
"overline-position": "overlinePosition",
|
|
63901
|
+
overlineThickness: 1,
|
|
63902
|
+
"overline-thickness": "overlineThickness",
|
|
63903
|
+
paintOrder: 1,
|
|
63904
|
+
"paint-order": "paintOrder",
|
|
63905
|
+
panose1: 0,
|
|
63906
|
+
"panose-1": "panose1",
|
|
63907
|
+
pathLength: 1,
|
|
63908
|
+
patternContentUnits: 1,
|
|
63909
|
+
patternTransform: 1,
|
|
63910
|
+
patternUnits: 1,
|
|
63911
|
+
pointerEvents: 1,
|
|
63912
|
+
"pointer-events": "pointerEvents",
|
|
63913
|
+
points: 0,
|
|
63914
|
+
pointsAtX: 1,
|
|
63915
|
+
pointsAtY: 1,
|
|
63916
|
+
pointsAtZ: 1,
|
|
63917
|
+
prefix: 0,
|
|
63918
|
+
preserveAlpha: 1,
|
|
63919
|
+
preserveAspectRatio: 1,
|
|
63920
|
+
primitiveUnits: 1,
|
|
63921
|
+
property: 0,
|
|
63922
|
+
r: 0,
|
|
63923
|
+
radius: 0,
|
|
63924
|
+
refX: 1,
|
|
63925
|
+
refY: 1,
|
|
63926
|
+
renderingIntent: 1,
|
|
63927
|
+
"rendering-intent": "renderingIntent",
|
|
63928
|
+
repeatCount: 1,
|
|
63929
|
+
repeatDur: 1,
|
|
63930
|
+
requiredExtensions: 1,
|
|
63931
|
+
requiredFeatures: 1,
|
|
63932
|
+
resource: 0,
|
|
63933
|
+
restart: 0,
|
|
63934
|
+
result: 0,
|
|
63935
|
+
results: 0,
|
|
63936
|
+
rotate: 0,
|
|
63937
|
+
rx: 0,
|
|
63938
|
+
ry: 0,
|
|
63939
|
+
scale: 0,
|
|
63940
|
+
security: 0,
|
|
63941
|
+
seed: 0,
|
|
63942
|
+
shapeRendering: 1,
|
|
63943
|
+
"shape-rendering": "shapeRendering",
|
|
63944
|
+
slope: 0,
|
|
63945
|
+
spacing: 0,
|
|
63946
|
+
specularConstant: 1,
|
|
63947
|
+
specularExponent: 1,
|
|
63948
|
+
speed: 0,
|
|
63949
|
+
spreadMethod: 1,
|
|
63950
|
+
startOffset: 1,
|
|
63951
|
+
stdDeviation: 1,
|
|
63952
|
+
stemh: 0,
|
|
63953
|
+
stemv: 0,
|
|
63954
|
+
stitchTiles: 1,
|
|
63955
|
+
stopColor: 1,
|
|
63956
|
+
"stop-color": "stopColor",
|
|
63957
|
+
stopOpacity: 1,
|
|
63958
|
+
"stop-opacity": "stopOpacity",
|
|
63959
|
+
strikethroughPosition: 1,
|
|
63960
|
+
"strikethrough-position": "strikethroughPosition",
|
|
63961
|
+
strikethroughThickness: 1,
|
|
63962
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
63963
|
+
string: 0,
|
|
63964
|
+
stroke: 0,
|
|
63965
|
+
strokeDasharray: 1,
|
|
63966
|
+
"stroke-dasharray": "strokeDasharray",
|
|
63967
|
+
strokeDashoffset: 1,
|
|
63968
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
63969
|
+
strokeLinecap: 1,
|
|
63970
|
+
"stroke-linecap": "strokeLinecap",
|
|
63971
|
+
strokeLinejoin: 1,
|
|
63972
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
63973
|
+
strokeMiterlimit: 1,
|
|
63974
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
63975
|
+
strokeWidth: 1,
|
|
63976
|
+
"stroke-width": "strokeWidth",
|
|
63977
|
+
strokeOpacity: 1,
|
|
63978
|
+
"stroke-opacity": "strokeOpacity",
|
|
63979
|
+
suppressContentEditableWarning: 1,
|
|
63980
|
+
suppressHydrationWarning: 1,
|
|
63981
|
+
surfaceScale: 1,
|
|
63982
|
+
systemLanguage: 1,
|
|
63983
|
+
tableValues: 1,
|
|
63984
|
+
targetX: 1,
|
|
63985
|
+
targetY: 1,
|
|
63986
|
+
textAnchor: 1,
|
|
63987
|
+
"text-anchor": "textAnchor",
|
|
63988
|
+
textDecoration: 1,
|
|
63989
|
+
"text-decoration": "textDecoration",
|
|
63990
|
+
textLength: 1,
|
|
63991
|
+
textRendering: 1,
|
|
63992
|
+
"text-rendering": "textRendering",
|
|
63993
|
+
to: 0,
|
|
63994
|
+
transform: 0,
|
|
63995
|
+
typeof: 0,
|
|
63996
|
+
u1: 0,
|
|
63997
|
+
u2: 0,
|
|
63998
|
+
underlinePosition: 1,
|
|
63999
|
+
"underline-position": "underlinePosition",
|
|
64000
|
+
underlineThickness: 1,
|
|
64001
|
+
"underline-thickness": "underlineThickness",
|
|
64002
|
+
unicode: 0,
|
|
64003
|
+
unicodeBidi: 1,
|
|
64004
|
+
"unicode-bidi": "unicodeBidi",
|
|
64005
|
+
unicodeRange: 1,
|
|
64006
|
+
"unicode-range": "unicodeRange",
|
|
64007
|
+
unitsPerEm: 1,
|
|
64008
|
+
"units-per-em": "unitsPerEm",
|
|
64009
|
+
unselectable: 0,
|
|
64010
|
+
vAlphabetic: 1,
|
|
64011
|
+
"v-alphabetic": "vAlphabetic",
|
|
64012
|
+
values: 0,
|
|
64013
|
+
vectorEffect: 1,
|
|
64014
|
+
"vector-effect": "vectorEffect",
|
|
64015
|
+
version: 0,
|
|
64016
|
+
vertAdvY: 1,
|
|
64017
|
+
"vert-adv-y": "vertAdvY",
|
|
64018
|
+
vertOriginX: 1,
|
|
64019
|
+
"vert-origin-x": "vertOriginX",
|
|
64020
|
+
vertOriginY: 1,
|
|
64021
|
+
"vert-origin-y": "vertOriginY",
|
|
64022
|
+
vHanging: 1,
|
|
64023
|
+
"v-hanging": "vHanging",
|
|
64024
|
+
vIdeographic: 1,
|
|
64025
|
+
"v-ideographic": "vIdeographic",
|
|
64026
|
+
viewBox: 1,
|
|
64027
|
+
viewTarget: 1,
|
|
64028
|
+
visibility: 0,
|
|
64029
|
+
vMathematical: 1,
|
|
64030
|
+
"v-mathematical": "vMathematical",
|
|
64031
|
+
vocab: 0,
|
|
64032
|
+
widths: 0,
|
|
64033
|
+
wordSpacing: 1,
|
|
64034
|
+
"word-spacing": "wordSpacing",
|
|
64035
|
+
writingMode: 1,
|
|
64036
|
+
"writing-mode": "writingMode",
|
|
64037
|
+
x1: 0,
|
|
64038
|
+
x2: 0,
|
|
64039
|
+
x: 0,
|
|
64040
|
+
xChannelSelector: 1,
|
|
64041
|
+
xHeight: 1,
|
|
64042
|
+
"x-height": "xHeight",
|
|
64043
|
+
xlinkActuate: 1,
|
|
64044
|
+
"xlink:actuate": "xlinkActuate",
|
|
64045
|
+
xlinkArcrole: 1,
|
|
64046
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
64047
|
+
xlinkHref: 1,
|
|
64048
|
+
"xlink:href": "xlinkHref",
|
|
64049
|
+
xlinkRole: 1,
|
|
64050
|
+
"xlink:role": "xlinkRole",
|
|
64051
|
+
xlinkShow: 1,
|
|
64052
|
+
"xlink:show": "xlinkShow",
|
|
64053
|
+
xlinkTitle: 1,
|
|
64054
|
+
"xlink:title": "xlinkTitle",
|
|
64055
|
+
xlinkType: 1,
|
|
64056
|
+
"xlink:type": "xlinkType",
|
|
64057
|
+
xmlBase: 1,
|
|
64058
|
+
"xml:base": "xmlBase",
|
|
64059
|
+
xmlLang: 1,
|
|
64060
|
+
"xml:lang": "xmlLang",
|
|
64061
|
+
xmlns: 0,
|
|
64062
|
+
"xml:space": "xmlSpace",
|
|
64063
|
+
xmlnsXlink: 1,
|
|
64064
|
+
"xmlns:xlink": "xmlnsXlink",
|
|
64065
|
+
xmlSpace: 1,
|
|
64066
|
+
y1: 0,
|
|
64067
|
+
y2: 0,
|
|
64068
|
+
y: 0,
|
|
64069
|
+
yChannelSelector: 1,
|
|
64070
|
+
z: 0,
|
|
64071
|
+
zoomAndPan: 1
|
|
64072
|
+
};
|
|
64073
|
+
Object.defineProperty(lib, "__esModule", { value: true });
|
|
64074
|
+
function _slicedToArray(arr2, i2) {
|
|
64075
|
+
return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
|
|
64076
|
+
}
|
|
64077
|
+
function _arrayWithHoles(arr2) {
|
|
64078
|
+
if (Array.isArray(arr2))
|
|
64079
|
+
return arr2;
|
|
64080
|
+
}
|
|
64081
|
+
function _iterableToArrayLimit(arr2, i2) {
|
|
64082
|
+
var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
|
|
64083
|
+
if (_i2 == null)
|
|
64084
|
+
return;
|
|
64085
|
+
var _arr = [];
|
|
64086
|
+
var _n2 = true;
|
|
64087
|
+
var _d2 = false;
|
|
64088
|
+
var _s, _e3;
|
|
64089
|
+
try {
|
|
64090
|
+
for (_i2 = _i2.call(arr2); !(_n2 = (_s = _i2.next()).done); _n2 = true) {
|
|
64091
|
+
_arr.push(_s.value);
|
|
64092
|
+
if (i2 && _arr.length === i2)
|
|
64093
|
+
break;
|
|
64094
|
+
}
|
|
64095
|
+
} catch (err) {
|
|
64096
|
+
_d2 = true;
|
|
64097
|
+
_e3 = err;
|
|
64098
|
+
} finally {
|
|
64099
|
+
try {
|
|
64100
|
+
if (!_n2 && _i2["return"] != null)
|
|
64101
|
+
_i2["return"]();
|
|
64102
|
+
} finally {
|
|
64103
|
+
if (_d2)
|
|
64104
|
+
throw _e3;
|
|
64105
|
+
}
|
|
64106
|
+
}
|
|
64107
|
+
return _arr;
|
|
64108
|
+
}
|
|
64109
|
+
function _unsupportedIterableToArray(o2, minLen) {
|
|
64110
|
+
if (!o2)
|
|
64111
|
+
return;
|
|
64112
|
+
if (typeof o2 === "string")
|
|
64113
|
+
return _arrayLikeToArray(o2, minLen);
|
|
64114
|
+
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
64115
|
+
if (n2 === "Object" && o2.constructor)
|
|
64116
|
+
n2 = o2.constructor.name;
|
|
64117
|
+
if (n2 === "Map" || n2 === "Set")
|
|
64118
|
+
return Array.from(o2);
|
|
64119
|
+
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
64120
|
+
return _arrayLikeToArray(o2, minLen);
|
|
64121
|
+
}
|
|
64122
|
+
function _arrayLikeToArray(arr2, len2) {
|
|
64123
|
+
if (len2 == null || len2 > arr2.length)
|
|
64124
|
+
len2 = arr2.length;
|
|
64125
|
+
for (var i2 = 0, arr22 = new Array(len2); i2 < len2; i2++)
|
|
64126
|
+
arr22[i2] = arr2[i2];
|
|
64127
|
+
return arr22;
|
|
64128
|
+
}
|
|
64129
|
+
function _nonIterableRest() {
|
|
64130
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
64131
|
+
}
|
|
64132
|
+
var RESERVED = 0;
|
|
64133
|
+
var STRING = 1;
|
|
64134
|
+
var BOOLEANISH_STRING = 2;
|
|
64135
|
+
var BOOLEAN = 3;
|
|
64136
|
+
var OVERLOADED_BOOLEAN = 4;
|
|
64137
|
+
var NUMERIC = 5;
|
|
64138
|
+
var POSITIVE_NUMERIC = 6;
|
|
64139
|
+
function getPropertyInfo(name) {
|
|
64140
|
+
return properties.hasOwnProperty(name) ? properties[name] : null;
|
|
64141
|
+
}
|
|
64142
|
+
function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
|
64143
|
+
this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
|
|
64144
|
+
this.attributeName = attributeName;
|
|
64145
|
+
this.attributeNamespace = attributeNamespace;
|
|
64146
|
+
this.mustUseProperty = mustUseProperty;
|
|
64147
|
+
this.propertyName = name;
|
|
64148
|
+
this.type = type2;
|
|
64149
|
+
this.sanitizeURL = sanitizeURL;
|
|
64150
|
+
this.removeEmptyString = removeEmptyString;
|
|
64151
|
+
}
|
|
64152
|
+
var properties = {};
|
|
64153
|
+
var reservedProps = [
|
|
64154
|
+
"children",
|
|
64155
|
+
"dangerouslySetInnerHTML",
|
|
64156
|
+
// TODO: This prevents the assignment of defaultValue to regular
|
|
64157
|
+
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
64158
|
+
// defaultValue property -- do we need this?
|
|
64159
|
+
"defaultValue",
|
|
64160
|
+
"defaultChecked",
|
|
64161
|
+
"innerHTML",
|
|
64162
|
+
"suppressContentEditableWarning",
|
|
64163
|
+
"suppressHydrationWarning",
|
|
64164
|
+
"style"
|
|
64165
|
+
];
|
|
64166
|
+
reservedProps.forEach(function(name) {
|
|
64167
|
+
properties[name] = new PropertyInfoRecord(
|
|
64168
|
+
name,
|
|
64169
|
+
RESERVED,
|
|
64170
|
+
false,
|
|
64171
|
+
// mustUseProperty
|
|
64172
|
+
name,
|
|
64173
|
+
// attributeName
|
|
64174
|
+
null,
|
|
64175
|
+
// attributeNamespace
|
|
64176
|
+
false,
|
|
64177
|
+
// sanitizeURL
|
|
64178
|
+
false
|
|
64179
|
+
);
|
|
64180
|
+
});
|
|
64181
|
+
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
|
|
64182
|
+
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
|
|
64183
|
+
properties[name] = new PropertyInfoRecord(
|
|
64184
|
+
name,
|
|
64185
|
+
STRING,
|
|
64186
|
+
false,
|
|
64187
|
+
// mustUseProperty
|
|
64188
|
+
attributeName,
|
|
64189
|
+
// attributeName
|
|
64190
|
+
null,
|
|
64191
|
+
// attributeNamespace
|
|
64192
|
+
false,
|
|
64193
|
+
// sanitizeURL
|
|
64194
|
+
false
|
|
64195
|
+
);
|
|
64196
|
+
});
|
|
64197
|
+
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
|
|
64198
|
+
properties[name] = new PropertyInfoRecord(
|
|
64199
|
+
name,
|
|
64200
|
+
BOOLEANISH_STRING,
|
|
64201
|
+
false,
|
|
64202
|
+
// mustUseProperty
|
|
64203
|
+
name.toLowerCase(),
|
|
64204
|
+
// attributeName
|
|
64205
|
+
null,
|
|
64206
|
+
// attributeNamespace
|
|
64207
|
+
false,
|
|
64208
|
+
// sanitizeURL
|
|
64209
|
+
false
|
|
64210
|
+
);
|
|
64211
|
+
});
|
|
64212
|
+
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
|
|
64213
|
+
properties[name] = new PropertyInfoRecord(
|
|
64214
|
+
name,
|
|
64215
|
+
BOOLEANISH_STRING,
|
|
64216
|
+
false,
|
|
64217
|
+
// mustUseProperty
|
|
64218
|
+
name,
|
|
64219
|
+
// attributeName
|
|
64220
|
+
null,
|
|
64221
|
+
// attributeNamespace
|
|
64222
|
+
false,
|
|
64223
|
+
// sanitizeURL
|
|
64224
|
+
false
|
|
64225
|
+
);
|
|
64226
|
+
});
|
|
64227
|
+
[
|
|
64228
|
+
"allowFullScreen",
|
|
64229
|
+
"async",
|
|
64230
|
+
// Note: there is a special case that prevents it from being written to the DOM
|
|
64231
|
+
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
64232
|
+
"autoFocus",
|
|
64233
|
+
"autoPlay",
|
|
64234
|
+
"controls",
|
|
64235
|
+
"default",
|
|
64236
|
+
"defer",
|
|
64237
|
+
"disabled",
|
|
64238
|
+
"disablePictureInPicture",
|
|
64239
|
+
"disableRemotePlayback",
|
|
64240
|
+
"formNoValidate",
|
|
64241
|
+
"hidden",
|
|
64242
|
+
"loop",
|
|
64243
|
+
"noModule",
|
|
64244
|
+
"noValidate",
|
|
64245
|
+
"open",
|
|
64246
|
+
"playsInline",
|
|
64247
|
+
"readOnly",
|
|
64248
|
+
"required",
|
|
64249
|
+
"reversed",
|
|
64250
|
+
"scoped",
|
|
64251
|
+
"seamless",
|
|
64252
|
+
// Microdata
|
|
64253
|
+
"itemScope"
|
|
64254
|
+
].forEach(function(name) {
|
|
64255
|
+
properties[name] = new PropertyInfoRecord(
|
|
64256
|
+
name,
|
|
64257
|
+
BOOLEAN,
|
|
64258
|
+
false,
|
|
64259
|
+
// mustUseProperty
|
|
64260
|
+
name.toLowerCase(),
|
|
64261
|
+
// attributeName
|
|
64262
|
+
null,
|
|
64263
|
+
// attributeNamespace
|
|
64264
|
+
false,
|
|
64265
|
+
// sanitizeURL
|
|
64266
|
+
false
|
|
64267
|
+
);
|
|
64268
|
+
});
|
|
64269
|
+
[
|
|
64270
|
+
"checked",
|
|
64271
|
+
// Note: `option.selected` is not updated if `select.multiple` is
|
|
64272
|
+
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
64273
|
+
"multiple",
|
|
64274
|
+
"muted",
|
|
64275
|
+
"selected"
|
|
64276
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
64277
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
64278
|
+
// instead in the assignment below.
|
|
64279
|
+
].forEach(function(name) {
|
|
64280
|
+
properties[name] = new PropertyInfoRecord(
|
|
64281
|
+
name,
|
|
64282
|
+
BOOLEAN,
|
|
64283
|
+
true,
|
|
64284
|
+
// mustUseProperty
|
|
64285
|
+
name,
|
|
64286
|
+
// attributeName
|
|
64287
|
+
null,
|
|
64288
|
+
// attributeNamespace
|
|
64289
|
+
false,
|
|
64290
|
+
// sanitizeURL
|
|
64291
|
+
false
|
|
64292
|
+
);
|
|
64293
|
+
});
|
|
64294
|
+
[
|
|
64295
|
+
"capture",
|
|
64296
|
+
"download"
|
|
64297
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
64298
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
64299
|
+
// instead in the assignment below.
|
|
64300
|
+
].forEach(function(name) {
|
|
64301
|
+
properties[name] = new PropertyInfoRecord(
|
|
64302
|
+
name,
|
|
64303
|
+
OVERLOADED_BOOLEAN,
|
|
64304
|
+
false,
|
|
64305
|
+
// mustUseProperty
|
|
64306
|
+
name,
|
|
64307
|
+
// attributeName
|
|
64308
|
+
null,
|
|
64309
|
+
// attributeNamespace
|
|
64310
|
+
false,
|
|
64311
|
+
// sanitizeURL
|
|
64312
|
+
false
|
|
64313
|
+
);
|
|
64314
|
+
});
|
|
64315
|
+
[
|
|
64316
|
+
"cols",
|
|
64317
|
+
"rows",
|
|
64318
|
+
"size",
|
|
64319
|
+
"span"
|
|
64320
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
64321
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
64322
|
+
// instead in the assignment below.
|
|
64323
|
+
].forEach(function(name) {
|
|
64324
|
+
properties[name] = new PropertyInfoRecord(
|
|
64325
|
+
name,
|
|
64326
|
+
POSITIVE_NUMERIC,
|
|
64327
|
+
false,
|
|
64328
|
+
// mustUseProperty
|
|
64329
|
+
name,
|
|
64330
|
+
// attributeName
|
|
64331
|
+
null,
|
|
64332
|
+
// attributeNamespace
|
|
64333
|
+
false,
|
|
64334
|
+
// sanitizeURL
|
|
64335
|
+
false
|
|
64336
|
+
);
|
|
64337
|
+
});
|
|
64338
|
+
["rowSpan", "start"].forEach(function(name) {
|
|
64339
|
+
properties[name] = new PropertyInfoRecord(
|
|
64340
|
+
name,
|
|
64341
|
+
NUMERIC,
|
|
64342
|
+
false,
|
|
64343
|
+
// mustUseProperty
|
|
64344
|
+
name.toLowerCase(),
|
|
64345
|
+
// attributeName
|
|
64346
|
+
null,
|
|
64347
|
+
// attributeNamespace
|
|
64348
|
+
false,
|
|
64349
|
+
// sanitizeURL
|
|
64350
|
+
false
|
|
64351
|
+
);
|
|
64352
|
+
});
|
|
64353
|
+
var CAMELIZE = /[\-\:]([a-z])/g;
|
|
64354
|
+
var capitalize$1 = function capitalize2(token) {
|
|
64355
|
+
return token[1].toUpperCase();
|
|
64356
|
+
};
|
|
64357
|
+
[
|
|
64358
|
+
"accent-height",
|
|
64359
|
+
"alignment-baseline",
|
|
64360
|
+
"arabic-form",
|
|
64361
|
+
"baseline-shift",
|
|
64362
|
+
"cap-height",
|
|
64363
|
+
"clip-path",
|
|
64364
|
+
"clip-rule",
|
|
64365
|
+
"color-interpolation",
|
|
64366
|
+
"color-interpolation-filters",
|
|
64367
|
+
"color-profile",
|
|
64368
|
+
"color-rendering",
|
|
64369
|
+
"dominant-baseline",
|
|
64370
|
+
"enable-background",
|
|
64371
|
+
"fill-opacity",
|
|
64372
|
+
"fill-rule",
|
|
64373
|
+
"flood-color",
|
|
64374
|
+
"flood-opacity",
|
|
64375
|
+
"font-family",
|
|
64376
|
+
"font-size",
|
|
64377
|
+
"font-size-adjust",
|
|
64378
|
+
"font-stretch",
|
|
64379
|
+
"font-style",
|
|
64380
|
+
"font-variant",
|
|
64381
|
+
"font-weight",
|
|
64382
|
+
"glyph-name",
|
|
64383
|
+
"glyph-orientation-horizontal",
|
|
64384
|
+
"glyph-orientation-vertical",
|
|
64385
|
+
"horiz-adv-x",
|
|
64386
|
+
"horiz-origin-x",
|
|
64387
|
+
"image-rendering",
|
|
64388
|
+
"letter-spacing",
|
|
64389
|
+
"lighting-color",
|
|
64390
|
+
"marker-end",
|
|
64391
|
+
"marker-mid",
|
|
64392
|
+
"marker-start",
|
|
64393
|
+
"overline-position",
|
|
64394
|
+
"overline-thickness",
|
|
64395
|
+
"paint-order",
|
|
64396
|
+
"panose-1",
|
|
64397
|
+
"pointer-events",
|
|
64398
|
+
"rendering-intent",
|
|
64399
|
+
"shape-rendering",
|
|
64400
|
+
"stop-color",
|
|
64401
|
+
"stop-opacity",
|
|
64402
|
+
"strikethrough-position",
|
|
64403
|
+
"strikethrough-thickness",
|
|
64404
|
+
"stroke-dasharray",
|
|
64405
|
+
"stroke-dashoffset",
|
|
64406
|
+
"stroke-linecap",
|
|
64407
|
+
"stroke-linejoin",
|
|
64408
|
+
"stroke-miterlimit",
|
|
64409
|
+
"stroke-opacity",
|
|
64410
|
+
"stroke-width",
|
|
64411
|
+
"text-anchor",
|
|
64412
|
+
"text-decoration",
|
|
64413
|
+
"text-rendering",
|
|
64414
|
+
"underline-position",
|
|
64415
|
+
"underline-thickness",
|
|
64416
|
+
"unicode-bidi",
|
|
64417
|
+
"unicode-range",
|
|
64418
|
+
"units-per-em",
|
|
64419
|
+
"v-alphabetic",
|
|
64420
|
+
"v-hanging",
|
|
64421
|
+
"v-ideographic",
|
|
64422
|
+
"v-mathematical",
|
|
64423
|
+
"vector-effect",
|
|
64424
|
+
"vert-adv-y",
|
|
64425
|
+
"vert-origin-x",
|
|
64426
|
+
"vert-origin-y",
|
|
64427
|
+
"word-spacing",
|
|
64428
|
+
"writing-mode",
|
|
64429
|
+
"xmlns:xlink",
|
|
64430
|
+
"x-height"
|
|
64431
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
64432
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
64433
|
+
// instead in the assignment below.
|
|
64434
|
+
].forEach(function(attributeName) {
|
|
64435
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
64436
|
+
properties[name] = new PropertyInfoRecord(
|
|
64437
|
+
name,
|
|
64438
|
+
STRING,
|
|
64439
|
+
false,
|
|
64440
|
+
// mustUseProperty
|
|
64441
|
+
attributeName,
|
|
64442
|
+
null,
|
|
64443
|
+
// attributeNamespace
|
|
64444
|
+
false,
|
|
64445
|
+
// sanitizeURL
|
|
64446
|
+
false
|
|
64447
|
+
);
|
|
64448
|
+
});
|
|
64449
|
+
[
|
|
64450
|
+
"xlink:actuate",
|
|
64451
|
+
"xlink:arcrole",
|
|
64452
|
+
"xlink:role",
|
|
64453
|
+
"xlink:show",
|
|
64454
|
+
"xlink:title",
|
|
64455
|
+
"xlink:type"
|
|
64456
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
64457
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
64458
|
+
// instead in the assignment below.
|
|
64459
|
+
].forEach(function(attributeName) {
|
|
64460
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
64461
|
+
properties[name] = new PropertyInfoRecord(
|
|
64462
|
+
name,
|
|
64463
|
+
STRING,
|
|
64464
|
+
false,
|
|
64465
|
+
// mustUseProperty
|
|
64466
|
+
attributeName,
|
|
64467
|
+
"http://www.w3.org/1999/xlink",
|
|
64468
|
+
false,
|
|
64469
|
+
// sanitizeURL
|
|
64470
|
+
false
|
|
64471
|
+
);
|
|
64472
|
+
});
|
|
64473
|
+
[
|
|
64474
|
+
"xml:base",
|
|
64475
|
+
"xml:lang",
|
|
64476
|
+
"xml:space"
|
|
64477
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
64478
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
64479
|
+
// instead in the assignment below.
|
|
64480
|
+
].forEach(function(attributeName) {
|
|
64481
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
64482
|
+
properties[name] = new PropertyInfoRecord(
|
|
64483
|
+
name,
|
|
64484
|
+
STRING,
|
|
64485
|
+
false,
|
|
64486
|
+
// mustUseProperty
|
|
64487
|
+
attributeName,
|
|
64488
|
+
"http://www.w3.org/XML/1998/namespace",
|
|
64489
|
+
false,
|
|
64490
|
+
// sanitizeURL
|
|
64491
|
+
false
|
|
64492
|
+
);
|
|
64493
|
+
});
|
|
64494
|
+
["tabIndex", "crossOrigin"].forEach(function(attributeName) {
|
|
64495
|
+
properties[attributeName] = new PropertyInfoRecord(
|
|
64496
|
+
attributeName,
|
|
64497
|
+
STRING,
|
|
64498
|
+
false,
|
|
64499
|
+
// mustUseProperty
|
|
64500
|
+
attributeName.toLowerCase(),
|
|
64501
|
+
// attributeName
|
|
64502
|
+
null,
|
|
64503
|
+
// attributeNamespace
|
|
64504
|
+
false,
|
|
64505
|
+
// sanitizeURL
|
|
64506
|
+
false
|
|
64507
|
+
);
|
|
64508
|
+
});
|
|
64509
|
+
var xlinkHref = "xlinkHref";
|
|
64510
|
+
properties[xlinkHref] = new PropertyInfoRecord(
|
|
64511
|
+
"xlinkHref",
|
|
64512
|
+
STRING,
|
|
64513
|
+
false,
|
|
64514
|
+
// mustUseProperty
|
|
64515
|
+
"xlink:href",
|
|
64516
|
+
"http://www.w3.org/1999/xlink",
|
|
64517
|
+
true,
|
|
64518
|
+
// sanitizeURL
|
|
64519
|
+
false
|
|
64520
|
+
);
|
|
64521
|
+
["src", "href", "action", "formAction"].forEach(function(attributeName) {
|
|
64522
|
+
properties[attributeName] = new PropertyInfoRecord(
|
|
64523
|
+
attributeName,
|
|
64524
|
+
STRING,
|
|
64525
|
+
false,
|
|
64526
|
+
// mustUseProperty
|
|
64527
|
+
attributeName.toLowerCase(),
|
|
64528
|
+
// attributeName
|
|
64529
|
+
null,
|
|
64530
|
+
// attributeNamespace
|
|
64531
|
+
true,
|
|
64532
|
+
// sanitizeURL
|
|
64533
|
+
true
|
|
64534
|
+
);
|
|
64535
|
+
});
|
|
64536
|
+
var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
|
|
64537
|
+
var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
64538
|
+
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
64539
|
+
var isCustomAttribute = RegExp.prototype.test.bind(
|
|
64540
|
+
// eslint-disable-next-line no-misleading-character-class
|
|
64541
|
+
new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
|
|
64542
|
+
);
|
|
64543
|
+
var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
|
|
64544
|
+
var propName = possibleStandardNamesOptimized[standardName];
|
|
64545
|
+
if (propName === SAME) {
|
|
64546
|
+
accumulator[standardName] = standardName;
|
|
64547
|
+
} else if (propName === CAMELCASE) {
|
|
64548
|
+
accumulator[standardName.toLowerCase()] = standardName;
|
|
64549
|
+
} else {
|
|
64550
|
+
accumulator[standardName] = propName;
|
|
64551
|
+
}
|
|
64552
|
+
return accumulator;
|
|
64553
|
+
}, {});
|
|
64554
|
+
lib.BOOLEAN = BOOLEAN;
|
|
64555
|
+
lib.BOOLEANISH_STRING = BOOLEANISH_STRING;
|
|
64556
|
+
lib.NUMERIC = NUMERIC;
|
|
64557
|
+
lib.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
|
|
64558
|
+
lib.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
|
|
64559
|
+
lib.RESERVED = RESERVED;
|
|
64560
|
+
lib.STRING = STRING;
|
|
64561
|
+
lib.getPropertyInfo = getPropertyInfo;
|
|
64562
|
+
lib.isCustomAttribute = isCustomAttribute;
|
|
64563
|
+
lib.possibleStandardNames = possibleStandardNames;
|
|
64564
|
+
var cjs = {};
|
|
64565
|
+
var styleToObject = { exports: {} };
|
|
64566
|
+
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
64567
|
+
var NEWLINE_REGEX = /\n/g;
|
|
64568
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
64569
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
64570
|
+
var COLON_REGEX = /^:\s*/;
|
|
64571
|
+
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
64572
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
64573
|
+
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
64574
|
+
var NEWLINE = "\n";
|
|
64575
|
+
var FORWARD_SLASH = "/";
|
|
64576
|
+
var ASTERISK = "*";
|
|
64577
|
+
var EMPTY_STRING = "";
|
|
64578
|
+
var TYPE_COMMENT = "comment";
|
|
64579
|
+
var TYPE_DECLARATION = "declaration";
|
|
64580
|
+
var inlineStyleParser = function(style, options) {
|
|
64581
|
+
if (typeof style !== "string") {
|
|
64582
|
+
throw new TypeError("First argument must be a string");
|
|
64583
|
+
}
|
|
64584
|
+
if (!style)
|
|
64585
|
+
return [];
|
|
64586
|
+
options = options || {};
|
|
64587
|
+
var lineno = 1;
|
|
64588
|
+
var column = 1;
|
|
64589
|
+
function updatePosition(str) {
|
|
64590
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
64591
|
+
if (lines)
|
|
64592
|
+
lineno += lines.length;
|
|
64593
|
+
var i2 = str.lastIndexOf(NEWLINE);
|
|
64594
|
+
column = ~i2 ? str.length - i2 : column + str.length;
|
|
64595
|
+
}
|
|
64596
|
+
function position() {
|
|
64597
|
+
var start2 = { line: lineno, column };
|
|
64598
|
+
return function(node2) {
|
|
64599
|
+
node2.position = new Position(start2);
|
|
64600
|
+
whitespace();
|
|
64601
|
+
return node2;
|
|
64602
|
+
};
|
|
64603
|
+
}
|
|
64604
|
+
function Position(start2) {
|
|
64605
|
+
this.start = start2;
|
|
64606
|
+
this.end = { line: lineno, column };
|
|
64607
|
+
this.source = options.source;
|
|
64608
|
+
}
|
|
64609
|
+
Position.prototype.content = style;
|
|
64610
|
+
function error(msg) {
|
|
64611
|
+
var err = new Error(
|
|
64612
|
+
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
64613
|
+
);
|
|
64614
|
+
err.reason = msg;
|
|
64615
|
+
err.filename = options.source;
|
|
64616
|
+
err.line = lineno;
|
|
64617
|
+
err.column = column;
|
|
64618
|
+
err.source = style;
|
|
64619
|
+
if (options.silent)
|
|
64620
|
+
;
|
|
64621
|
+
else {
|
|
64622
|
+
throw err;
|
|
64623
|
+
}
|
|
64624
|
+
}
|
|
64625
|
+
function match(re2) {
|
|
64626
|
+
var m2 = re2.exec(style);
|
|
64627
|
+
if (!m2)
|
|
64628
|
+
return;
|
|
64629
|
+
var str = m2[0];
|
|
64630
|
+
updatePosition(str);
|
|
64631
|
+
style = style.slice(str.length);
|
|
64632
|
+
return m2;
|
|
64633
|
+
}
|
|
64634
|
+
function whitespace() {
|
|
64635
|
+
match(WHITESPACE_REGEX);
|
|
64636
|
+
}
|
|
64637
|
+
function comments(rules) {
|
|
64638
|
+
var c6;
|
|
64639
|
+
rules = rules || [];
|
|
64640
|
+
while (c6 = comment()) {
|
|
64641
|
+
if (c6 !== false) {
|
|
64642
|
+
rules.push(c6);
|
|
64643
|
+
}
|
|
64644
|
+
}
|
|
64645
|
+
return rules;
|
|
64646
|
+
}
|
|
64647
|
+
function comment() {
|
|
64648
|
+
var pos = position();
|
|
64649
|
+
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
|
|
64650
|
+
return;
|
|
64651
|
+
var i2 = 2;
|
|
64652
|
+
while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
|
|
64653
|
+
++i2;
|
|
64654
|
+
}
|
|
64655
|
+
i2 += 2;
|
|
64656
|
+
if (EMPTY_STRING === style.charAt(i2 - 1)) {
|
|
64657
|
+
return error("End of comment missing");
|
|
64658
|
+
}
|
|
64659
|
+
var str = style.slice(2, i2 - 2);
|
|
64660
|
+
column += 2;
|
|
64661
|
+
updatePosition(str);
|
|
64662
|
+
style = style.slice(i2);
|
|
64663
|
+
column += 2;
|
|
64664
|
+
return pos({
|
|
64665
|
+
type: TYPE_COMMENT,
|
|
64666
|
+
comment: str
|
|
64667
|
+
});
|
|
64668
|
+
}
|
|
64669
|
+
function declaration() {
|
|
64670
|
+
var pos = position();
|
|
64671
|
+
var prop = match(PROPERTY_REGEX);
|
|
64672
|
+
if (!prop)
|
|
64673
|
+
return;
|
|
64674
|
+
comment();
|
|
64675
|
+
if (!match(COLON_REGEX))
|
|
64676
|
+
return error("property missing ':'");
|
|
64677
|
+
var val = match(VALUE_REGEX);
|
|
64678
|
+
var ret = pos({
|
|
64679
|
+
type: TYPE_DECLARATION,
|
|
64680
|
+
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
64681
|
+
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
64682
|
+
});
|
|
64683
|
+
match(SEMICOLON_REGEX);
|
|
64684
|
+
return ret;
|
|
64685
|
+
}
|
|
64686
|
+
function declarations() {
|
|
64687
|
+
var decls = [];
|
|
64688
|
+
comments(decls);
|
|
64689
|
+
var decl;
|
|
64690
|
+
while (decl = declaration()) {
|
|
64691
|
+
if (decl !== false) {
|
|
64692
|
+
decls.push(decl);
|
|
64693
|
+
comments(decls);
|
|
64694
|
+
}
|
|
64695
|
+
}
|
|
64696
|
+
return decls;
|
|
64697
|
+
}
|
|
64698
|
+
whitespace();
|
|
64699
|
+
return declarations();
|
|
64700
|
+
};
|
|
64701
|
+
function trim(str) {
|
|
64702
|
+
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
64703
|
+
}
|
|
64704
|
+
var parse = inlineStyleParser;
|
|
64705
|
+
function StyleToObject(style, iterator) {
|
|
64706
|
+
var output = null;
|
|
64707
|
+
if (!style || typeof style !== "string") {
|
|
64708
|
+
return output;
|
|
64709
|
+
}
|
|
64710
|
+
var declaration;
|
|
64711
|
+
var declarations = parse(style);
|
|
64712
|
+
var hasIterator = typeof iterator === "function";
|
|
64713
|
+
var property;
|
|
64714
|
+
var value;
|
|
64715
|
+
for (var i2 = 0, len2 = declarations.length; i2 < len2; i2++) {
|
|
64716
|
+
declaration = declarations[i2];
|
|
64717
|
+
property = declaration.property;
|
|
64718
|
+
value = declaration.value;
|
|
64719
|
+
if (hasIterator) {
|
|
64720
|
+
iterator(property, value, declaration);
|
|
64721
|
+
} else if (value) {
|
|
64722
|
+
output || (output = {});
|
|
64723
|
+
output[property] = value;
|
|
64724
|
+
}
|
|
64725
|
+
}
|
|
64726
|
+
return output;
|
|
64727
|
+
}
|
|
64728
|
+
styleToObject.exports = StyleToObject;
|
|
64729
|
+
styleToObject.exports.default = StyleToObject;
|
|
64730
|
+
var styleToObjectExports = styleToObject.exports;
|
|
64731
|
+
var utilities$3 = {};
|
|
64732
|
+
utilities$3.__esModule = true;
|
|
64733
|
+
utilities$3.camelCase = void 0;
|
|
64734
|
+
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
64735
|
+
var HYPHEN_REGEX = /-([a-z])/g;
|
|
64736
|
+
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
64737
|
+
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
64738
|
+
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
64739
|
+
var skipCamelCase = function(property) {
|
|
64740
|
+
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
64741
|
+
};
|
|
64742
|
+
var capitalize = function(match, character) {
|
|
64743
|
+
return character.toUpperCase();
|
|
64744
|
+
};
|
|
64745
|
+
var trimHyphen = function(match, prefix2) {
|
|
64746
|
+
return "".concat(prefix2, "-");
|
|
64747
|
+
};
|
|
64748
|
+
var camelCase = function(property, options) {
|
|
64749
|
+
if (options === void 0) {
|
|
64750
|
+
options = {};
|
|
64751
|
+
}
|
|
64752
|
+
if (skipCamelCase(property)) {
|
|
64753
|
+
return property;
|
|
64754
|
+
}
|
|
64755
|
+
property = property.toLowerCase();
|
|
64756
|
+
if (options.reactCompat) {
|
|
64757
|
+
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
64758
|
+
} else {
|
|
64759
|
+
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
64760
|
+
}
|
|
64761
|
+
return property.replace(HYPHEN_REGEX, capitalize);
|
|
64762
|
+
};
|
|
64763
|
+
utilities$3.camelCase = camelCase;
|
|
64764
|
+
(function(exports2) {
|
|
64765
|
+
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
|
|
64766
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
64767
|
+
};
|
|
64768
|
+
exports2.__esModule = true;
|
|
64769
|
+
var style_to_object_1 = __importDefault(styleToObjectExports);
|
|
64770
|
+
var utilities_1 = utilities$3;
|
|
64771
|
+
function StyleToJS(style, options) {
|
|
64772
|
+
var output = {};
|
|
64773
|
+
if (!style || typeof style !== "string") {
|
|
64774
|
+
return output;
|
|
64775
|
+
}
|
|
64776
|
+
(0, style_to_object_1["default"])(style, function(property, value) {
|
|
64777
|
+
if (property && value) {
|
|
64778
|
+
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
64779
|
+
}
|
|
64780
|
+
});
|
|
64781
|
+
return output;
|
|
64782
|
+
}
|
|
64783
|
+
exports2["default"] = StyleToJS;
|
|
64784
|
+
})(cjs);
|
|
64785
|
+
var React$1 = reactExports;
|
|
64786
|
+
var styleToJS = cjs.default;
|
|
64787
|
+
function invertObject(obj, override) {
|
|
64788
|
+
if (!obj || typeof obj !== "object") {
|
|
64789
|
+
throw new TypeError("First argument must be an object");
|
|
64790
|
+
}
|
|
64791
|
+
var isOverridePresent = typeof override === "function";
|
|
64792
|
+
var overrides = {};
|
|
64793
|
+
var result = {};
|
|
64794
|
+
for (var key in obj) {
|
|
64795
|
+
var value = obj[key];
|
|
64796
|
+
if (isOverridePresent) {
|
|
64797
|
+
overrides = override(key, value);
|
|
64798
|
+
if (overrides && overrides.length === 2) {
|
|
64799
|
+
result[overrides[0]] = overrides[1];
|
|
64800
|
+
continue;
|
|
64801
|
+
}
|
|
64802
|
+
}
|
|
64803
|
+
if (typeof value === "string") {
|
|
64804
|
+
result[value] = key;
|
|
64805
|
+
}
|
|
64806
|
+
}
|
|
64807
|
+
return result;
|
|
64808
|
+
}
|
|
64809
|
+
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
64810
|
+
"annotation-xml",
|
|
64811
|
+
"color-profile",
|
|
64812
|
+
"font-face",
|
|
64813
|
+
"font-face-src",
|
|
64814
|
+
"font-face-uri",
|
|
64815
|
+
"font-face-format",
|
|
64816
|
+
"font-face-name",
|
|
64817
|
+
"missing-glyph"
|
|
64818
|
+
]);
|
|
64819
|
+
function isCustomComponent(tagName2, props) {
|
|
64820
|
+
if (tagName2.indexOf("-") === -1) {
|
|
64821
|
+
return props && typeof props.is === "string";
|
|
64822
|
+
}
|
|
64823
|
+
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
|
|
64824
|
+
return false;
|
|
64825
|
+
}
|
|
64826
|
+
return true;
|
|
64827
|
+
}
|
|
64828
|
+
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
64829
|
+
function setStyleProp$1(style, props) {
|
|
64830
|
+
if (style === null || style === void 0) {
|
|
64831
|
+
return;
|
|
64832
|
+
}
|
|
64833
|
+
try {
|
|
64834
|
+
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
64835
|
+
} catch (err) {
|
|
64836
|
+
props.style = {};
|
|
64837
|
+
}
|
|
64838
|
+
}
|
|
64839
|
+
var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
|
|
64840
|
+
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
64841
|
+
"tr",
|
|
64842
|
+
"tbody",
|
|
64843
|
+
"thead",
|
|
64844
|
+
"tfoot",
|
|
64845
|
+
"colgroup",
|
|
64846
|
+
"table",
|
|
64847
|
+
"head",
|
|
64848
|
+
"html",
|
|
64849
|
+
"frameset"
|
|
64850
|
+
]);
|
|
64851
|
+
function canTextBeChildOfNode$1(node2) {
|
|
64852
|
+
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
|
|
64853
|
+
}
|
|
64854
|
+
function returnFirstArg(arg) {
|
|
64855
|
+
return arg;
|
|
64856
|
+
}
|
|
64857
|
+
var utilities$2 = {
|
|
64858
|
+
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
64859
|
+
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
64860
|
+
invertObject,
|
|
64861
|
+
isCustomComponent,
|
|
64862
|
+
setStyleProp: setStyleProp$1,
|
|
64863
|
+
canTextBeChildOfNode: canTextBeChildOfNode$1,
|
|
64864
|
+
returnFirstArg
|
|
64865
|
+
};
|
|
64866
|
+
var reactProperty = lib;
|
|
64867
|
+
var utilities$1 = utilities$2;
|
|
64868
|
+
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
|
|
64869
|
+
var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
|
|
64870
|
+
var VALUE_ONLY_INPUTS = {
|
|
64871
|
+
reset: true,
|
|
64872
|
+
submit: true
|
|
64873
|
+
};
|
|
64874
|
+
var attributesToProps$3 = function attributesToProps2(attributes, nodeName) {
|
|
64875
|
+
attributes = attributes || {};
|
|
64876
|
+
var attributeName;
|
|
64877
|
+
var attributeNameLowerCased;
|
|
64878
|
+
var attributeValue;
|
|
64879
|
+
var propName;
|
|
64880
|
+
var propertyInfo;
|
|
64881
|
+
var props = {};
|
|
64882
|
+
var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
|
|
64883
|
+
for (attributeName in attributes) {
|
|
64884
|
+
attributeValue = attributes[attributeName];
|
|
64885
|
+
if (reactProperty.isCustomAttribute(attributeName)) {
|
|
64886
|
+
props[attributeName] = attributeValue;
|
|
64887
|
+
continue;
|
|
64888
|
+
}
|
|
64889
|
+
attributeNameLowerCased = attributeName.toLowerCase();
|
|
64890
|
+
propName = getPropName(attributeNameLowerCased);
|
|
64891
|
+
if (propName) {
|
|
64892
|
+
propertyInfo = reactProperty.getPropertyInfo(propName);
|
|
64893
|
+
if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
|
|
64894
|
+
propName = getPropName("default" + attributeNameLowerCased);
|
|
64895
|
+
}
|
|
64896
|
+
props[propName] = attributeValue;
|
|
64897
|
+
switch (propertyInfo && propertyInfo.type) {
|
|
64898
|
+
case reactProperty.BOOLEAN:
|
|
64899
|
+
props[propName] = true;
|
|
64900
|
+
break;
|
|
64901
|
+
case reactProperty.OVERLOADED_BOOLEAN:
|
|
64902
|
+
if (attributeValue === "") {
|
|
64903
|
+
props[propName] = true;
|
|
64904
|
+
}
|
|
64905
|
+
break;
|
|
64906
|
+
}
|
|
64907
|
+
continue;
|
|
64908
|
+
}
|
|
64909
|
+
if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
|
|
64910
|
+
props[attributeName] = attributeValue;
|
|
64911
|
+
}
|
|
64912
|
+
}
|
|
64913
|
+
utilities$1.setStyleProp(attributes.style, props);
|
|
64914
|
+
return props;
|
|
64915
|
+
};
|
|
64916
|
+
function getPropName(attributeName) {
|
|
64917
|
+
return reactProperty.possibleStandardNames[attributeName];
|
|
64918
|
+
}
|
|
64919
|
+
var React = reactExports;
|
|
64920
|
+
var attributesToProps$2 = attributesToProps$3;
|
|
64921
|
+
var utilities = utilities$2;
|
|
64922
|
+
var setStyleProp = utilities.setStyleProp;
|
|
64923
|
+
var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
|
|
64924
|
+
function domToReact$2(nodes, options) {
|
|
64925
|
+
options = options || {};
|
|
64926
|
+
var library = options.library || React;
|
|
64927
|
+
var cloneElement = library.cloneElement;
|
|
64928
|
+
var createElement2 = library.createElement;
|
|
64929
|
+
var isValidElement = library.isValidElement;
|
|
64930
|
+
var result = [];
|
|
64931
|
+
var node2;
|
|
64932
|
+
var isWhitespace;
|
|
64933
|
+
var hasReplace = typeof options.replace === "function";
|
|
64934
|
+
var transform = options.transform || utilities.returnFirstArg;
|
|
64935
|
+
var replaceElement;
|
|
64936
|
+
var props;
|
|
64937
|
+
var children;
|
|
64938
|
+
var trim2 = options.trim;
|
|
64939
|
+
for (var i2 = 0, len2 = nodes.length; i2 < len2; i2++) {
|
|
64940
|
+
node2 = nodes[i2];
|
|
64941
|
+
if (hasReplace) {
|
|
64942
|
+
replaceElement = options.replace(node2);
|
|
64943
|
+
if (isValidElement(replaceElement)) {
|
|
64944
|
+
if (len2 > 1) {
|
|
64945
|
+
replaceElement = cloneElement(replaceElement, {
|
|
64946
|
+
key: replaceElement.key || i2
|
|
64947
|
+
});
|
|
64948
|
+
}
|
|
64949
|
+
result.push(transform(replaceElement, node2, i2));
|
|
64950
|
+
continue;
|
|
64951
|
+
}
|
|
64952
|
+
}
|
|
64953
|
+
if (node2.type === "text") {
|
|
64954
|
+
isWhitespace = !node2.data.trim().length;
|
|
64955
|
+
if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
|
|
64956
|
+
continue;
|
|
64957
|
+
}
|
|
64958
|
+
if (trim2 && isWhitespace) {
|
|
64959
|
+
continue;
|
|
64960
|
+
}
|
|
64961
|
+
result.push(transform(node2.data, node2, i2));
|
|
64962
|
+
continue;
|
|
64963
|
+
}
|
|
64964
|
+
props = node2.attribs;
|
|
64965
|
+
if (skipAttributesToProps(node2)) {
|
|
64966
|
+
setStyleProp(props.style, props);
|
|
64967
|
+
} else if (props) {
|
|
64968
|
+
props = attributesToProps$2(props, node2.name);
|
|
64969
|
+
}
|
|
64970
|
+
children = null;
|
|
64971
|
+
switch (node2.type) {
|
|
64972
|
+
case "script":
|
|
64973
|
+
case "style":
|
|
64974
|
+
if (node2.children[0]) {
|
|
64975
|
+
props.dangerouslySetInnerHTML = {
|
|
64976
|
+
__html: node2.children[0].data
|
|
64977
|
+
};
|
|
64978
|
+
}
|
|
64979
|
+
break;
|
|
64980
|
+
case "tag":
|
|
64981
|
+
if (node2.name === "textarea" && node2.children[0]) {
|
|
64982
|
+
props.defaultValue = node2.children[0].data;
|
|
64983
|
+
} else if (node2.children && node2.children.length) {
|
|
64984
|
+
children = domToReact$2(node2.children, options);
|
|
64985
|
+
}
|
|
64986
|
+
break;
|
|
64987
|
+
default:
|
|
64988
|
+
continue;
|
|
64989
|
+
}
|
|
64990
|
+
if (len2 > 1) {
|
|
64991
|
+
props.key = i2;
|
|
64992
|
+
}
|
|
64993
|
+
result.push(transform(createElement2(node2.name, props, children), node2, i2));
|
|
64994
|
+
}
|
|
64995
|
+
return result.length === 1 ? result[0] : result;
|
|
64996
|
+
}
|
|
64997
|
+
function skipAttributesToProps(node2) {
|
|
64998
|
+
return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
|
|
64999
|
+
}
|
|
65000
|
+
var domToReact_1 = domToReact$2;
|
|
65001
|
+
var domhandler = lib$2;
|
|
65002
|
+
var htmlToDOM = htmlToDom;
|
|
65003
|
+
var attributesToProps$1 = attributesToProps$3;
|
|
65004
|
+
var domToReact$1 = domToReact_1;
|
|
65005
|
+
htmlToDOM = /* istanbul ignore next */
|
|
65006
|
+
typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
|
|
65007
|
+
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
65008
|
+
function HTMLReactParser(html, options) {
|
|
65009
|
+
if (typeof html !== "string") {
|
|
65010
|
+
throw new TypeError("First argument must be a string");
|
|
65011
|
+
}
|
|
65012
|
+
if (html === "") {
|
|
65013
|
+
return [];
|
|
65014
|
+
}
|
|
65015
|
+
options = options || {};
|
|
65016
|
+
return domToReact$1(
|
|
65017
|
+
htmlToDOM(html, options.htmlparser2 || domParserOptions),
|
|
65018
|
+
options
|
|
65019
|
+
);
|
|
65020
|
+
}
|
|
65021
|
+
HTMLReactParser.domToReact = domToReact$1;
|
|
65022
|
+
HTMLReactParser.htmlToDOM = htmlToDOM;
|
|
65023
|
+
HTMLReactParser.attributesToProps = attributesToProps$1;
|
|
65024
|
+
HTMLReactParser.Comment = domhandler.Comment;
|
|
65025
|
+
HTMLReactParser.Element = domhandler.Element;
|
|
65026
|
+
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
|
|
65027
|
+
HTMLReactParser.Text = domhandler.Text;
|
|
65028
|
+
var htmlReactParser = HTMLReactParser;
|
|
65029
|
+
HTMLReactParser.default = HTMLReactParser;
|
|
65030
|
+
const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(htmlReactParser);
|
|
65031
|
+
var domToReact = HTMLReactParser$1.domToReact;
|
|
65032
|
+
HTMLReactParser$1.htmlToDOM;
|
|
65033
|
+
var attributesToProps = HTMLReactParser$1.attributesToProps;
|
|
65034
|
+
HTMLReactParser$1.Comment;
|
|
65035
|
+
HTMLReactParser$1.Element;
|
|
65036
|
+
HTMLReactParser$1.ProcessingInstruction;
|
|
65037
|
+
HTMLReactParser$1.Text;
|
|
62652
65038
|
const ActionBar$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
62653
65039
|
children
|
|
62654
65040
|
}, ref2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: "actionbar", children })), ActionBar$1$1 = ActionBar$1, Loading = /* @__PURE__ */ reactExports.forwardRef((props, ref2) => {
|
|
@@ -63396,7 +65782,7 @@ void main()
|
|
|
63396
65782
|
} = event ?? {};
|
|
63397
65783
|
if (Array.isArray(nodes)) {
|
|
63398
65784
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
63399
|
-
nodes.every((
|
|
65785
|
+
nodes.every((node2) => !!node2 && !event.composedPath().includes(node2)) && !shouldIgnore && handler();
|
|
63400
65786
|
} else
|
|
63401
65787
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
63402
65788
|
};
|
|
@@ -63678,10 +66064,10 @@ void main()
|
|
|
63678
66064
|
};
|
|
63679
66065
|
return reactExports.useEffect(
|
|
63680
66066
|
() => {
|
|
63681
|
-
const
|
|
63682
|
-
if (
|
|
63683
|
-
return
|
|
63684
|
-
|
|
66067
|
+
const node2 = ref2.current;
|
|
66068
|
+
if (node2)
|
|
66069
|
+
return node2.addEventListener("mouseover", handleMouseOver), node2.addEventListener("mouseout", handleMouseOut), () => {
|
|
66070
|
+
node2.removeEventListener("mouseover", handleMouseOver), node2.removeEventListener("mouseout", handleMouseOut);
|
|
63685
66071
|
};
|
|
63686
66072
|
},
|
|
63687
66073
|
[ref2]
|
|
@@ -63727,12 +66113,12 @@ void main()
|
|
|
63727
66113
|
function useTrapFocus() {
|
|
63728
66114
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
63729
66115
|
return reactExports.useEffect(() => {
|
|
63730
|
-
const
|
|
66116
|
+
const node2 = ref2.current, firstFocusableElement = node2.querySelectorAll(focusableElements)[0], focusableContent = node2.querySelectorAll(focusableElements), lastFocusableElement = ref2 && (focusableContent == null ? void 0 : focusableContent[focusableContent.length - 1]), handleKeydown = (event) => {
|
|
63731
66117
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
63732
66118
|
};
|
|
63733
|
-
if (
|
|
63734
|
-
return
|
|
63735
|
-
|
|
66119
|
+
if (node2)
|
|
66120
|
+
return node2.addEventListener("keydown", handleKeydown), () => {
|
|
66121
|
+
node2.removeEventListener("keydown", handleKeydown);
|
|
63736
66122
|
};
|
|
63737
66123
|
}, []), ref2;
|
|
63738
66124
|
}
|
|
@@ -63776,7 +66162,7 @@ void main()
|
|
|
63776
66162
|
return reactExports.useEffect(() => {
|
|
63777
66163
|
const subscription = odeServices.notify().events().subscribe(LAYER_NAME.TRANSPORT, (event) => {
|
|
63778
66164
|
var _a2, _b2;
|
|
63779
|
-
message.current = t2(((_b2 = (_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.payload) == null ? void 0 : _b2.error) || event.data.response.statusText), toast2.error(/* @__PURE__ */ React.createElement("div", {
|
|
66165
|
+
message.current = t2(((_b2 = (_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.payload) == null ? void 0 : _b2.error) || event.data.response.statusText), toast2.error(/* @__PURE__ */ React$2.createElement("div", {
|
|
63780
66166
|
children: [message.current]
|
|
63781
66167
|
}), options);
|
|
63782
66168
|
});
|
|
@@ -64289,11 +66675,11 @@ void main()
|
|
|
64289
66675
|
function treeReducer(state, action) {
|
|
64290
66676
|
switch (action.type) {
|
|
64291
66677
|
case "update": {
|
|
64292
|
-
const
|
|
64293
|
-
return
|
|
66678
|
+
const node2 = findTreeNode(state, (child) => child.id === action.folderId);
|
|
66679
|
+
return node2 && (node2.children = action.subfolders.map((f2) => ({
|
|
64294
66680
|
id: f2._id || "",
|
|
64295
66681
|
name: f2.name
|
|
64296
|
-
})),
|
|
66682
|
+
})), node2.files = action.files), {
|
|
64297
66683
|
...state
|
|
64298
66684
|
};
|
|
64299
66685
|
}
|
|
@@ -64320,8 +66706,8 @@ void main()
|
|
|
64320
66706
|
return true;
|
|
64321
66707
|
const role = DocumentHelper.getRole(f2);
|
|
64322
66708
|
return typeof format == "string" ? format === role : Array.isArray(format) ? format.findIndex((format2) => format2 === role) >= 0 : false;
|
|
64323
|
-
}).forEach((
|
|
64324
|
-
|
|
66709
|
+
}).forEach((doc2) => {
|
|
66710
|
+
doc2.eType === "folder" ? subfolders.push(doc2) : files.push(doc2);
|
|
64325
66711
|
}), dispatch({
|
|
64326
66712
|
folderId,
|
|
64327
66713
|
subfolders,
|
|
@@ -64435,8 +66821,8 @@ void main()
|
|
|
64435
66821
|
}
|
|
64436
66822
|
});
|
|
64437
66823
|
}), window.zE("webWidget:on", "userEvent", function(ref2) {
|
|
64438
|
-
const category = ref2.category, action = ref2.action,
|
|
64439
|
-
action === "Contact Form Shown" && category === "Zendesk Web Widget" &&
|
|
66824
|
+
const category = ref2.category, action = ref2.action, properties2 = ref2.properties;
|
|
66825
|
+
action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties2 && properties2.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
|
|
64440
66826
|
webWidget: {
|
|
64441
66827
|
contactForm: {
|
|
64442
66828
|
suppress: true
|
|
@@ -64598,8 +66984,8 @@ void main()
|
|
|
64598
66984
|
}
|
|
64599
66985
|
});
|
|
64600
66986
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
64601
|
-
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (
|
|
64602
|
-
modalRef.current =
|
|
66987
|
+
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (node2) => {
|
|
66988
|
+
modalRef.current = node2, isOpen2 && (trapRef.current = node2);
|
|
64603
66989
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
64604
66990
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
64605
66991
|
opacity: 0.65
|
|
@@ -65430,7 +67816,7 @@ void main()
|
|
|
65430
67816
|
}, roleMap == null ? void 0 : roleMap.color);
|
|
65431
67817
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: fileicon, children: (roleMap == null ? void 0 : roleMap.icon) ?? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgPaperclip$1, {}) });
|
|
65432
67818
|
}, FileIcon$1 = FileIcon, FileCard = ({
|
|
65433
|
-
doc,
|
|
67819
|
+
doc: doc2,
|
|
65434
67820
|
isClickable = true,
|
|
65435
67821
|
isSelectable = false,
|
|
65436
67822
|
isSelected = false,
|
|
@@ -65438,7 +67824,7 @@ void main()
|
|
|
65438
67824
|
className
|
|
65439
67825
|
}) => {
|
|
65440
67826
|
var _a2;
|
|
65441
|
-
const ref2 = reactExports.useRef(null), type2 = DocumentHelper.getRole(
|
|
67827
|
+
const ref2 = reactExports.useRef(null), type2 = DocumentHelper.getRole(doc2);
|
|
65442
67828
|
function getRoleMap(type22) {
|
|
65443
67829
|
const roleMappings = {
|
|
65444
67830
|
csv: {
|
|
@@ -65492,7 +67878,7 @@ void main()
|
|
|
65492
67878
|
};
|
|
65493
67879
|
return roleMappings[type22] || roleMappings.unknown;
|
|
65494
67880
|
}
|
|
65495
|
-
const file = clsx("file position-relative rounded", ((_a2 = getRoleMap(type2 ?? "default")) == null ? void 0 : _a2.color) ?? "bg-yellow-200"), mediaSrc = type2 === "img" || type2 === "video" ? odeServices.workspace().getThumbnailUrl(
|
|
67881
|
+
const file = clsx("file position-relative rounded", ((_a2 = getRoleMap(type2 ?? "default")) == null ? void 0 : _a2.color) ?? "bg-yellow-200"), mediaSrc = type2 === "img" || type2 === "video" ? odeServices.workspace().getThumbnailUrl(doc2) : null, hasThumbnail = useThumbnail(mediaSrc, {
|
|
65496
67882
|
ref: ref2
|
|
65497
67883
|
}), imageStyles = hasThumbnail && {
|
|
65498
67884
|
backgroundImage: `url(${mediaSrc})`,
|
|
@@ -65504,8 +67890,8 @@ void main()
|
|
|
65504
67890
|
...imageStyles
|
|
65505
67891
|
}, children: type2 !== "img" || type2 === "img" && !hasThumbnail ? /* @__PURE__ */ jsxRuntimeExports.jsx(FileIcon$1, { type: type2, roleMap: getRoleMap(type2) }) : null }),
|
|
65506
67892
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4", children: [
|
|
65507
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { children:
|
|
65508
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { className: "text-black-50", children:
|
|
67893
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { children: doc2.name }),
|
|
67894
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { className: "text-black-50", children: doc2 == null ? void 0 : doc2.ownerName })
|
|
65509
67895
|
] })
|
|
65510
67896
|
] }) });
|
|
65511
67897
|
}, FileCard$1 = FileCard, Grid = ({
|
|
@@ -65790,7 +68176,7 @@ void main()
|
|
|
65790
68176
|
reactExports.useEffect(() => {
|
|
65791
68177
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
65792
68178
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
65793
|
-
selectedNodesIds.some((
|
|
68179
|
+
selectedNodesIds.some((node2) => node2 === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node2 === nodeId) : (setExpanded(false), false));
|
|
65794
68180
|
} else
|
|
65795
68181
|
setExpanded(false);
|
|
65796
68182
|
}, [nodeId, selectedNodesIds]);
|
|
@@ -65839,7 +68225,7 @@ void main()
|
|
|
65839
68225
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
65840
68226
|
}, handleItemBlur = (nodeId) => {
|
|
65841
68227
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
65842
|
-
}, renderTree = (
|
|
68228
|
+
}, renderTree = (node2) => /* @__PURE__ */ jsxRuntimeExports.jsx(TreeItem$1, { nodeId: node2.id, label: node2.name, section: node2.section, selectedNodesIds, selected: selectedItem === node2.id, onItemSelect: handlers.select, onItemFold: handleItemFold, onItemUnfold: handleItemUnfold, onItemFocus: handleItemFocus, onItemBlur: handleItemBlur, children: Array.isArray(node2.children) ? node2.children.map((item) => renderTree(item)) : null }, node2.id);
|
|
65843
68229
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
65844
68230
|
}), TreeView$1 = TreeView, UploadCard = ({
|
|
65845
68231
|
item,
|
|
@@ -66833,10 +69219,10 @@ void main()
|
|
|
66833
69219
|
setResult
|
|
66834
69220
|
} = useMediaLibraryContext();
|
|
66835
69221
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Embed$1, { onSuccess: (ressource) => {
|
|
66836
|
-
setResult(ressource);
|
|
69222
|
+
ressource = ressource == null ? void 0 : ressource.replace(/<p /g, "<div ").replace(/\/p>/g, "/div>"), setResult(ressource);
|
|
66837
69223
|
} });
|
|
66838
69224
|
}, LinkerCard = ({
|
|
66839
|
-
doc,
|
|
69225
|
+
doc: doc2,
|
|
66840
69226
|
isClickable = true,
|
|
66841
69227
|
isSelectable = false,
|
|
66842
69228
|
isSelected = false,
|
|
@@ -66848,18 +69234,18 @@ void main()
|
|
|
66848
69234
|
} = useDate(), {
|
|
66849
69235
|
fromDate
|
|
66850
69236
|
} = reactExports.useMemo(() => ({
|
|
66851
|
-
fromDate: fromNow(
|
|
66852
|
-
}), [fromNow,
|
|
69237
|
+
fromDate: fromNow(doc2.modifiedAt)
|
|
69238
|
+
}), [fromNow, doc2]);
|
|
66853
69239
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Card$1, { className: clsx("card-linker shadow-none", className), isClickable, isSelectable, isSelected, onClick: onClick2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Card$1.Body, { space: "8", children: [
|
|
66854
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "card-image ps-8 pe-4", children:
|
|
69240
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "card-image ps-8 pe-4", children: doc2.thumbnail && doc2.thumbnail.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { alt: "", height: 48, width: 48, src: doc2.thumbnail, objectFit: "cover", className: "rounded h-full", style: {
|
|
66855
69241
|
aspectRatio: 1 / 1
|
|
66856
|
-
} }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppIcon$1, { app:
|
|
69242
|
+
} }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppIcon$1, { app: doc2.application, iconFit: "ratio", size: "48", variant: "rounded" }) }),
|
|
66857
69243
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-75", children: [
|
|
66858
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { children:
|
|
66859
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { className: "text-black-50", children:
|
|
69244
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { children: doc2.name }),
|
|
69245
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { className: "text-black-50", children: doc2 == null ? void 0 : doc2.creatorName })
|
|
66860
69246
|
] }),
|
|
66861
69247
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "d-none d-md-block text-black-50 ps-4 pe-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card$1.Text, { children: fromDate }) }),
|
|
66862
|
-
|
|
69248
|
+
doc2.shared && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-4 pe-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgUsers$1, { width: "20", height: "20" }) })
|
|
66863
69249
|
] }) });
|
|
66864
69250
|
}, LinkerCard$1 = LinkerCard, InternalLinker = ({
|
|
66865
69251
|
appCode,
|
|
@@ -66950,7 +69336,7 @@ void main()
|
|
|
66950
69336
|
] }),
|
|
66951
69337
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "internal-linker flex-grow-1 w-100 rounded-bottom border gap-0 overflow-auto", children: [
|
|
66952
69338
|
selectedApplication && resources && resources.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: resources.map((resource) => {
|
|
66953
|
-
const isSelected = selectedDocuments.findIndex((
|
|
69339
|
+
const isSelected = selectedDocuments.findIndex((doc2) => doc2.assetId === resource.assetId) >= 0;
|
|
66954
69340
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinkerCard$1, { doc: resource, isSelected, onClick: () => toggleResourceSelection(resource) }, resource.path);
|
|
66955
69341
|
}) }),
|
|
66956
69342
|
selectedApplication && resources && resources.length <= 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "d-flex justify-content-center mt-16", children: /* @__PURE__ */ jsxRuntimeExports.jsx(EmptyScreen$1, { imageSrc: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/illu-empty-search-${selectedApplication.application}.svg`, text: t2("bbm.linker.int.notfound"), className: "mt-16" }) }),
|
|
@@ -67969,7 +70355,7 @@ void main()
|
|
|
67969
70355
|
facingMode: "environment",
|
|
67970
70356
|
aspectRatio: VIDEO_WIDTH / VIDEO_HEIGHT
|
|
67971
70357
|
}
|
|
67972
|
-
}), [stream, setStream] = reactExports.useState(), [
|
|
70358
|
+
}), [stream, setStream] = reactExports.useState(), [mimeType2, setMimeType] = reactExports.useState(""), [recordedChunks, setRecordedChunks] = reactExports.useState([]), [recordedVideo, setRecordedVideo] = reactExports.useState(), [recordedTime, setRecordedTime] = reactExports.useState(0), [playedTime, setPlayedTime] = reactExports.useState(0), videoRef = reactExports.useRef(null), recorderRef = reactExports.useRef(null), {
|
|
67973
70359
|
uploadBlob
|
|
67974
70360
|
} = useUpload$1(void 0, appCode), {
|
|
67975
70361
|
device
|
|
@@ -67987,7 +70373,7 @@ void main()
|
|
|
67987
70373
|
}), [stream]), reactExports.useEffect(() => {
|
|
67988
70374
|
if (recordedChunks.length && !recording && videoRef.current) {
|
|
67989
70375
|
const finalVideo = new Blob(recordedChunks, {
|
|
67990
|
-
type:
|
|
70376
|
+
type: mimeType2
|
|
67991
70377
|
});
|
|
67992
70378
|
if (setRecordedVideo(finalVideo), onRecordUpdated) {
|
|
67993
70379
|
const videoUrl = window.URL.createObjectURL(finalVideo);
|
|
@@ -68049,9 +70435,9 @@ void main()
|
|
|
68049
70435
|
}
|
|
68050
70436
|
}, handleRecord = reactExports.useCallback(() => {
|
|
68051
70437
|
setRecording(true), videoRef && videoRef.current && (videoRef.current.muted = true);
|
|
68052
|
-
const
|
|
68053
|
-
setMimeType(
|
|
68054
|
-
mimeType:
|
|
70438
|
+
const mimeType22 = getBestSupportedMimeType();
|
|
70439
|
+
setMimeType(mimeType22), stream && (recorderRef.current = new MediaRecorder(stream, {
|
|
70440
|
+
mimeType: mimeType22
|
|
68055
70441
|
}), recorderRef.current.ondataavailable = ({
|
|
68056
70442
|
data
|
|
68057
70443
|
}) => {
|
|
@@ -68346,7 +70732,7 @@ void main()
|
|
|
68346
70732
|
const {
|
|
68347
70733
|
root: root2,
|
|
68348
70734
|
othersRef
|
|
68349
|
-
} = rootNodeFor(filter), targetNode = findTreeNode(root2, (
|
|
70735
|
+
} = rootNodeFor(filter), targetNode = findTreeNode(root2, (node2) => node2.id === nodeId);
|
|
68350
70736
|
targetNode && (setCurrentNode(targetNode), othersRef.forEach((otherRef) => {
|
|
68351
70737
|
var _a2;
|
|
68352
70738
|
return (_a2 = otherRef.current) == null ? void 0 : _a2.unselectAll();
|
|
@@ -68390,9 +70776,9 @@ void main()
|
|
|
68390
70776
|
function getSortOrderLabel() {
|
|
68391
70777
|
return sortOrder[0] === "name" ? sortOrder[1] === "asc" ? t2("sort.order.alpha.asc") : t2("sort.order.alpha.desc") : t2("sort.order.modify.desc");
|
|
68392
70778
|
}
|
|
68393
|
-
function handleSelectDoc(
|
|
70779
|
+
function handleSelectDoc(doc2) {
|
|
68394
70780
|
let currentDocuments = [...selectedDocuments];
|
|
68395
|
-
multiple ? currentDocuments.includes(
|
|
70781
|
+
multiple ? currentDocuments.includes(doc2) ? currentDocuments = currentDocuments.filter((selectedDocument) => selectedDocument._id !== doc2._id) : currentDocuments = [...currentDocuments, doc2] : currentDocuments = [doc2], setSelectedDocuments(currentDocuments), onSelect(currentDocuments);
|
|
68396
70782
|
}
|
|
68397
70783
|
const workspace = clsx("workspace flex-grow-1 gap-0", className);
|
|
68398
70784
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Grid, { className: workspace, children: [
|
|
@@ -68421,9 +70807,9 @@ void main()
|
|
|
68421
70807
|
] })
|
|
68422
70808
|
] })
|
|
68423
70809
|
] }),
|
|
68424
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Grid.Col, { sm: "4", md: "8", xl: "12", className: "p-8 gap-8", children: documents ? documents.length !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-workspace", children: documents.map((
|
|
68425
|
-
const isSelected = selectedDocuments.includes(
|
|
68426
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FileCard$1, { doc, isSelected, onClick: () => handleSelectDoc(
|
|
70810
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Grid.Col, { sm: "4", md: "8", xl: "12", className: "p-8 gap-8", children: documents ? documents.length !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-workspace", children: documents.map((doc2) => {
|
|
70811
|
+
const isSelected = selectedDocuments.includes(doc2);
|
|
70812
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FileCard$1, { doc: doc2, isSelected, onClick: () => handleSelectDoc(doc2) }, doc2._id);
|
|
68427
70813
|
}) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(EmptyScreen$1, { imageSrc: "/assets/themes/edifice-bootstrap/images/emptyscreen/illu-trash.svg", text: t2("workspace.empty.docSpace"), title: t2("explorer.emptyScreen.trash.title") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingScreen$1, {}) })
|
|
68428
70814
|
] }) })
|
|
68429
70815
|
] });
|
|
@@ -69356,17 +71742,17 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
69356
71742
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
69357
71743
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
69358
71744
|
return ignoreInvalid ? harmonized.replace(/\s+/g, delimiter) : harmonized.replace(new RegExp(`[^a-z0-9${safeDelimiter}]+`, "g"), delimiter).replace(new RegExp(`${safeDelimiter}+`, "g"), delimiter).replace(new RegExp(`^${safeDelimiter}`, "g"), "").replace(new RegExp(`${safeDelimiter}$`, "g"), "");
|
|
69359
|
-
}, slugify = (
|
|
69360
|
-
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !
|
|
71745
|
+
}, slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
|
|
71746
|
+
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node2 || typeof node2 == "boolean")
|
|
69361
71747
|
return "";
|
|
69362
71748
|
const { delimiter, prefix: prefix2 } = options;
|
|
69363
|
-
if (typeof
|
|
71749
|
+
if (typeof node2 == "boolean")
|
|
69364
71750
|
return "";
|
|
69365
|
-
if (typeof
|
|
69366
|
-
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(
|
|
71751
|
+
if (typeof node2 == "string" || typeof node2 == "number") {
|
|
71752
|
+
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node2), delimiter);
|
|
69367
71753
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
69368
71754
|
}
|
|
69369
|
-
return "children" in
|
|
71755
|
+
return "children" in node2 ? slugify(node2.children) : "type" in node2 ? slugify(node2.props.children, options) : Symbol.iterator in node2 ? slugify(Array.from(node2).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
|
|
69370
71756
|
};
|
|
69371
71757
|
var _default = slugify$1.default = slugify;
|
|
69372
71758
|
const useSlug = ({
|
|
@@ -70134,7 +72520,101 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
70134
72520
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
70135
72521
|
bookmarkedApps.slice(0, 6).map((app, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppIcon$1, { app, size: "32" }) }, index2))
|
|
70136
72522
|
] });
|
|
70137
|
-
}
|
|
72523
|
+
};
|
|
72524
|
+
function Help({
|
|
72525
|
+
isHelpOpen,
|
|
72526
|
+
setIsHelpOpen,
|
|
72527
|
+
parsedHeadline,
|
|
72528
|
+
parsedContent,
|
|
72529
|
+
error
|
|
72530
|
+
}) {
|
|
72531
|
+
const {
|
|
72532
|
+
t: t2
|
|
72533
|
+
} = useTranslation(), handleHelpOpen = () => {
|
|
72534
|
+
setIsHelpOpen(false);
|
|
72535
|
+
};
|
|
72536
|
+
return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
|
|
72537
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
|
|
72538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
|
|
72539
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
|
|
72540
|
+
] }), document.getElementById("portal")) : null;
|
|
72541
|
+
}
|
|
72542
|
+
function useHelp() {
|
|
72543
|
+
var _a2, _b2, _c2, _d2, _e3;
|
|
72544
|
+
const {
|
|
72545
|
+
appCode
|
|
72546
|
+
} = useOdeClient(), {
|
|
72547
|
+
theme
|
|
72548
|
+
} = useOdeTheme(), [html, setHtml] = reactExports.useState(""), [visibility, setVisibility] = reactExports.useState(true), [isModalOpen, setIsModalOpen] = reactExports.useState(false), [error, setError] = reactExports.useState(false), helpPath = theme != null && theme.is1d ? "/help-1d" : "/help-2d";
|
|
72549
|
+
reactExports.useEffect(() => {
|
|
72550
|
+
(async () => {
|
|
72551
|
+
let helpURL = "";
|
|
72552
|
+
helpURL = helpPath + "/application/" + appCode + "/", !appCode && window.location.pathname !== "/adapter" ? helpURL = helpPath + "/application/portal/" : window.location.pathname === "/adapter" ? helpURL = helpPath + "/application/" + window.location.search.split("eliot=")[1].split("&")[0] + "/" : window.location.pathname.includes("/directory/class-admin") ? helpURL = helpPath + "/application/parametrage-de-la-classe/" : (window.location.pathname.includes("/userbook/mon-compte") || window.location.pathname.includes("/timeline/preferencesView") || window.location.pathname.includes("/timeline/historyView")) && (helpURL = helpPath + "/application/userbook/");
|
|
72553
|
+
try {
|
|
72554
|
+
const res = await fetch(helpURL), html2 = await res.text();
|
|
72555
|
+
if (res.status === 404) {
|
|
72556
|
+
setError(true);
|
|
72557
|
+
return;
|
|
72558
|
+
}
|
|
72559
|
+
setHtml(html2), setError(false);
|
|
72560
|
+
} catch (error2) {
|
|
72561
|
+
setError(true), console.error(error2);
|
|
72562
|
+
}
|
|
72563
|
+
})();
|
|
72564
|
+
}, [appCode, helpPath]);
|
|
72565
|
+
const parsedHTML = HTMLReactParser$1(html, {
|
|
72566
|
+
replace: (domNode) => {
|
|
72567
|
+
const typedDomNode = domNode;
|
|
72568
|
+
if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
|
|
72569
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
|
|
72570
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
|
|
72571
|
+
setVisibility(!visibility);
|
|
72572
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
|
|
72573
|
+
domToReact(typedDomNode.children, {
|
|
72574
|
+
replace: (domNode2) => {
|
|
72575
|
+
const typedDomNode2 = domNode2;
|
|
72576
|
+
if (typedDomNode2.attribs && typedDomNode2.name === "ul")
|
|
72577
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
|
|
72578
|
+
display: visibility ? "block" : "none"
|
|
72579
|
+
}, children: domToReact(typedDomNode2.children, {
|
|
72580
|
+
replace: (domNode3) => {
|
|
72581
|
+
const typedDomNode3 = domNode3;
|
|
72582
|
+
if (typedDomNode3.attribs && typedDomNode3.name === "a")
|
|
72583
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
|
|
72584
|
+
setVisibility(false);
|
|
72585
|
+
}, children: domToReact(typedDomNode3.children) }) });
|
|
72586
|
+
}
|
|
72587
|
+
}) });
|
|
72588
|
+
}
|
|
72589
|
+
})
|
|
72590
|
+
] });
|
|
72591
|
+
if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
|
|
72592
|
+
const props = attributesToProps(domNode.attribs);
|
|
72593
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
|
|
72594
|
+
display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
|
|
72595
|
+
}, children: domToReact(typedDomNode.children, {
|
|
72596
|
+
replace: (domNode2) => {
|
|
72597
|
+
const typedDomNode2 = domNode2;
|
|
72598
|
+
if (typedDomNode2.attribs && typedDomNode2.name === "img") {
|
|
72599
|
+
const attribs = domNode2.attribs.src;
|
|
72600
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
|
|
72601
|
+
}
|
|
72602
|
+
}
|
|
72603
|
+
}) });
|
|
72604
|
+
}
|
|
72605
|
+
}
|
|
72606
|
+
}), parsedContent = (_c2 = (_b2 = (_a2 = parsedHTML == null ? void 0 : parsedHTML.props) == null ? void 0 : _a2.children.find((child) => child.type === "body")) == null ? void 0 : _b2.props) == null ? void 0 : _c2.children, parsedHeadline = (_e3 = (_d2 = parsedContent == null ? void 0 : parsedContent.find((child) => child.type === "p")) == null ? void 0 : _d2.props) == null ? void 0 : _e3.children;
|
|
72607
|
+
return {
|
|
72608
|
+
html,
|
|
72609
|
+
visibility,
|
|
72610
|
+
isModalOpen,
|
|
72611
|
+
setIsModalOpen,
|
|
72612
|
+
parsedContent,
|
|
72613
|
+
parsedHeadline,
|
|
72614
|
+
error
|
|
72615
|
+
};
|
|
72616
|
+
}
|
|
72617
|
+
const SearchEngine = () => {
|
|
70138
72618
|
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
70139
72619
|
t: t2
|
|
70140
72620
|
} = useTranslation();
|
|
@@ -70168,8 +72648,15 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
70168
72648
|
user,
|
|
70169
72649
|
avatar
|
|
70170
72650
|
} = useUser(), {
|
|
72651
|
+
currentLanguage,
|
|
70171
72652
|
currentApp
|
|
70172
|
-
} = useOdeClient(),
|
|
72653
|
+
} = useOdeClient(), hasOldHelpEnableWorkflow = useHasWorkflow("org.entcore.portal.controllers.PortalController|oldHelpEnable") || false, {
|
|
72654
|
+
isModalOpen: isHelpOpen,
|
|
72655
|
+
setIsModalOpen: setIsHelpOpen,
|
|
72656
|
+
parsedContent,
|
|
72657
|
+
parsedHeadline,
|
|
72658
|
+
error
|
|
72659
|
+
} = useHelp(), classes2 = clsx("header", {
|
|
70173
72660
|
"no-2d": is1d,
|
|
70174
72661
|
"no-1d": !is1d
|
|
70175
72662
|
}), {
|
|
@@ -70205,6 +72692,15 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
70205
72692
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
70206
72693
|
] }) }),
|
|
70207
72694
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { link: "/userbook/mon-compte", className: "dropdown-item", translate: t2("navbar.myaccount"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneProfile$1, { className: "icon user" }) }) }),
|
|
72695
|
+
currentLanguage === "fr" && hasOldHelpEnableWorkflow ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
72696
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
|
|
72697
|
+
setIsHelpOpen(true);
|
|
72698
|
+
}, children: [
|
|
72699
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
|
|
72700
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
|
|
72701
|
+
] }),
|
|
72702
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
72703
|
+
] }) : null,
|
|
70208
72704
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
70209
72705
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
70210
72706
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -70249,6 +72745,15 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
70249
72745
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
70250
72746
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages })
|
|
70251
72747
|
] }) }),
|
|
72748
|
+
currentLanguage === "fr" && hasOldHelpEnableWorkflow ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
72749
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
72750
|
+
setIsHelpOpen(true);
|
|
72751
|
+
}, children: [
|
|
72752
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
|
|
72753
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
|
|
72754
|
+
] }),
|
|
72755
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
72756
|
+
] }) : null,
|
|
70252
72757
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
70253
72758
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t2("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
70254
72759
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -70524,7 +73029,7 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
70524
73029
|
var withSelectorExports = withSelector.exports;
|
|
70525
73030
|
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
|
|
70526
73031
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
70527
|
-
const { useDebugValue } = React;
|
|
73032
|
+
const { useDebugValue } = React$2;
|
|
70528
73033
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
70529
73034
|
let didWarnAboutEqualityFn = false;
|
|
70530
73035
|
const identity = (arg) => arg;
|
|
@@ -70771,11 +73276,11 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
70771
73276
|
}
|
|
70772
73277
|
}
|
|
70773
73278
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
70774
|
-
return modifyNode(treeNode, (
|
|
70775
|
-
if (
|
|
70776
|
-
|
|
73279
|
+
return modifyNode(treeNode, (node2) => {
|
|
73280
|
+
if (node2.id === parentId) {
|
|
73281
|
+
node2.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
70777
73282
|
}
|
|
70778
|
-
return
|
|
73283
|
+
return node2;
|
|
70779
73284
|
});
|
|
70780
73285
|
};
|
|
70781
73286
|
const initialState = {
|
|
@@ -71172,45 +73677,45 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
71172
73677
|
};
|
|
71173
73678
|
};
|
|
71174
73679
|
function addNode(treeData, { parentId, newFolder }) {
|
|
71175
|
-
return modifyNode(treeData, (
|
|
73680
|
+
return modifyNode(treeData, (node2) => {
|
|
71176
73681
|
var _a2;
|
|
71177
|
-
if (
|
|
73682
|
+
if (node2.id === parentId) {
|
|
71178
73683
|
const parentAncestors = [
|
|
71179
|
-
...((_a2 =
|
|
73684
|
+
...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
|
|
71180
73685
|
];
|
|
71181
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
73686
|
+
const ancestors = arrayUnique([...parentAncestors, node2.id]);
|
|
71182
73687
|
const newNode = {
|
|
71183
|
-
...
|
|
73688
|
+
...node2,
|
|
71184
73689
|
children: [
|
|
71185
|
-
...
|
|
73690
|
+
...node2.children || [],
|
|
71186
73691
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
71187
73692
|
]
|
|
71188
73693
|
};
|
|
71189
73694
|
return newNode;
|
|
71190
73695
|
} else {
|
|
71191
|
-
return
|
|
73696
|
+
return node2;
|
|
71192
73697
|
}
|
|
71193
73698
|
});
|
|
71194
73699
|
}
|
|
71195
73700
|
function deleteNode(treeData, { folders }) {
|
|
71196
|
-
return modifyNode(treeData, (
|
|
71197
|
-
if (folders.includes(
|
|
73701
|
+
return modifyNode(treeData, (node2) => {
|
|
73702
|
+
if (folders.includes(node2.id)) {
|
|
71198
73703
|
return void 0;
|
|
71199
73704
|
} else {
|
|
71200
|
-
return
|
|
73705
|
+
return node2;
|
|
71201
73706
|
}
|
|
71202
73707
|
});
|
|
71203
73708
|
}
|
|
71204
73709
|
function moveNode(treeData, { destinationId, folders }) {
|
|
71205
|
-
return modifyNode(treeData, (
|
|
73710
|
+
return modifyNode(treeData, (node2, parent) => {
|
|
71206
73711
|
var _a2, _b2;
|
|
71207
|
-
if (destinationId ===
|
|
73712
|
+
if (destinationId === node2.id) {
|
|
71208
73713
|
const parentAncestors = [
|
|
71209
|
-
...((_a2 =
|
|
73714
|
+
...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
|
|
71210
73715
|
];
|
|
71211
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
71212
|
-
const newChildren = [...
|
|
71213
|
-
const childrenIds = ((_b2 =
|
|
73716
|
+
const ancestors = arrayUnique([...parentAncestors, node2.id]);
|
|
73717
|
+
const newChildren = [...node2.children || []];
|
|
73718
|
+
const childrenIds = ((_b2 = node2.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
|
|
71214
73719
|
for (const folder of folders) {
|
|
71215
73720
|
if (!childrenIds.includes(folder)) {
|
|
71216
73721
|
const item = findNodeById(folder, treeData);
|
|
@@ -71224,23 +73729,23 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
71224
73729
|
}
|
|
71225
73730
|
}
|
|
71226
73731
|
const newNode = {
|
|
71227
|
-
...
|
|
73732
|
+
...node2,
|
|
71228
73733
|
children: newChildren
|
|
71229
73734
|
};
|
|
71230
73735
|
return newNode;
|
|
71231
|
-
} else if (folders.includes(
|
|
73736
|
+
} else if (folders.includes(node2.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
71232
73737
|
return void 0;
|
|
71233
73738
|
} else {
|
|
71234
|
-
return
|
|
73739
|
+
return node2;
|
|
71235
73740
|
}
|
|
71236
73741
|
});
|
|
71237
73742
|
}
|
|
71238
73743
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
71239
|
-
return modifyNode(treeData, (
|
|
71240
|
-
if (
|
|
73744
|
+
return modifyNode(treeData, (node2) => {
|
|
73745
|
+
if (node2.id === folderId) {
|
|
71241
73746
|
return new TreeNodeFolderWrapper(newFolder);
|
|
71242
73747
|
} else {
|
|
71243
|
-
return
|
|
73748
|
+
return node2;
|
|
71244
73749
|
}
|
|
71245
73750
|
});
|
|
71246
73751
|
}
|
|
@@ -72797,10 +75302,10 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
72797
75302
|
setSelectedResources([...selectedResources, resource]);
|
|
72798
75303
|
}
|
|
72799
75304
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
72800
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
75305
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React$2.Fragment, { children: [
|
|
72801
75306
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
72802
75307
|
// eslint-disable-next-line react/no-array-index-key
|
|
72803
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
75308
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React$2.Fragment, { children: page.resources.map((resource) => {
|
|
72804
75309
|
const { id: id2, updatedAt } = resource;
|
|
72805
75310
|
const time = fromNow(updatedAt);
|
|
72806
75311
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|