ode-explorer 1.4.2-develop-pedago.202405311714 → 1.4.2-develop-pedago.202406041347
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 +2921 -464
- package/dist/version.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68,9 +68,9 @@ function _mergeNamespaces(n2, m2) {
|
|
|
68
68
|
if (mutation.type !== "childList") {
|
|
69
69
|
continue;
|
|
70
70
|
}
|
|
71
|
-
for (const
|
|
72
|
-
if (
|
|
73
|
-
processPreload(
|
|
71
|
+
for (const node2 of mutation.addedNodes) {
|
|
72
|
+
if (node2.tagName === "LINK" && node2.rel === "modulepreload")
|
|
73
|
+
processPreload(node2);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}).observe(document, { childList: true, subtree: true });
|
|
@@ -96,8 +96,8 @@ function _mergeNamespaces(n2, m2) {
|
|
|
96
96
|
fetch(link.href, fetchOpts);
|
|
97
97
|
}
|
|
98
98
|
})();
|
|
99
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
100
|
-
function getDefaultExportFromCjs(x2) {
|
|
99
|
+
var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
100
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
101
101
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
102
102
|
}
|
|
103
103
|
function getAugmentedNamespace(n2) {
|
|
@@ -415,10 +415,10 @@ react_production_min.version = "18.2.0";
|
|
|
415
415
|
react.exports = react_production_min;
|
|
416
416
|
}
|
|
417
417
|
var reactExports = react.exports;
|
|
418
|
-
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
419
|
-
const React$
|
|
418
|
+
const React$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
|
|
419
|
+
const React$3 = /* @__PURE__ */ _mergeNamespaces({
|
|
420
420
|
__proto__: null,
|
|
421
|
-
default: React
|
|
421
|
+
default: React$2
|
|
422
422
|
}, [reactExports]);
|
|
423
423
|
/**
|
|
424
424
|
* @license React
|
|
@@ -1344,7 +1344,7 @@ class Translator extends EventEmitter$1 {
|
|
|
1344
1344
|
return false;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
function capitalize(string) {
|
|
1347
|
+
function capitalize$2(string) {
|
|
1348
1348
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1349
1349
|
}
|
|
1350
1350
|
class LanguageUtil {
|
|
@@ -1382,7 +1382,7 @@ class LanguageUtil {
|
|
|
1382
1382
|
p2[0] = p2[0].toLowerCase();
|
|
1383
1383
|
p2[1] = p2[1].toUpperCase();
|
|
1384
1384
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1385
|
-
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1385
|
+
p2[1] = capitalize$2(p2[1].toLowerCase());
|
|
1386
1386
|
} else if (p2.length === 3) {
|
|
1387
1387
|
p2[0] = p2[0].toLowerCase();
|
|
1388
1388
|
if (p2[1].length === 2)
|
|
@@ -1390,9 +1390,9 @@ class LanguageUtil {
|
|
|
1390
1390
|
if (p2[0] !== "sgn" && p2[2].length === 2)
|
|
1391
1391
|
p2[2] = p2[2].toUpperCase();
|
|
1392
1392
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1393
|
-
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1393
|
+
p2[1] = capitalize$2(p2[1].toLowerCase());
|
|
1394
1394
|
if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
|
|
1395
|
-
p2[2] = capitalize(p2[2].toLowerCase());
|
|
1395
|
+
p2[2] = capitalize$2(p2[2].toLowerCase());
|
|
1396
1396
|
}
|
|
1397
1397
|
return p2.join("-");
|
|
1398
1398
|
}
|
|
@@ -2993,7 +2993,7 @@ function requireBrowserPonyfill() {
|
|
|
2993
2993
|
return browserPonyfill.exports;
|
|
2994
2994
|
hasRequiredBrowserPonyfill = 1;
|
|
2995
2995
|
(function(module, exports) {
|
|
2996
|
-
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;
|
|
2996
|
+
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal$1 !== "undefined" && commonjsGlobal$1;
|
|
2997
2997
|
var __globalThis__ = function() {
|
|
2998
2998
|
function F2() {
|
|
2999
2999
|
this.fetch = false;
|
|
@@ -3514,8 +3514,8 @@ function requireBrowserPonyfill() {
|
|
|
3514
3514
|
(function(module, exports) {
|
|
3515
3515
|
var fetchApi2;
|
|
3516
3516
|
if (typeof fetch === "function") {
|
|
3517
|
-
if (typeof commonjsGlobal !== "undefined" && commonjsGlobal.fetch) {
|
|
3518
|
-
fetchApi2 = commonjsGlobal.fetch;
|
|
3517
|
+
if (typeof commonjsGlobal$1 !== "undefined" && commonjsGlobal$1.fetch) {
|
|
3518
|
+
fetchApi2 = commonjsGlobal$1.fetch;
|
|
3519
3519
|
} else if (typeof window !== "undefined" && window.fetch) {
|
|
3520
3520
|
fetchApi2 = window.fetch;
|
|
3521
3521
|
} else {
|
|
@@ -3531,7 +3531,7 @@ function requireBrowserPonyfill() {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
})(getFetch$1, getFetch$1.exports);
|
|
3533
3533
|
var getFetchExports = getFetch$1.exports;
|
|
3534
|
-
const getFetch = /* @__PURE__ */ getDefaultExportFromCjs(getFetchExports);
|
|
3534
|
+
const getFetch = /* @__PURE__ */ getDefaultExportFromCjs$1(getFetchExports);
|
|
3535
3535
|
const fetchNode = /* @__PURE__ */ _mergeNamespaces({
|
|
3536
3536
|
__proto__: null,
|
|
3537
3537
|
default: getFetch
|
|
@@ -6661,7 +6661,7 @@ var dayjs_min = { exports: {} };
|
|
|
6661
6661
|
(function(module, exports) {
|
|
6662
6662
|
!function(t2, e2) {
|
|
6663
6663
|
module.exports = e2();
|
|
6664
|
-
}(commonjsGlobal, function() {
|
|
6664
|
+
}(commonjsGlobal$1, function() {
|
|
6665
6665
|
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c6 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
|
6666
6666
|
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
6667
6667
|
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
@@ -6948,12 +6948,12 @@ var dayjs_min = { exports: {} };
|
|
|
6948
6948
|
});
|
|
6949
6949
|
})(dayjs_min);
|
|
6950
6950
|
var dayjs_minExports = dayjs_min.exports;
|
|
6951
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
6951
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs$1(dayjs_minExports);
|
|
6952
6952
|
var customParseFormat$1 = { exports: {} };
|
|
6953
6953
|
(function(module, exports) {
|
|
6954
6954
|
!function(e2, t2) {
|
|
6955
6955
|
module.exports = t2();
|
|
6956
|
-
}(commonjsGlobal, function() {
|
|
6956
|
+
}(commonjsGlobal$1, function() {
|
|
6957
6957
|
var e2 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t2 = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n2 = /\d\d/, r2 = /\d\d?/, i2 = /\d*[^-_:/,()\s\d]+/, o2 = {}, s2 = function(e3) {
|
|
6958
6958
|
return (e3 = +e3) + (e3 > 68 ? 1900 : 2e3);
|
|
6959
6959
|
};
|
|
@@ -7083,12 +7083,12 @@ var customParseFormat$1 = { exports: {} };
|
|
|
7083
7083
|
});
|
|
7084
7084
|
})(customParseFormat$1);
|
|
7085
7085
|
var customParseFormatExports = customParseFormat$1.exports;
|
|
7086
|
-
const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
|
|
7086
|
+
const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs$1(customParseFormatExports);
|
|
7087
7087
|
var relativeTime$1 = { exports: {} };
|
|
7088
7088
|
(function(module, exports) {
|
|
7089
7089
|
!function(r2, e2) {
|
|
7090
7090
|
module.exports = e2();
|
|
7091
|
-
}(commonjsGlobal, function() {
|
|
7091
|
+
}(commonjsGlobal$1, function() {
|
|
7092
7092
|
return function(r2, e2, t2) {
|
|
7093
7093
|
r2 = r2 || {};
|
|
7094
7094
|
var n2 = e2.prototype, o2 = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
@@ -7128,12 +7128,12 @@ var relativeTime$1 = { exports: {} };
|
|
|
7128
7128
|
});
|
|
7129
7129
|
})(relativeTime$1);
|
|
7130
7130
|
var relativeTimeExports = relativeTime$1.exports;
|
|
7131
|
-
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
7131
|
+
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs$1(relativeTimeExports);
|
|
7132
7132
|
var de$2 = { exports: {} };
|
|
7133
7133
|
(function(module, exports) {
|
|
7134
7134
|
!function(e2, n2) {
|
|
7135
7135
|
module.exports = n2(dayjs_minExports);
|
|
7136
|
-
}(commonjsGlobal, function(e2) {
|
|
7136
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7137
7137
|
function n2(e3) {
|
|
7138
7138
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7139
7139
|
}
|
|
@@ -7152,7 +7152,7 @@ var es = { exports: {} };
|
|
|
7152
7152
|
(function(module, exports) {
|
|
7153
7153
|
!function(e2, o2) {
|
|
7154
7154
|
module.exports = o2(dayjs_minExports);
|
|
7155
|
-
}(commonjsGlobal, function(e2) {
|
|
7155
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7156
7156
|
function o2(e3) {
|
|
7157
7157
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7158
7158
|
}
|
|
@@ -7166,7 +7166,7 @@ var fr = { exports: {} };
|
|
|
7166
7166
|
(function(module, exports) {
|
|
7167
7167
|
!function(e2, n2) {
|
|
7168
7168
|
module.exports = n2(dayjs_minExports);
|
|
7169
|
-
}(commonjsGlobal, function(e2) {
|
|
7169
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7170
7170
|
function n2(e3) {
|
|
7171
7171
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7172
7172
|
}
|
|
@@ -7180,7 +7180,7 @@ var it = { exports: {} };
|
|
|
7180
7180
|
(function(module, exports) {
|
|
7181
7181
|
!function(e2, o2) {
|
|
7182
7182
|
module.exports = o2(dayjs_minExports);
|
|
7183
|
-
}(commonjsGlobal, function(e2) {
|
|
7183
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7184
7184
|
function o2(e3) {
|
|
7185
7185
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7186
7186
|
}
|
|
@@ -7194,7 +7194,7 @@ var pt = { exports: {} };
|
|
|
7194
7194
|
(function(module, exports) {
|
|
7195
7195
|
!function(e2, a2) {
|
|
7196
7196
|
module.exports = a2(dayjs_minExports);
|
|
7197
|
-
}(commonjsGlobal, function(e2) {
|
|
7197
|
+
}(commonjsGlobal$1, function(e2) {
|
|
7198
7198
|
function a2(e3) {
|
|
7199
7199
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
7200
7200
|
}
|
|
@@ -7231,7 +7231,7 @@ var uaParser = { exports: {} };
|
|
|
7231
7231
|
return str.toLowerCase();
|
|
7232
7232
|
}, majorize = function(version) {
|
|
7233
7233
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
7234
|
-
},
|
|
7234
|
+
}, trim2 = function(str, len) {
|
|
7235
7235
|
if (typeof str === STR_TYPE) {
|
|
7236
7236
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
7237
7237
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
@@ -8067,7 +8067,7 @@ var uaParser = { exports: {} };
|
|
|
8067
8067
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
8068
8068
|
// HbbTV devices
|
|
8069
8069
|
],
|
|
8070
|
-
[[VENDOR,
|
|
8070
|
+
[[VENDOR, trim2], [MODEL, trim2], [TYPE2, SMARTTV]],
|
|
8071
8071
|
[
|
|
8072
8072
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
8073
8073
|
// SmartTV from Unidentified Vendors
|
|
@@ -8411,7 +8411,7 @@ var uaParser = { exports: {} };
|
|
|
8411
8411
|
return _ua;
|
|
8412
8412
|
};
|
|
8413
8413
|
this.setUA = function(ua3) {
|
|
8414
|
-
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ?
|
|
8414
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim2(ua3, UA_MAX_LENGTH) : ua3;
|
|
8415
8415
|
return this;
|
|
8416
8416
|
};
|
|
8417
8417
|
this.setUA(_ua);
|
|
@@ -8443,7 +8443,7 @@ var uaParser = { exports: {} };
|
|
|
8443
8443
|
}
|
|
8444
8444
|
};
|
|
8445
8445
|
}
|
|
8446
|
-
})(typeof window === "object" ? window : commonjsGlobal);
|
|
8446
|
+
})(typeof window === "object" ? window : commonjsGlobal$1);
|
|
8447
8447
|
})(uaParser, uaParser.exports);
|
|
8448
8448
|
let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e$2, l$2 = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, a$1 = /\/\*[^]*?\*\/| +/g, n$4 = /\n+/g, o$1 = (e2, t2) => {
|
|
8449
8449
|
let r2 = "", l2 = "", a2 = "";
|
|
@@ -8460,7 +8460,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8460
8460
|
return t2;
|
|
8461
8461
|
}
|
|
8462
8462
|
return e2;
|
|
8463
|
-
}, i$
|
|
8463
|
+
}, i$2 = (e2, t2, r2, i2, p2) => {
|
|
8464
8464
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
8465
8465
|
let t3 = 0, r3 = 11;
|
|
8466
8466
|
for (; t3 < e3.length; )
|
|
@@ -8490,7 +8490,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8490
8490
|
}, "");
|
|
8491
8491
|
function u$4(e2) {
|
|
8492
8492
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
8493
|
-
return i$
|
|
8493
|
+
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);
|
|
8494
8494
|
}
|
|
8495
8495
|
let d$1, f$1, g$1;
|
|
8496
8496
|
u$4.bind({ g: 1 });
|
|
@@ -8972,7 +8972,35 @@ const SvgAlertCircle = ({
|
|
|
8972
8972
|
)
|
|
8973
8973
|
]
|
|
8974
8974
|
}
|
|
8975
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
8975
|
+
), SvgBookmark$1 = SvgBookmark, SvgBurgerMenu = ({
|
|
8976
|
+
title,
|
|
8977
|
+
titleId,
|
|
8978
|
+
...props
|
|
8979
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8980
|
+
"svg",
|
|
8981
|
+
{
|
|
8982
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8983
|
+
width: "24",
|
|
8984
|
+
height: "24",
|
|
8985
|
+
fill: "none",
|
|
8986
|
+
viewBox: "0 0 24 24",
|
|
8987
|
+
"aria-hidden": "true",
|
|
8988
|
+
"aria-labelledby": titleId,
|
|
8989
|
+
...props,
|
|
8990
|
+
children: [
|
|
8991
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
8992
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8993
|
+
"path",
|
|
8994
|
+
{
|
|
8995
|
+
fill: "currentColor",
|
|
8996
|
+
fillRule: "evenodd",
|
|
8997
|
+
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",
|
|
8998
|
+
clipRule: "evenodd"
|
|
8999
|
+
}
|
|
9000
|
+
)
|
|
9001
|
+
]
|
|
9002
|
+
}
|
|
9003
|
+
), SvgBurgerMenu$1 = SvgBurgerMenu, SvgClose = ({
|
|
8976
9004
|
title,
|
|
8977
9005
|
titleId,
|
|
8978
9006
|
...props
|
|
@@ -16868,8 +16896,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16868
16896
|
required: "required",
|
|
16869
16897
|
validate: "validate"
|
|
16870
16898
|
};
|
|
16871
|
-
const HookFormContext = React.createContext(null);
|
|
16872
|
-
const useFormContext = () => React.useContext(HookFormContext);
|
|
16899
|
+
const HookFormContext = React$2.createContext(null);
|
|
16900
|
+
const useFormContext = () => React$2.useContext(HookFormContext);
|
|
16873
16901
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16874
16902
|
const result = {
|
|
16875
16903
|
defaultValues: control._defaultValues
|
|
@@ -16897,9 +16925,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16897
16925
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16898
16926
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16899
16927
|
function useSubscribe(props) {
|
|
16900
|
-
const _props = React.useRef(props);
|
|
16928
|
+
const _props = React$2.useRef(props);
|
|
16901
16929
|
_props.current = props;
|
|
16902
|
-
React.useEffect(() => {
|
|
16930
|
+
React$2.useEffect(() => {
|
|
16903
16931
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16904
16932
|
next: _props.current.next
|
|
16905
16933
|
});
|
|
@@ -16911,9 +16939,9 @@ function useSubscribe(props) {
|
|
|
16911
16939
|
function useFormState(props) {
|
|
16912
16940
|
const methods = useFormContext();
|
|
16913
16941
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16914
|
-
const [formState, updateFormState] = React.useState(control._formState);
|
|
16915
|
-
const _mounted = React.useRef(true);
|
|
16916
|
-
const _localProxyFormState = React.useRef({
|
|
16942
|
+
const [formState, updateFormState] = React$2.useState(control._formState);
|
|
16943
|
+
const _mounted = React$2.useRef(true);
|
|
16944
|
+
const _localProxyFormState = React$2.useRef({
|
|
16917
16945
|
isDirty: false,
|
|
16918
16946
|
isLoading: false,
|
|
16919
16947
|
dirtyFields: false,
|
|
@@ -16922,7 +16950,7 @@ function useFormState(props) {
|
|
|
16922
16950
|
isValid: false,
|
|
16923
16951
|
errors: false
|
|
16924
16952
|
});
|
|
16925
|
-
const _name = React.useRef(name);
|
|
16953
|
+
const _name = React$2.useRef(name);
|
|
16926
16954
|
_name.current = name;
|
|
16927
16955
|
useSubscribe({
|
|
16928
16956
|
disabled,
|
|
@@ -16932,7 +16960,7 @@ function useFormState(props) {
|
|
|
16932
16960
|
}),
|
|
16933
16961
|
subject: control._subjects.state
|
|
16934
16962
|
});
|
|
16935
|
-
React.useEffect(() => {
|
|
16963
|
+
React$2.useEffect(() => {
|
|
16936
16964
|
_mounted.current = true;
|
|
16937
16965
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16938
16966
|
return () => {
|
|
@@ -16956,7 +16984,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
|
|
|
16956
16984
|
function useWatch(props) {
|
|
16957
16985
|
const methods = useFormContext();
|
|
16958
16986
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
16959
|
-
const _name = React.useRef(name);
|
|
16987
|
+
const _name = React$2.useRef(name);
|
|
16960
16988
|
_name.current = name;
|
|
16961
16989
|
useSubscribe({
|
|
16962
16990
|
disabled,
|
|
@@ -16967,8 +16995,8 @@ function useWatch(props) {
|
|
|
16967
16995
|
}
|
|
16968
16996
|
}
|
|
16969
16997
|
});
|
|
16970
|
-
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
16971
|
-
React.useEffect(() => control._removeUnmounted());
|
|
16998
|
+
const [value, updateValue] = React$2.useState(control._getWatch(name, defaultValue2));
|
|
16999
|
+
React$2.useEffect(() => control._removeUnmounted());
|
|
16972
17000
|
return value;
|
|
16973
17001
|
}
|
|
16974
17002
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17004,12 +17032,12 @@ function useController(props) {
|
|
|
17004
17032
|
control,
|
|
17005
17033
|
name
|
|
17006
17034
|
});
|
|
17007
|
-
const _registerProps = React.useRef(control.register(name, {
|
|
17035
|
+
const _registerProps = React$2.useRef(control.register(name, {
|
|
17008
17036
|
...props.rules,
|
|
17009
17037
|
value,
|
|
17010
17038
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17011
17039
|
}));
|
|
17012
|
-
React.useEffect(() => {
|
|
17040
|
+
React$2.useEffect(() => {
|
|
17013
17041
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17014
17042
|
const updateMounted = (name2, value2) => {
|
|
17015
17043
|
const field = get(control._fields, name2);
|
|
@@ -17029,7 +17057,7 @@ function useController(props) {
|
|
|
17029
17057
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17030
17058
|
};
|
|
17031
17059
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17032
|
-
React.useEffect(() => {
|
|
17060
|
+
React$2.useEffect(() => {
|
|
17033
17061
|
if (get(control._fields, name)) {
|
|
17034
17062
|
control._updateDisabledField({
|
|
17035
17063
|
disabled,
|
|
@@ -17044,14 +17072,14 @@ function useController(props) {
|
|
|
17044
17072
|
name,
|
|
17045
17073
|
value,
|
|
17046
17074
|
...isBoolean$1(disabled) || isBoolean$1(formState.disabled) ? { disabled: formState.disabled || disabled } : {},
|
|
17047
|
-
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17075
|
+
onChange: React$2.useCallback((event) => _registerProps.current.onChange({
|
|
17048
17076
|
target: {
|
|
17049
17077
|
value: getEventValue(event),
|
|
17050
17078
|
name
|
|
17051
17079
|
},
|
|
17052
17080
|
type: EVENTS.CHANGE
|
|
17053
17081
|
}), [name]),
|
|
17054
|
-
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17082
|
+
onBlur: React$2.useCallback(() => _registerProps.current.onBlur({
|
|
17055
17083
|
target: {
|
|
17056
17084
|
value: get(control._formValues, name),
|
|
17057
17085
|
name
|
|
@@ -18294,9 +18322,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18294
18322
|
};
|
|
18295
18323
|
}
|
|
18296
18324
|
function useForm(props = {}) {
|
|
18297
|
-
const _formControl = React.useRef();
|
|
18298
|
-
const _values = React.useRef();
|
|
18299
|
-
const [formState, updateFormState] = React.useState({
|
|
18325
|
+
const _formControl = React$2.useRef();
|
|
18326
|
+
const _values = React$2.useRef();
|
|
18327
|
+
const [formState, updateFormState] = React$2.useState({
|
|
18300
18328
|
isDirty: false,
|
|
18301
18329
|
isValidating: false,
|
|
18302
18330
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18327,8 +18355,8 @@ function useForm(props = {}) {
|
|
|
18327
18355
|
}
|
|
18328
18356
|
}
|
|
18329
18357
|
});
|
|
18330
|
-
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18331
|
-
React.useEffect(() => {
|
|
18358
|
+
React$2.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18359
|
+
React$2.useEffect(() => {
|
|
18332
18360
|
if (control._proxyFormState.isDirty) {
|
|
18333
18361
|
const isDirty = control._getDirty();
|
|
18334
18362
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18338,7 +18366,7 @@ function useForm(props = {}) {
|
|
|
18338
18366
|
}
|
|
18339
18367
|
}
|
|
18340
18368
|
}, [control, formState.isDirty]);
|
|
18341
|
-
React.useEffect(() => {
|
|
18369
|
+
React$2.useEffect(() => {
|
|
18342
18370
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18343
18371
|
control._reset(props.values, control._options.resetOptions);
|
|
18344
18372
|
_values.current = props.values;
|
|
@@ -18347,12 +18375,12 @@ function useForm(props = {}) {
|
|
|
18347
18375
|
control._resetDefaultValues();
|
|
18348
18376
|
}
|
|
18349
18377
|
}, [props.values, control]);
|
|
18350
|
-
React.useEffect(() => {
|
|
18378
|
+
React$2.useEffect(() => {
|
|
18351
18379
|
if (props.errors) {
|
|
18352
18380
|
control._setErrors(props.errors);
|
|
18353
18381
|
}
|
|
18354
18382
|
}, [props.errors, control]);
|
|
18355
|
-
React.useEffect(() => {
|
|
18383
|
+
React$2.useEffect(() => {
|
|
18356
18384
|
if (!control._state.mount) {
|
|
18357
18385
|
control._updateValid();
|
|
18358
18386
|
control._state.mount = true;
|
|
@@ -18366,9 +18394,9 @@ function useForm(props = {}) {
|
|
|
18366
18394
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18367
18395
|
return _formControl.current;
|
|
18368
18396
|
}
|
|
18369
|
-
function getWindow$3(
|
|
18397
|
+
function getWindow$3(node2) {
|
|
18370
18398
|
var _node$ownerDocument;
|
|
18371
|
-
return (
|
|
18399
|
+
return (node2 == null ? void 0 : (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18372
18400
|
}
|
|
18373
18401
|
function isElement$3(value) {
|
|
18374
18402
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18931,19 +18959,19 @@ const size$2 = function(options) {
|
|
|
18931
18959
|
}
|
|
18932
18960
|
};
|
|
18933
18961
|
};
|
|
18934
|
-
function getNodeName$1(
|
|
18935
|
-
if (isNode$1(
|
|
18936
|
-
return (
|
|
18962
|
+
function getNodeName$1(node2) {
|
|
18963
|
+
if (isNode$1(node2)) {
|
|
18964
|
+
return (node2.nodeName || "").toLowerCase();
|
|
18937
18965
|
}
|
|
18938
18966
|
return "#document";
|
|
18939
18967
|
}
|
|
18940
|
-
function getWindow$2(
|
|
18968
|
+
function getWindow$2(node2) {
|
|
18941
18969
|
var _node$ownerDocument;
|
|
18942
|
-
return (
|
|
18970
|
+
return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18943
18971
|
}
|
|
18944
|
-
function getDocumentElement$1(
|
|
18972
|
+
function getDocumentElement$1(node2) {
|
|
18945
18973
|
var _ref;
|
|
18946
|
-
return (_ref = (isNode$1(
|
|
18974
|
+
return (_ref = (isNode$1(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
18947
18975
|
}
|
|
18948
18976
|
function isNode$1(value) {
|
|
18949
18977
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -18992,8 +19020,8 @@ function isWebKit() {
|
|
|
18992
19020
|
return false;
|
|
18993
19021
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
18994
19022
|
}
|
|
18995
|
-
function isLastTraversableNode(
|
|
18996
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
19023
|
+
function isLastTraversableNode(node2) {
|
|
19024
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node2));
|
|
18997
19025
|
}
|
|
18998
19026
|
function getComputedStyle$3(element) {
|
|
18999
19027
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19010,30 +19038,30 @@ function getNodeScroll$1(element) {
|
|
|
19010
19038
|
scrollTop: element.pageYOffset
|
|
19011
19039
|
};
|
|
19012
19040
|
}
|
|
19013
|
-
function getParentNode$1(
|
|
19014
|
-
if (getNodeName$1(
|
|
19015
|
-
return
|
|
19041
|
+
function getParentNode$1(node2) {
|
|
19042
|
+
if (getNodeName$1(node2) === "html") {
|
|
19043
|
+
return node2;
|
|
19016
19044
|
}
|
|
19017
19045
|
const result = (
|
|
19018
19046
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
isShadowRoot$1(
|
|
19022
|
-
getDocumentElement$1(
|
|
19047
|
+
node2.assignedSlot || // DOM Element detected.
|
|
19048
|
+
node2.parentNode || // ShadowRoot detected.
|
|
19049
|
+
isShadowRoot$1(node2) && node2.host || // Fallback.
|
|
19050
|
+
getDocumentElement$1(node2)
|
|
19023
19051
|
);
|
|
19024
19052
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19025
19053
|
}
|
|
19026
|
-
function getNearestOverflowAncestor(
|
|
19027
|
-
const parentNode = getParentNode$1(
|
|
19054
|
+
function getNearestOverflowAncestor(node2) {
|
|
19055
|
+
const parentNode = getParentNode$1(node2);
|
|
19028
19056
|
if (isLastTraversableNode(parentNode)) {
|
|
19029
|
-
return
|
|
19057
|
+
return node2.ownerDocument ? node2.ownerDocument.body : node2.body;
|
|
19030
19058
|
}
|
|
19031
19059
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19032
19060
|
return parentNode;
|
|
19033
19061
|
}
|
|
19034
19062
|
return getNearestOverflowAncestor(parentNode);
|
|
19035
19063
|
}
|
|
19036
|
-
function getOverflowAncestors(
|
|
19064
|
+
function getOverflowAncestors(node2, list, traverseIframes) {
|
|
19037
19065
|
var _node$ownerDocument2;
|
|
19038
19066
|
if (list === void 0) {
|
|
19039
19067
|
list = [];
|
|
@@ -19041,8 +19069,8 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
19041
19069
|
if (traverseIframes === void 0) {
|
|
19042
19070
|
traverseIframes = true;
|
|
19043
19071
|
}
|
|
19044
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19045
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19072
|
+
const scrollableAncestor = getNearestOverflowAncestor(node2);
|
|
19073
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19046
19074
|
const win = getWindow$2(scrollableAncestor);
|
|
19047
19075
|
if (isBody) {
|
|
19048
19076
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -19714,16 +19742,16 @@ function useFloating$1(options) {
|
|
|
19714
19742
|
}
|
|
19715
19743
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
19716
19744
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
19717
|
-
const setReference = reactExports.useCallback((
|
|
19718
|
-
if (
|
|
19719
|
-
referenceRef.current =
|
|
19720
|
-
_setReference(
|
|
19745
|
+
const setReference = reactExports.useCallback((node2) => {
|
|
19746
|
+
if (node2 !== referenceRef.current) {
|
|
19747
|
+
referenceRef.current = node2;
|
|
19748
|
+
_setReference(node2);
|
|
19721
19749
|
}
|
|
19722
19750
|
}, []);
|
|
19723
|
-
const setFloating = reactExports.useCallback((
|
|
19724
|
-
if (
|
|
19725
|
-
floatingRef.current =
|
|
19726
|
-
_setFloating(
|
|
19751
|
+
const setFloating = reactExports.useCallback((node2) => {
|
|
19752
|
+
if (node2 !== floatingRef.current) {
|
|
19753
|
+
floatingRef.current = node2;
|
|
19754
|
+
_setFloating(node2);
|
|
19727
19755
|
}
|
|
19728
19756
|
}, []);
|
|
19729
19757
|
const referenceEl = externalReference || _reference;
|
|
@@ -19861,7 +19889,7 @@ function useFloatingId() {
|
|
|
19861
19889
|
}, []);
|
|
19862
19890
|
return id2;
|
|
19863
19891
|
}
|
|
19864
|
-
const useReactId = React$
|
|
19892
|
+
const useReactId = React$3[/* @__PURE__ */ "useId".toString()];
|
|
19865
19893
|
const useId = useReactId || useFloatingId;
|
|
19866
19894
|
function createPubSub() {
|
|
19867
19895
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -19881,7 +19909,7 @@ function createPubSub() {
|
|
|
19881
19909
|
}
|
|
19882
19910
|
const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
19883
19911
|
const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
|
|
19884
|
-
const useInsertionEffect = React$
|
|
19912
|
+
const useInsertionEffect = React$3[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
19885
19913
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
19886
19914
|
function useEffectEvent(callback) {
|
|
19887
19915
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -19920,23 +19948,23 @@ function useFloating(options) {
|
|
|
19920
19948
|
const dataRef = reactExports.useRef({});
|
|
19921
19949
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
19922
19950
|
const floatingId = useId();
|
|
19923
|
-
const setPositionReference = reactExports.useCallback((
|
|
19924
|
-
const positionReference = isElement$3(
|
|
19925
|
-
getBoundingClientRect: () =>
|
|
19926
|
-
contextElement:
|
|
19927
|
-
} :
|
|
19951
|
+
const setPositionReference = reactExports.useCallback((node2) => {
|
|
19952
|
+
const positionReference = isElement$3(node2) ? {
|
|
19953
|
+
getBoundingClientRect: () => node2.getBoundingClientRect(),
|
|
19954
|
+
contextElement: node2
|
|
19955
|
+
} : node2;
|
|
19928
19956
|
position.refs.setReference(positionReference);
|
|
19929
19957
|
}, [position.refs]);
|
|
19930
|
-
const setReference = reactExports.useCallback((
|
|
19931
|
-
if (isElement$3(
|
|
19932
|
-
domReferenceRef.current =
|
|
19933
|
-
setDomReference(
|
|
19958
|
+
const setReference = reactExports.useCallback((node2) => {
|
|
19959
|
+
if (isElement$3(node2) || node2 === null) {
|
|
19960
|
+
domReferenceRef.current = node2;
|
|
19961
|
+
setDomReference(node2);
|
|
19934
19962
|
}
|
|
19935
19963
|
if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
19936
19964
|
// `null` to support `positionReference` + an unstable `reference`
|
|
19937
19965
|
// callback ref.
|
|
19938
|
-
|
|
19939
|
-
position.refs.setReference(
|
|
19966
|
+
node2 !== null && !isElement$3(node2)) {
|
|
19967
|
+
position.refs.setReference(node2);
|
|
19940
19968
|
}
|
|
19941
19969
|
}, [position.refs]);
|
|
19942
19970
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -19961,9 +19989,9 @@ function useFloating(options) {
|
|
|
19961
19989
|
onOpenChange
|
|
19962
19990
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
19963
19991
|
index(() => {
|
|
19964
|
-
const
|
|
19965
|
-
if (
|
|
19966
|
-
|
|
19992
|
+
const node2 = tree == null ? void 0 : tree.nodesRef.current.find((node22) => node22.id === nodeId);
|
|
19993
|
+
if (node2) {
|
|
19994
|
+
node2.context = context2;
|
|
19967
19995
|
}
|
|
19968
19996
|
});
|
|
19969
19997
|
return reactExports.useMemo(() => ({
|
|
@@ -20963,7 +20991,7 @@ function usePrev(value) {
|
|
|
20963
20991
|
var $node = Symbol.for("Animated:node");
|
|
20964
20992
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
20965
20993
|
var getAnimated = (owner) => owner && owner[$node];
|
|
20966
|
-
var setAnimated = (owner,
|
|
20994
|
+
var setAnimated = (owner, node2) => defineHidden(owner, $node, node2);
|
|
20967
20995
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
20968
20996
|
var Animated = class {
|
|
20969
20997
|
constructor() {
|
|
@@ -21090,7 +21118,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21090
21118
|
}
|
|
21091
21119
|
reset() {
|
|
21092
21120
|
if (this.payload) {
|
|
21093
|
-
each(this.payload, (
|
|
21121
|
+
each(this.payload, (node2) => node2.reset());
|
|
21094
21122
|
}
|
|
21095
21123
|
}
|
|
21096
21124
|
/** Create a payload set. */
|
|
@@ -21108,7 +21136,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21108
21136
|
}
|
|
21109
21137
|
const payload = getPayload(source);
|
|
21110
21138
|
if (payload) {
|
|
21111
|
-
each(payload, (
|
|
21139
|
+
each(payload, (node2) => this.add(node2));
|
|
21112
21140
|
}
|
|
21113
21141
|
}
|
|
21114
21142
|
};
|
|
@@ -21121,12 +21149,12 @@ var AnimatedArray = class extends AnimatedObject {
|
|
|
21121
21149
|
return new AnimatedArray(source);
|
|
21122
21150
|
}
|
|
21123
21151
|
getValue() {
|
|
21124
|
-
return this.source.map((
|
|
21152
|
+
return this.source.map((node2) => node2.getValue());
|
|
21125
21153
|
}
|
|
21126
21154
|
setValue(source) {
|
|
21127
21155
|
const payload = this.getPayload();
|
|
21128
21156
|
if (source.length == payload.length) {
|
|
21129
|
-
return payload.map((
|
|
21157
|
+
return payload.map((node2, i2) => node2.setValue(source[i2])).some(Boolean);
|
|
21130
21158
|
}
|
|
21131
21159
|
super.setValue(source.map(makeAnimated));
|
|
21132
21160
|
return true;
|
|
@@ -21661,8 +21689,8 @@ var FrameValue = class extends FluidValue {
|
|
|
21661
21689
|
}
|
|
21662
21690
|
/** Get the current value */
|
|
21663
21691
|
get() {
|
|
21664
|
-
const
|
|
21665
|
-
return
|
|
21692
|
+
const node2 = getAnimated(this);
|
|
21693
|
+
return node2 && node2.getValue();
|
|
21666
21694
|
}
|
|
21667
21695
|
/** Create a spring that maps our value to another value */
|
|
21668
21696
|
to(...args) {
|
|
@@ -21752,8 +21780,8 @@ var SpringValue = class extends FrameValue {
|
|
|
21752
21780
|
return getFluidValue(this.animation.to);
|
|
21753
21781
|
}
|
|
21754
21782
|
get velocity() {
|
|
21755
|
-
const
|
|
21756
|
-
return
|
|
21783
|
+
const node2 = getAnimated(this);
|
|
21784
|
+
return node2 instanceof AnimatedValue ? node2.lastVelocity || 0 : node2.getPayload().map((node22) => node22.lastVelocity || 0);
|
|
21757
21785
|
}
|
|
21758
21786
|
/**
|
|
21759
21787
|
* When true, this value has been animated at least once.
|
|
@@ -21792,24 +21820,24 @@ var SpringValue = class extends FrameValue {
|
|
|
21792
21820
|
if (!payload && hasFluidValue(anim.to)) {
|
|
21793
21821
|
toValues = toArray(getFluidValue(anim.to));
|
|
21794
21822
|
}
|
|
21795
|
-
anim.values.forEach((
|
|
21796
|
-
if (
|
|
21823
|
+
anim.values.forEach((node22, i2) => {
|
|
21824
|
+
if (node22.done)
|
|
21797
21825
|
return;
|
|
21798
21826
|
const to2 = (
|
|
21799
21827
|
// Animated strings always go from 0 to 1.
|
|
21800
|
-
|
|
21828
|
+
node22.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
21801
21829
|
);
|
|
21802
21830
|
let finished = anim.immediate;
|
|
21803
21831
|
let position = to2;
|
|
21804
21832
|
if (!finished) {
|
|
21805
|
-
position =
|
|
21833
|
+
position = node22.lastPosition;
|
|
21806
21834
|
if (config2.tension <= 0) {
|
|
21807
|
-
|
|
21835
|
+
node22.done = true;
|
|
21808
21836
|
return;
|
|
21809
21837
|
}
|
|
21810
|
-
let elapsed =
|
|
21838
|
+
let elapsed = node22.elapsedTime += dt;
|
|
21811
21839
|
const from = anim.fromValues[i2];
|
|
21812
|
-
const v0 =
|
|
21840
|
+
const v0 = node22.v0 != null ? node22.v0 : node22.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
21813
21841
|
let velocity;
|
|
21814
21842
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
21815
21843
|
if (!is.und(config2.duration)) {
|
|
@@ -21817,30 +21845,30 @@ var SpringValue = class extends FrameValue {
|
|
|
21817
21845
|
if (config2.duration > 0) {
|
|
21818
21846
|
if (this._memoizedDuration !== config2.duration) {
|
|
21819
21847
|
this._memoizedDuration = config2.duration;
|
|
21820
|
-
if (
|
|
21821
|
-
|
|
21822
|
-
elapsed =
|
|
21848
|
+
if (node22.durationProgress > 0) {
|
|
21849
|
+
node22.elapsedTime = config2.duration * node22.durationProgress;
|
|
21850
|
+
elapsed = node22.elapsedTime += dt;
|
|
21823
21851
|
}
|
|
21824
21852
|
}
|
|
21825
21853
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
21826
21854
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
21827
|
-
|
|
21855
|
+
node22.durationProgress = p2;
|
|
21828
21856
|
}
|
|
21829
21857
|
position = from + config2.easing(p2) * (to2 - from);
|
|
21830
|
-
velocity = (position -
|
|
21858
|
+
velocity = (position - node22.lastPosition) / dt;
|
|
21831
21859
|
finished = p2 == 1;
|
|
21832
21860
|
} else if (config2.decay) {
|
|
21833
21861
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
21834
21862
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
21835
21863
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
21836
|
-
finished = Math.abs(
|
|
21864
|
+
finished = Math.abs(node22.lastPosition - position) <= precision;
|
|
21837
21865
|
velocity = v0 * e2;
|
|
21838
21866
|
} else {
|
|
21839
|
-
velocity =
|
|
21867
|
+
velocity = node22.lastVelocity == null ? v0 : node22.lastVelocity;
|
|
21840
21868
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
21841
21869
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
21842
21870
|
const canBounce = !is.und(bounceFactor);
|
|
21843
|
-
const isGrowing = from == to2 ?
|
|
21871
|
+
const isGrowing = from == to2 ? node22.v0 > 0 : from < to2;
|
|
21844
21872
|
let isMoving;
|
|
21845
21873
|
let isBouncing = false;
|
|
21846
21874
|
const step = 1;
|
|
@@ -21867,7 +21895,7 @@ var SpringValue = class extends FrameValue {
|
|
|
21867
21895
|
position = position + velocity * step;
|
|
21868
21896
|
}
|
|
21869
21897
|
}
|
|
21870
|
-
|
|
21898
|
+
node22.lastVelocity = velocity;
|
|
21871
21899
|
if (Number.isNaN(position)) {
|
|
21872
21900
|
console.warn(`Got NaN while animating:`, this);
|
|
21873
21901
|
finished = true;
|
|
@@ -21877,20 +21905,20 @@ var SpringValue = class extends FrameValue {
|
|
|
21877
21905
|
finished = false;
|
|
21878
21906
|
}
|
|
21879
21907
|
if (finished) {
|
|
21880
|
-
|
|
21908
|
+
node22.done = true;
|
|
21881
21909
|
} else {
|
|
21882
21910
|
idle = false;
|
|
21883
21911
|
}
|
|
21884
|
-
if (
|
|
21912
|
+
if (node22.setValue(position, config2.round)) {
|
|
21885
21913
|
changed = true;
|
|
21886
21914
|
}
|
|
21887
21915
|
});
|
|
21888
|
-
const
|
|
21889
|
-
const currVal =
|
|
21916
|
+
const node2 = getAnimated(this);
|
|
21917
|
+
const currVal = node2.getValue();
|
|
21890
21918
|
if (idle) {
|
|
21891
21919
|
const finalVal = getFluidValue(anim.to);
|
|
21892
21920
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
21893
|
-
|
|
21921
|
+
node2.setValue(finalVal);
|
|
21894
21922
|
this._onChange(finalVal);
|
|
21895
21923
|
} else if (changed && config2.decay) {
|
|
21896
21924
|
this._onChange(currVal);
|
|
@@ -22120,8 +22148,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22120
22148
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
22121
22149
|
);
|
|
22122
22150
|
}
|
|
22123
|
-
let
|
|
22124
|
-
if (!
|
|
22151
|
+
let node2 = getAnimated(this);
|
|
22152
|
+
if (!node2 || is.und(to2)) {
|
|
22125
22153
|
return resolve(getFinishedResult(this, true));
|
|
22126
22154
|
}
|
|
22127
22155
|
const reset = (
|
|
@@ -22136,16 +22164,16 @@ var SpringValue = class extends FrameValue {
|
|
|
22136
22164
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
22137
22165
|
if (hasToChanged) {
|
|
22138
22166
|
const nodeType = getAnimatedType(to2);
|
|
22139
|
-
if (nodeType !==
|
|
22167
|
+
if (nodeType !== node2.constructor) {
|
|
22140
22168
|
if (immediate) {
|
|
22141
|
-
|
|
22169
|
+
node2 = this._set(goal);
|
|
22142
22170
|
} else
|
|
22143
22171
|
throw Error(
|
|
22144
|
-
`Cannot animate between ${
|
|
22172
|
+
`Cannot animate between ${node2.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
22145
22173
|
);
|
|
22146
22174
|
}
|
|
22147
22175
|
}
|
|
22148
|
-
const goalType =
|
|
22176
|
+
const goalType = node2.constructor;
|
|
22149
22177
|
let started = hasFluidValue(to2);
|
|
22150
22178
|
let finished = false;
|
|
22151
22179
|
if (!started) {
|
|
@@ -22167,7 +22195,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22167
22195
|
}
|
|
22168
22196
|
if (!hasAsyncTo) {
|
|
22169
22197
|
if (started || hasFluidValue(prevTo)) {
|
|
22170
|
-
anim.values =
|
|
22198
|
+
anim.values = node2.getPayload();
|
|
22171
22199
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
22172
22200
|
}
|
|
22173
22201
|
if (anim.immediate != immediate) {
|
|
@@ -22289,7 +22317,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22289
22317
|
const anim = this.animation;
|
|
22290
22318
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
22291
22319
|
if (!anim.immediate) {
|
|
22292
|
-
anim.fromValues = anim.values.map((
|
|
22320
|
+
anim.fromValues = anim.values.map((node2) => node2.lastPosition);
|
|
22293
22321
|
}
|
|
22294
22322
|
if (!isAnimating(this)) {
|
|
22295
22323
|
setActiveBit(this, true);
|
|
@@ -22314,8 +22342,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22314
22342
|
if (isAnimating(this)) {
|
|
22315
22343
|
setActiveBit(this, false);
|
|
22316
22344
|
const anim = this.animation;
|
|
22317
|
-
each(anim.values, (
|
|
22318
|
-
|
|
22345
|
+
each(anim.values, (node2) => {
|
|
22346
|
+
node2.done = true;
|
|
22319
22347
|
});
|
|
22320
22348
|
if (anim.toValues) {
|
|
22321
22349
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -23188,8 +23216,8 @@ var Interpolation = class extends FrameValue {
|
|
|
23188
23216
|
_start() {
|
|
23189
23217
|
if (this.idle && !checkIdle(this._active)) {
|
|
23190
23218
|
this.idle = false;
|
|
23191
|
-
each(getPayload(this), (
|
|
23192
|
-
|
|
23219
|
+
each(getPayload(this), (node2) => {
|
|
23220
|
+
node2.done = false;
|
|
23193
23221
|
});
|
|
23194
23222
|
if (globals_exports.skipAnimation) {
|
|
23195
23223
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -23254,8 +23282,8 @@ function checkIdle(active) {
|
|
|
23254
23282
|
function becomeIdle(self2) {
|
|
23255
23283
|
if (!self2.idle) {
|
|
23256
23284
|
self2.idle = true;
|
|
23257
|
-
each(getPayload(self2), (
|
|
23258
|
-
|
|
23285
|
+
each(getPayload(self2), (node2) => {
|
|
23286
|
+
node2.done = true;
|
|
23259
23287
|
});
|
|
23260
23288
|
callFluidObservers(self2, {
|
|
23261
23289
|
type: "idle",
|
|
@@ -23649,30 +23677,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
23649
23677
|
function getNodeName(element) {
|
|
23650
23678
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23651
23679
|
}
|
|
23652
|
-
function getWindow$1(
|
|
23653
|
-
if (
|
|
23680
|
+
function getWindow$1(node2) {
|
|
23681
|
+
if (node2 == null) {
|
|
23654
23682
|
return window;
|
|
23655
23683
|
}
|
|
23656
|
-
if (
|
|
23657
|
-
var ownerDocument =
|
|
23684
|
+
if (node2.toString() !== "[object Window]") {
|
|
23685
|
+
var ownerDocument = node2.ownerDocument;
|
|
23658
23686
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23659
23687
|
}
|
|
23660
|
-
return
|
|
23688
|
+
return node2;
|
|
23661
23689
|
}
|
|
23662
|
-
function isElement$1(
|
|
23663
|
-
var OwnElement = getWindow$1(
|
|
23664
|
-
return
|
|
23690
|
+
function isElement$1(node2) {
|
|
23691
|
+
var OwnElement = getWindow$1(node2).Element;
|
|
23692
|
+
return node2 instanceof OwnElement || node2 instanceof Element;
|
|
23665
23693
|
}
|
|
23666
|
-
function isHTMLElement(
|
|
23667
|
-
var OwnElement = getWindow$1(
|
|
23668
|
-
return
|
|
23694
|
+
function isHTMLElement(node2) {
|
|
23695
|
+
var OwnElement = getWindow$1(node2).HTMLElement;
|
|
23696
|
+
return node2 instanceof OwnElement || node2 instanceof HTMLElement;
|
|
23669
23697
|
}
|
|
23670
|
-
function isShadowRoot(
|
|
23698
|
+
function isShadowRoot(node2) {
|
|
23671
23699
|
if (typeof ShadowRoot === "undefined") {
|
|
23672
23700
|
return false;
|
|
23673
23701
|
}
|
|
23674
|
-
var OwnElement = getWindow$1(
|
|
23675
|
-
return
|
|
23702
|
+
var OwnElement = getWindow$1(node2).ShadowRoot;
|
|
23703
|
+
return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
|
|
23676
23704
|
}
|
|
23677
23705
|
function applyStyles(_ref) {
|
|
23678
23706
|
var state = _ref.state;
|
|
@@ -24154,8 +24182,8 @@ function getOppositeVariationPlacement(placement) {
|
|
|
24154
24182
|
return hash$1[matched];
|
|
24155
24183
|
});
|
|
24156
24184
|
}
|
|
24157
|
-
function getWindowScroll(
|
|
24158
|
-
var win = getWindow$1(
|
|
24185
|
+
function getWindowScroll(node2) {
|
|
24186
|
+
var win = getWindow$1(node2);
|
|
24159
24187
|
var scrollLeft = win.pageXOffset;
|
|
24160
24188
|
var scrollTop = win.pageYOffset;
|
|
24161
24189
|
return {
|
|
@@ -24213,14 +24241,14 @@ function isScrollParent(element) {
|
|
|
24213
24241
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24214
24242
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24215
24243
|
}
|
|
24216
|
-
function getScrollParent(
|
|
24217
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
24218
|
-
return
|
|
24244
|
+
function getScrollParent(node2) {
|
|
24245
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0) {
|
|
24246
|
+
return node2.ownerDocument.body;
|
|
24219
24247
|
}
|
|
24220
|
-
if (isHTMLElement(
|
|
24221
|
-
return
|
|
24248
|
+
if (isHTMLElement(node2) && isScrollParent(node2)) {
|
|
24249
|
+
return node2;
|
|
24222
24250
|
}
|
|
24223
|
-
return getScrollParent(getParentNode(
|
|
24251
|
+
return getScrollParent(getParentNode(node2));
|
|
24224
24252
|
}
|
|
24225
24253
|
function listScrollParents(element, list) {
|
|
24226
24254
|
var _element$ownerDocumen;
|
|
@@ -24714,11 +24742,11 @@ function getHTMLElementScroll(element) {
|
|
|
24714
24742
|
scrollTop: element.scrollTop
|
|
24715
24743
|
};
|
|
24716
24744
|
}
|
|
24717
|
-
function getNodeScroll(
|
|
24718
|
-
if (
|
|
24719
|
-
return getWindowScroll(
|
|
24745
|
+
function getNodeScroll(node2) {
|
|
24746
|
+
if (node2 === getWindow$1(node2) || !isHTMLElement(node2)) {
|
|
24747
|
+
return getWindowScroll(node2);
|
|
24720
24748
|
} else {
|
|
24721
|
-
return getHTMLElementScroll(
|
|
24749
|
+
return getHTMLElementScroll(node2);
|
|
24722
24750
|
}
|
|
24723
24751
|
}
|
|
24724
24752
|
function isElementScaled(element) {
|
|
@@ -25056,7 +25084,7 @@ var reactFastCompare = function isEqual(a2, b2) {
|
|
|
25056
25084
|
throw error;
|
|
25057
25085
|
}
|
|
25058
25086
|
};
|
|
25059
|
-
const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
|
|
25087
|
+
const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs$1(reactFastCompare);
|
|
25060
25088
|
var EMPTY_MODIFIERS = [];
|
|
25061
25089
|
var usePopper = function usePopper2(referenceElement, popperElement, options) {
|
|
25062
25090
|
if (options === void 0) {
|
|
@@ -25251,7 +25279,35 @@ const SvgCommunity = ({
|
|
|
25251
25279
|
)
|
|
25252
25280
|
]
|
|
25253
25281
|
}
|
|
25254
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
25282
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoAssistance = ({
|
|
25283
|
+
title,
|
|
25284
|
+
titleId,
|
|
25285
|
+
...props
|
|
25286
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25287
|
+
"svg",
|
|
25288
|
+
{
|
|
25289
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25290
|
+
width: "24",
|
|
25291
|
+
height: "24",
|
|
25292
|
+
fill: "none",
|
|
25293
|
+
viewBox: "0 0 24 24",
|
|
25294
|
+
"aria-hidden": "true",
|
|
25295
|
+
"aria-labelledby": titleId,
|
|
25296
|
+
...props,
|
|
25297
|
+
children: [
|
|
25298
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25299
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25300
|
+
"path",
|
|
25301
|
+
{
|
|
25302
|
+
fill: "currentColor",
|
|
25303
|
+
fillRule: "evenodd",
|
|
25304
|
+
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",
|
|
25305
|
+
clipRule: "evenodd"
|
|
25306
|
+
}
|
|
25307
|
+
)
|
|
25308
|
+
]
|
|
25309
|
+
}
|
|
25310
|
+
), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
|
|
25255
25311
|
title,
|
|
25256
25312
|
titleId,
|
|
25257
25313
|
...props
|
|
@@ -25302,7 +25358,33 @@ const SvgCommunity = ({
|
|
|
25302
25358
|
)
|
|
25303
25359
|
]
|
|
25304
25360
|
}
|
|
25305
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
25361
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneAssistance = ({
|
|
25362
|
+
title,
|
|
25363
|
+
titleId,
|
|
25364
|
+
...props
|
|
25365
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25366
|
+
"svg",
|
|
25367
|
+
{
|
|
25368
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25369
|
+
width: "24",
|
|
25370
|
+
height: "24",
|
|
25371
|
+
fill: "none",
|
|
25372
|
+
viewBox: "0 0 24 24",
|
|
25373
|
+
"aria-hidden": "true",
|
|
25374
|
+
"aria-labelledby": titleId,
|
|
25375
|
+
...props,
|
|
25376
|
+
children: [
|
|
25377
|
+
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25378
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25379
|
+
"path",
|
|
25380
|
+
{
|
|
25381
|
+
fill: "currentColor",
|
|
25382
|
+
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"
|
|
25383
|
+
}
|
|
25384
|
+
)
|
|
25385
|
+
]
|
|
25386
|
+
}
|
|
25387
|
+
), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
|
|
25306
25388
|
title,
|
|
25307
25389
|
titleId,
|
|
25308
25390
|
...props
|
|
@@ -25633,11 +25715,11 @@ function getTranslate(el2, axis) {
|
|
|
25633
25715
|
function isObject$1(o2) {
|
|
25634
25716
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
25635
25717
|
}
|
|
25636
|
-
function isNode(
|
|
25718
|
+
function isNode(node2) {
|
|
25637
25719
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
25638
|
-
return
|
|
25720
|
+
return node2 instanceof HTMLElement;
|
|
25639
25721
|
}
|
|
25640
|
-
return
|
|
25722
|
+
return node2 && (node2.nodeType === 1 || node2.nodeType === 11);
|
|
25641
25723
|
}
|
|
25642
25724
|
function extend$1() {
|
|
25643
25725
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -26665,8 +26747,8 @@ function updateSlides() {
|
|
|
26665
26747
|
"marginRight": "marginBottom"
|
|
26666
26748
|
}[property];
|
|
26667
26749
|
}
|
|
26668
|
-
function getDirectionPropertyValue(
|
|
26669
|
-
return parseFloat(
|
|
26750
|
+
function getDirectionPropertyValue(node2, label) {
|
|
26751
|
+
return parseFloat(node2.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
26670
26752
|
}
|
|
26671
26753
|
const params = swiper.params;
|
|
26672
26754
|
const {
|
|
@@ -30266,7 +30348,7 @@ function isChildSwiperSlide(child) {
|
|
|
30266
30348
|
}
|
|
30267
30349
|
function processChildren(c6) {
|
|
30268
30350
|
const slides = [];
|
|
30269
|
-
React.Children.toArray(c6).forEach((child) => {
|
|
30351
|
+
React$2.Children.toArray(c6).forEach((child) => {
|
|
30270
30352
|
if (isChildSwiperSlide(child)) {
|
|
30271
30353
|
slides.push(child);
|
|
30272
30354
|
} else if (child.props && child.props.children) {
|
|
@@ -30283,7 +30365,7 @@ function getChildren(c6) {
|
|
|
30283
30365
|
"wrapper-start": [],
|
|
30284
30366
|
"wrapper-end": []
|
|
30285
30367
|
};
|
|
30286
|
-
React.Children.toArray(c6).forEach((child) => {
|
|
30368
|
+
React$2.Children.toArray(c6).forEach((child) => {
|
|
30287
30369
|
if (isChildSwiperSlide(child)) {
|
|
30288
30370
|
slides.push(child);
|
|
30289
30371
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -30334,7 +30416,7 @@ function renderVirtual(swiper, slides, virtualData) {
|
|
|
30334
30416
|
}
|
|
30335
30417
|
}
|
|
30336
30418
|
return slidesToRender.map((child, index2) => {
|
|
30337
|
-
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30419
|
+
return /* @__PURE__ */ React$2.cloneElement(child, {
|
|
30338
30420
|
swiper,
|
|
30339
30421
|
style,
|
|
30340
30422
|
key: `slide-${index2}`
|
|
@@ -30494,29 +30576,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
|
|
|
30494
30576
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
30495
30577
|
}
|
|
30496
30578
|
return slides.map((child, index2) => {
|
|
30497
|
-
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30579
|
+
return /* @__PURE__ */ React$2.cloneElement(child, {
|
|
30498
30580
|
swiper: swiperRef.current,
|
|
30499
30581
|
swiperSlideIndex: index2
|
|
30500
30582
|
});
|
|
30501
30583
|
});
|
|
30502
30584
|
}
|
|
30503
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30585
|
+
return /* @__PURE__ */ React$2.createElement(Tag, _extends({
|
|
30504
30586
|
ref: swiperElRef,
|
|
30505
30587
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
30506
|
-
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
30588
|
+
}, restProps), /* @__PURE__ */ React$2.createElement(SwiperContext.Provider, {
|
|
30507
30589
|
value: swiperRef.current
|
|
30508
|
-
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
30590
|
+
}, slots["container-start"], /* @__PURE__ */ React$2.createElement(WrapperTag, {
|
|
30509
30591
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
30510
|
-
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
30592
|
+
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", {
|
|
30511
30593
|
ref: prevElRef,
|
|
30512
30594
|
className: "swiper-button-prev"
|
|
30513
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
30595
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
30514
30596
|
ref: nextElRef,
|
|
30515
30597
|
className: "swiper-button-next"
|
|
30516
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30598
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
|
|
30517
30599
|
ref: scrollbarElRef,
|
|
30518
30600
|
className: "swiper-scrollbar"
|
|
30519
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30601
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
|
|
30520
30602
|
ref: paginationElRef,
|
|
30521
30603
|
className: "swiper-pagination"
|
|
30522
30604
|
}), slots["container-end"]));
|
|
@@ -30582,25 +30664,2329 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
|
|
|
30582
30664
|
const onLoad2 = () => {
|
|
30583
30665
|
setLazyLoaded(true);
|
|
30584
30666
|
};
|
|
30585
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30667
|
+
return /* @__PURE__ */ React$2.createElement(Tag, _extends({
|
|
30586
30668
|
ref: slideElRef,
|
|
30587
30669
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
30588
30670
|
"data-swiper-slide-index": virtualIndex,
|
|
30589
30671
|
onLoad: onLoad2
|
|
30590
|
-
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30672
|
+
}, rest), zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
|
|
30591
30673
|
value: slideData
|
|
30592
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
30674
|
+
}, /* @__PURE__ */ React$2.createElement("div", {
|
|
30593
30675
|
className: "swiper-zoom-container",
|
|
30594
30676
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
30595
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30677
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
|
|
30596
30678
|
className: "swiper-lazy-preloader"
|
|
30597
|
-
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30679
|
+
}))), !zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
|
|
30598
30680
|
value: slideData
|
|
30599
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30681
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
|
|
30600
30682
|
className: "swiper-lazy-preloader"
|
|
30601
30683
|
})));
|
|
30602
30684
|
});
|
|
30603
30685
|
SwiperSlide.displayName = "SwiperSlide";
|
|
30686
|
+
var lib$3 = {};
|
|
30687
|
+
var lib$2 = {};
|
|
30688
|
+
(function(exports) {
|
|
30689
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30690
|
+
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
30691
|
+
var ElementType;
|
|
30692
|
+
(function(ElementType2) {
|
|
30693
|
+
ElementType2["Root"] = "root";
|
|
30694
|
+
ElementType2["Text"] = "text";
|
|
30695
|
+
ElementType2["Directive"] = "directive";
|
|
30696
|
+
ElementType2["Comment"] = "comment";
|
|
30697
|
+
ElementType2["Script"] = "script";
|
|
30698
|
+
ElementType2["Style"] = "style";
|
|
30699
|
+
ElementType2["Tag"] = "tag";
|
|
30700
|
+
ElementType2["CDATA"] = "cdata";
|
|
30701
|
+
ElementType2["Doctype"] = "doctype";
|
|
30702
|
+
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
|
30703
|
+
function isTag2(elem) {
|
|
30704
|
+
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
30705
|
+
}
|
|
30706
|
+
exports.isTag = isTag2;
|
|
30707
|
+
exports.Root = ElementType.Root;
|
|
30708
|
+
exports.Text = ElementType.Text;
|
|
30709
|
+
exports.Directive = ElementType.Directive;
|
|
30710
|
+
exports.Comment = ElementType.Comment;
|
|
30711
|
+
exports.Script = ElementType.Script;
|
|
30712
|
+
exports.Style = ElementType.Style;
|
|
30713
|
+
exports.Tag = ElementType.Tag;
|
|
30714
|
+
exports.CDATA = ElementType.CDATA;
|
|
30715
|
+
exports.Doctype = ElementType.Doctype;
|
|
30716
|
+
})(lib$2);
|
|
30717
|
+
var node = {};
|
|
30718
|
+
var __extends = commonjsGlobal$1 && commonjsGlobal$1.__extends || /* @__PURE__ */ function() {
|
|
30719
|
+
var extendStatics = function(d2, b2) {
|
|
30720
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
30721
|
+
d3.__proto__ = b3;
|
|
30722
|
+
} || function(d3, b3) {
|
|
30723
|
+
for (var p2 in b3)
|
|
30724
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
30725
|
+
d3[p2] = b3[p2];
|
|
30726
|
+
};
|
|
30727
|
+
return extendStatics(d2, b2);
|
|
30728
|
+
};
|
|
30729
|
+
return function(d2, b2) {
|
|
30730
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
30731
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
30732
|
+
extendStatics(d2, b2);
|
|
30733
|
+
function __() {
|
|
30734
|
+
this.constructor = d2;
|
|
30735
|
+
}
|
|
30736
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
30737
|
+
};
|
|
30738
|
+
}();
|
|
30739
|
+
var __assign = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
30740
|
+
__assign = Object.assign || function(t2) {
|
|
30741
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
30742
|
+
s2 = arguments[i2];
|
|
30743
|
+
for (var p2 in s2)
|
|
30744
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
30745
|
+
t2[p2] = s2[p2];
|
|
30746
|
+
}
|
|
30747
|
+
return t2;
|
|
30748
|
+
};
|
|
30749
|
+
return __assign.apply(this, arguments);
|
|
30750
|
+
};
|
|
30751
|
+
Object.defineProperty(node, "__esModule", { value: true });
|
|
30752
|
+
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;
|
|
30753
|
+
var domelementtype_1 = lib$2;
|
|
30754
|
+
var Node$2 = (
|
|
30755
|
+
/** @class */
|
|
30756
|
+
function() {
|
|
30757
|
+
function Node2() {
|
|
30758
|
+
this.parent = null;
|
|
30759
|
+
this.prev = null;
|
|
30760
|
+
this.next = null;
|
|
30761
|
+
this.startIndex = null;
|
|
30762
|
+
this.endIndex = null;
|
|
30763
|
+
}
|
|
30764
|
+
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
30765
|
+
// Read-write aliases for properties
|
|
30766
|
+
/**
|
|
30767
|
+
* Same as {@link parent}.
|
|
30768
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30769
|
+
*/
|
|
30770
|
+
get: function() {
|
|
30771
|
+
return this.parent;
|
|
30772
|
+
},
|
|
30773
|
+
set: function(parent) {
|
|
30774
|
+
this.parent = parent;
|
|
30775
|
+
},
|
|
30776
|
+
enumerable: false,
|
|
30777
|
+
configurable: true
|
|
30778
|
+
});
|
|
30779
|
+
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
30780
|
+
/**
|
|
30781
|
+
* Same as {@link prev}.
|
|
30782
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30783
|
+
*/
|
|
30784
|
+
get: function() {
|
|
30785
|
+
return this.prev;
|
|
30786
|
+
},
|
|
30787
|
+
set: function(prev) {
|
|
30788
|
+
this.prev = prev;
|
|
30789
|
+
},
|
|
30790
|
+
enumerable: false,
|
|
30791
|
+
configurable: true
|
|
30792
|
+
});
|
|
30793
|
+
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
30794
|
+
/**
|
|
30795
|
+
* Same as {@link next}.
|
|
30796
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30797
|
+
*/
|
|
30798
|
+
get: function() {
|
|
30799
|
+
return this.next;
|
|
30800
|
+
},
|
|
30801
|
+
set: function(next) {
|
|
30802
|
+
this.next = next;
|
|
30803
|
+
},
|
|
30804
|
+
enumerable: false,
|
|
30805
|
+
configurable: true
|
|
30806
|
+
});
|
|
30807
|
+
Node2.prototype.cloneNode = function(recursive) {
|
|
30808
|
+
if (recursive === void 0) {
|
|
30809
|
+
recursive = false;
|
|
30810
|
+
}
|
|
30811
|
+
return cloneNode(this, recursive);
|
|
30812
|
+
};
|
|
30813
|
+
return Node2;
|
|
30814
|
+
}()
|
|
30815
|
+
);
|
|
30816
|
+
node.Node = Node$2;
|
|
30817
|
+
var DataNode = (
|
|
30818
|
+
/** @class */
|
|
30819
|
+
function(_super) {
|
|
30820
|
+
__extends(DataNode2, _super);
|
|
30821
|
+
function DataNode2(data) {
|
|
30822
|
+
var _this = _super.call(this) || this;
|
|
30823
|
+
_this.data = data;
|
|
30824
|
+
return _this;
|
|
30825
|
+
}
|
|
30826
|
+
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
30827
|
+
/**
|
|
30828
|
+
* Same as {@link data}.
|
|
30829
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30830
|
+
*/
|
|
30831
|
+
get: function() {
|
|
30832
|
+
return this.data;
|
|
30833
|
+
},
|
|
30834
|
+
set: function(data) {
|
|
30835
|
+
this.data = data;
|
|
30836
|
+
},
|
|
30837
|
+
enumerable: false,
|
|
30838
|
+
configurable: true
|
|
30839
|
+
});
|
|
30840
|
+
return DataNode2;
|
|
30841
|
+
}(Node$2)
|
|
30842
|
+
);
|
|
30843
|
+
node.DataNode = DataNode;
|
|
30844
|
+
var Text$2 = (
|
|
30845
|
+
/** @class */
|
|
30846
|
+
function(_super) {
|
|
30847
|
+
__extends(Text2, _super);
|
|
30848
|
+
function Text2() {
|
|
30849
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30850
|
+
_this.type = domelementtype_1.ElementType.Text;
|
|
30851
|
+
return _this;
|
|
30852
|
+
}
|
|
30853
|
+
Object.defineProperty(Text2.prototype, "nodeType", {
|
|
30854
|
+
get: function() {
|
|
30855
|
+
return 3;
|
|
30856
|
+
},
|
|
30857
|
+
enumerable: false,
|
|
30858
|
+
configurable: true
|
|
30859
|
+
});
|
|
30860
|
+
return Text2;
|
|
30861
|
+
}(DataNode)
|
|
30862
|
+
);
|
|
30863
|
+
node.Text = Text$2;
|
|
30864
|
+
var Comment$1 = (
|
|
30865
|
+
/** @class */
|
|
30866
|
+
function(_super) {
|
|
30867
|
+
__extends(Comment2, _super);
|
|
30868
|
+
function Comment2() {
|
|
30869
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30870
|
+
_this.type = domelementtype_1.ElementType.Comment;
|
|
30871
|
+
return _this;
|
|
30872
|
+
}
|
|
30873
|
+
Object.defineProperty(Comment2.prototype, "nodeType", {
|
|
30874
|
+
get: function() {
|
|
30875
|
+
return 8;
|
|
30876
|
+
},
|
|
30877
|
+
enumerable: false,
|
|
30878
|
+
configurable: true
|
|
30879
|
+
});
|
|
30880
|
+
return Comment2;
|
|
30881
|
+
}(DataNode)
|
|
30882
|
+
);
|
|
30883
|
+
node.Comment = Comment$1;
|
|
30884
|
+
var ProcessingInstruction$1 = (
|
|
30885
|
+
/** @class */
|
|
30886
|
+
function(_super) {
|
|
30887
|
+
__extends(ProcessingInstruction2, _super);
|
|
30888
|
+
function ProcessingInstruction2(name, data) {
|
|
30889
|
+
var _this = _super.call(this, data) || this;
|
|
30890
|
+
_this.name = name;
|
|
30891
|
+
_this.type = domelementtype_1.ElementType.Directive;
|
|
30892
|
+
return _this;
|
|
30893
|
+
}
|
|
30894
|
+
Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
|
|
30895
|
+
get: function() {
|
|
30896
|
+
return 1;
|
|
30897
|
+
},
|
|
30898
|
+
enumerable: false,
|
|
30899
|
+
configurable: true
|
|
30900
|
+
});
|
|
30901
|
+
return ProcessingInstruction2;
|
|
30902
|
+
}(DataNode)
|
|
30903
|
+
);
|
|
30904
|
+
node.ProcessingInstruction = ProcessingInstruction$1;
|
|
30905
|
+
var NodeWithChildren = (
|
|
30906
|
+
/** @class */
|
|
30907
|
+
function(_super) {
|
|
30908
|
+
__extends(NodeWithChildren2, _super);
|
|
30909
|
+
function NodeWithChildren2(children) {
|
|
30910
|
+
var _this = _super.call(this) || this;
|
|
30911
|
+
_this.children = children;
|
|
30912
|
+
return _this;
|
|
30913
|
+
}
|
|
30914
|
+
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
30915
|
+
// Aliases
|
|
30916
|
+
/** First child of the node. */
|
|
30917
|
+
get: function() {
|
|
30918
|
+
var _a2;
|
|
30919
|
+
return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
|
|
30920
|
+
},
|
|
30921
|
+
enumerable: false,
|
|
30922
|
+
configurable: true
|
|
30923
|
+
});
|
|
30924
|
+
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
30925
|
+
/** Last child of the node. */
|
|
30926
|
+
get: function() {
|
|
30927
|
+
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
30928
|
+
},
|
|
30929
|
+
enumerable: false,
|
|
30930
|
+
configurable: true
|
|
30931
|
+
});
|
|
30932
|
+
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
30933
|
+
/**
|
|
30934
|
+
* Same as {@link children}.
|
|
30935
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30936
|
+
*/
|
|
30937
|
+
get: function() {
|
|
30938
|
+
return this.children;
|
|
30939
|
+
},
|
|
30940
|
+
set: function(children) {
|
|
30941
|
+
this.children = children;
|
|
30942
|
+
},
|
|
30943
|
+
enumerable: false,
|
|
30944
|
+
configurable: true
|
|
30945
|
+
});
|
|
30946
|
+
return NodeWithChildren2;
|
|
30947
|
+
}(Node$2)
|
|
30948
|
+
);
|
|
30949
|
+
node.NodeWithChildren = NodeWithChildren;
|
|
30950
|
+
var CDATA = (
|
|
30951
|
+
/** @class */
|
|
30952
|
+
function(_super) {
|
|
30953
|
+
__extends(CDATA2, _super);
|
|
30954
|
+
function CDATA2() {
|
|
30955
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30956
|
+
_this.type = domelementtype_1.ElementType.CDATA;
|
|
30957
|
+
return _this;
|
|
30958
|
+
}
|
|
30959
|
+
Object.defineProperty(CDATA2.prototype, "nodeType", {
|
|
30960
|
+
get: function() {
|
|
30961
|
+
return 4;
|
|
30962
|
+
},
|
|
30963
|
+
enumerable: false,
|
|
30964
|
+
configurable: true
|
|
30965
|
+
});
|
|
30966
|
+
return CDATA2;
|
|
30967
|
+
}(NodeWithChildren)
|
|
30968
|
+
);
|
|
30969
|
+
node.CDATA = CDATA;
|
|
30970
|
+
var Document = (
|
|
30971
|
+
/** @class */
|
|
30972
|
+
function(_super) {
|
|
30973
|
+
__extends(Document2, _super);
|
|
30974
|
+
function Document2() {
|
|
30975
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30976
|
+
_this.type = domelementtype_1.ElementType.Root;
|
|
30977
|
+
return _this;
|
|
30978
|
+
}
|
|
30979
|
+
Object.defineProperty(Document2.prototype, "nodeType", {
|
|
30980
|
+
get: function() {
|
|
30981
|
+
return 9;
|
|
30982
|
+
},
|
|
30983
|
+
enumerable: false,
|
|
30984
|
+
configurable: true
|
|
30985
|
+
});
|
|
30986
|
+
return Document2;
|
|
30987
|
+
}(NodeWithChildren)
|
|
30988
|
+
);
|
|
30989
|
+
node.Document = Document;
|
|
30990
|
+
var Element$2 = (
|
|
30991
|
+
/** @class */
|
|
30992
|
+
function(_super) {
|
|
30993
|
+
__extends(Element2, _super);
|
|
30994
|
+
function Element2(name, attribs, children, type2) {
|
|
30995
|
+
if (children === void 0) {
|
|
30996
|
+
children = [];
|
|
30997
|
+
}
|
|
30998
|
+
if (type2 === void 0) {
|
|
30999
|
+
type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
31000
|
+
}
|
|
31001
|
+
var _this = _super.call(this, children) || this;
|
|
31002
|
+
_this.name = name;
|
|
31003
|
+
_this.attribs = attribs;
|
|
31004
|
+
_this.type = type2;
|
|
31005
|
+
return _this;
|
|
31006
|
+
}
|
|
31007
|
+
Object.defineProperty(Element2.prototype, "nodeType", {
|
|
31008
|
+
get: function() {
|
|
31009
|
+
return 1;
|
|
31010
|
+
},
|
|
31011
|
+
enumerable: false,
|
|
31012
|
+
configurable: true
|
|
31013
|
+
});
|
|
31014
|
+
Object.defineProperty(Element2.prototype, "tagName", {
|
|
31015
|
+
// DOM Level 1 aliases
|
|
31016
|
+
/**
|
|
31017
|
+
* Same as {@link name}.
|
|
31018
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
31019
|
+
*/
|
|
31020
|
+
get: function() {
|
|
31021
|
+
return this.name;
|
|
31022
|
+
},
|
|
31023
|
+
set: function(name) {
|
|
31024
|
+
this.name = name;
|
|
31025
|
+
},
|
|
31026
|
+
enumerable: false,
|
|
31027
|
+
configurable: true
|
|
31028
|
+
});
|
|
31029
|
+
Object.defineProperty(Element2.prototype, "attributes", {
|
|
31030
|
+
get: function() {
|
|
31031
|
+
var _this = this;
|
|
31032
|
+
return Object.keys(this.attribs).map(function(name) {
|
|
31033
|
+
var _a2, _b2;
|
|
31034
|
+
return {
|
|
31035
|
+
name,
|
|
31036
|
+
value: _this.attribs[name],
|
|
31037
|
+
namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
|
|
31038
|
+
prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
|
|
31039
|
+
};
|
|
31040
|
+
});
|
|
31041
|
+
},
|
|
31042
|
+
enumerable: false,
|
|
31043
|
+
configurable: true
|
|
31044
|
+
});
|
|
31045
|
+
return Element2;
|
|
31046
|
+
}(NodeWithChildren)
|
|
31047
|
+
);
|
|
31048
|
+
node.Element = Element$2;
|
|
31049
|
+
function isTag(node2) {
|
|
31050
|
+
return (0, domelementtype_1.isTag)(node2);
|
|
31051
|
+
}
|
|
31052
|
+
node.isTag = isTag;
|
|
31053
|
+
function isCDATA(node2) {
|
|
31054
|
+
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
31055
|
+
}
|
|
31056
|
+
node.isCDATA = isCDATA;
|
|
31057
|
+
function isText(node2) {
|
|
31058
|
+
return node2.type === domelementtype_1.ElementType.Text;
|
|
31059
|
+
}
|
|
31060
|
+
node.isText = isText;
|
|
31061
|
+
function isComment(node2) {
|
|
31062
|
+
return node2.type === domelementtype_1.ElementType.Comment;
|
|
31063
|
+
}
|
|
31064
|
+
node.isComment = isComment;
|
|
31065
|
+
function isDirective(node2) {
|
|
31066
|
+
return node2.type === domelementtype_1.ElementType.Directive;
|
|
31067
|
+
}
|
|
31068
|
+
node.isDirective = isDirective;
|
|
31069
|
+
function isDocument(node2) {
|
|
31070
|
+
return node2.type === domelementtype_1.ElementType.Root;
|
|
31071
|
+
}
|
|
31072
|
+
node.isDocument = isDocument;
|
|
31073
|
+
function hasChildren$1(node2) {
|
|
31074
|
+
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
31075
|
+
}
|
|
31076
|
+
node.hasChildren = hasChildren$1;
|
|
31077
|
+
function cloneNode(node2, recursive) {
|
|
31078
|
+
if (recursive === void 0) {
|
|
31079
|
+
recursive = false;
|
|
31080
|
+
}
|
|
31081
|
+
var result;
|
|
31082
|
+
if (isText(node2)) {
|
|
31083
|
+
result = new Text$2(node2.data);
|
|
31084
|
+
} else if (isComment(node2)) {
|
|
31085
|
+
result = new Comment$1(node2.data);
|
|
31086
|
+
} else if (isTag(node2)) {
|
|
31087
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31088
|
+
var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
|
|
31089
|
+
children.forEach(function(child) {
|
|
31090
|
+
return child.parent = clone_1;
|
|
31091
|
+
});
|
|
31092
|
+
if (node2.namespace != null) {
|
|
31093
|
+
clone_1.namespace = node2.namespace;
|
|
31094
|
+
}
|
|
31095
|
+
if (node2["x-attribsNamespace"]) {
|
|
31096
|
+
clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
|
|
31097
|
+
}
|
|
31098
|
+
if (node2["x-attribsPrefix"]) {
|
|
31099
|
+
clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
|
|
31100
|
+
}
|
|
31101
|
+
result = clone_1;
|
|
31102
|
+
} else if (isCDATA(node2)) {
|
|
31103
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31104
|
+
var clone_2 = new CDATA(children);
|
|
31105
|
+
children.forEach(function(child) {
|
|
31106
|
+
return child.parent = clone_2;
|
|
31107
|
+
});
|
|
31108
|
+
result = clone_2;
|
|
31109
|
+
} else if (isDocument(node2)) {
|
|
31110
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31111
|
+
var clone_3 = new Document(children);
|
|
31112
|
+
children.forEach(function(child) {
|
|
31113
|
+
return child.parent = clone_3;
|
|
31114
|
+
});
|
|
31115
|
+
if (node2["x-mode"]) {
|
|
31116
|
+
clone_3["x-mode"] = node2["x-mode"];
|
|
31117
|
+
}
|
|
31118
|
+
result = clone_3;
|
|
31119
|
+
} else if (isDirective(node2)) {
|
|
31120
|
+
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
31121
|
+
if (node2["x-name"] != null) {
|
|
31122
|
+
instruction["x-name"] = node2["x-name"];
|
|
31123
|
+
instruction["x-publicId"] = node2["x-publicId"];
|
|
31124
|
+
instruction["x-systemId"] = node2["x-systemId"];
|
|
31125
|
+
}
|
|
31126
|
+
result = instruction;
|
|
31127
|
+
} else {
|
|
31128
|
+
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
31129
|
+
}
|
|
31130
|
+
result.startIndex = node2.startIndex;
|
|
31131
|
+
result.endIndex = node2.endIndex;
|
|
31132
|
+
if (node2.sourceCodeLocation != null) {
|
|
31133
|
+
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
31134
|
+
}
|
|
31135
|
+
return result;
|
|
31136
|
+
}
|
|
31137
|
+
node.cloneNode = cloneNode;
|
|
31138
|
+
function cloneChildren(childs) {
|
|
31139
|
+
var children = childs.map(function(child) {
|
|
31140
|
+
return cloneNode(child, true);
|
|
31141
|
+
});
|
|
31142
|
+
for (var i2 = 1; i2 < children.length; i2++) {
|
|
31143
|
+
children[i2].prev = children[i2 - 1];
|
|
31144
|
+
children[i2 - 1].next = children[i2];
|
|
31145
|
+
}
|
|
31146
|
+
return children;
|
|
31147
|
+
}
|
|
31148
|
+
(function(exports) {
|
|
31149
|
+
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
31150
|
+
if (k22 === void 0)
|
|
31151
|
+
k22 = k2;
|
|
31152
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
31153
|
+
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
31154
|
+
desc = { enumerable: true, get: function() {
|
|
31155
|
+
return m2[k2];
|
|
31156
|
+
} };
|
|
31157
|
+
}
|
|
31158
|
+
Object.defineProperty(o2, k22, desc);
|
|
31159
|
+
} : function(o2, m2, k2, k22) {
|
|
31160
|
+
if (k22 === void 0)
|
|
31161
|
+
k22 = k2;
|
|
31162
|
+
o2[k22] = m2[k2];
|
|
31163
|
+
});
|
|
31164
|
+
var __exportStar = commonjsGlobal$1 && commonjsGlobal$1.__exportStar || function(m2, exports2) {
|
|
31165
|
+
for (var p2 in m2)
|
|
31166
|
+
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
|
|
31167
|
+
__createBinding(exports2, m2, p2);
|
|
31168
|
+
};
|
|
31169
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31170
|
+
exports.DomHandler = void 0;
|
|
31171
|
+
var domelementtype_12 = lib$2;
|
|
31172
|
+
var node_js_1 = node;
|
|
31173
|
+
__exportStar(node, exports);
|
|
31174
|
+
var defaultOpts = {
|
|
31175
|
+
withStartIndices: false,
|
|
31176
|
+
withEndIndices: false,
|
|
31177
|
+
xmlMode: false
|
|
31178
|
+
};
|
|
31179
|
+
var DomHandler = (
|
|
31180
|
+
/** @class */
|
|
31181
|
+
function() {
|
|
31182
|
+
function DomHandler2(callback, options, elementCB) {
|
|
31183
|
+
this.dom = [];
|
|
31184
|
+
this.root = new node_js_1.Document(this.dom);
|
|
31185
|
+
this.done = false;
|
|
31186
|
+
this.tagStack = [this.root];
|
|
31187
|
+
this.lastNode = null;
|
|
31188
|
+
this.parser = null;
|
|
31189
|
+
if (typeof options === "function") {
|
|
31190
|
+
elementCB = options;
|
|
31191
|
+
options = defaultOpts;
|
|
31192
|
+
}
|
|
31193
|
+
if (typeof callback === "object") {
|
|
31194
|
+
options = callback;
|
|
31195
|
+
callback = void 0;
|
|
31196
|
+
}
|
|
31197
|
+
this.callback = callback !== null && callback !== void 0 ? callback : null;
|
|
31198
|
+
this.options = options !== null && options !== void 0 ? options : defaultOpts;
|
|
31199
|
+
this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
|
|
31200
|
+
}
|
|
31201
|
+
DomHandler2.prototype.onparserinit = function(parser) {
|
|
31202
|
+
this.parser = parser;
|
|
31203
|
+
};
|
|
31204
|
+
DomHandler2.prototype.onreset = function() {
|
|
31205
|
+
this.dom = [];
|
|
31206
|
+
this.root = new node_js_1.Document(this.dom);
|
|
31207
|
+
this.done = false;
|
|
31208
|
+
this.tagStack = [this.root];
|
|
31209
|
+
this.lastNode = null;
|
|
31210
|
+
this.parser = null;
|
|
31211
|
+
};
|
|
31212
|
+
DomHandler2.prototype.onend = function() {
|
|
31213
|
+
if (this.done)
|
|
31214
|
+
return;
|
|
31215
|
+
this.done = true;
|
|
31216
|
+
this.parser = null;
|
|
31217
|
+
this.handleCallback(null);
|
|
31218
|
+
};
|
|
31219
|
+
DomHandler2.prototype.onerror = function(error) {
|
|
31220
|
+
this.handleCallback(error);
|
|
31221
|
+
};
|
|
31222
|
+
DomHandler2.prototype.onclosetag = function() {
|
|
31223
|
+
this.lastNode = null;
|
|
31224
|
+
var elem = this.tagStack.pop();
|
|
31225
|
+
if (this.options.withEndIndices) {
|
|
31226
|
+
elem.endIndex = this.parser.endIndex;
|
|
31227
|
+
}
|
|
31228
|
+
if (this.elementCB)
|
|
31229
|
+
this.elementCB(elem);
|
|
31230
|
+
};
|
|
31231
|
+
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
31232
|
+
var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
31233
|
+
var element = new node_js_1.Element(name, attribs, void 0, type2);
|
|
31234
|
+
this.addNode(element);
|
|
31235
|
+
this.tagStack.push(element);
|
|
31236
|
+
};
|
|
31237
|
+
DomHandler2.prototype.ontext = function(data) {
|
|
31238
|
+
var lastNode = this.lastNode;
|
|
31239
|
+
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
31240
|
+
lastNode.data += data;
|
|
31241
|
+
if (this.options.withEndIndices) {
|
|
31242
|
+
lastNode.endIndex = this.parser.endIndex;
|
|
31243
|
+
}
|
|
31244
|
+
} else {
|
|
31245
|
+
var node2 = new node_js_1.Text(data);
|
|
31246
|
+
this.addNode(node2);
|
|
31247
|
+
this.lastNode = node2;
|
|
31248
|
+
}
|
|
31249
|
+
};
|
|
31250
|
+
DomHandler2.prototype.oncomment = function(data) {
|
|
31251
|
+
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
31252
|
+
this.lastNode.data += data;
|
|
31253
|
+
return;
|
|
31254
|
+
}
|
|
31255
|
+
var node2 = new node_js_1.Comment(data);
|
|
31256
|
+
this.addNode(node2);
|
|
31257
|
+
this.lastNode = node2;
|
|
31258
|
+
};
|
|
31259
|
+
DomHandler2.prototype.oncommentend = function() {
|
|
31260
|
+
this.lastNode = null;
|
|
31261
|
+
};
|
|
31262
|
+
DomHandler2.prototype.oncdatastart = function() {
|
|
31263
|
+
var text = new node_js_1.Text("");
|
|
31264
|
+
var node2 = new node_js_1.CDATA([text]);
|
|
31265
|
+
this.addNode(node2);
|
|
31266
|
+
text.parent = node2;
|
|
31267
|
+
this.lastNode = text;
|
|
31268
|
+
};
|
|
31269
|
+
DomHandler2.prototype.oncdataend = function() {
|
|
31270
|
+
this.lastNode = null;
|
|
31271
|
+
};
|
|
31272
|
+
DomHandler2.prototype.onprocessinginstruction = function(name, data) {
|
|
31273
|
+
var node2 = new node_js_1.ProcessingInstruction(name, data);
|
|
31274
|
+
this.addNode(node2);
|
|
31275
|
+
};
|
|
31276
|
+
DomHandler2.prototype.handleCallback = function(error) {
|
|
31277
|
+
if (typeof this.callback === "function") {
|
|
31278
|
+
this.callback(error, this.dom);
|
|
31279
|
+
} else if (error) {
|
|
31280
|
+
throw error;
|
|
31281
|
+
}
|
|
31282
|
+
};
|
|
31283
|
+
DomHandler2.prototype.addNode = function(node2) {
|
|
31284
|
+
var parent = this.tagStack[this.tagStack.length - 1];
|
|
31285
|
+
var previousSibling = parent.children[parent.children.length - 1];
|
|
31286
|
+
if (this.options.withStartIndices) {
|
|
31287
|
+
node2.startIndex = this.parser.startIndex;
|
|
31288
|
+
}
|
|
31289
|
+
if (this.options.withEndIndices) {
|
|
31290
|
+
node2.endIndex = this.parser.endIndex;
|
|
31291
|
+
}
|
|
31292
|
+
parent.children.push(node2);
|
|
31293
|
+
if (previousSibling) {
|
|
31294
|
+
node2.prev = previousSibling;
|
|
31295
|
+
previousSibling.next = node2;
|
|
31296
|
+
}
|
|
31297
|
+
node2.parent = parent;
|
|
31298
|
+
this.lastNode = null;
|
|
31299
|
+
};
|
|
31300
|
+
return DomHandler2;
|
|
31301
|
+
}()
|
|
31302
|
+
);
|
|
31303
|
+
exports.DomHandler = DomHandler;
|
|
31304
|
+
exports.default = DomHandler;
|
|
31305
|
+
})(lib$3);
|
|
31306
|
+
var HTML = "html";
|
|
31307
|
+
var HEAD$1 = "head";
|
|
31308
|
+
var BODY = "body";
|
|
31309
|
+
var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
|
|
31310
|
+
var HEAD_TAG_REGEX = /<head[^]*>/i;
|
|
31311
|
+
var BODY_TAG_REGEX = /<body[^]*>/i;
|
|
31312
|
+
var parseFromDocument = function() {
|
|
31313
|
+
throw new Error(
|
|
31314
|
+
"This browser does not support `document.implementation.createHTMLDocument`"
|
|
31315
|
+
);
|
|
31316
|
+
};
|
|
31317
|
+
var parseFromString = function() {
|
|
31318
|
+
throw new Error(
|
|
31319
|
+
"This browser does not support `DOMParser.prototype.parseFromString`"
|
|
31320
|
+
);
|
|
31321
|
+
};
|
|
31322
|
+
var DOMParser$1 = typeof window === "object" && window.DOMParser;
|
|
31323
|
+
if (typeof DOMParser$1 === "function") {
|
|
31324
|
+
var domParser = new DOMParser$1();
|
|
31325
|
+
var mimeType = "text/html";
|
|
31326
|
+
parseFromString = function(html, tagName2) {
|
|
31327
|
+
if (tagName2) {
|
|
31328
|
+
html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
|
|
31329
|
+
}
|
|
31330
|
+
return domParser.parseFromString(html, mimeType);
|
|
31331
|
+
};
|
|
31332
|
+
parseFromDocument = parseFromString;
|
|
31333
|
+
}
|
|
31334
|
+
if (typeof document === "object" && document.implementation) {
|
|
31335
|
+
var doc = document.implementation.createHTMLDocument();
|
|
31336
|
+
parseFromDocument = function(html, tagName2) {
|
|
31337
|
+
if (tagName2) {
|
|
31338
|
+
var element = doc.documentElement.querySelector(tagName2);
|
|
31339
|
+
element.innerHTML = html;
|
|
31340
|
+
return doc;
|
|
31341
|
+
}
|
|
31342
|
+
doc.documentElement.innerHTML = html;
|
|
31343
|
+
return doc;
|
|
31344
|
+
};
|
|
31345
|
+
}
|
|
31346
|
+
var template = typeof document === "object" ? document.createElement("template") : {};
|
|
31347
|
+
var parseFromTemplate;
|
|
31348
|
+
if (template.content) {
|
|
31349
|
+
parseFromTemplate = function(html) {
|
|
31350
|
+
template.innerHTML = html;
|
|
31351
|
+
return template.content.childNodes;
|
|
31352
|
+
};
|
|
31353
|
+
}
|
|
31354
|
+
function domparser$1(html) {
|
|
31355
|
+
var firstTagName;
|
|
31356
|
+
var match = html.match(FIRST_TAG_REGEX);
|
|
31357
|
+
if (match && match[1]) {
|
|
31358
|
+
firstTagName = match[1].toLowerCase();
|
|
31359
|
+
}
|
|
31360
|
+
var doc;
|
|
31361
|
+
var element;
|
|
31362
|
+
var elements;
|
|
31363
|
+
switch (firstTagName) {
|
|
31364
|
+
case HTML:
|
|
31365
|
+
doc = parseFromString(html);
|
|
31366
|
+
if (!HEAD_TAG_REGEX.test(html)) {
|
|
31367
|
+
element = doc.querySelector(HEAD$1);
|
|
31368
|
+
if (element) {
|
|
31369
|
+
element.parentNode.removeChild(element);
|
|
31370
|
+
}
|
|
31371
|
+
}
|
|
31372
|
+
if (!BODY_TAG_REGEX.test(html)) {
|
|
31373
|
+
element = doc.querySelector(BODY);
|
|
31374
|
+
if (element) {
|
|
31375
|
+
element.parentNode.removeChild(element);
|
|
31376
|
+
}
|
|
31377
|
+
}
|
|
31378
|
+
return doc.querySelectorAll(HTML);
|
|
31379
|
+
case HEAD$1:
|
|
31380
|
+
case BODY:
|
|
31381
|
+
doc = parseFromDocument(html);
|
|
31382
|
+
elements = doc.querySelectorAll(firstTagName);
|
|
31383
|
+
if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
|
|
31384
|
+
return elements[0].parentNode.childNodes;
|
|
31385
|
+
}
|
|
31386
|
+
return elements;
|
|
31387
|
+
default:
|
|
31388
|
+
if (parseFromTemplate) {
|
|
31389
|
+
return parseFromTemplate(html);
|
|
31390
|
+
}
|
|
31391
|
+
element = parseFromDocument(html, BODY).querySelector(BODY);
|
|
31392
|
+
return element.childNodes;
|
|
31393
|
+
}
|
|
31394
|
+
}
|
|
31395
|
+
var domparser_1 = domparser$1;
|
|
31396
|
+
var utilities$5 = {};
|
|
31397
|
+
var constants$1 = {};
|
|
31398
|
+
constants$1.CASE_SENSITIVE_TAG_NAMES = [
|
|
31399
|
+
"animateMotion",
|
|
31400
|
+
"animateTransform",
|
|
31401
|
+
"clipPath",
|
|
31402
|
+
"feBlend",
|
|
31403
|
+
"feColorMatrix",
|
|
31404
|
+
"feComponentTransfer",
|
|
31405
|
+
"feComposite",
|
|
31406
|
+
"feConvolveMatrix",
|
|
31407
|
+
"feDiffuseLighting",
|
|
31408
|
+
"feDisplacementMap",
|
|
31409
|
+
"feDropShadow",
|
|
31410
|
+
"feFlood",
|
|
31411
|
+
"feFuncA",
|
|
31412
|
+
"feFuncB",
|
|
31413
|
+
"feFuncG",
|
|
31414
|
+
"feFuncR",
|
|
31415
|
+
"feGaussianBlur",
|
|
31416
|
+
"feImage",
|
|
31417
|
+
"feMerge",
|
|
31418
|
+
"feMergeNode",
|
|
31419
|
+
"feMorphology",
|
|
31420
|
+
"feOffset",
|
|
31421
|
+
"fePointLight",
|
|
31422
|
+
"feSpecularLighting",
|
|
31423
|
+
"feSpotLight",
|
|
31424
|
+
"feTile",
|
|
31425
|
+
"feTurbulence",
|
|
31426
|
+
"foreignObject",
|
|
31427
|
+
"linearGradient",
|
|
31428
|
+
"radialGradient",
|
|
31429
|
+
"textPath"
|
|
31430
|
+
];
|
|
31431
|
+
var domhandler$1 = lib$3;
|
|
31432
|
+
var constants = constants$1;
|
|
31433
|
+
var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
|
|
31434
|
+
var Comment = domhandler$1.Comment;
|
|
31435
|
+
var Element$1 = domhandler$1.Element;
|
|
31436
|
+
var ProcessingInstruction = domhandler$1.ProcessingInstruction;
|
|
31437
|
+
var Text$1 = domhandler$1.Text;
|
|
31438
|
+
var caseSensitiveTagNamesMap = {};
|
|
31439
|
+
var tagName;
|
|
31440
|
+
for (var i$1 = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i$1 < len; i$1++) {
|
|
31441
|
+
tagName = CASE_SENSITIVE_TAG_NAMES[i$1];
|
|
31442
|
+
caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
|
|
31443
|
+
}
|
|
31444
|
+
function getCaseSensitiveTagName(tagName2) {
|
|
31445
|
+
return caseSensitiveTagNamesMap[tagName2];
|
|
31446
|
+
}
|
|
31447
|
+
function formatAttributes(attributes) {
|
|
31448
|
+
var result = {};
|
|
31449
|
+
var attribute;
|
|
31450
|
+
for (var i2 = 0, len = attributes.length; i2 < len; i2++) {
|
|
31451
|
+
attribute = attributes[i2];
|
|
31452
|
+
result[attribute.name] = attribute.value;
|
|
31453
|
+
}
|
|
31454
|
+
return result;
|
|
31455
|
+
}
|
|
31456
|
+
function formatTagName(tagName2) {
|
|
31457
|
+
tagName2 = tagName2.toLowerCase();
|
|
31458
|
+
var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
|
|
31459
|
+
if (caseSensitiveTagName) {
|
|
31460
|
+
return caseSensitiveTagName;
|
|
31461
|
+
}
|
|
31462
|
+
return tagName2;
|
|
31463
|
+
}
|
|
31464
|
+
function formatDOM$1(nodes, parent, directive) {
|
|
31465
|
+
parent = parent || null;
|
|
31466
|
+
var result = [];
|
|
31467
|
+
var tagName2;
|
|
31468
|
+
for (var index2 = 0, len = nodes.length; index2 < len; index2++) {
|
|
31469
|
+
var node2 = nodes[index2];
|
|
31470
|
+
var current;
|
|
31471
|
+
switch (node2.nodeType) {
|
|
31472
|
+
case 1:
|
|
31473
|
+
tagName2 = formatTagName(node2.nodeName);
|
|
31474
|
+
current = new Element$1(tagName2, formatAttributes(node2.attributes));
|
|
31475
|
+
current.children = formatDOM$1(
|
|
31476
|
+
// template children are on content
|
|
31477
|
+
tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
|
|
31478
|
+
current
|
|
31479
|
+
);
|
|
31480
|
+
break;
|
|
31481
|
+
case 3:
|
|
31482
|
+
current = new Text$1(node2.nodeValue);
|
|
31483
|
+
break;
|
|
31484
|
+
case 8:
|
|
31485
|
+
current = new Comment(node2.nodeValue);
|
|
31486
|
+
break;
|
|
31487
|
+
default:
|
|
31488
|
+
continue;
|
|
31489
|
+
}
|
|
31490
|
+
var prev = result[index2 - 1] || null;
|
|
31491
|
+
if (prev) {
|
|
31492
|
+
prev.next = current;
|
|
31493
|
+
}
|
|
31494
|
+
current.parent = parent;
|
|
31495
|
+
current.prev = prev;
|
|
31496
|
+
current.next = null;
|
|
31497
|
+
result.push(current);
|
|
31498
|
+
}
|
|
31499
|
+
if (directive) {
|
|
31500
|
+
current = new ProcessingInstruction(
|
|
31501
|
+
directive.substring(0, directive.indexOf(" ")).toLowerCase(),
|
|
31502
|
+
directive
|
|
31503
|
+
);
|
|
31504
|
+
current.next = result[0] || null;
|
|
31505
|
+
current.parent = parent;
|
|
31506
|
+
result.unshift(current);
|
|
31507
|
+
if (result[1]) {
|
|
31508
|
+
result[1].prev = result[0];
|
|
31509
|
+
}
|
|
31510
|
+
}
|
|
31511
|
+
return result;
|
|
31512
|
+
}
|
|
31513
|
+
utilities$5.formatAttributes = formatAttributes;
|
|
31514
|
+
utilities$5.formatDOM = formatDOM$1;
|
|
31515
|
+
var domparser = domparser_1;
|
|
31516
|
+
var utilities$4 = utilities$5;
|
|
31517
|
+
var formatDOM = utilities$4.formatDOM;
|
|
31518
|
+
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
|
|
31519
|
+
function HTMLDOMParser(html) {
|
|
31520
|
+
if (typeof html !== "string") {
|
|
31521
|
+
throw new TypeError("First argument must be a string");
|
|
31522
|
+
}
|
|
31523
|
+
if (html === "") {
|
|
31524
|
+
return [];
|
|
31525
|
+
}
|
|
31526
|
+
var match = html.match(DIRECTIVE_REGEX);
|
|
31527
|
+
var directive;
|
|
31528
|
+
if (match && match[1]) {
|
|
31529
|
+
directive = match[1];
|
|
31530
|
+
}
|
|
31531
|
+
return formatDOM(domparser(html), null, directive);
|
|
31532
|
+
}
|
|
31533
|
+
var htmlToDom = HTMLDOMParser;
|
|
31534
|
+
var lib$1 = {};
|
|
31535
|
+
var possibleStandardNamesOptimized$1 = {};
|
|
31536
|
+
var SAME$1 = 0;
|
|
31537
|
+
possibleStandardNamesOptimized$1.SAME = SAME$1;
|
|
31538
|
+
var CAMELCASE$1 = 1;
|
|
31539
|
+
possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
|
|
31540
|
+
possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
31541
|
+
accept: 0,
|
|
31542
|
+
acceptCharset: 1,
|
|
31543
|
+
"accept-charset": "acceptCharset",
|
|
31544
|
+
accessKey: 1,
|
|
31545
|
+
action: 0,
|
|
31546
|
+
allowFullScreen: 1,
|
|
31547
|
+
alt: 0,
|
|
31548
|
+
as: 0,
|
|
31549
|
+
async: 0,
|
|
31550
|
+
autoCapitalize: 1,
|
|
31551
|
+
autoComplete: 1,
|
|
31552
|
+
autoCorrect: 1,
|
|
31553
|
+
autoFocus: 1,
|
|
31554
|
+
autoPlay: 1,
|
|
31555
|
+
autoSave: 1,
|
|
31556
|
+
capture: 0,
|
|
31557
|
+
cellPadding: 1,
|
|
31558
|
+
cellSpacing: 1,
|
|
31559
|
+
challenge: 0,
|
|
31560
|
+
charSet: 1,
|
|
31561
|
+
checked: 0,
|
|
31562
|
+
children: 0,
|
|
31563
|
+
cite: 0,
|
|
31564
|
+
class: "className",
|
|
31565
|
+
classID: 1,
|
|
31566
|
+
className: 1,
|
|
31567
|
+
cols: 0,
|
|
31568
|
+
colSpan: 1,
|
|
31569
|
+
content: 0,
|
|
31570
|
+
contentEditable: 1,
|
|
31571
|
+
contextMenu: 1,
|
|
31572
|
+
controls: 0,
|
|
31573
|
+
controlsList: 1,
|
|
31574
|
+
coords: 0,
|
|
31575
|
+
crossOrigin: 1,
|
|
31576
|
+
dangerouslySetInnerHTML: 1,
|
|
31577
|
+
data: 0,
|
|
31578
|
+
dateTime: 1,
|
|
31579
|
+
default: 0,
|
|
31580
|
+
defaultChecked: 1,
|
|
31581
|
+
defaultValue: 1,
|
|
31582
|
+
defer: 0,
|
|
31583
|
+
dir: 0,
|
|
31584
|
+
disabled: 0,
|
|
31585
|
+
disablePictureInPicture: 1,
|
|
31586
|
+
disableRemotePlayback: 1,
|
|
31587
|
+
download: 0,
|
|
31588
|
+
draggable: 0,
|
|
31589
|
+
encType: 1,
|
|
31590
|
+
enterKeyHint: 1,
|
|
31591
|
+
for: "htmlFor",
|
|
31592
|
+
form: 0,
|
|
31593
|
+
formMethod: 1,
|
|
31594
|
+
formAction: 1,
|
|
31595
|
+
formEncType: 1,
|
|
31596
|
+
formNoValidate: 1,
|
|
31597
|
+
formTarget: 1,
|
|
31598
|
+
frameBorder: 1,
|
|
31599
|
+
headers: 0,
|
|
31600
|
+
height: 0,
|
|
31601
|
+
hidden: 0,
|
|
31602
|
+
high: 0,
|
|
31603
|
+
href: 0,
|
|
31604
|
+
hrefLang: 1,
|
|
31605
|
+
htmlFor: 1,
|
|
31606
|
+
httpEquiv: 1,
|
|
31607
|
+
"http-equiv": "httpEquiv",
|
|
31608
|
+
icon: 0,
|
|
31609
|
+
id: 0,
|
|
31610
|
+
innerHTML: 1,
|
|
31611
|
+
inputMode: 1,
|
|
31612
|
+
integrity: 0,
|
|
31613
|
+
is: 0,
|
|
31614
|
+
itemID: 1,
|
|
31615
|
+
itemProp: 1,
|
|
31616
|
+
itemRef: 1,
|
|
31617
|
+
itemScope: 1,
|
|
31618
|
+
itemType: 1,
|
|
31619
|
+
keyParams: 1,
|
|
31620
|
+
keyType: 1,
|
|
31621
|
+
kind: 0,
|
|
31622
|
+
label: 0,
|
|
31623
|
+
lang: 0,
|
|
31624
|
+
list: 0,
|
|
31625
|
+
loop: 0,
|
|
31626
|
+
low: 0,
|
|
31627
|
+
manifest: 0,
|
|
31628
|
+
marginWidth: 1,
|
|
31629
|
+
marginHeight: 1,
|
|
31630
|
+
max: 0,
|
|
31631
|
+
maxLength: 1,
|
|
31632
|
+
media: 0,
|
|
31633
|
+
mediaGroup: 1,
|
|
31634
|
+
method: 0,
|
|
31635
|
+
min: 0,
|
|
31636
|
+
minLength: 1,
|
|
31637
|
+
multiple: 0,
|
|
31638
|
+
muted: 0,
|
|
31639
|
+
name: 0,
|
|
31640
|
+
noModule: 1,
|
|
31641
|
+
nonce: 0,
|
|
31642
|
+
noValidate: 1,
|
|
31643
|
+
open: 0,
|
|
31644
|
+
optimum: 0,
|
|
31645
|
+
pattern: 0,
|
|
31646
|
+
placeholder: 0,
|
|
31647
|
+
playsInline: 1,
|
|
31648
|
+
poster: 0,
|
|
31649
|
+
preload: 0,
|
|
31650
|
+
profile: 0,
|
|
31651
|
+
radioGroup: 1,
|
|
31652
|
+
readOnly: 1,
|
|
31653
|
+
referrerPolicy: 1,
|
|
31654
|
+
rel: 0,
|
|
31655
|
+
required: 0,
|
|
31656
|
+
reversed: 0,
|
|
31657
|
+
role: 0,
|
|
31658
|
+
rows: 0,
|
|
31659
|
+
rowSpan: 1,
|
|
31660
|
+
sandbox: 0,
|
|
31661
|
+
scope: 0,
|
|
31662
|
+
scoped: 0,
|
|
31663
|
+
scrolling: 0,
|
|
31664
|
+
seamless: 0,
|
|
31665
|
+
selected: 0,
|
|
31666
|
+
shape: 0,
|
|
31667
|
+
size: 0,
|
|
31668
|
+
sizes: 0,
|
|
31669
|
+
span: 0,
|
|
31670
|
+
spellCheck: 1,
|
|
31671
|
+
src: 0,
|
|
31672
|
+
srcDoc: 1,
|
|
31673
|
+
srcLang: 1,
|
|
31674
|
+
srcSet: 1,
|
|
31675
|
+
start: 0,
|
|
31676
|
+
step: 0,
|
|
31677
|
+
style: 0,
|
|
31678
|
+
summary: 0,
|
|
31679
|
+
tabIndex: 1,
|
|
31680
|
+
target: 0,
|
|
31681
|
+
title: 0,
|
|
31682
|
+
type: 0,
|
|
31683
|
+
useMap: 1,
|
|
31684
|
+
value: 0,
|
|
31685
|
+
width: 0,
|
|
31686
|
+
wmode: 0,
|
|
31687
|
+
wrap: 0,
|
|
31688
|
+
about: 0,
|
|
31689
|
+
accentHeight: 1,
|
|
31690
|
+
"accent-height": "accentHeight",
|
|
31691
|
+
accumulate: 0,
|
|
31692
|
+
additive: 0,
|
|
31693
|
+
alignmentBaseline: 1,
|
|
31694
|
+
"alignment-baseline": "alignmentBaseline",
|
|
31695
|
+
allowReorder: 1,
|
|
31696
|
+
alphabetic: 0,
|
|
31697
|
+
amplitude: 0,
|
|
31698
|
+
arabicForm: 1,
|
|
31699
|
+
"arabic-form": "arabicForm",
|
|
31700
|
+
ascent: 0,
|
|
31701
|
+
attributeName: 1,
|
|
31702
|
+
attributeType: 1,
|
|
31703
|
+
autoReverse: 1,
|
|
31704
|
+
azimuth: 0,
|
|
31705
|
+
baseFrequency: 1,
|
|
31706
|
+
baselineShift: 1,
|
|
31707
|
+
"baseline-shift": "baselineShift",
|
|
31708
|
+
baseProfile: 1,
|
|
31709
|
+
bbox: 0,
|
|
31710
|
+
begin: 0,
|
|
31711
|
+
bias: 0,
|
|
31712
|
+
by: 0,
|
|
31713
|
+
calcMode: 1,
|
|
31714
|
+
capHeight: 1,
|
|
31715
|
+
"cap-height": "capHeight",
|
|
31716
|
+
clip: 0,
|
|
31717
|
+
clipPath: 1,
|
|
31718
|
+
"clip-path": "clipPath",
|
|
31719
|
+
clipPathUnits: 1,
|
|
31720
|
+
clipRule: 1,
|
|
31721
|
+
"clip-rule": "clipRule",
|
|
31722
|
+
color: 0,
|
|
31723
|
+
colorInterpolation: 1,
|
|
31724
|
+
"color-interpolation": "colorInterpolation",
|
|
31725
|
+
colorInterpolationFilters: 1,
|
|
31726
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
31727
|
+
colorProfile: 1,
|
|
31728
|
+
"color-profile": "colorProfile",
|
|
31729
|
+
colorRendering: 1,
|
|
31730
|
+
"color-rendering": "colorRendering",
|
|
31731
|
+
contentScriptType: 1,
|
|
31732
|
+
contentStyleType: 1,
|
|
31733
|
+
cursor: 0,
|
|
31734
|
+
cx: 0,
|
|
31735
|
+
cy: 0,
|
|
31736
|
+
d: 0,
|
|
31737
|
+
datatype: 0,
|
|
31738
|
+
decelerate: 0,
|
|
31739
|
+
descent: 0,
|
|
31740
|
+
diffuseConstant: 1,
|
|
31741
|
+
direction: 0,
|
|
31742
|
+
display: 0,
|
|
31743
|
+
divisor: 0,
|
|
31744
|
+
dominantBaseline: 1,
|
|
31745
|
+
"dominant-baseline": "dominantBaseline",
|
|
31746
|
+
dur: 0,
|
|
31747
|
+
dx: 0,
|
|
31748
|
+
dy: 0,
|
|
31749
|
+
edgeMode: 1,
|
|
31750
|
+
elevation: 0,
|
|
31751
|
+
enableBackground: 1,
|
|
31752
|
+
"enable-background": "enableBackground",
|
|
31753
|
+
end: 0,
|
|
31754
|
+
exponent: 0,
|
|
31755
|
+
externalResourcesRequired: 1,
|
|
31756
|
+
fill: 0,
|
|
31757
|
+
fillOpacity: 1,
|
|
31758
|
+
"fill-opacity": "fillOpacity",
|
|
31759
|
+
fillRule: 1,
|
|
31760
|
+
"fill-rule": "fillRule",
|
|
31761
|
+
filter: 0,
|
|
31762
|
+
filterRes: 1,
|
|
31763
|
+
filterUnits: 1,
|
|
31764
|
+
floodOpacity: 1,
|
|
31765
|
+
"flood-opacity": "floodOpacity",
|
|
31766
|
+
floodColor: 1,
|
|
31767
|
+
"flood-color": "floodColor",
|
|
31768
|
+
focusable: 0,
|
|
31769
|
+
fontFamily: 1,
|
|
31770
|
+
"font-family": "fontFamily",
|
|
31771
|
+
fontSize: 1,
|
|
31772
|
+
"font-size": "fontSize",
|
|
31773
|
+
fontSizeAdjust: 1,
|
|
31774
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
31775
|
+
fontStretch: 1,
|
|
31776
|
+
"font-stretch": "fontStretch",
|
|
31777
|
+
fontStyle: 1,
|
|
31778
|
+
"font-style": "fontStyle",
|
|
31779
|
+
fontVariant: 1,
|
|
31780
|
+
"font-variant": "fontVariant",
|
|
31781
|
+
fontWeight: 1,
|
|
31782
|
+
"font-weight": "fontWeight",
|
|
31783
|
+
format: 0,
|
|
31784
|
+
from: 0,
|
|
31785
|
+
fx: 0,
|
|
31786
|
+
fy: 0,
|
|
31787
|
+
g1: 0,
|
|
31788
|
+
g2: 0,
|
|
31789
|
+
glyphName: 1,
|
|
31790
|
+
"glyph-name": "glyphName",
|
|
31791
|
+
glyphOrientationHorizontal: 1,
|
|
31792
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
31793
|
+
glyphOrientationVertical: 1,
|
|
31794
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
31795
|
+
glyphRef: 1,
|
|
31796
|
+
gradientTransform: 1,
|
|
31797
|
+
gradientUnits: 1,
|
|
31798
|
+
hanging: 0,
|
|
31799
|
+
horizAdvX: 1,
|
|
31800
|
+
"horiz-adv-x": "horizAdvX",
|
|
31801
|
+
horizOriginX: 1,
|
|
31802
|
+
"horiz-origin-x": "horizOriginX",
|
|
31803
|
+
ideographic: 0,
|
|
31804
|
+
imageRendering: 1,
|
|
31805
|
+
"image-rendering": "imageRendering",
|
|
31806
|
+
in2: 0,
|
|
31807
|
+
in: 0,
|
|
31808
|
+
inlist: 0,
|
|
31809
|
+
intercept: 0,
|
|
31810
|
+
k1: 0,
|
|
31811
|
+
k2: 0,
|
|
31812
|
+
k3: 0,
|
|
31813
|
+
k4: 0,
|
|
31814
|
+
k: 0,
|
|
31815
|
+
kernelMatrix: 1,
|
|
31816
|
+
kernelUnitLength: 1,
|
|
31817
|
+
kerning: 0,
|
|
31818
|
+
keyPoints: 1,
|
|
31819
|
+
keySplines: 1,
|
|
31820
|
+
keyTimes: 1,
|
|
31821
|
+
lengthAdjust: 1,
|
|
31822
|
+
letterSpacing: 1,
|
|
31823
|
+
"letter-spacing": "letterSpacing",
|
|
31824
|
+
lightingColor: 1,
|
|
31825
|
+
"lighting-color": "lightingColor",
|
|
31826
|
+
limitingConeAngle: 1,
|
|
31827
|
+
local: 0,
|
|
31828
|
+
markerEnd: 1,
|
|
31829
|
+
"marker-end": "markerEnd",
|
|
31830
|
+
markerHeight: 1,
|
|
31831
|
+
markerMid: 1,
|
|
31832
|
+
"marker-mid": "markerMid",
|
|
31833
|
+
markerStart: 1,
|
|
31834
|
+
"marker-start": "markerStart",
|
|
31835
|
+
markerUnits: 1,
|
|
31836
|
+
markerWidth: 1,
|
|
31837
|
+
mask: 0,
|
|
31838
|
+
maskContentUnits: 1,
|
|
31839
|
+
maskUnits: 1,
|
|
31840
|
+
mathematical: 0,
|
|
31841
|
+
mode: 0,
|
|
31842
|
+
numOctaves: 1,
|
|
31843
|
+
offset: 0,
|
|
31844
|
+
opacity: 0,
|
|
31845
|
+
operator: 0,
|
|
31846
|
+
order: 0,
|
|
31847
|
+
orient: 0,
|
|
31848
|
+
orientation: 0,
|
|
31849
|
+
origin: 0,
|
|
31850
|
+
overflow: 0,
|
|
31851
|
+
overlinePosition: 1,
|
|
31852
|
+
"overline-position": "overlinePosition",
|
|
31853
|
+
overlineThickness: 1,
|
|
31854
|
+
"overline-thickness": "overlineThickness",
|
|
31855
|
+
paintOrder: 1,
|
|
31856
|
+
"paint-order": "paintOrder",
|
|
31857
|
+
panose1: 0,
|
|
31858
|
+
"panose-1": "panose1",
|
|
31859
|
+
pathLength: 1,
|
|
31860
|
+
patternContentUnits: 1,
|
|
31861
|
+
patternTransform: 1,
|
|
31862
|
+
patternUnits: 1,
|
|
31863
|
+
pointerEvents: 1,
|
|
31864
|
+
"pointer-events": "pointerEvents",
|
|
31865
|
+
points: 0,
|
|
31866
|
+
pointsAtX: 1,
|
|
31867
|
+
pointsAtY: 1,
|
|
31868
|
+
pointsAtZ: 1,
|
|
31869
|
+
prefix: 0,
|
|
31870
|
+
preserveAlpha: 1,
|
|
31871
|
+
preserveAspectRatio: 1,
|
|
31872
|
+
primitiveUnits: 1,
|
|
31873
|
+
property: 0,
|
|
31874
|
+
r: 0,
|
|
31875
|
+
radius: 0,
|
|
31876
|
+
refX: 1,
|
|
31877
|
+
refY: 1,
|
|
31878
|
+
renderingIntent: 1,
|
|
31879
|
+
"rendering-intent": "renderingIntent",
|
|
31880
|
+
repeatCount: 1,
|
|
31881
|
+
repeatDur: 1,
|
|
31882
|
+
requiredExtensions: 1,
|
|
31883
|
+
requiredFeatures: 1,
|
|
31884
|
+
resource: 0,
|
|
31885
|
+
restart: 0,
|
|
31886
|
+
result: 0,
|
|
31887
|
+
results: 0,
|
|
31888
|
+
rotate: 0,
|
|
31889
|
+
rx: 0,
|
|
31890
|
+
ry: 0,
|
|
31891
|
+
scale: 0,
|
|
31892
|
+
security: 0,
|
|
31893
|
+
seed: 0,
|
|
31894
|
+
shapeRendering: 1,
|
|
31895
|
+
"shape-rendering": "shapeRendering",
|
|
31896
|
+
slope: 0,
|
|
31897
|
+
spacing: 0,
|
|
31898
|
+
specularConstant: 1,
|
|
31899
|
+
specularExponent: 1,
|
|
31900
|
+
speed: 0,
|
|
31901
|
+
spreadMethod: 1,
|
|
31902
|
+
startOffset: 1,
|
|
31903
|
+
stdDeviation: 1,
|
|
31904
|
+
stemh: 0,
|
|
31905
|
+
stemv: 0,
|
|
31906
|
+
stitchTiles: 1,
|
|
31907
|
+
stopColor: 1,
|
|
31908
|
+
"stop-color": "stopColor",
|
|
31909
|
+
stopOpacity: 1,
|
|
31910
|
+
"stop-opacity": "stopOpacity",
|
|
31911
|
+
strikethroughPosition: 1,
|
|
31912
|
+
"strikethrough-position": "strikethroughPosition",
|
|
31913
|
+
strikethroughThickness: 1,
|
|
31914
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
31915
|
+
string: 0,
|
|
31916
|
+
stroke: 0,
|
|
31917
|
+
strokeDasharray: 1,
|
|
31918
|
+
"stroke-dasharray": "strokeDasharray",
|
|
31919
|
+
strokeDashoffset: 1,
|
|
31920
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
31921
|
+
strokeLinecap: 1,
|
|
31922
|
+
"stroke-linecap": "strokeLinecap",
|
|
31923
|
+
strokeLinejoin: 1,
|
|
31924
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
31925
|
+
strokeMiterlimit: 1,
|
|
31926
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
31927
|
+
strokeWidth: 1,
|
|
31928
|
+
"stroke-width": "strokeWidth",
|
|
31929
|
+
strokeOpacity: 1,
|
|
31930
|
+
"stroke-opacity": "strokeOpacity",
|
|
31931
|
+
suppressContentEditableWarning: 1,
|
|
31932
|
+
suppressHydrationWarning: 1,
|
|
31933
|
+
surfaceScale: 1,
|
|
31934
|
+
systemLanguage: 1,
|
|
31935
|
+
tableValues: 1,
|
|
31936
|
+
targetX: 1,
|
|
31937
|
+
targetY: 1,
|
|
31938
|
+
textAnchor: 1,
|
|
31939
|
+
"text-anchor": "textAnchor",
|
|
31940
|
+
textDecoration: 1,
|
|
31941
|
+
"text-decoration": "textDecoration",
|
|
31942
|
+
textLength: 1,
|
|
31943
|
+
textRendering: 1,
|
|
31944
|
+
"text-rendering": "textRendering",
|
|
31945
|
+
to: 0,
|
|
31946
|
+
transform: 0,
|
|
31947
|
+
typeof: 0,
|
|
31948
|
+
u1: 0,
|
|
31949
|
+
u2: 0,
|
|
31950
|
+
underlinePosition: 1,
|
|
31951
|
+
"underline-position": "underlinePosition",
|
|
31952
|
+
underlineThickness: 1,
|
|
31953
|
+
"underline-thickness": "underlineThickness",
|
|
31954
|
+
unicode: 0,
|
|
31955
|
+
unicodeBidi: 1,
|
|
31956
|
+
"unicode-bidi": "unicodeBidi",
|
|
31957
|
+
unicodeRange: 1,
|
|
31958
|
+
"unicode-range": "unicodeRange",
|
|
31959
|
+
unitsPerEm: 1,
|
|
31960
|
+
"units-per-em": "unitsPerEm",
|
|
31961
|
+
unselectable: 0,
|
|
31962
|
+
vAlphabetic: 1,
|
|
31963
|
+
"v-alphabetic": "vAlphabetic",
|
|
31964
|
+
values: 0,
|
|
31965
|
+
vectorEffect: 1,
|
|
31966
|
+
"vector-effect": "vectorEffect",
|
|
31967
|
+
version: 0,
|
|
31968
|
+
vertAdvY: 1,
|
|
31969
|
+
"vert-adv-y": "vertAdvY",
|
|
31970
|
+
vertOriginX: 1,
|
|
31971
|
+
"vert-origin-x": "vertOriginX",
|
|
31972
|
+
vertOriginY: 1,
|
|
31973
|
+
"vert-origin-y": "vertOriginY",
|
|
31974
|
+
vHanging: 1,
|
|
31975
|
+
"v-hanging": "vHanging",
|
|
31976
|
+
vIdeographic: 1,
|
|
31977
|
+
"v-ideographic": "vIdeographic",
|
|
31978
|
+
viewBox: 1,
|
|
31979
|
+
viewTarget: 1,
|
|
31980
|
+
visibility: 0,
|
|
31981
|
+
vMathematical: 1,
|
|
31982
|
+
"v-mathematical": "vMathematical",
|
|
31983
|
+
vocab: 0,
|
|
31984
|
+
widths: 0,
|
|
31985
|
+
wordSpacing: 1,
|
|
31986
|
+
"word-spacing": "wordSpacing",
|
|
31987
|
+
writingMode: 1,
|
|
31988
|
+
"writing-mode": "writingMode",
|
|
31989
|
+
x1: 0,
|
|
31990
|
+
x2: 0,
|
|
31991
|
+
x: 0,
|
|
31992
|
+
xChannelSelector: 1,
|
|
31993
|
+
xHeight: 1,
|
|
31994
|
+
"x-height": "xHeight",
|
|
31995
|
+
xlinkActuate: 1,
|
|
31996
|
+
"xlink:actuate": "xlinkActuate",
|
|
31997
|
+
xlinkArcrole: 1,
|
|
31998
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
31999
|
+
xlinkHref: 1,
|
|
32000
|
+
"xlink:href": "xlinkHref",
|
|
32001
|
+
xlinkRole: 1,
|
|
32002
|
+
"xlink:role": "xlinkRole",
|
|
32003
|
+
xlinkShow: 1,
|
|
32004
|
+
"xlink:show": "xlinkShow",
|
|
32005
|
+
xlinkTitle: 1,
|
|
32006
|
+
"xlink:title": "xlinkTitle",
|
|
32007
|
+
xlinkType: 1,
|
|
32008
|
+
"xlink:type": "xlinkType",
|
|
32009
|
+
xmlBase: 1,
|
|
32010
|
+
"xml:base": "xmlBase",
|
|
32011
|
+
xmlLang: 1,
|
|
32012
|
+
"xml:lang": "xmlLang",
|
|
32013
|
+
xmlns: 0,
|
|
32014
|
+
"xml:space": "xmlSpace",
|
|
32015
|
+
xmlnsXlink: 1,
|
|
32016
|
+
"xmlns:xlink": "xmlnsXlink",
|
|
32017
|
+
xmlSpace: 1,
|
|
32018
|
+
y1: 0,
|
|
32019
|
+
y2: 0,
|
|
32020
|
+
y: 0,
|
|
32021
|
+
yChannelSelector: 1,
|
|
32022
|
+
z: 0,
|
|
32023
|
+
zoomAndPan: 1
|
|
32024
|
+
};
|
|
32025
|
+
Object.defineProperty(lib$1, "__esModule", { value: true });
|
|
32026
|
+
function _slicedToArray(arr2, i2) {
|
|
32027
|
+
return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
|
|
32028
|
+
}
|
|
32029
|
+
function _arrayWithHoles(arr2) {
|
|
32030
|
+
if (Array.isArray(arr2))
|
|
32031
|
+
return arr2;
|
|
32032
|
+
}
|
|
32033
|
+
function _iterableToArrayLimit(arr2, i2) {
|
|
32034
|
+
var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
|
|
32035
|
+
if (_i2 == null)
|
|
32036
|
+
return;
|
|
32037
|
+
var _arr = [];
|
|
32038
|
+
var _n = true;
|
|
32039
|
+
var _d2 = false;
|
|
32040
|
+
var _s, _e2;
|
|
32041
|
+
try {
|
|
32042
|
+
for (_i2 = _i2.call(arr2); !(_n = (_s = _i2.next()).done); _n = true) {
|
|
32043
|
+
_arr.push(_s.value);
|
|
32044
|
+
if (i2 && _arr.length === i2)
|
|
32045
|
+
break;
|
|
32046
|
+
}
|
|
32047
|
+
} catch (err2) {
|
|
32048
|
+
_d2 = true;
|
|
32049
|
+
_e2 = err2;
|
|
32050
|
+
} finally {
|
|
32051
|
+
try {
|
|
32052
|
+
if (!_n && _i2["return"] != null)
|
|
32053
|
+
_i2["return"]();
|
|
32054
|
+
} finally {
|
|
32055
|
+
if (_d2)
|
|
32056
|
+
throw _e2;
|
|
32057
|
+
}
|
|
32058
|
+
}
|
|
32059
|
+
return _arr;
|
|
32060
|
+
}
|
|
32061
|
+
function _unsupportedIterableToArray(o2, minLen) {
|
|
32062
|
+
if (!o2)
|
|
32063
|
+
return;
|
|
32064
|
+
if (typeof o2 === "string")
|
|
32065
|
+
return _arrayLikeToArray(o2, minLen);
|
|
32066
|
+
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
32067
|
+
if (n2 === "Object" && o2.constructor)
|
|
32068
|
+
n2 = o2.constructor.name;
|
|
32069
|
+
if (n2 === "Map" || n2 === "Set")
|
|
32070
|
+
return Array.from(o2);
|
|
32071
|
+
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
32072
|
+
return _arrayLikeToArray(o2, minLen);
|
|
32073
|
+
}
|
|
32074
|
+
function _arrayLikeToArray(arr2, len) {
|
|
32075
|
+
if (len == null || len > arr2.length)
|
|
32076
|
+
len = arr2.length;
|
|
32077
|
+
for (var i2 = 0, arr22 = new Array(len); i2 < len; i2++)
|
|
32078
|
+
arr22[i2] = arr2[i2];
|
|
32079
|
+
return arr22;
|
|
32080
|
+
}
|
|
32081
|
+
function _nonIterableRest() {
|
|
32082
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32083
|
+
}
|
|
32084
|
+
var RESERVED = 0;
|
|
32085
|
+
var STRING = 1;
|
|
32086
|
+
var BOOLEANISH_STRING = 2;
|
|
32087
|
+
var BOOLEAN = 3;
|
|
32088
|
+
var OVERLOADED_BOOLEAN = 4;
|
|
32089
|
+
var NUMERIC = 5;
|
|
32090
|
+
var POSITIVE_NUMERIC = 6;
|
|
32091
|
+
function getPropertyInfo(name) {
|
|
32092
|
+
return properties.hasOwnProperty(name) ? properties[name] : null;
|
|
32093
|
+
}
|
|
32094
|
+
function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
|
32095
|
+
this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
|
|
32096
|
+
this.attributeName = attributeName;
|
|
32097
|
+
this.attributeNamespace = attributeNamespace;
|
|
32098
|
+
this.mustUseProperty = mustUseProperty;
|
|
32099
|
+
this.propertyName = name;
|
|
32100
|
+
this.type = type2;
|
|
32101
|
+
this.sanitizeURL = sanitizeURL;
|
|
32102
|
+
this.removeEmptyString = removeEmptyString;
|
|
32103
|
+
}
|
|
32104
|
+
var properties = {};
|
|
32105
|
+
var reservedProps = [
|
|
32106
|
+
"children",
|
|
32107
|
+
"dangerouslySetInnerHTML",
|
|
32108
|
+
// TODO: This prevents the assignment of defaultValue to regular
|
|
32109
|
+
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
32110
|
+
// defaultValue property -- do we need this?
|
|
32111
|
+
"defaultValue",
|
|
32112
|
+
"defaultChecked",
|
|
32113
|
+
"innerHTML",
|
|
32114
|
+
"suppressContentEditableWarning",
|
|
32115
|
+
"suppressHydrationWarning",
|
|
32116
|
+
"style"
|
|
32117
|
+
];
|
|
32118
|
+
reservedProps.forEach(function(name) {
|
|
32119
|
+
properties[name] = new PropertyInfoRecord(
|
|
32120
|
+
name,
|
|
32121
|
+
RESERVED,
|
|
32122
|
+
false,
|
|
32123
|
+
// mustUseProperty
|
|
32124
|
+
name,
|
|
32125
|
+
// attributeName
|
|
32126
|
+
null,
|
|
32127
|
+
// attributeNamespace
|
|
32128
|
+
false,
|
|
32129
|
+
// sanitizeURL
|
|
32130
|
+
false
|
|
32131
|
+
);
|
|
32132
|
+
});
|
|
32133
|
+
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
|
|
32134
|
+
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
|
|
32135
|
+
properties[name] = new PropertyInfoRecord(
|
|
32136
|
+
name,
|
|
32137
|
+
STRING,
|
|
32138
|
+
false,
|
|
32139
|
+
// mustUseProperty
|
|
32140
|
+
attributeName,
|
|
32141
|
+
// attributeName
|
|
32142
|
+
null,
|
|
32143
|
+
// attributeNamespace
|
|
32144
|
+
false,
|
|
32145
|
+
// sanitizeURL
|
|
32146
|
+
false
|
|
32147
|
+
);
|
|
32148
|
+
});
|
|
32149
|
+
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
|
|
32150
|
+
properties[name] = new PropertyInfoRecord(
|
|
32151
|
+
name,
|
|
32152
|
+
BOOLEANISH_STRING,
|
|
32153
|
+
false,
|
|
32154
|
+
// mustUseProperty
|
|
32155
|
+
name.toLowerCase(),
|
|
32156
|
+
// attributeName
|
|
32157
|
+
null,
|
|
32158
|
+
// attributeNamespace
|
|
32159
|
+
false,
|
|
32160
|
+
// sanitizeURL
|
|
32161
|
+
false
|
|
32162
|
+
);
|
|
32163
|
+
});
|
|
32164
|
+
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
|
|
32165
|
+
properties[name] = new PropertyInfoRecord(
|
|
32166
|
+
name,
|
|
32167
|
+
BOOLEANISH_STRING,
|
|
32168
|
+
false,
|
|
32169
|
+
// mustUseProperty
|
|
32170
|
+
name,
|
|
32171
|
+
// attributeName
|
|
32172
|
+
null,
|
|
32173
|
+
// attributeNamespace
|
|
32174
|
+
false,
|
|
32175
|
+
// sanitizeURL
|
|
32176
|
+
false
|
|
32177
|
+
);
|
|
32178
|
+
});
|
|
32179
|
+
[
|
|
32180
|
+
"allowFullScreen",
|
|
32181
|
+
"async",
|
|
32182
|
+
// Note: there is a special case that prevents it from being written to the DOM
|
|
32183
|
+
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
32184
|
+
"autoFocus",
|
|
32185
|
+
"autoPlay",
|
|
32186
|
+
"controls",
|
|
32187
|
+
"default",
|
|
32188
|
+
"defer",
|
|
32189
|
+
"disabled",
|
|
32190
|
+
"disablePictureInPicture",
|
|
32191
|
+
"disableRemotePlayback",
|
|
32192
|
+
"formNoValidate",
|
|
32193
|
+
"hidden",
|
|
32194
|
+
"loop",
|
|
32195
|
+
"noModule",
|
|
32196
|
+
"noValidate",
|
|
32197
|
+
"open",
|
|
32198
|
+
"playsInline",
|
|
32199
|
+
"readOnly",
|
|
32200
|
+
"required",
|
|
32201
|
+
"reversed",
|
|
32202
|
+
"scoped",
|
|
32203
|
+
"seamless",
|
|
32204
|
+
// Microdata
|
|
32205
|
+
"itemScope"
|
|
32206
|
+
].forEach(function(name) {
|
|
32207
|
+
properties[name] = new PropertyInfoRecord(
|
|
32208
|
+
name,
|
|
32209
|
+
BOOLEAN,
|
|
32210
|
+
false,
|
|
32211
|
+
// mustUseProperty
|
|
32212
|
+
name.toLowerCase(),
|
|
32213
|
+
// attributeName
|
|
32214
|
+
null,
|
|
32215
|
+
// attributeNamespace
|
|
32216
|
+
false,
|
|
32217
|
+
// sanitizeURL
|
|
32218
|
+
false
|
|
32219
|
+
);
|
|
32220
|
+
});
|
|
32221
|
+
[
|
|
32222
|
+
"checked",
|
|
32223
|
+
// Note: `option.selected` is not updated if `select.multiple` is
|
|
32224
|
+
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
32225
|
+
"multiple",
|
|
32226
|
+
"muted",
|
|
32227
|
+
"selected"
|
|
32228
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32229
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32230
|
+
// instead in the assignment below.
|
|
32231
|
+
].forEach(function(name) {
|
|
32232
|
+
properties[name] = new PropertyInfoRecord(
|
|
32233
|
+
name,
|
|
32234
|
+
BOOLEAN,
|
|
32235
|
+
true,
|
|
32236
|
+
// mustUseProperty
|
|
32237
|
+
name,
|
|
32238
|
+
// attributeName
|
|
32239
|
+
null,
|
|
32240
|
+
// attributeNamespace
|
|
32241
|
+
false,
|
|
32242
|
+
// sanitizeURL
|
|
32243
|
+
false
|
|
32244
|
+
);
|
|
32245
|
+
});
|
|
32246
|
+
[
|
|
32247
|
+
"capture",
|
|
32248
|
+
"download"
|
|
32249
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32250
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32251
|
+
// instead in the assignment below.
|
|
32252
|
+
].forEach(function(name) {
|
|
32253
|
+
properties[name] = new PropertyInfoRecord(
|
|
32254
|
+
name,
|
|
32255
|
+
OVERLOADED_BOOLEAN,
|
|
32256
|
+
false,
|
|
32257
|
+
// mustUseProperty
|
|
32258
|
+
name,
|
|
32259
|
+
// attributeName
|
|
32260
|
+
null,
|
|
32261
|
+
// attributeNamespace
|
|
32262
|
+
false,
|
|
32263
|
+
// sanitizeURL
|
|
32264
|
+
false
|
|
32265
|
+
);
|
|
32266
|
+
});
|
|
32267
|
+
[
|
|
32268
|
+
"cols",
|
|
32269
|
+
"rows",
|
|
32270
|
+
"size",
|
|
32271
|
+
"span"
|
|
32272
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32273
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32274
|
+
// instead in the assignment below.
|
|
32275
|
+
].forEach(function(name) {
|
|
32276
|
+
properties[name] = new PropertyInfoRecord(
|
|
32277
|
+
name,
|
|
32278
|
+
POSITIVE_NUMERIC,
|
|
32279
|
+
false,
|
|
32280
|
+
// mustUseProperty
|
|
32281
|
+
name,
|
|
32282
|
+
// attributeName
|
|
32283
|
+
null,
|
|
32284
|
+
// attributeNamespace
|
|
32285
|
+
false,
|
|
32286
|
+
// sanitizeURL
|
|
32287
|
+
false
|
|
32288
|
+
);
|
|
32289
|
+
});
|
|
32290
|
+
["rowSpan", "start"].forEach(function(name) {
|
|
32291
|
+
properties[name] = new PropertyInfoRecord(
|
|
32292
|
+
name,
|
|
32293
|
+
NUMERIC,
|
|
32294
|
+
false,
|
|
32295
|
+
// mustUseProperty
|
|
32296
|
+
name.toLowerCase(),
|
|
32297
|
+
// attributeName
|
|
32298
|
+
null,
|
|
32299
|
+
// attributeNamespace
|
|
32300
|
+
false,
|
|
32301
|
+
// sanitizeURL
|
|
32302
|
+
false
|
|
32303
|
+
);
|
|
32304
|
+
});
|
|
32305
|
+
var CAMELIZE = /[\-\:]([a-z])/g;
|
|
32306
|
+
var capitalize$1 = function capitalize(token) {
|
|
32307
|
+
return token[1].toUpperCase();
|
|
32308
|
+
};
|
|
32309
|
+
[
|
|
32310
|
+
"accent-height",
|
|
32311
|
+
"alignment-baseline",
|
|
32312
|
+
"arabic-form",
|
|
32313
|
+
"baseline-shift",
|
|
32314
|
+
"cap-height",
|
|
32315
|
+
"clip-path",
|
|
32316
|
+
"clip-rule",
|
|
32317
|
+
"color-interpolation",
|
|
32318
|
+
"color-interpolation-filters",
|
|
32319
|
+
"color-profile",
|
|
32320
|
+
"color-rendering",
|
|
32321
|
+
"dominant-baseline",
|
|
32322
|
+
"enable-background",
|
|
32323
|
+
"fill-opacity",
|
|
32324
|
+
"fill-rule",
|
|
32325
|
+
"flood-color",
|
|
32326
|
+
"flood-opacity",
|
|
32327
|
+
"font-family",
|
|
32328
|
+
"font-size",
|
|
32329
|
+
"font-size-adjust",
|
|
32330
|
+
"font-stretch",
|
|
32331
|
+
"font-style",
|
|
32332
|
+
"font-variant",
|
|
32333
|
+
"font-weight",
|
|
32334
|
+
"glyph-name",
|
|
32335
|
+
"glyph-orientation-horizontal",
|
|
32336
|
+
"glyph-orientation-vertical",
|
|
32337
|
+
"horiz-adv-x",
|
|
32338
|
+
"horiz-origin-x",
|
|
32339
|
+
"image-rendering",
|
|
32340
|
+
"letter-spacing",
|
|
32341
|
+
"lighting-color",
|
|
32342
|
+
"marker-end",
|
|
32343
|
+
"marker-mid",
|
|
32344
|
+
"marker-start",
|
|
32345
|
+
"overline-position",
|
|
32346
|
+
"overline-thickness",
|
|
32347
|
+
"paint-order",
|
|
32348
|
+
"panose-1",
|
|
32349
|
+
"pointer-events",
|
|
32350
|
+
"rendering-intent",
|
|
32351
|
+
"shape-rendering",
|
|
32352
|
+
"stop-color",
|
|
32353
|
+
"stop-opacity",
|
|
32354
|
+
"strikethrough-position",
|
|
32355
|
+
"strikethrough-thickness",
|
|
32356
|
+
"stroke-dasharray",
|
|
32357
|
+
"stroke-dashoffset",
|
|
32358
|
+
"stroke-linecap",
|
|
32359
|
+
"stroke-linejoin",
|
|
32360
|
+
"stroke-miterlimit",
|
|
32361
|
+
"stroke-opacity",
|
|
32362
|
+
"stroke-width",
|
|
32363
|
+
"text-anchor",
|
|
32364
|
+
"text-decoration",
|
|
32365
|
+
"text-rendering",
|
|
32366
|
+
"underline-position",
|
|
32367
|
+
"underline-thickness",
|
|
32368
|
+
"unicode-bidi",
|
|
32369
|
+
"unicode-range",
|
|
32370
|
+
"units-per-em",
|
|
32371
|
+
"v-alphabetic",
|
|
32372
|
+
"v-hanging",
|
|
32373
|
+
"v-ideographic",
|
|
32374
|
+
"v-mathematical",
|
|
32375
|
+
"vector-effect",
|
|
32376
|
+
"vert-adv-y",
|
|
32377
|
+
"vert-origin-x",
|
|
32378
|
+
"vert-origin-y",
|
|
32379
|
+
"word-spacing",
|
|
32380
|
+
"writing-mode",
|
|
32381
|
+
"xmlns:xlink",
|
|
32382
|
+
"x-height"
|
|
32383
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32384
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32385
|
+
// instead in the assignment below.
|
|
32386
|
+
].forEach(function(attributeName) {
|
|
32387
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32388
|
+
properties[name] = new PropertyInfoRecord(
|
|
32389
|
+
name,
|
|
32390
|
+
STRING,
|
|
32391
|
+
false,
|
|
32392
|
+
// mustUseProperty
|
|
32393
|
+
attributeName,
|
|
32394
|
+
null,
|
|
32395
|
+
// attributeNamespace
|
|
32396
|
+
false,
|
|
32397
|
+
// sanitizeURL
|
|
32398
|
+
false
|
|
32399
|
+
);
|
|
32400
|
+
});
|
|
32401
|
+
[
|
|
32402
|
+
"xlink:actuate",
|
|
32403
|
+
"xlink:arcrole",
|
|
32404
|
+
"xlink:role",
|
|
32405
|
+
"xlink:show",
|
|
32406
|
+
"xlink:title",
|
|
32407
|
+
"xlink:type"
|
|
32408
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32409
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32410
|
+
// instead in the assignment below.
|
|
32411
|
+
].forEach(function(attributeName) {
|
|
32412
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32413
|
+
properties[name] = new PropertyInfoRecord(
|
|
32414
|
+
name,
|
|
32415
|
+
STRING,
|
|
32416
|
+
false,
|
|
32417
|
+
// mustUseProperty
|
|
32418
|
+
attributeName,
|
|
32419
|
+
"http://www.w3.org/1999/xlink",
|
|
32420
|
+
false,
|
|
32421
|
+
// sanitizeURL
|
|
32422
|
+
false
|
|
32423
|
+
);
|
|
32424
|
+
});
|
|
32425
|
+
[
|
|
32426
|
+
"xml:base",
|
|
32427
|
+
"xml:lang",
|
|
32428
|
+
"xml:space"
|
|
32429
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
32430
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
32431
|
+
// instead in the assignment below.
|
|
32432
|
+
].forEach(function(attributeName) {
|
|
32433
|
+
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32434
|
+
properties[name] = new PropertyInfoRecord(
|
|
32435
|
+
name,
|
|
32436
|
+
STRING,
|
|
32437
|
+
false,
|
|
32438
|
+
// mustUseProperty
|
|
32439
|
+
attributeName,
|
|
32440
|
+
"http://www.w3.org/XML/1998/namespace",
|
|
32441
|
+
false,
|
|
32442
|
+
// sanitizeURL
|
|
32443
|
+
false
|
|
32444
|
+
);
|
|
32445
|
+
});
|
|
32446
|
+
["tabIndex", "crossOrigin"].forEach(function(attributeName) {
|
|
32447
|
+
properties[attributeName] = new PropertyInfoRecord(
|
|
32448
|
+
attributeName,
|
|
32449
|
+
STRING,
|
|
32450
|
+
false,
|
|
32451
|
+
// mustUseProperty
|
|
32452
|
+
attributeName.toLowerCase(),
|
|
32453
|
+
// attributeName
|
|
32454
|
+
null,
|
|
32455
|
+
// attributeNamespace
|
|
32456
|
+
false,
|
|
32457
|
+
// sanitizeURL
|
|
32458
|
+
false
|
|
32459
|
+
);
|
|
32460
|
+
});
|
|
32461
|
+
var xlinkHref = "xlinkHref";
|
|
32462
|
+
properties[xlinkHref] = new PropertyInfoRecord(
|
|
32463
|
+
"xlinkHref",
|
|
32464
|
+
STRING,
|
|
32465
|
+
false,
|
|
32466
|
+
// mustUseProperty
|
|
32467
|
+
"xlink:href",
|
|
32468
|
+
"http://www.w3.org/1999/xlink",
|
|
32469
|
+
true,
|
|
32470
|
+
// sanitizeURL
|
|
32471
|
+
false
|
|
32472
|
+
);
|
|
32473
|
+
["src", "href", "action", "formAction"].forEach(function(attributeName) {
|
|
32474
|
+
properties[attributeName] = new PropertyInfoRecord(
|
|
32475
|
+
attributeName,
|
|
32476
|
+
STRING,
|
|
32477
|
+
false,
|
|
32478
|
+
// mustUseProperty
|
|
32479
|
+
attributeName.toLowerCase(),
|
|
32480
|
+
// attributeName
|
|
32481
|
+
null,
|
|
32482
|
+
// attributeNamespace
|
|
32483
|
+
true,
|
|
32484
|
+
// sanitizeURL
|
|
32485
|
+
true
|
|
32486
|
+
);
|
|
32487
|
+
});
|
|
32488
|
+
var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
|
|
32489
|
+
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";
|
|
32490
|
+
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
32491
|
+
var isCustomAttribute = RegExp.prototype.test.bind(
|
|
32492
|
+
// eslint-disable-next-line no-misleading-character-class
|
|
32493
|
+
new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
|
|
32494
|
+
);
|
|
32495
|
+
var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
|
|
32496
|
+
var propName = possibleStandardNamesOptimized[standardName];
|
|
32497
|
+
if (propName === SAME) {
|
|
32498
|
+
accumulator[standardName] = standardName;
|
|
32499
|
+
} else if (propName === CAMELCASE) {
|
|
32500
|
+
accumulator[standardName.toLowerCase()] = standardName;
|
|
32501
|
+
} else {
|
|
32502
|
+
accumulator[standardName] = propName;
|
|
32503
|
+
}
|
|
32504
|
+
return accumulator;
|
|
32505
|
+
}, {});
|
|
32506
|
+
lib$1.BOOLEAN = BOOLEAN;
|
|
32507
|
+
lib$1.BOOLEANISH_STRING = BOOLEANISH_STRING;
|
|
32508
|
+
lib$1.NUMERIC = NUMERIC;
|
|
32509
|
+
lib$1.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
|
|
32510
|
+
lib$1.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
|
|
32511
|
+
lib$1.RESERVED = RESERVED;
|
|
32512
|
+
lib$1.STRING = STRING;
|
|
32513
|
+
lib$1.getPropertyInfo = getPropertyInfo;
|
|
32514
|
+
lib$1.isCustomAttribute = isCustomAttribute;
|
|
32515
|
+
lib$1.possibleStandardNames = possibleStandardNames;
|
|
32516
|
+
var cjs = {};
|
|
32517
|
+
var styleToObject = { exports: {} };
|
|
32518
|
+
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
32519
|
+
var NEWLINE_REGEX = /\n/g;
|
|
32520
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
32521
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
32522
|
+
var COLON_REGEX = /^:\s*/;
|
|
32523
|
+
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
32524
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
32525
|
+
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
32526
|
+
var NEWLINE = "\n";
|
|
32527
|
+
var FORWARD_SLASH = "/";
|
|
32528
|
+
var ASTERISK = "*";
|
|
32529
|
+
var EMPTY_STRING = "";
|
|
32530
|
+
var TYPE_COMMENT = "comment";
|
|
32531
|
+
var TYPE_DECLARATION = "declaration";
|
|
32532
|
+
var inlineStyleParser = function(style, options) {
|
|
32533
|
+
if (typeof style !== "string") {
|
|
32534
|
+
throw new TypeError("First argument must be a string");
|
|
32535
|
+
}
|
|
32536
|
+
if (!style)
|
|
32537
|
+
return [];
|
|
32538
|
+
options = options || {};
|
|
32539
|
+
var lineno = 1;
|
|
32540
|
+
var column = 1;
|
|
32541
|
+
function updatePosition(str) {
|
|
32542
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
32543
|
+
if (lines)
|
|
32544
|
+
lineno += lines.length;
|
|
32545
|
+
var i2 = str.lastIndexOf(NEWLINE);
|
|
32546
|
+
column = ~i2 ? str.length - i2 : column + str.length;
|
|
32547
|
+
}
|
|
32548
|
+
function position() {
|
|
32549
|
+
var start2 = { line: lineno, column };
|
|
32550
|
+
return function(node2) {
|
|
32551
|
+
node2.position = new Position(start2);
|
|
32552
|
+
whitespace();
|
|
32553
|
+
return node2;
|
|
32554
|
+
};
|
|
32555
|
+
}
|
|
32556
|
+
function Position(start2) {
|
|
32557
|
+
this.start = start2;
|
|
32558
|
+
this.end = { line: lineno, column };
|
|
32559
|
+
this.source = options.source;
|
|
32560
|
+
}
|
|
32561
|
+
Position.prototype.content = style;
|
|
32562
|
+
function error(msg) {
|
|
32563
|
+
var err2 = new Error(
|
|
32564
|
+
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
32565
|
+
);
|
|
32566
|
+
err2.reason = msg;
|
|
32567
|
+
err2.filename = options.source;
|
|
32568
|
+
err2.line = lineno;
|
|
32569
|
+
err2.column = column;
|
|
32570
|
+
err2.source = style;
|
|
32571
|
+
if (options.silent)
|
|
32572
|
+
;
|
|
32573
|
+
else {
|
|
32574
|
+
throw err2;
|
|
32575
|
+
}
|
|
32576
|
+
}
|
|
32577
|
+
function match(re2) {
|
|
32578
|
+
var m2 = re2.exec(style);
|
|
32579
|
+
if (!m2)
|
|
32580
|
+
return;
|
|
32581
|
+
var str = m2[0];
|
|
32582
|
+
updatePosition(str);
|
|
32583
|
+
style = style.slice(str.length);
|
|
32584
|
+
return m2;
|
|
32585
|
+
}
|
|
32586
|
+
function whitespace() {
|
|
32587
|
+
match(WHITESPACE_REGEX);
|
|
32588
|
+
}
|
|
32589
|
+
function comments(rules) {
|
|
32590
|
+
var c6;
|
|
32591
|
+
rules = rules || [];
|
|
32592
|
+
while (c6 = comment()) {
|
|
32593
|
+
if (c6 !== false) {
|
|
32594
|
+
rules.push(c6);
|
|
32595
|
+
}
|
|
32596
|
+
}
|
|
32597
|
+
return rules;
|
|
32598
|
+
}
|
|
32599
|
+
function comment() {
|
|
32600
|
+
var pos = position();
|
|
32601
|
+
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
|
|
32602
|
+
return;
|
|
32603
|
+
var i2 = 2;
|
|
32604
|
+
while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
|
|
32605
|
+
++i2;
|
|
32606
|
+
}
|
|
32607
|
+
i2 += 2;
|
|
32608
|
+
if (EMPTY_STRING === style.charAt(i2 - 1)) {
|
|
32609
|
+
return error("End of comment missing");
|
|
32610
|
+
}
|
|
32611
|
+
var str = style.slice(2, i2 - 2);
|
|
32612
|
+
column += 2;
|
|
32613
|
+
updatePosition(str);
|
|
32614
|
+
style = style.slice(i2);
|
|
32615
|
+
column += 2;
|
|
32616
|
+
return pos({
|
|
32617
|
+
type: TYPE_COMMENT,
|
|
32618
|
+
comment: str
|
|
32619
|
+
});
|
|
32620
|
+
}
|
|
32621
|
+
function declaration() {
|
|
32622
|
+
var pos = position();
|
|
32623
|
+
var prop = match(PROPERTY_REGEX);
|
|
32624
|
+
if (!prop)
|
|
32625
|
+
return;
|
|
32626
|
+
comment();
|
|
32627
|
+
if (!match(COLON_REGEX))
|
|
32628
|
+
return error("property missing ':'");
|
|
32629
|
+
var val = match(VALUE_REGEX);
|
|
32630
|
+
var ret = pos({
|
|
32631
|
+
type: TYPE_DECLARATION,
|
|
32632
|
+
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
32633
|
+
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
32634
|
+
});
|
|
32635
|
+
match(SEMICOLON_REGEX);
|
|
32636
|
+
return ret;
|
|
32637
|
+
}
|
|
32638
|
+
function declarations() {
|
|
32639
|
+
var decls = [];
|
|
32640
|
+
comments(decls);
|
|
32641
|
+
var decl;
|
|
32642
|
+
while (decl = declaration()) {
|
|
32643
|
+
if (decl !== false) {
|
|
32644
|
+
decls.push(decl);
|
|
32645
|
+
comments(decls);
|
|
32646
|
+
}
|
|
32647
|
+
}
|
|
32648
|
+
return decls;
|
|
32649
|
+
}
|
|
32650
|
+
whitespace();
|
|
32651
|
+
return declarations();
|
|
32652
|
+
};
|
|
32653
|
+
function trim(str) {
|
|
32654
|
+
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
32655
|
+
}
|
|
32656
|
+
var parse$2 = inlineStyleParser;
|
|
32657
|
+
function StyleToObject(style, iterator) {
|
|
32658
|
+
var output = null;
|
|
32659
|
+
if (!style || typeof style !== "string") {
|
|
32660
|
+
return output;
|
|
32661
|
+
}
|
|
32662
|
+
var declaration;
|
|
32663
|
+
var declarations = parse$2(style);
|
|
32664
|
+
var hasIterator = typeof iterator === "function";
|
|
32665
|
+
var property;
|
|
32666
|
+
var value;
|
|
32667
|
+
for (var i2 = 0, len = declarations.length; i2 < len; i2++) {
|
|
32668
|
+
declaration = declarations[i2];
|
|
32669
|
+
property = declaration.property;
|
|
32670
|
+
value = declaration.value;
|
|
32671
|
+
if (hasIterator) {
|
|
32672
|
+
iterator(property, value, declaration);
|
|
32673
|
+
} else if (value) {
|
|
32674
|
+
output || (output = {});
|
|
32675
|
+
output[property] = value;
|
|
32676
|
+
}
|
|
32677
|
+
}
|
|
32678
|
+
return output;
|
|
32679
|
+
}
|
|
32680
|
+
styleToObject.exports = StyleToObject;
|
|
32681
|
+
styleToObject.exports.default = StyleToObject;
|
|
32682
|
+
var styleToObjectExports = styleToObject.exports;
|
|
32683
|
+
var utilities$3 = {};
|
|
32684
|
+
utilities$3.__esModule = true;
|
|
32685
|
+
utilities$3.camelCase = void 0;
|
|
32686
|
+
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
32687
|
+
var HYPHEN_REGEX = /-([a-z])/g;
|
|
32688
|
+
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
32689
|
+
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
32690
|
+
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
32691
|
+
var skipCamelCase = function(property) {
|
|
32692
|
+
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
32693
|
+
};
|
|
32694
|
+
var capitalize2 = function(match, character) {
|
|
32695
|
+
return character.toUpperCase();
|
|
32696
|
+
};
|
|
32697
|
+
var trimHyphen = function(match, prefix2) {
|
|
32698
|
+
return "".concat(prefix2, "-");
|
|
32699
|
+
};
|
|
32700
|
+
var camelCase = function(property, options) {
|
|
32701
|
+
if (options === void 0) {
|
|
32702
|
+
options = {};
|
|
32703
|
+
}
|
|
32704
|
+
if (skipCamelCase(property)) {
|
|
32705
|
+
return property;
|
|
32706
|
+
}
|
|
32707
|
+
property = property.toLowerCase();
|
|
32708
|
+
if (options.reactCompat) {
|
|
32709
|
+
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32710
|
+
} else {
|
|
32711
|
+
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32712
|
+
}
|
|
32713
|
+
return property.replace(HYPHEN_REGEX, capitalize2);
|
|
32714
|
+
};
|
|
32715
|
+
utilities$3.camelCase = camelCase;
|
|
32716
|
+
(function(exports) {
|
|
32717
|
+
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
|
|
32718
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32719
|
+
};
|
|
32720
|
+
exports.__esModule = true;
|
|
32721
|
+
var style_to_object_1 = __importDefault(styleToObjectExports);
|
|
32722
|
+
var utilities_1 = utilities$3;
|
|
32723
|
+
function StyleToJS(style, options) {
|
|
32724
|
+
var output = {};
|
|
32725
|
+
if (!style || typeof style !== "string") {
|
|
32726
|
+
return output;
|
|
32727
|
+
}
|
|
32728
|
+
(0, style_to_object_1["default"])(style, function(property, value) {
|
|
32729
|
+
if (property && value) {
|
|
32730
|
+
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
32731
|
+
}
|
|
32732
|
+
});
|
|
32733
|
+
return output;
|
|
32734
|
+
}
|
|
32735
|
+
exports["default"] = StyleToJS;
|
|
32736
|
+
})(cjs);
|
|
32737
|
+
var React$1 = reactExports;
|
|
32738
|
+
var styleToJS = cjs.default;
|
|
32739
|
+
function invertObject(obj, override) {
|
|
32740
|
+
if (!obj || typeof obj !== "object") {
|
|
32741
|
+
throw new TypeError("First argument must be an object");
|
|
32742
|
+
}
|
|
32743
|
+
var isOverridePresent = typeof override === "function";
|
|
32744
|
+
var overrides = {};
|
|
32745
|
+
var result = {};
|
|
32746
|
+
for (var key in obj) {
|
|
32747
|
+
var value = obj[key];
|
|
32748
|
+
if (isOverridePresent) {
|
|
32749
|
+
overrides = override(key, value);
|
|
32750
|
+
if (overrides && overrides.length === 2) {
|
|
32751
|
+
result[overrides[0]] = overrides[1];
|
|
32752
|
+
continue;
|
|
32753
|
+
}
|
|
32754
|
+
}
|
|
32755
|
+
if (typeof value === "string") {
|
|
32756
|
+
result[value] = key;
|
|
32757
|
+
}
|
|
32758
|
+
}
|
|
32759
|
+
return result;
|
|
32760
|
+
}
|
|
32761
|
+
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
32762
|
+
"annotation-xml",
|
|
32763
|
+
"color-profile",
|
|
32764
|
+
"font-face",
|
|
32765
|
+
"font-face-src",
|
|
32766
|
+
"font-face-uri",
|
|
32767
|
+
"font-face-format",
|
|
32768
|
+
"font-face-name",
|
|
32769
|
+
"missing-glyph"
|
|
32770
|
+
]);
|
|
32771
|
+
function isCustomComponent(tagName2, props) {
|
|
32772
|
+
if (tagName2.indexOf("-") === -1) {
|
|
32773
|
+
return props && typeof props.is === "string";
|
|
32774
|
+
}
|
|
32775
|
+
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
|
|
32776
|
+
return false;
|
|
32777
|
+
}
|
|
32778
|
+
return true;
|
|
32779
|
+
}
|
|
32780
|
+
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
32781
|
+
function setStyleProp$1(style, props) {
|
|
32782
|
+
if (style === null || style === void 0) {
|
|
32783
|
+
return;
|
|
32784
|
+
}
|
|
32785
|
+
try {
|
|
32786
|
+
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
32787
|
+
} catch (err2) {
|
|
32788
|
+
props.style = {};
|
|
32789
|
+
}
|
|
32790
|
+
}
|
|
32791
|
+
var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
|
|
32792
|
+
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
32793
|
+
"tr",
|
|
32794
|
+
"tbody",
|
|
32795
|
+
"thead",
|
|
32796
|
+
"tfoot",
|
|
32797
|
+
"colgroup",
|
|
32798
|
+
"table",
|
|
32799
|
+
"head",
|
|
32800
|
+
"html",
|
|
32801
|
+
"frameset"
|
|
32802
|
+
]);
|
|
32803
|
+
function canTextBeChildOfNode$1(node2) {
|
|
32804
|
+
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
|
|
32805
|
+
}
|
|
32806
|
+
function returnFirstArg(arg) {
|
|
32807
|
+
return arg;
|
|
32808
|
+
}
|
|
32809
|
+
var utilities$2 = {
|
|
32810
|
+
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
32811
|
+
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
32812
|
+
invertObject,
|
|
32813
|
+
isCustomComponent,
|
|
32814
|
+
setStyleProp: setStyleProp$1,
|
|
32815
|
+
canTextBeChildOfNode: canTextBeChildOfNode$1,
|
|
32816
|
+
returnFirstArg
|
|
32817
|
+
};
|
|
32818
|
+
var reactProperty = lib$1;
|
|
32819
|
+
var utilities$1 = utilities$2;
|
|
32820
|
+
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
|
|
32821
|
+
var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
|
|
32822
|
+
var VALUE_ONLY_INPUTS = {
|
|
32823
|
+
reset: true,
|
|
32824
|
+
submit: true
|
|
32825
|
+
};
|
|
32826
|
+
var attributesToProps$3 = function attributesToProps(attributes, nodeName) {
|
|
32827
|
+
attributes = attributes || {};
|
|
32828
|
+
var attributeName;
|
|
32829
|
+
var attributeNameLowerCased;
|
|
32830
|
+
var attributeValue;
|
|
32831
|
+
var propName;
|
|
32832
|
+
var propertyInfo;
|
|
32833
|
+
var props = {};
|
|
32834
|
+
var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
|
|
32835
|
+
for (attributeName in attributes) {
|
|
32836
|
+
attributeValue = attributes[attributeName];
|
|
32837
|
+
if (reactProperty.isCustomAttribute(attributeName)) {
|
|
32838
|
+
props[attributeName] = attributeValue;
|
|
32839
|
+
continue;
|
|
32840
|
+
}
|
|
32841
|
+
attributeNameLowerCased = attributeName.toLowerCase();
|
|
32842
|
+
propName = getPropName(attributeNameLowerCased);
|
|
32843
|
+
if (propName) {
|
|
32844
|
+
propertyInfo = reactProperty.getPropertyInfo(propName);
|
|
32845
|
+
if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
|
|
32846
|
+
propName = getPropName("default" + attributeNameLowerCased);
|
|
32847
|
+
}
|
|
32848
|
+
props[propName] = attributeValue;
|
|
32849
|
+
switch (propertyInfo && propertyInfo.type) {
|
|
32850
|
+
case reactProperty.BOOLEAN:
|
|
32851
|
+
props[propName] = true;
|
|
32852
|
+
break;
|
|
32853
|
+
case reactProperty.OVERLOADED_BOOLEAN:
|
|
32854
|
+
if (attributeValue === "") {
|
|
32855
|
+
props[propName] = true;
|
|
32856
|
+
}
|
|
32857
|
+
break;
|
|
32858
|
+
}
|
|
32859
|
+
continue;
|
|
32860
|
+
}
|
|
32861
|
+
if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
|
|
32862
|
+
props[attributeName] = attributeValue;
|
|
32863
|
+
}
|
|
32864
|
+
}
|
|
32865
|
+
utilities$1.setStyleProp(attributes.style, props);
|
|
32866
|
+
return props;
|
|
32867
|
+
};
|
|
32868
|
+
function getPropName(attributeName) {
|
|
32869
|
+
return reactProperty.possibleStandardNames[attributeName];
|
|
32870
|
+
}
|
|
32871
|
+
var React = reactExports;
|
|
32872
|
+
var attributesToProps$2 = attributesToProps$3;
|
|
32873
|
+
var utilities = utilities$2;
|
|
32874
|
+
var setStyleProp = utilities.setStyleProp;
|
|
32875
|
+
var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
|
|
32876
|
+
function domToReact$2(nodes, options) {
|
|
32877
|
+
options = options || {};
|
|
32878
|
+
var library = options.library || React;
|
|
32879
|
+
var cloneElement = library.cloneElement;
|
|
32880
|
+
var createElement2 = library.createElement;
|
|
32881
|
+
var isValidElement = library.isValidElement;
|
|
32882
|
+
var result = [];
|
|
32883
|
+
var node2;
|
|
32884
|
+
var isWhitespace;
|
|
32885
|
+
var hasReplace = typeof options.replace === "function";
|
|
32886
|
+
var transform = options.transform || utilities.returnFirstArg;
|
|
32887
|
+
var replaceElement;
|
|
32888
|
+
var props;
|
|
32889
|
+
var children;
|
|
32890
|
+
var trim2 = options.trim;
|
|
32891
|
+
for (var i2 = 0, len = nodes.length; i2 < len; i2++) {
|
|
32892
|
+
node2 = nodes[i2];
|
|
32893
|
+
if (hasReplace) {
|
|
32894
|
+
replaceElement = options.replace(node2);
|
|
32895
|
+
if (isValidElement(replaceElement)) {
|
|
32896
|
+
if (len > 1) {
|
|
32897
|
+
replaceElement = cloneElement(replaceElement, {
|
|
32898
|
+
key: replaceElement.key || i2
|
|
32899
|
+
});
|
|
32900
|
+
}
|
|
32901
|
+
result.push(transform(replaceElement, node2, i2));
|
|
32902
|
+
continue;
|
|
32903
|
+
}
|
|
32904
|
+
}
|
|
32905
|
+
if (node2.type === "text") {
|
|
32906
|
+
isWhitespace = !node2.data.trim().length;
|
|
32907
|
+
if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
|
|
32908
|
+
continue;
|
|
32909
|
+
}
|
|
32910
|
+
if (trim2 && isWhitespace) {
|
|
32911
|
+
continue;
|
|
32912
|
+
}
|
|
32913
|
+
result.push(transform(node2.data, node2, i2));
|
|
32914
|
+
continue;
|
|
32915
|
+
}
|
|
32916
|
+
props = node2.attribs;
|
|
32917
|
+
if (skipAttributesToProps(node2)) {
|
|
32918
|
+
setStyleProp(props.style, props);
|
|
32919
|
+
} else if (props) {
|
|
32920
|
+
props = attributesToProps$2(props, node2.name);
|
|
32921
|
+
}
|
|
32922
|
+
children = null;
|
|
32923
|
+
switch (node2.type) {
|
|
32924
|
+
case "script":
|
|
32925
|
+
case "style":
|
|
32926
|
+
if (node2.children[0]) {
|
|
32927
|
+
props.dangerouslySetInnerHTML = {
|
|
32928
|
+
__html: node2.children[0].data
|
|
32929
|
+
};
|
|
32930
|
+
}
|
|
32931
|
+
break;
|
|
32932
|
+
case "tag":
|
|
32933
|
+
if (node2.name === "textarea" && node2.children[0]) {
|
|
32934
|
+
props.defaultValue = node2.children[0].data;
|
|
32935
|
+
} else if (node2.children && node2.children.length) {
|
|
32936
|
+
children = domToReact$2(node2.children, options);
|
|
32937
|
+
}
|
|
32938
|
+
break;
|
|
32939
|
+
default:
|
|
32940
|
+
continue;
|
|
32941
|
+
}
|
|
32942
|
+
if (len > 1) {
|
|
32943
|
+
props.key = i2;
|
|
32944
|
+
}
|
|
32945
|
+
result.push(transform(createElement2(node2.name, props, children), node2, i2));
|
|
32946
|
+
}
|
|
32947
|
+
return result.length === 1 ? result[0] : result;
|
|
32948
|
+
}
|
|
32949
|
+
function skipAttributesToProps(node2) {
|
|
32950
|
+
return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
|
|
32951
|
+
}
|
|
32952
|
+
var domToReact_1 = domToReact$2;
|
|
32953
|
+
var domhandler = lib$3;
|
|
32954
|
+
var htmlToDOM = htmlToDom;
|
|
32955
|
+
var attributesToProps$1 = attributesToProps$3;
|
|
32956
|
+
var domToReact$1 = domToReact_1;
|
|
32957
|
+
htmlToDOM = /* istanbul ignore next */
|
|
32958
|
+
typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
|
|
32959
|
+
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
32960
|
+
function HTMLReactParser(html, options) {
|
|
32961
|
+
if (typeof html !== "string") {
|
|
32962
|
+
throw new TypeError("First argument must be a string");
|
|
32963
|
+
}
|
|
32964
|
+
if (html === "") {
|
|
32965
|
+
return [];
|
|
32966
|
+
}
|
|
32967
|
+
options = options || {};
|
|
32968
|
+
return domToReact$1(
|
|
32969
|
+
htmlToDOM(html, options.htmlparser2 || domParserOptions),
|
|
32970
|
+
options
|
|
32971
|
+
);
|
|
32972
|
+
}
|
|
32973
|
+
HTMLReactParser.domToReact = domToReact$1;
|
|
32974
|
+
HTMLReactParser.htmlToDOM = htmlToDOM;
|
|
32975
|
+
HTMLReactParser.attributesToProps = attributesToProps$1;
|
|
32976
|
+
HTMLReactParser.Comment = domhandler.Comment;
|
|
32977
|
+
HTMLReactParser.Element = domhandler.Element;
|
|
32978
|
+
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
|
|
32979
|
+
HTMLReactParser.Text = domhandler.Text;
|
|
32980
|
+
var htmlReactParser = HTMLReactParser;
|
|
32981
|
+
HTMLReactParser.default = HTMLReactParser;
|
|
32982
|
+
const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(htmlReactParser);
|
|
32983
|
+
var domToReact = HTMLReactParser$1.domToReact;
|
|
32984
|
+
HTMLReactParser$1.htmlToDOM;
|
|
32985
|
+
var attributesToProps2 = HTMLReactParser$1.attributesToProps;
|
|
32986
|
+
HTMLReactParser$1.Comment;
|
|
32987
|
+
HTMLReactParser$1.Element;
|
|
32988
|
+
HTMLReactParser$1.ProcessingInstruction;
|
|
32989
|
+
HTMLReactParser$1.Text;
|
|
30604
32990
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
30605
32991
|
const Z_FIXED$1 = 4;
|
|
30606
32992
|
const Z_BINARY = 0;
|
|
@@ -30951,7 +33337,7 @@ const build_tree = (s2, desc) => {
|
|
|
30951
33337
|
const elems = desc.stat_desc.elems;
|
|
30952
33338
|
let n2, m2;
|
|
30953
33339
|
let max_code = -1;
|
|
30954
|
-
let
|
|
33340
|
+
let node2;
|
|
30955
33341
|
s2.heap_len = 0;
|
|
30956
33342
|
s2.heap_max = HEAP_SIZE$1;
|
|
30957
33343
|
for (n2 = 0; n2 < elems; n2++) {
|
|
@@ -30963,19 +33349,19 @@ const build_tree = (s2, desc) => {
|
|
|
30963
33349
|
}
|
|
30964
33350
|
}
|
|
30965
33351
|
while (s2.heap_len < 2) {
|
|
30966
|
-
|
|
30967
|
-
tree[
|
|
30968
|
-
s2.depth[
|
|
33352
|
+
node2 = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
|
|
33353
|
+
tree[node2 * 2] = 1;
|
|
33354
|
+
s2.depth[node2] = 0;
|
|
30969
33355
|
s2.opt_len--;
|
|
30970
33356
|
if (has_stree) {
|
|
30971
|
-
s2.static_len -= stree[
|
|
33357
|
+
s2.static_len -= stree[node2 * 2 + 1];
|
|
30972
33358
|
}
|
|
30973
33359
|
}
|
|
30974
33360
|
desc.max_code = max_code;
|
|
30975
33361
|
for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
|
|
30976
33362
|
pqdownheap(s2, tree, n2);
|
|
30977
33363
|
}
|
|
30978
|
-
|
|
33364
|
+
node2 = elems;
|
|
30979
33365
|
do {
|
|
30980
33366
|
n2 = s2.heap[
|
|
30981
33367
|
1
|
|
@@ -30997,13 +33383,13 @@ const build_tree = (s2, desc) => {
|
|
|
30997
33383
|
];
|
|
30998
33384
|
s2.heap[--s2.heap_max] = n2;
|
|
30999
33385
|
s2.heap[--s2.heap_max] = m2;
|
|
31000
|
-
tree[
|
|
31001
|
-
s2.depth[
|
|
31002
|
-
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] =
|
|
33386
|
+
tree[node2 * 2] = tree[n2 * 2] + tree[m2 * 2];
|
|
33387
|
+
s2.depth[node2] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
|
|
33388
|
+
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node2;
|
|
31003
33389
|
s2.heap[
|
|
31004
33390
|
1
|
|
31005
33391
|
/*SMALLEST*/
|
|
31006
|
-
] =
|
|
33392
|
+
] = node2++;
|
|
31007
33393
|
pqdownheap(
|
|
31008
33394
|
s2,
|
|
31009
33395
|
tree,
|
|
@@ -35042,7 +37428,7 @@ var eventemitter3 = { exports: {} };
|
|
|
35042
37428
|
}
|
|
35043
37429
|
})(eventemitter3);
|
|
35044
37430
|
var eventemitter3Exports = eventemitter3.exports;
|
|
35045
|
-
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Exports);
|
|
37431
|
+
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$1(eventemitter3Exports);
|
|
35046
37432
|
var earcut$2 = { exports: {} };
|
|
35047
37433
|
earcut$2.exports = earcut;
|
|
35048
37434
|
earcut$2.exports.default = earcut;
|
|
@@ -35504,7 +37890,7 @@ earcut.flatten = function(data) {
|
|
|
35504
37890
|
return result;
|
|
35505
37891
|
};
|
|
35506
37892
|
var earcutExports = earcut$2.exports;
|
|
35507
|
-
const earcut$1 = /* @__PURE__ */ getDefaultExportFromCjs(earcutExports);
|
|
37893
|
+
const earcut$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(earcutExports);
|
|
35508
37894
|
var punycode$1 = { exports: {} };
|
|
35509
37895
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
35510
37896
|
punycode$1.exports;
|
|
@@ -35512,7 +37898,7 @@ punycode$1.exports;
|
|
|
35512
37898
|
(function(root2) {
|
|
35513
37899
|
var freeExports = exports && !exports.nodeType && exports;
|
|
35514
37900
|
var freeModule = module && !module.nodeType && module;
|
|
35515
|
-
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal;
|
|
37901
|
+
var freeGlobal = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1;
|
|
35516
37902
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {
|
|
35517
37903
|
root2 = freeGlobal;
|
|
35518
37904
|
}
|
|
@@ -35744,7 +38130,7 @@ punycode$1.exports;
|
|
|
35744
38130
|
} else {
|
|
35745
38131
|
root2.punycode = punycode2;
|
|
35746
38132
|
}
|
|
35747
|
-
})(commonjsGlobal);
|
|
38133
|
+
})(commonjsGlobal$1);
|
|
35748
38134
|
})(punycode$1, punycode$1.exports);
|
|
35749
38135
|
var punycodeExports = punycode$1.exports;
|
|
35750
38136
|
var esErrors = Error;
|
|
@@ -36599,7 +38985,7 @@ var objectInspect = function inspect_(obj, options, depth, seen2) {
|
|
|
36599
38985
|
if (typeof window !== "undefined" && obj === window) {
|
|
36600
38986
|
return "{ [object Window] }";
|
|
36601
38987
|
}
|
|
36602
|
-
if (obj === commonjsGlobal) {
|
|
38988
|
+
if (obj === commonjsGlobal$1) {
|
|
36603
38989
|
return "{ [object globalThis] }";
|
|
36604
38990
|
}
|
|
36605
38991
|
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
@@ -36918,13 +39304,13 @@ var listGetNode = function(list, key) {
|
|
|
36918
39304
|
}
|
|
36919
39305
|
};
|
|
36920
39306
|
var listGet = function(objects, key) {
|
|
36921
|
-
var
|
|
36922
|
-
return
|
|
39307
|
+
var node2 = listGetNode(objects, key);
|
|
39308
|
+
return node2 && node2.value;
|
|
36923
39309
|
};
|
|
36924
39310
|
var listSet = function(objects, key, value) {
|
|
36925
|
-
var
|
|
36926
|
-
if (
|
|
36927
|
-
|
|
39311
|
+
var node2 = listGetNode(objects, key);
|
|
39312
|
+
if (node2) {
|
|
39313
|
+
node2.value = value;
|
|
36928
39314
|
} else {
|
|
36929
39315
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
36930
39316
|
{
|
|
@@ -41736,12 +44122,12 @@ function generateUniformsSync(group, uniformData) {
|
|
|
41736
44122
|
break;
|
|
41737
44123
|
}
|
|
41738
44124
|
if (!parsed) {
|
|
41739
|
-
const
|
|
44125
|
+
const template2 = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
|
|
41740
44126
|
funcFragments.push(`
|
|
41741
44127
|
cu = ud["${i2}"];
|
|
41742
44128
|
cv = cu.value;
|
|
41743
44129
|
v = uv["${i2}"];
|
|
41744
|
-
${
|
|
44130
|
+
${template2};`);
|
|
41745
44131
|
}
|
|
41746
44132
|
}
|
|
41747
44133
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -43160,8 +45546,8 @@ class Texture extends EventEmitter2 {
|
|
|
43160
45546
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
43161
45547
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
43162
45548
|
*/
|
|
43163
|
-
constructor(baseTexture, frame, orig,
|
|
43164
|
-
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 =
|
|
45549
|
+
constructor(baseTexture, frame, orig, trim2, rotate, anchor, borders) {
|
|
45550
|
+
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(rotate || 0), rotate === true)
|
|
43165
45551
|
this._rotate = 2;
|
|
43166
45552
|
else if (this._rotate % 2 !== 0)
|
|
43167
45553
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -44401,14 +46787,14 @@ class TextureMatrix {
|
|
|
44401
46787
|
this._textureID = tex._updateID, this._updateID++;
|
|
44402
46788
|
const uvs = tex._uvs;
|
|
44403
46789
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
44404
|
-
const orig = tex.orig,
|
|
44405
|
-
|
|
44406
|
-
orig.width /
|
|
46790
|
+
const orig = tex.orig, trim2 = tex.trim;
|
|
46791
|
+
trim2 && (tempMat$1.set(
|
|
46792
|
+
orig.width / trim2.width,
|
|
44407
46793
|
0,
|
|
44408
46794
|
0,
|
|
44409
|
-
orig.height /
|
|
44410
|
-
-
|
|
44411
|
-
-
|
|
46795
|
+
orig.height / trim2.height,
|
|
46796
|
+
-trim2.x / trim2.width,
|
|
46797
|
+
-trim2.y / trim2.height
|
|
44412
46798
|
), this.mapCoord.append(tempMat$1));
|
|
44413
46799
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
44414
46800
|
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;
|
|
@@ -45242,12 +47628,12 @@ function generateUniformBufferSync(group, uniformData) {
|
|
|
45242
47628
|
|
|
45243
47629
|
`);
|
|
45244
47630
|
} else {
|
|
45245
|
-
const
|
|
47631
|
+
const template2 = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
45246
47632
|
funcFragments.push(`
|
|
45247
47633
|
cv = ud.${name}.value;
|
|
45248
47634
|
v = uv.${name};
|
|
45249
47635
|
offset = ${uboElement.offset / 4};
|
|
45250
|
-
${
|
|
47636
|
+
${template2};
|
|
45251
47637
|
`);
|
|
45252
47638
|
}
|
|
45253
47639
|
}
|
|
@@ -48816,9 +51202,9 @@ class Sprite extends Container {
|
|
|
48816
51202
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
48817
51203
|
return;
|
|
48818
51204
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
48819
|
-
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,
|
|
51205
|
+
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;
|
|
48820
51206
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
48821
|
-
if (
|
|
51207
|
+
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) {
|
|
48822
51208
|
const resolution = settings.RESOLUTION;
|
|
48823
51209
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
48824
51210
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -48852,8 +51238,8 @@ class Sprite extends Container {
|
|
|
48852
51238
|
}
|
|
48853
51239
|
/** Updates the bounds of the sprite. */
|
|
48854
51240
|
_calculateBounds() {
|
|
48855
|
-
const
|
|
48856
|
-
!
|
|
51241
|
+
const trim2 = this._texture.trim, orig = this._texture.orig;
|
|
51242
|
+
!trim2 || trim2.width === orig.width && trim2.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
|
|
48857
51243
|
}
|
|
48858
51244
|
/**
|
|
48859
51245
|
* Gets the local bounds of the sprite object.
|
|
@@ -49262,7 +51648,7 @@ const contextSettings = {
|
|
|
49262
51648
|
static measureFont(font) {
|
|
49263
51649
|
if (_TextMetrics2._fonts[font])
|
|
49264
51650
|
return _TextMetrics2._fonts[font];
|
|
49265
|
-
const
|
|
51651
|
+
const properties2 = {
|
|
49266
51652
|
ascent: 0,
|
|
49267
51653
|
descent: 0,
|
|
49268
51654
|
fontSize: 0
|
|
@@ -49272,7 +51658,7 @@ const contextSettings = {
|
|
|
49272
51658
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
49273
51659
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
49274
51660
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
49275
|
-
return _TextMetrics2._fonts[font] =
|
|
51661
|
+
return _TextMetrics2._fonts[font] = properties2, properties2;
|
|
49276
51662
|
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);
|
|
49277
51663
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
49278
51664
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -49287,7 +51673,7 @@ const contextSettings = {
|
|
|
49287
51673
|
else
|
|
49288
51674
|
break;
|
|
49289
51675
|
}
|
|
49290
|
-
for (
|
|
51676
|
+
for (properties2.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
49291
51677
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
49292
51678
|
if (imagedata[idx + j2] !== 255) {
|
|
49293
51679
|
stop2 = true;
|
|
@@ -49298,7 +51684,7 @@ const contextSettings = {
|
|
|
49298
51684
|
else
|
|
49299
51685
|
break;
|
|
49300
51686
|
}
|
|
49301
|
-
return
|
|
51687
|
+
return properties2.descent = i2 - baseline, properties2.fontSize = properties2.ascent + properties2.descent, _TextMetrics2._fonts[font] = properties2, properties2;
|
|
49302
51688
|
}
|
|
49303
51689
|
/**
|
|
49304
51690
|
* Clear font metrics in metrics cache.
|
|
@@ -49670,8 +52056,8 @@ const genericFontFamilies = [
|
|
|
49670
52056
|
get trim() {
|
|
49671
52057
|
return this._trim;
|
|
49672
52058
|
}
|
|
49673
|
-
set trim(
|
|
49674
|
-
this._trim !==
|
|
52059
|
+
set trim(trim2) {
|
|
52060
|
+
this._trim !== trim2 && (this._trim = trim2, this.styleID++);
|
|
49675
52061
|
}
|
|
49676
52062
|
/**
|
|
49677
52063
|
* How newlines and spaces should be handled.
|
|
@@ -54262,10 +56648,10 @@ class ParticleBuffer {
|
|
|
54262
56648
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
54263
56649
|
* @param {number} size - The size of the batch.
|
|
54264
56650
|
*/
|
|
54265
|
-
constructor(
|
|
56651
|
+
constructor(properties2, dynamicPropertyFlags, size2) {
|
|
54266
56652
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
54267
|
-
for (let i2 = 0; i2 <
|
|
54268
|
-
let property =
|
|
56653
|
+
for (let i2 = 0; i2 < properties2.length; ++i2) {
|
|
56654
|
+
let property = properties2[i2];
|
|
54269
56655
|
property = {
|
|
54270
56656
|
attributeName: property.attributeName,
|
|
54271
56657
|
size: property.size,
|
|
@@ -54502,8 +56888,8 @@ class ParticleRenderer extends ObjectRenderer {
|
|
|
54502
56888
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
54503
56889
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
54504
56890
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
54505
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
54506
|
-
|
|
56891
|
+
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim2 = texture.trim, orig = texture.orig;
|
|
56892
|
+
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;
|
|
54507
56893
|
}
|
|
54508
56894
|
}
|
|
54509
56895
|
/**
|
|
@@ -55044,10 +57430,10 @@ const GAUSSIAN_VALUES = {
|
|
|
55044
57430
|
function generateBlurFragSource(kernelSize) {
|
|
55045
57431
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
55046
57432
|
let fragSource = fragTemplate, blurLoop = "";
|
|
55047
|
-
const
|
|
57433
|
+
const template2 = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
55048
57434
|
let value;
|
|
55049
57435
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
55050
|
-
let blur =
|
|
57436
|
+
let blur = template2.replace("%index%", i2.toString());
|
|
55051
57437
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
55052
57438
|
`;
|
|
55053
57439
|
}
|
|
@@ -55086,10 +57472,10 @@ const vertTemplate = `
|
|
|
55086
57472
|
}`;
|
|
55087
57473
|
function generateBlurVertSource(kernelSize, x2) {
|
|
55088
57474
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
55089
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
55090
|
-
x2 ?
|
|
57475
|
+
let vertSource = vertTemplate, blurLoop = "", template2;
|
|
57476
|
+
x2 ? template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
55091
57477
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
55092
|
-
let blur =
|
|
57478
|
+
let blur = template2.replace("%index%", i2.toString());
|
|
55093
57479
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
55094
57480
|
`;
|
|
55095
57481
|
}
|
|
@@ -59230,7 +61616,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
59230
61616
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
59231
61617
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
59232
61618
|
if (rect) {
|
|
59233
|
-
let frame = null,
|
|
61619
|
+
let frame = null, trim2 = null;
|
|
59234
61620
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
59235
61621
|
0,
|
|
59236
61622
|
0,
|
|
@@ -59247,7 +61633,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
59247
61633
|
Math.floor(rect.y) / this.resolution,
|
|
59248
61634
|
Math.floor(rect.w) / this.resolution,
|
|
59249
61635
|
Math.floor(rect.h) / this.resolution
|
|
59250
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
61636
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim2 = new Rectangle(
|
|
59251
61637
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
59252
61638
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
59253
61639
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -59256,7 +61642,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
59256
61642
|
this.baseTexture,
|
|
59257
61643
|
frame,
|
|
59258
61644
|
orig,
|
|
59259
|
-
|
|
61645
|
+
trim2,
|
|
59260
61646
|
data.rotated ? 2 : 0,
|
|
59261
61647
|
data.anchor,
|
|
59262
61648
|
data.borders
|
|
@@ -60156,7 +62542,18 @@ function useBookmark() {
|
|
|
60156
62542
|
return set2.add(el2.displayName), !duplicate;
|
|
60157
62543
|
});
|
|
60158
62544
|
}
|
|
60159
|
-
const
|
|
62545
|
+
const isActionAvailable = (workflow, actions) => {
|
|
62546
|
+
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
62547
|
+
return found && found.length > 0;
|
|
62548
|
+
}, libraryMaps = {
|
|
62549
|
+
blog: "Blog",
|
|
62550
|
+
mindmap: "MindMap",
|
|
62551
|
+
scrapbook: "ScrapBook",
|
|
62552
|
+
collaborativewall: "CollaborativeWall",
|
|
62553
|
+
timelinegenerator: "TimelineGenerator",
|
|
62554
|
+
wiki: "Wiki",
|
|
62555
|
+
exercizer: "Exercizer"
|
|
62556
|
+
}, MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
60160
62557
|
function useMockedData() {
|
|
60161
62558
|
return reactExports.useContext(MockedDataContext);
|
|
60162
62559
|
}
|
|
@@ -60170,18 +62567,6 @@ function setRef(val, ...refs) {
|
|
|
60170
62567
|
typeof ref2 == "function" ? ref2(val) : ref2 != null && (ref2.current = val);
|
|
60171
62568
|
});
|
|
60172
62569
|
}
|
|
60173
|
-
const isActionAvailable = (workflow, actions) => {
|
|
60174
|
-
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
60175
|
-
return found && found.length > 0;
|
|
60176
|
-
}, libraryMaps = {
|
|
60177
|
-
blog: "Blog",
|
|
60178
|
-
mindmap: "MindMap",
|
|
60179
|
-
scrapbook: "ScrapBook",
|
|
60180
|
-
collaborativewall: "CollaborativeWall",
|
|
60181
|
-
timelinegenerator: "TimelineGenerator",
|
|
60182
|
-
wiki: "Wiki",
|
|
60183
|
-
exercizer: "Exercizer"
|
|
60184
|
-
};
|
|
60185
62570
|
function useHasWorkflow(workflow) {
|
|
60186
62571
|
const mock = useMockedData(), [state, setState] = reactExports.useState();
|
|
60187
62572
|
return reactExports.useEffect(() => {
|
|
@@ -60235,8 +62620,38 @@ const useConversation = () => {
|
|
|
60235
62620
|
zimbraWorkflow
|
|
60236
62621
|
};
|
|
60237
62622
|
}, useConversation$1 = useConversation;
|
|
62623
|
+
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
62624
|
+
function getDefaultExportFromCjs(x2) {
|
|
62625
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2.default : x2;
|
|
62626
|
+
}
|
|
62627
|
+
var localizedFormat$1 = { exports: {} };
|
|
62628
|
+
(function(module, exports) {
|
|
62629
|
+
(function(e2, t2) {
|
|
62630
|
+
module.exports = t2();
|
|
62631
|
+
})(commonjsGlobal, function() {
|
|
62632
|
+
var e2 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
62633
|
+
return function(t2, o2, n2) {
|
|
62634
|
+
var r2 = o2.prototype, i2 = r2.format;
|
|
62635
|
+
n2.en.formats = e2, r2.format = function(t22) {
|
|
62636
|
+
t22 === void 0 && (t22 = "YYYY-MM-DDTHH:mm:ssZ");
|
|
62637
|
+
var o22 = this.$locale().formats, n22 = function(t3, o3) {
|
|
62638
|
+
return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r22) {
|
|
62639
|
+
var i22 = r22 && r22.toUpperCase();
|
|
62640
|
+
return n3 || o3[r22] || e2[r22] || o3[i22].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e22, t5, o4) {
|
|
62641
|
+
return t5 || o4.slice(1);
|
|
62642
|
+
});
|
|
62643
|
+
});
|
|
62644
|
+
}(t22, o22 === void 0 ? {} : o22);
|
|
62645
|
+
return i2.call(this, n22);
|
|
62646
|
+
};
|
|
62647
|
+
};
|
|
62648
|
+
});
|
|
62649
|
+
})(localizedFormat$1);
|
|
62650
|
+
var localizedFormatExports = localizedFormat$1.exports;
|
|
62651
|
+
const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
|
|
60238
62652
|
dayjs.extend(relativeTime);
|
|
60239
62653
|
dayjs.extend(customParseFormat);
|
|
62654
|
+
dayjs.extend(localizedFormat);
|
|
60240
62655
|
function useDate() {
|
|
60241
62656
|
const {
|
|
60242
62657
|
currentLanguage
|
|
@@ -60256,10 +62671,27 @@ function useDate() {
|
|
|
60256
62671
|
} catch {
|
|
60257
62672
|
return "";
|
|
60258
62673
|
}
|
|
60259
|
-
}, [currentLanguage, parseDate]), formatDate = reactExports.useCallback((date, format) => {
|
|
62674
|
+
}, [currentLanguage, parseDate]), formatDate = reactExports.useCallback((date, format = "short") => {
|
|
60260
62675
|
let computedDate = dayjs();
|
|
60261
62676
|
try {
|
|
60262
|
-
|
|
62677
|
+
if (typeof date > "u")
|
|
62678
|
+
return "";
|
|
62679
|
+
typeof date == "string" ? computedDate = parseDate(date) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date));
|
|
62680
|
+
let dayjsFormat = "";
|
|
62681
|
+
switch (format) {
|
|
62682
|
+
case "short":
|
|
62683
|
+
dayjsFormat = "L";
|
|
62684
|
+
break;
|
|
62685
|
+
case "long":
|
|
62686
|
+
dayjsFormat = "LL";
|
|
62687
|
+
break;
|
|
62688
|
+
case "abbr":
|
|
62689
|
+
dayjsFormat = "ll";
|
|
62690
|
+
break;
|
|
62691
|
+
default:
|
|
62692
|
+
dayjsFormat = format;
|
|
62693
|
+
}
|
|
62694
|
+
return computedDate.isValid() ? computedDate.locale(currentLanguage).format(dayjsFormat) : "";
|
|
60263
62695
|
} catch {
|
|
60264
62696
|
return "";
|
|
60265
62697
|
}
|
|
@@ -60279,7 +62711,7 @@ function useClickOutside(handler, events2, nodes) {
|
|
|
60279
62711
|
} = event ?? {};
|
|
60280
62712
|
if (Array.isArray(nodes)) {
|
|
60281
62713
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
60282
|
-
nodes.every((
|
|
62714
|
+
nodes.every((node2) => !!node2 && !event.composedPath().includes(node2)) && !shouldIgnore && handler();
|
|
60283
62715
|
} else
|
|
60284
62716
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
60285
62717
|
};
|
|
@@ -60516,10 +62948,10 @@ function useHover() {
|
|
|
60516
62948
|
};
|
|
60517
62949
|
return reactExports.useEffect(
|
|
60518
62950
|
() => {
|
|
60519
|
-
const
|
|
60520
|
-
if (
|
|
60521
|
-
return
|
|
60522
|
-
|
|
62951
|
+
const node2 = ref2.current;
|
|
62952
|
+
if (node2)
|
|
62953
|
+
return node2.addEventListener("mouseover", handleMouseOver), node2.addEventListener("mouseout", handleMouseOut), () => {
|
|
62954
|
+
node2.removeEventListener("mouseover", handleMouseOver), node2.removeEventListener("mouseout", handleMouseOut);
|
|
60523
62955
|
};
|
|
60524
62956
|
},
|
|
60525
62957
|
[ref2]
|
|
@@ -60565,12 +62997,12 @@ function useToggle(initialState2 = false) {
|
|
|
60565
62997
|
function useTrapFocus() {
|
|
60566
62998
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
60567
62999
|
return reactExports.useEffect(() => {
|
|
60568
|
-
const
|
|
63000
|
+
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) => {
|
|
60569
63001
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
60570
63002
|
};
|
|
60571
|
-
if (
|
|
60572
|
-
return
|
|
60573
|
-
|
|
63003
|
+
if (node2)
|
|
63004
|
+
return node2.addEventListener("keydown", handleKeydown), () => {
|
|
63005
|
+
node2.removeEventListener("keydown", handleKeydown);
|
|
60574
63006
|
};
|
|
60575
63007
|
}, []), ref2;
|
|
60576
63008
|
}
|
|
@@ -60771,98 +63203,6 @@ function useXitiTrackPageLoad() {
|
|
|
60771
63203
|
xitiStatus
|
|
60772
63204
|
};
|
|
60773
63205
|
}
|
|
60774
|
-
function useZendeskGuide() {
|
|
60775
|
-
const sessionQuery = useSession(), {
|
|
60776
|
-
isAdml
|
|
60777
|
-
} = useIsAdml(), {
|
|
60778
|
-
theme
|
|
60779
|
-
} = useOdeTheme(), isMobileView = window.innerWidth <= 768, hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = reactExports.useState(""), [dataModule, setDataModule] = reactExports.useState(void 0), setZendeskGuideLabels = () => {
|
|
60780
|
-
var _a2;
|
|
60781
|
-
const modulePathnameSplit = locationPathname.split("/");
|
|
60782
|
-
let moduleLabel = "", labels = "";
|
|
60783
|
-
if (dataModule != null && dataModule.labels && Object.keys(dataModule == null ? void 0 : dataModule.labels).length > 0 && modulePathnameSplit.length > 1) {
|
|
60784
|
-
for (let i2 = 1; i2 < modulePathnameSplit.length; i2++)
|
|
60785
|
-
modulePathnameSplit[i2].length > 0 && modulePathnameSplit[i2].match(/\d/) == null && (moduleLabel.length === 0 ? moduleLabel = modulePathnameSplit[i2] : moduleLabel = moduleLabel + "/" + modulePathnameSplit[i2]);
|
|
60786
|
-
dataModule != null && dataModule.labels && Object.prototype.hasOwnProperty.call(dataModule == null ? void 0 : dataModule.labels, moduleLabel) ? labels = dataModule == null ? void 0 : dataModule.labels[moduleLabel] : dataModule != null && dataModule.default && String(dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60787
|
-
} else
|
|
60788
|
-
dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60789
|
-
if (modulePathnameSplit.includes("collaborativewall") && modulePathnameSplit.includes("id") && isMobileView && window.zE("webWidget", "hide"), labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
|
|
60790
|
-
const userProfile = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.userProfile[0]) || "";
|
|
60791
|
-
labels = labels.replace("${profile}", userProfile.toLowerCase());
|
|
60792
|
-
}
|
|
60793
|
-
labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
|
|
60794
|
-
labels: [labels]
|
|
60795
|
-
});
|
|
60796
|
-
};
|
|
60797
|
-
return reactExports.useEffect(() => {
|
|
60798
|
-
window.location.pathname !== locationPathname && setLocationPathname(window.location.pathname), !(dataModule === void 0 || Object.keys(dataModule).length === 0) && setZendeskGuideLabels();
|
|
60799
|
-
}, [window.location.pathname, dataModule]), reactExports.useEffect(() => {
|
|
60800
|
-
document.getElementById("ze-snippet") || hasSupportWorkflow === void 0 || (async () => {
|
|
60801
|
-
var _a2;
|
|
60802
|
-
const zendeskGuideConfig = await odeServices.http().get("/zendeskGuide/config");
|
|
60803
|
-
if (zendeskGuideConfig && zendeskGuideConfig.key && zendeskGuideConfig.key !== "") {
|
|
60804
|
-
const scriptZendesk = document.createElement("script");
|
|
60805
|
-
scriptZendesk.id = "ze-snippet", scriptZendesk.src = `https://static.zdassets.com/ekr/snippet.js?key=${zendeskGuideConfig.key}`;
|
|
60806
|
-
const currentLanguage = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
|
|
60807
|
-
document.body.appendChild(scriptZendesk).onload = () => {
|
|
60808
|
-
currentLanguage === "es" ? window.zE(function() {
|
|
60809
|
-
window.zE.setLocale("es-419");
|
|
60810
|
-
}) : window.zE(function() {
|
|
60811
|
-
window.zE.setLocale("fr");
|
|
60812
|
-
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
60813
|
-
webWidget: {
|
|
60814
|
-
color: {
|
|
60815
|
-
theme: zendeskGuideConfig.color || "#ffc400"
|
|
60816
|
-
},
|
|
60817
|
-
zIndex: 3,
|
|
60818
|
-
launcher: {
|
|
60819
|
-
mobile: {
|
|
60820
|
-
labelVisible: true
|
|
60821
|
-
}
|
|
60822
|
-
},
|
|
60823
|
-
contactForm: {
|
|
60824
|
-
suppress: !hasSupportWorkflow
|
|
60825
|
-
},
|
|
60826
|
-
helpCenter: {
|
|
60827
|
-
messageButton: {
|
|
60828
|
-
"*": "Assistance ENT",
|
|
60829
|
-
"es-419": "Asistencia ENT"
|
|
60830
|
-
}
|
|
60831
|
-
}
|
|
60832
|
-
}
|
|
60833
|
-
}), window.addEventListener("scroll", () => {
|
|
60834
|
-
window.zE("webWidget", "updateSettings", {
|
|
60835
|
-
webWidget: {
|
|
60836
|
-
launcher: {
|
|
60837
|
-
mobile: {
|
|
60838
|
-
labelVisible: window.scrollY <= 5
|
|
60839
|
-
}
|
|
60840
|
-
}
|
|
60841
|
-
}
|
|
60842
|
-
});
|
|
60843
|
-
}), window.zE("webWidget:on", "open", function() {
|
|
60844
|
-
hasSupportWorkflow && window.zE("webWidget", "updateSettings", {
|
|
60845
|
-
webWidget: {
|
|
60846
|
-
contactForm: {
|
|
60847
|
-
suppress: false
|
|
60848
|
-
}
|
|
60849
|
-
}
|
|
60850
|
-
});
|
|
60851
|
-
}), window.zE("webWidget:on", "userEvent", function(ref2) {
|
|
60852
|
-
const category = ref2.category, action = ref2.action, properties = ref2.properties;
|
|
60853
|
-
action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties && properties.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
|
|
60854
|
-
webWidget: {
|
|
60855
|
-
contactForm: {
|
|
60856
|
-
suppress: true
|
|
60857
|
-
}
|
|
60858
|
-
}
|
|
60859
|
-
}), window.zE("webWidget", "close"), window.open("/support", "_blank"));
|
|
60860
|
-
});
|
|
60861
|
-
};
|
|
60862
|
-
}
|
|
60863
|
-
})();
|
|
60864
|
-
}, [hasSupportWorkflow]), null;
|
|
60865
|
-
}
|
|
60866
63206
|
const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
60867
63207
|
src,
|
|
60868
63208
|
alt,
|
|
@@ -61678,8 +64018,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
61678
64018
|
}
|
|
61679
64019
|
});
|
|
61680
64020
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
61681
|
-
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: (
|
|
61682
|
-
modalRef.current =
|
|
64021
|
+
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) => {
|
|
64022
|
+
modalRef.current = node2, isOpen2 && (trapRef.current = node2);
|
|
61683
64023
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
61684
64024
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
61685
64025
|
opacity: 0.65
|
|
@@ -61782,9 +64122,9 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
61782
64122
|
}), TextArea$1 = TextArea;
|
|
61783
64123
|
function useTreeItemEvents(nodeId, label, expanded, setExpanded, onItemSelect, onItemFold, onItemUnfold, onItemFocus, onItemBlur) {
|
|
61784
64124
|
const handleItemClick = (event) => {
|
|
61785
|
-
event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), event.stopPropagation();
|
|
64125
|
+
event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), itemFoldUnfold(), event.stopPropagation();
|
|
61786
64126
|
}, handleItemKeyDown = (event) => {
|
|
61787
|
-
(event.code === "Enter" || event.code === "Space") && (event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), event.stopPropagation());
|
|
64127
|
+
(event.code === "Enter" || event.code === "Space") && (event.preventDefault(), onItemSelect == null || onItemSelect(nodeId), itemFoldUnfold(), event.stopPropagation());
|
|
61788
64128
|
}, itemFoldUnfold = () => {
|
|
61789
64129
|
setExpanded(!expanded), expanded ? onItemFold == null || onItemFold(nodeId) : onItemUnfold == null || onItemUnfold(nodeId);
|
|
61790
64130
|
};
|
|
@@ -61831,15 +64171,15 @@ const TreeItem = (props) => {
|
|
|
61831
64171
|
reactExports.useEffect(() => {
|
|
61832
64172
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
61833
64173
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
61834
|
-
selectedNodesIds.some((
|
|
64174
|
+
selectedNodesIds.some((node2) => node2 === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node2 === nodeId) : (setExpanded(false), false));
|
|
61835
64175
|
} else
|
|
61836
64176
|
setExpanded(false);
|
|
61837
64177
|
}, [nodeId, selectedNodesIds]);
|
|
61838
64178
|
const rafterSize = section ? 16 : 12, renderItem = () => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { id: `listitem_${nodeId}`, role: "treeitem", "aria-selected": selected, "aria-expanded": expanded, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
61839
64179
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "action-container d-flex align-items-center gap-8 px-2", children: [
|
|
61840
64180
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `py-8 ${Array.isArray(children) ? null : "invisible"}`, tabIndex: 0, role: "button", onClick: handleItemFoldUnfoldClick, onKeyDown: handleItemFoldUnfoldKeyDown, "aria-label": t2("foldUnfold"), children: [
|
|
61841
|
-
Array.isArray(children) && !expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
61842
|
-
Array.isArray(children) && expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
64181
|
+
Array.isArray(children) && !!children.length && !expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
64182
|
+
Array.isArray(children) && !!children.length && expanded && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize }),
|
|
61843
64183
|
!Array.isArray(children) && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterRight$1, { title: t2("foldUnfold"), width: rafterSize, height: rafterSize, "aria-hidden": "true" })
|
|
61844
64184
|
] }),
|
|
61845
64185
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { tabIndex: 0, role: "button", className: "flex-fill d-flex align-items-center text-truncate gap-8 py-8", onClick: handleItemClick, onKeyDown: handleItemKeyDown, onFocus: handleItemFocus, onBlur: handleItemBlur, children: [
|
|
@@ -61880,7 +64220,7 @@ const TreeItem = (props) => {
|
|
|
61880
64220
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
61881
64221
|
}, handleItemBlur = (nodeId) => {
|
|
61882
64222
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
61883
|
-
}, renderTree = (
|
|
64223
|
+
}, 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);
|
|
61884
64224
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
61885
64225
|
}), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
|
|
61886
64226
|
children
|
|
@@ -63041,17 +65381,17 @@ const stripAccents = (input) => {
|
|
|
63041
65381
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
63042
65382
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
63043
65383
|
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"), "");
|
|
63044
|
-
}, slugify = (
|
|
63045
|
-
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !
|
|
65384
|
+
}, slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
|
|
65385
|
+
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node2 || typeof node2 == "boolean")
|
|
63046
65386
|
return "";
|
|
63047
65387
|
const { delimiter, prefix: prefix2 } = options;
|
|
63048
|
-
if (typeof
|
|
65388
|
+
if (typeof node2 == "boolean")
|
|
63049
65389
|
return "";
|
|
63050
|
-
if (typeof
|
|
63051
|
-
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(
|
|
65390
|
+
if (typeof node2 == "string" || typeof node2 == "number") {
|
|
65391
|
+
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node2), delimiter);
|
|
63052
65392
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
63053
65393
|
}
|
|
63054
|
-
return "children" in
|
|
65394
|
+
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) : "";
|
|
63055
65395
|
};
|
|
63056
65396
|
var _default = slugify$1.default = slugify;
|
|
63057
65397
|
const useSlug = ({
|
|
@@ -63736,52 +66076,11 @@ function useCookiesConsent() {
|
|
|
63736
66076
|
}
|
|
63737
66077
|
};
|
|
63738
66078
|
}
|
|
63739
|
-
const NavItem = /* @__PURE__ */ reactExports.forwardRef(({
|
|
63740
|
-
children,
|
|
63741
|
-
className,
|
|
63742
|
-
...restProps
|
|
63743
|
-
}, ref2) => {
|
|
63744
|
-
const classes2 = clsx("nav-item", className);
|
|
63745
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: ref2, className: classes2, ...restProps, children });
|
|
63746
|
-
}), SearchEngine = () => {
|
|
63747
|
-
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
63748
|
-
t: t2
|
|
63749
|
-
} = useTranslation();
|
|
63750
|
-
function redirectToSearch() {
|
|
63751
|
-
if (inputRef.current) {
|
|
63752
|
-
const value = inputRef.current.value;
|
|
63753
|
-
window.location.href = `/searchengine#/${value}`;
|
|
63754
|
-
}
|
|
63755
|
-
}
|
|
63756
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { id: popoverSearchId, ref: searchRef, className: "position-relative", "aria-haspopup": "true", "aria-expanded": isSearchHovered, children: [
|
|
63757
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: "/searchengine", className: "nav-link dropdown-item", children: [
|
|
63758
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgSearch$1, { className: "icon search" }),
|
|
63759
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: t2("navbar.search") })
|
|
63760
|
-
] }),
|
|
63761
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Popover, { id: popoverSearchId, isVisible: isSearchHovered, className: "d-none d-md-flex", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "my-search-input", className: "search-text input-group py-8 px-12", children: [
|
|
63762
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FormControl$1.Input, { ref: inputRef, size: "sm", type: "text", name: "my-search-input", placeholder: "Rechercher" }),
|
|
63763
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchButton$1, { type: "submit", size: "sm", onClick: redirectToSearch, "aria-label": t2("navbar.search") })
|
|
63764
|
-
] }) })
|
|
63765
|
-
] });
|
|
63766
|
-
}, SearchEngine$1 = SearchEngine;
|
|
63767
66079
|
function Badge({
|
|
63768
66080
|
children
|
|
63769
66081
|
}) {
|
|
63770
66082
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "position-absolute badge rounded-pill bg-warning", children });
|
|
63771
66083
|
}
|
|
63772
|
-
function NavLink({
|
|
63773
|
-
link,
|
|
63774
|
-
className,
|
|
63775
|
-
children,
|
|
63776
|
-
translate: translate2,
|
|
63777
|
-
...restProps
|
|
63778
|
-
}) {
|
|
63779
|
-
const classes2 = clsx("nav-link", className);
|
|
63780
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: link, className: classes2, ...restProps, children: [
|
|
63781
|
-
children,
|
|
63782
|
-
translate2 && /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: translate2 }) })
|
|
63783
|
-
] });
|
|
63784
|
-
}
|
|
63785
66084
|
function Navbar({
|
|
63786
66085
|
children,
|
|
63787
66086
|
className,
|
|
@@ -63798,6 +66097,27 @@ function NavBarNav({
|
|
|
63798
66097
|
const classes2 = clsx("navbar-nav", className);
|
|
63799
66098
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: classes2, ...restProps, children });
|
|
63800
66099
|
}
|
|
66100
|
+
const NavItem = /* @__PURE__ */ reactExports.forwardRef(({
|
|
66101
|
+
children,
|
|
66102
|
+
className,
|
|
66103
|
+
...restProps
|
|
66104
|
+
}, ref2) => {
|
|
66105
|
+
const classes2 = clsx("nav-item", className);
|
|
66106
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: ref2, className: classes2, ...restProps, children });
|
|
66107
|
+
});
|
|
66108
|
+
function NavLink({
|
|
66109
|
+
link,
|
|
66110
|
+
className,
|
|
66111
|
+
children,
|
|
66112
|
+
translate: translate2,
|
|
66113
|
+
...restProps
|
|
66114
|
+
}) {
|
|
66115
|
+
const classes2 = clsx("nav-link", className);
|
|
66116
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: link, className: classes2, ...restProps, children: [
|
|
66117
|
+
children,
|
|
66118
|
+
translate2 && /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: translate2 }) })
|
|
66119
|
+
] });
|
|
66120
|
+
}
|
|
63801
66121
|
const WidgetAppsFooter = () => {
|
|
63802
66122
|
const {
|
|
63803
66123
|
t: t2
|
|
@@ -63813,7 +66133,121 @@ const WidgetAppsFooter = () => {
|
|
|
63813
66133
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
63814
66134
|
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))
|
|
63815
66135
|
] });
|
|
63816
|
-
}
|
|
66136
|
+
};
|
|
66137
|
+
function Help({
|
|
66138
|
+
isHelpOpen,
|
|
66139
|
+
setIsHelpOpen,
|
|
66140
|
+
parsedHeadline,
|
|
66141
|
+
parsedContent,
|
|
66142
|
+
error
|
|
66143
|
+
}) {
|
|
66144
|
+
const {
|
|
66145
|
+
t: t2
|
|
66146
|
+
} = useTranslation(), handleHelpOpen = () => {
|
|
66147
|
+
setIsHelpOpen(false);
|
|
66148
|
+
};
|
|
66149
|
+
return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
|
|
66150
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
|
|
66151
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
|
|
66152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
|
|
66153
|
+
] }), document.getElementById("portal")) : null;
|
|
66154
|
+
}
|
|
66155
|
+
function useHelp() {
|
|
66156
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
66157
|
+
const {
|
|
66158
|
+
appCode
|
|
66159
|
+
} = useOdeClient(), {
|
|
66160
|
+
theme
|
|
66161
|
+
} = 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";
|
|
66162
|
+
reactExports.useEffect(() => {
|
|
66163
|
+
(async () => {
|
|
66164
|
+
let helpURL = "";
|
|
66165
|
+
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/");
|
|
66166
|
+
try {
|
|
66167
|
+
const res = await fetch(helpURL), html2 = await res.text();
|
|
66168
|
+
if (res.status === 404) {
|
|
66169
|
+
setError(true);
|
|
66170
|
+
return;
|
|
66171
|
+
}
|
|
66172
|
+
setHtml(html2), setError(false);
|
|
66173
|
+
} catch (error2) {
|
|
66174
|
+
setError(true), console.error(error2);
|
|
66175
|
+
}
|
|
66176
|
+
})();
|
|
66177
|
+
}, [appCode, helpPath]);
|
|
66178
|
+
const parsedHTML = HTMLReactParser$1(html, {
|
|
66179
|
+
replace: (domNode) => {
|
|
66180
|
+
const typedDomNode = domNode;
|
|
66181
|
+
if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
|
|
66182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
|
|
66183
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
|
|
66184
|
+
setVisibility(!visibility);
|
|
66185
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
|
|
66186
|
+
domToReact(typedDomNode.children, {
|
|
66187
|
+
replace: (domNode2) => {
|
|
66188
|
+
const typedDomNode2 = domNode2;
|
|
66189
|
+
if (typedDomNode2.attribs && typedDomNode2.name === "ul")
|
|
66190
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
|
|
66191
|
+
display: visibility ? "block" : "none"
|
|
66192
|
+
}, children: domToReact(typedDomNode2.children, {
|
|
66193
|
+
replace: (domNode3) => {
|
|
66194
|
+
const typedDomNode3 = domNode3;
|
|
66195
|
+
if (typedDomNode3.attribs && typedDomNode3.name === "a")
|
|
66196
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps2(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
|
|
66197
|
+
setVisibility(false);
|
|
66198
|
+
}, children: domToReact(typedDomNode3.children) }) });
|
|
66199
|
+
}
|
|
66200
|
+
}) });
|
|
66201
|
+
}
|
|
66202
|
+
})
|
|
66203
|
+
] });
|
|
66204
|
+
if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
|
|
66205
|
+
const props = attributesToProps2(domNode.attribs);
|
|
66206
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
|
|
66207
|
+
display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
|
|
66208
|
+
}, children: domToReact(typedDomNode.children, {
|
|
66209
|
+
replace: (domNode2) => {
|
|
66210
|
+
const typedDomNode2 = domNode2;
|
|
66211
|
+
if (typedDomNode2.attribs && typedDomNode2.name === "img") {
|
|
66212
|
+
const attribs = domNode2.attribs.src;
|
|
66213
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps2(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
|
|
66214
|
+
}
|
|
66215
|
+
}
|
|
66216
|
+
}) });
|
|
66217
|
+
}
|
|
66218
|
+
}
|
|
66219
|
+
}), 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 = (_e2 = (_d2 = parsedContent == null ? void 0 : parsedContent.find((child) => child.type === "p")) == null ? void 0 : _d2.props) == null ? void 0 : _e2.children;
|
|
66220
|
+
return {
|
|
66221
|
+
html,
|
|
66222
|
+
visibility,
|
|
66223
|
+
isModalOpen,
|
|
66224
|
+
setIsModalOpen,
|
|
66225
|
+
parsedContent,
|
|
66226
|
+
parsedHeadline,
|
|
66227
|
+
error
|
|
66228
|
+
};
|
|
66229
|
+
}
|
|
66230
|
+
const SearchEngine = () => {
|
|
66231
|
+
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
66232
|
+
t: t2
|
|
66233
|
+
} = useTranslation();
|
|
66234
|
+
function redirectToSearch() {
|
|
66235
|
+
if (inputRef.current) {
|
|
66236
|
+
const value = inputRef.current.value;
|
|
66237
|
+
window.location.href = `/searchengine#/${value}`;
|
|
66238
|
+
}
|
|
66239
|
+
}
|
|
66240
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { id: popoverSearchId, ref: searchRef, className: "position-relative", "aria-haspopup": "true", "aria-expanded": isSearchHovered, children: [
|
|
66241
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: "/searchengine", className: "nav-link dropdown-item", children: [
|
|
66242
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgSearch$1, { className: "icon search" }),
|
|
66243
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nav-text", children: t2("navbar.search") })
|
|
66244
|
+
] }),
|
|
66245
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Popover, { id: popoverSearchId, isVisible: isSearchHovered, className: "d-none d-md-flex", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "my-search-input", className: "search-text input-group py-8 px-12", children: [
|
|
66246
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FormControl$1.Input, { ref: inputRef, size: "sm", type: "text", name: "my-search-input", placeholder: "Rechercher" }),
|
|
66247
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchButton$1, { type: "submit", size: "sm", onClick: redirectToSearch, "aria-label": t2("navbar.search") })
|
|
66248
|
+
] }) })
|
|
66249
|
+
] });
|
|
66250
|
+
}, SearchEngine$1 = SearchEngine, Header$1 = ({
|
|
63817
66251
|
is1d = false,
|
|
63818
66252
|
src = ""
|
|
63819
66253
|
}) => {
|
|
@@ -63827,8 +66261,15 @@ const WidgetAppsFooter = () => {
|
|
|
63827
66261
|
user,
|
|
63828
66262
|
avatar
|
|
63829
66263
|
} = useUser(), {
|
|
66264
|
+
currentLanguage,
|
|
63830
66265
|
currentApp
|
|
63831
|
-
} = useOdeClient(),
|
|
66266
|
+
} = useOdeClient(), {
|
|
66267
|
+
isModalOpen: isHelpOpen,
|
|
66268
|
+
setIsModalOpen: setIsHelpOpen,
|
|
66269
|
+
parsedContent,
|
|
66270
|
+
parsedHeadline,
|
|
66271
|
+
error
|
|
66272
|
+
} = useHelp(), classes2 = clsx("header", {
|
|
63832
66273
|
"no-2d": is1d,
|
|
63833
66274
|
"no-1d": !is1d
|
|
63834
66275
|
}), {
|
|
@@ -63864,6 +66305,15 @@ const WidgetAppsFooter = () => {
|
|
|
63864
66305
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
63865
66306
|
] }) }),
|
|
63866
66307
|
/* @__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" }) }) }),
|
|
66308
|
+
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66309
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
|
|
66310
|
+
setIsHelpOpen(true);
|
|
66311
|
+
}, children: [
|
|
66312
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
|
|
66313
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
|
|
66314
|
+
] }),
|
|
66315
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66316
|
+
] }) : null,
|
|
63867
66317
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
63868
66318
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
63869
66319
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -63908,6 +66358,15 @@ const WidgetAppsFooter = () => {
|
|
|
63908
66358
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
63909
66359
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
|
|
63910
66360
|
] }) }),
|
|
66361
|
+
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66362
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
66363
|
+
setIsHelpOpen(true);
|
|
66364
|
+
}, children: [
|
|
66365
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
|
|
66366
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
|
|
66367
|
+
] }),
|
|
66368
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66369
|
+
] }) : null,
|
|
63911
66370
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
63912
66371
|
/* @__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" }) }),
|
|
63913
66372
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -63942,13 +66401,11 @@ const WidgetAppsFooter = () => {
|
|
|
63942
66401
|
showCookiesConsent,
|
|
63943
66402
|
handleConsultCookies,
|
|
63944
66403
|
handleCloseCookiesConsent
|
|
63945
|
-
} = useCookiesConsent()
|
|
63946
|
-
useZendeskGuide();
|
|
63947
|
-
const classes2 = clsx("d-flex flex-column bg-white", {
|
|
66404
|
+
} = useCookiesConsent(), classes2 = clsx("d-flex flex-column bg-white", {
|
|
63948
66405
|
"container-fluid": !headless,
|
|
63949
66406
|
"rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
|
|
63950
66407
|
"mt-24": (theme == null ? void 0 : theme.is1d) && !headless
|
|
63951
|
-
}), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$1, { toastOptions: {
|
|
66408
|
+
}), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$1, { containerClassName: "toaster-container", toastOptions: {
|
|
63952
66409
|
position: "top-right"
|
|
63953
66410
|
} });
|
|
63954
66411
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -64181,9 +66638,9 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
|
|
|
64181
66638
|
withSelector.exports = withSelector_production_min;
|
|
64182
66639
|
}
|
|
64183
66640
|
var withSelectorExports = withSelector.exports;
|
|
64184
|
-
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
|
|
66641
|
+
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
|
|
64185
66642
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
64186
|
-
const { useDebugValue } = React;
|
|
66643
|
+
const { useDebugValue } = React$2;
|
|
64187
66644
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
64188
66645
|
let didWarnAboutEqualityFn = false;
|
|
64189
66646
|
const identity = (arg) => arg;
|
|
@@ -64430,11 +66887,11 @@ class TreeNodeFolderWrapper {
|
|
|
64430
66887
|
}
|
|
64431
66888
|
}
|
|
64432
66889
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
64433
|
-
return modifyNode(treeNode, (
|
|
64434
|
-
if (
|
|
64435
|
-
|
|
66890
|
+
return modifyNode(treeNode, (node2) => {
|
|
66891
|
+
if (node2.id === parentId) {
|
|
66892
|
+
node2.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
64436
66893
|
}
|
|
64437
|
-
return
|
|
66894
|
+
return node2;
|
|
64438
66895
|
});
|
|
64439
66896
|
};
|
|
64440
66897
|
const initialState = {
|
|
@@ -64831,45 +67288,45 @@ const useTrashModal = () => {
|
|
|
64831
67288
|
};
|
|
64832
67289
|
};
|
|
64833
67290
|
function addNode(treeData, { parentId, newFolder }) {
|
|
64834
|
-
return modifyNode(treeData, (
|
|
67291
|
+
return modifyNode(treeData, (node2) => {
|
|
64835
67292
|
var _a2;
|
|
64836
|
-
if (
|
|
67293
|
+
if (node2.id === parentId) {
|
|
64837
67294
|
const parentAncestors = [
|
|
64838
|
-
...((_a2 =
|
|
67295
|
+
...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
|
|
64839
67296
|
];
|
|
64840
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
67297
|
+
const ancestors = arrayUnique([...parentAncestors, node2.id]);
|
|
64841
67298
|
const newNode = {
|
|
64842
|
-
...
|
|
67299
|
+
...node2,
|
|
64843
67300
|
children: [
|
|
64844
|
-
...
|
|
67301
|
+
...node2.children || [],
|
|
64845
67302
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
64846
67303
|
]
|
|
64847
67304
|
};
|
|
64848
67305
|
return newNode;
|
|
64849
67306
|
} else {
|
|
64850
|
-
return
|
|
67307
|
+
return node2;
|
|
64851
67308
|
}
|
|
64852
67309
|
});
|
|
64853
67310
|
}
|
|
64854
67311
|
function deleteNode(treeData, { folders }) {
|
|
64855
|
-
return modifyNode(treeData, (
|
|
64856
|
-
if (folders.includes(
|
|
67312
|
+
return modifyNode(treeData, (node2) => {
|
|
67313
|
+
if (folders.includes(node2.id)) {
|
|
64857
67314
|
return void 0;
|
|
64858
67315
|
} else {
|
|
64859
|
-
return
|
|
67316
|
+
return node2;
|
|
64860
67317
|
}
|
|
64861
67318
|
});
|
|
64862
67319
|
}
|
|
64863
67320
|
function moveNode(treeData, { destinationId, folders }) {
|
|
64864
|
-
return modifyNode(treeData, (
|
|
67321
|
+
return modifyNode(treeData, (node2, parent) => {
|
|
64865
67322
|
var _a2, _b2;
|
|
64866
|
-
if (destinationId ===
|
|
67323
|
+
if (destinationId === node2.id) {
|
|
64867
67324
|
const parentAncestors = [
|
|
64868
|
-
...((_a2 =
|
|
67325
|
+
...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
|
|
64869
67326
|
];
|
|
64870
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
64871
|
-
const newChildren = [...
|
|
64872
|
-
const childrenIds = ((_b2 =
|
|
67327
|
+
const ancestors = arrayUnique([...parentAncestors, node2.id]);
|
|
67328
|
+
const newChildren = [...node2.children || []];
|
|
67329
|
+
const childrenIds = ((_b2 = node2.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
|
|
64873
67330
|
for (const folder of folders) {
|
|
64874
67331
|
if (!childrenIds.includes(folder)) {
|
|
64875
67332
|
const item = findNodeById(folder, treeData);
|
|
@@ -64883,23 +67340,23 @@ function moveNode(treeData, { destinationId, folders }) {
|
|
|
64883
67340
|
}
|
|
64884
67341
|
}
|
|
64885
67342
|
const newNode = {
|
|
64886
|
-
...
|
|
67343
|
+
...node2,
|
|
64887
67344
|
children: newChildren
|
|
64888
67345
|
};
|
|
64889
67346
|
return newNode;
|
|
64890
|
-
} else if (folders.includes(
|
|
67347
|
+
} else if (folders.includes(node2.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
64891
67348
|
return void 0;
|
|
64892
67349
|
} else {
|
|
64893
|
-
return
|
|
67350
|
+
return node2;
|
|
64894
67351
|
}
|
|
64895
67352
|
});
|
|
64896
67353
|
}
|
|
64897
67354
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
64898
|
-
return modifyNode(treeData, (
|
|
64899
|
-
if (
|
|
67355
|
+
return modifyNode(treeData, (node2) => {
|
|
67356
|
+
if (node2.id === folderId) {
|
|
64900
67357
|
return new TreeNodeFolderWrapper(newFolder);
|
|
64901
67358
|
} else {
|
|
64902
|
-
return
|
|
67359
|
+
return node2;
|
|
64903
67360
|
}
|
|
64904
67361
|
});
|
|
64905
67362
|
}
|
|
@@ -66456,10 +68913,10 @@ const ResourcesList = ({
|
|
|
66456
68913
|
setSelectedResources([...selectedResources, resource]);
|
|
66457
68914
|
}
|
|
66458
68915
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
66459
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
68916
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React$2.Fragment, { children: [
|
|
66460
68917
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
66461
68918
|
// eslint-disable-next-line react/no-array-index-key
|
|
66462
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
68919
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React$2.Fragment, { children: page.resources.map((resource) => {
|
|
66463
68920
|
const { id: id2, updatedAt } = resource;
|
|
66464
68921
|
const time = fromNow(updatedAt);
|
|
66465
68922
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|