ode-explorer 1.4.2-develop-integration.202405171109 → 1.4.2-develop-pedago.202405171417

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 CHANGED
@@ -68,9 +68,9 @@ function _mergeNamespaces(n2, m2) {
68
68
  if (mutation.type !== "childList") {
69
69
  continue;
70
70
  }
71
- for (const node of mutation.addedNodes) {
72
- if (node.tagName === "LINK" && node.rel === "modulepreload")
73
- processPreload(node);
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 });
@@ -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$1 = /* @__PURE__ */ _mergeNamespaces({
418
+ const React$2 = /* @__PURE__ */ getDefaultExportFromCjs(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
  }
@@ -4100,6 +4100,12 @@ const usePrevious = (value, ignore) => {
4100
4100
  }, [value, ignore]);
4101
4101
  return ref2.current;
4102
4102
  };
4103
+ function alwaysNewT(i18n, language, namespace, keyPrefix) {
4104
+ return i18n.getFixedT(language, namespace, keyPrefix);
4105
+ }
4106
+ function useMemoizedT(i18n, language, namespace, keyPrefix) {
4107
+ return reactExports.useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
4108
+ }
4103
4109
  function useTranslation(ns) {
4104
4110
  let props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4105
4111
  const {
@@ -4143,9 +4149,9 @@ function useTranslation(ns) {
4143
4149
  if (i18n.reportNamespaces.addUsedNamespaces)
4144
4150
  i18n.reportNamespaces.addUsedNamespaces(namespaces);
4145
4151
  const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n2) => hasLoadedNamespace(n2, i18n, i18nOptions));
4146
- function getT() {
4147
- return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
4148
- }
4152
+ const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
4153
+ const getT = () => memoGetT;
4154
+ const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
4149
4155
  const [t2, setT] = reactExports.useState(getT);
4150
4156
  let joinedNS = namespaces.join();
4151
4157
  if (props.lng)
@@ -4162,21 +4168,21 @@ function useTranslation(ns) {
4162
4168
  if (props.lng) {
4163
4169
  loadLanguages(i18n, props.lng, namespaces, () => {
4164
4170
  if (isMounted.current)
4165
- setT(getT);
4171
+ setT(getNewT);
4166
4172
  });
4167
4173
  } else {
4168
4174
  loadNamespaces(i18n, namespaces, () => {
4169
4175
  if (isMounted.current)
4170
- setT(getT);
4176
+ setT(getNewT);
4171
4177
  });
4172
4178
  }
4173
4179
  }
4174
4180
  if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
4175
- setT(getT);
4181
+ setT(getNewT);
4176
4182
  }
4177
4183
  function boundReset() {
4178
4184
  if (isMounted.current)
4179
- setT(getT);
4185
+ setT(getNewT);
4180
4186
  }
4181
4187
  if (bindI18n && i18n)
4182
4188
  i18n.on(bindI18n, boundReset);
@@ -4190,13 +4196,11 @@ function useTranslation(ns) {
4190
4196
  bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
4191
4197
  };
4192
4198
  }, [i18n, joinedNS]);
4193
- const isInitial = reactExports.useRef(true);
4194
4199
  reactExports.useEffect(() => {
4195
- if (isMounted.current && !isInitial.current) {
4200
+ if (isMounted.current && ready) {
4196
4201
  setT(getT);
4197
4202
  }
4198
- isInitial.current = false;
4199
- }, [i18n, keyPrefix]);
4203
+ }, [i18n, keyPrefix, ready]);
4200
4204
  const ret = [t2, i18n, ready];
4201
4205
  ret.t = t2;
4202
4206
  ret.i18n = i18n;
@@ -4235,7 +4239,10 @@ instance.use(Backend).use(initReactI18next).init({
4235
4239
  prefix: "[[",
4236
4240
  suffix: "]]"
4237
4241
  },
4238
- debug: false
4242
+ debug: false,
4243
+ react: {
4244
+ useSuspense: false
4245
+ }
4239
4246
  });
4240
4247
  var Subscribable = class {
4241
4248
  constructor() {
@@ -7224,7 +7231,7 @@ var uaParser = { exports: {} };
7224
7231
  return str.toLowerCase();
7225
7232
  }, majorize = function(version) {
7226
7233
  return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
7227
- }, trim = function(str, len) {
7234
+ }, trim2 = function(str, len) {
7228
7235
  if (typeof str === STR_TYPE) {
7229
7236
  str = str.replace(/^\s\s*/, EMPTY);
7230
7237
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
@@ -8060,7 +8067,7 @@ var uaParser = { exports: {} };
8060
8067
  /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
8061
8068
  // HbbTV devices
8062
8069
  ],
8063
- [[VENDOR, trim], [MODEL, trim], [TYPE2, SMARTTV]],
8070
+ [[VENDOR, trim2], [MODEL, trim2], [TYPE2, SMARTTV]],
8064
8071
  [
8065
8072
  /\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
8066
8073
  // SmartTV from Unidentified Vendors
@@ -8404,7 +8411,7 @@ var uaParser = { exports: {} };
8404
8411
  return _ua;
8405
8412
  };
8406
8413
  this.setUA = function(ua3) {
8407
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
8414
+ _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim2(ua3, UA_MAX_LENGTH) : ua3;
8408
8415
  return this;
8409
8416
  };
8410
8417
  this.setUA(_ua);
@@ -8453,7 +8460,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
8453
8460
  return t2;
8454
8461
  }
8455
8462
  return e2;
8456
- }, i$1 = (e2, t2, r2, i2, p2) => {
8463
+ }, i$2 = (e2, t2, r2, i2, p2) => {
8457
8464
  let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
8458
8465
  let t3 = 0, r3 = 11;
8459
8466
  for (; t3 < e3.length; )
@@ -8483,7 +8490,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
8483
8490
  }, "");
8484
8491
  function u$4(e2) {
8485
8492
  let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
8486
- return i$1(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);
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);
8487
8494
  }
8488
8495
  let d$1, f$1, g$1;
8489
8496
  u$4.bind({ g: 1 });
@@ -8965,7 +8972,35 @@ const SvgAlertCircle = ({
8965
8972
  )
8966
8973
  ]
8967
8974
  }
8968
- ), SvgBookmark$1 = SvgBookmark, SvgClose = ({
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 = ({
8969
9004
  title,
8970
9005
  titleId,
8971
9006
  ...props
@@ -16861,8 +16896,8 @@ const INPUT_VALIDATION_RULES = {
16861
16896
  required: "required",
16862
16897
  validate: "validate"
16863
16898
  };
16864
- const HookFormContext = React.createContext(null);
16865
- const useFormContext = () => React.useContext(HookFormContext);
16899
+ const HookFormContext = React$2.createContext(null);
16900
+ const useFormContext = () => React$2.useContext(HookFormContext);
16866
16901
  var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
16867
16902
  const result = {
16868
16903
  defaultValues: control._defaultValues
@@ -16890,9 +16925,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
16890
16925
  var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
16891
16926
  var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
16892
16927
  function useSubscribe(props) {
16893
- const _props = React.useRef(props);
16928
+ const _props = React$2.useRef(props);
16894
16929
  _props.current = props;
16895
- React.useEffect(() => {
16930
+ React$2.useEffect(() => {
16896
16931
  const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
16897
16932
  next: _props.current.next
16898
16933
  });
@@ -16904,9 +16939,9 @@ function useSubscribe(props) {
16904
16939
  function useFormState(props) {
16905
16940
  const methods = useFormContext();
16906
16941
  const { control = methods.control, disabled, name, exact } = props || {};
16907
- const [formState, updateFormState] = React.useState(control._formState);
16908
- const _mounted = React.useRef(true);
16909
- 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({
16910
16945
  isDirty: false,
16911
16946
  isLoading: false,
16912
16947
  dirtyFields: false,
@@ -16915,7 +16950,7 @@ function useFormState(props) {
16915
16950
  isValid: false,
16916
16951
  errors: false
16917
16952
  });
16918
- const _name = React.useRef(name);
16953
+ const _name = React$2.useRef(name);
16919
16954
  _name.current = name;
16920
16955
  useSubscribe({
16921
16956
  disabled,
@@ -16925,7 +16960,7 @@ function useFormState(props) {
16925
16960
  }),
16926
16961
  subject: control._subjects.state
16927
16962
  });
16928
- React.useEffect(() => {
16963
+ React$2.useEffect(() => {
16929
16964
  _mounted.current = true;
16930
16965
  _localProxyFormState.current.isValid && control._updateValid(true);
16931
16966
  return () => {
@@ -16949,7 +16984,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
16949
16984
  function useWatch(props) {
16950
16985
  const methods = useFormContext();
16951
16986
  const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
16952
- const _name = React.useRef(name);
16987
+ const _name = React$2.useRef(name);
16953
16988
  _name.current = name;
16954
16989
  useSubscribe({
16955
16990
  disabled,
@@ -16960,8 +16995,8 @@ function useWatch(props) {
16960
16995
  }
16961
16996
  }
16962
16997
  });
16963
- const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
16964
- React.useEffect(() => control._removeUnmounted());
16998
+ const [value, updateValue] = React$2.useState(control._getWatch(name, defaultValue2));
16999
+ React$2.useEffect(() => control._removeUnmounted());
16965
17000
  return value;
16966
17001
  }
16967
17002
  var isKey = (value) => /^\w*$/.test(value);
@@ -16997,12 +17032,12 @@ function useController(props) {
16997
17032
  control,
16998
17033
  name
16999
17034
  });
17000
- const _registerProps = React.useRef(control.register(name, {
17035
+ const _registerProps = React$2.useRef(control.register(name, {
17001
17036
  ...props.rules,
17002
17037
  value,
17003
17038
  ...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
17004
17039
  }));
17005
- React.useEffect(() => {
17040
+ React$2.useEffect(() => {
17006
17041
  const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
17007
17042
  const updateMounted = (name2, value2) => {
17008
17043
  const field = get(control._fields, name2);
@@ -17022,7 +17057,7 @@ function useController(props) {
17022
17057
  (isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
17023
17058
  };
17024
17059
  }, [name, control, isArrayField, shouldUnregister]);
17025
- React.useEffect(() => {
17060
+ React$2.useEffect(() => {
17026
17061
  if (get(control._fields, name)) {
17027
17062
  control._updateDisabledField({
17028
17063
  disabled,
@@ -17037,14 +17072,14 @@ function useController(props) {
17037
17072
  name,
17038
17073
  value,
17039
17074
  ...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
17040
- onChange: React.useCallback((event) => _registerProps.current.onChange({
17075
+ onChange: React$2.useCallback((event) => _registerProps.current.onChange({
17041
17076
  target: {
17042
17077
  value: getEventValue(event),
17043
17078
  name
17044
17079
  },
17045
17080
  type: EVENTS.CHANGE
17046
17081
  }), [name]),
17047
- onBlur: React.useCallback(() => _registerProps.current.onBlur({
17082
+ onBlur: React$2.useCallback(() => _registerProps.current.onBlur({
17048
17083
  target: {
17049
17084
  value: get(control._formValues, name),
17050
17085
  name
@@ -18286,9 +18321,9 @@ function createFormControl(props = {}, flushRootRender) {
18286
18321
  };
18287
18322
  }
18288
18323
  function useForm(props = {}) {
18289
- const _formControl = React.useRef();
18290
- const _values = React.useRef();
18291
- const [formState, updateFormState] = React.useState({
18324
+ const _formControl = React$2.useRef();
18325
+ const _values = React$2.useRef();
18326
+ const [formState, updateFormState] = React$2.useState({
18292
18327
  isDirty: false,
18293
18328
  isValidating: false,
18294
18329
  isLoading: isFunction(props.defaultValues),
@@ -18319,8 +18354,8 @@ function useForm(props = {}) {
18319
18354
  }
18320
18355
  }
18321
18356
  });
18322
- React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
18323
- React.useEffect(() => {
18357
+ React$2.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
18358
+ React$2.useEffect(() => {
18324
18359
  if (control._proxyFormState.isDirty) {
18325
18360
  const isDirty = control._getDirty();
18326
18361
  if (isDirty !== formState.isDirty) {
@@ -18330,7 +18365,7 @@ function useForm(props = {}) {
18330
18365
  }
18331
18366
  }
18332
18367
  }, [control, formState.isDirty]);
18333
- React.useEffect(() => {
18368
+ React$2.useEffect(() => {
18334
18369
  if (props.values && !deepEqual$1(props.values, _values.current)) {
18335
18370
  control._reset(props.values, control._options.resetOptions);
18336
18371
  _values.current = props.values;
@@ -18339,12 +18374,12 @@ function useForm(props = {}) {
18339
18374
  control._resetDefaultValues();
18340
18375
  }
18341
18376
  }, [props.values, control]);
18342
- React.useEffect(() => {
18377
+ React$2.useEffect(() => {
18343
18378
  if (props.errors) {
18344
18379
  control._setErrors(props.errors);
18345
18380
  }
18346
18381
  }, [props.errors, control]);
18347
- React.useEffect(() => {
18382
+ React$2.useEffect(() => {
18348
18383
  if (!control._state.mount) {
18349
18384
  control._updateValid();
18350
18385
  control._state.mount = true;
@@ -18358,9 +18393,9 @@ function useForm(props = {}) {
18358
18393
  _formControl.current.formState = getProxyFormState(formState, control);
18359
18394
  return _formControl.current;
18360
18395
  }
18361
- function getWindow$3(node) {
18396
+ function getWindow$3(node2) {
18362
18397
  var _node$ownerDocument;
18363
- return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18398
+ return (node2 == null ? void 0 : (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18364
18399
  }
18365
18400
  function isElement$3(value) {
18366
18401
  return value instanceof Element || value instanceof getWindow$3(value).Element;
@@ -18923,19 +18958,19 @@ const size$1 = function(options) {
18923
18958
  }
18924
18959
  };
18925
18960
  };
18926
- function getNodeName$1(node) {
18927
- if (isNode$1(node)) {
18928
- return (node.nodeName || "").toLowerCase();
18961
+ function getNodeName$1(node2) {
18962
+ if (isNode$1(node2)) {
18963
+ return (node2.nodeName || "").toLowerCase();
18929
18964
  }
18930
18965
  return "#document";
18931
18966
  }
18932
- function getWindow$2(node) {
18967
+ function getWindow$2(node2) {
18933
18968
  var _node$ownerDocument;
18934
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18969
+ return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18935
18970
  }
18936
- function getDocumentElement$1(node) {
18971
+ function getDocumentElement$1(node2) {
18937
18972
  var _ref;
18938
- return (_ref = (isNode$1(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
18973
+ return (_ref = (isNode$1(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
18939
18974
  }
18940
18975
  function isNode$1(value) {
18941
18976
  return value instanceof Node || value instanceof getWindow$2(value).Node;
@@ -18984,8 +19019,8 @@ function isWebKit() {
18984
19019
  return false;
18985
19020
  return CSS.supports("-webkit-backdrop-filter", "none");
18986
19021
  }
18987
- function isLastTraversableNode(node) {
18988
- return ["html", "body", "#document"].includes(getNodeName$1(node));
19022
+ function isLastTraversableNode(node2) {
19023
+ return ["html", "body", "#document"].includes(getNodeName$1(node2));
18989
19024
  }
18990
19025
  function getComputedStyle$3(element) {
18991
19026
  return getWindow$2(element).getComputedStyle(element);
@@ -19002,30 +19037,30 @@ function getNodeScroll$1(element) {
19002
19037
  scrollTop: element.pageYOffset
19003
19038
  };
19004
19039
  }
19005
- function getParentNode$1(node) {
19006
- if (getNodeName$1(node) === "html") {
19007
- return node;
19040
+ function getParentNode$1(node2) {
19041
+ if (getNodeName$1(node2) === "html") {
19042
+ return node2;
19008
19043
  }
19009
19044
  const result = (
19010
19045
  // Step into the shadow DOM of the parent of a slotted node.
19011
- node.assignedSlot || // DOM Element detected.
19012
- node.parentNode || // ShadowRoot detected.
19013
- isShadowRoot$1(node) && node.host || // Fallback.
19014
- getDocumentElement$1(node)
19046
+ node2.assignedSlot || // DOM Element detected.
19047
+ node2.parentNode || // ShadowRoot detected.
19048
+ isShadowRoot$1(node2) && node2.host || // Fallback.
19049
+ getDocumentElement$1(node2)
19015
19050
  );
19016
19051
  return isShadowRoot$1(result) ? result.host : result;
19017
19052
  }
19018
- function getNearestOverflowAncestor(node) {
19019
- const parentNode = getParentNode$1(node);
19053
+ function getNearestOverflowAncestor(node2) {
19054
+ const parentNode = getParentNode$1(node2);
19020
19055
  if (isLastTraversableNode(parentNode)) {
19021
- return node.ownerDocument ? node.ownerDocument.body : node.body;
19056
+ return node2.ownerDocument ? node2.ownerDocument.body : node2.body;
19022
19057
  }
19023
19058
  if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
19024
19059
  return parentNode;
19025
19060
  }
19026
19061
  return getNearestOverflowAncestor(parentNode);
19027
19062
  }
19028
- function getOverflowAncestors(node, list, traverseIframes) {
19063
+ function getOverflowAncestors(node2, list, traverseIframes) {
19029
19064
  var _node$ownerDocument2;
19030
19065
  if (list === void 0) {
19031
19066
  list = [];
@@ -19033,8 +19068,8 @@ function getOverflowAncestors(node, list, traverseIframes) {
19033
19068
  if (traverseIframes === void 0) {
19034
19069
  traverseIframes = true;
19035
19070
  }
19036
- const scrollableAncestor = getNearestOverflowAncestor(node);
19037
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
19071
+ const scrollableAncestor = getNearestOverflowAncestor(node2);
19072
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
19038
19073
  const win = getWindow$2(scrollableAncestor);
19039
19074
  if (isBody) {
19040
19075
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
@@ -19706,16 +19741,16 @@ function useFloating$1(options) {
19706
19741
  }
19707
19742
  const [_reference, _setReference] = reactExports.useState(null);
19708
19743
  const [_floating, _setFloating] = reactExports.useState(null);
19709
- const setReference = reactExports.useCallback((node) => {
19710
- if (node !== referenceRef.current) {
19711
- referenceRef.current = node;
19712
- _setReference(node);
19744
+ const setReference = reactExports.useCallback((node2) => {
19745
+ if (node2 !== referenceRef.current) {
19746
+ referenceRef.current = node2;
19747
+ _setReference(node2);
19713
19748
  }
19714
19749
  }, []);
19715
- const setFloating = reactExports.useCallback((node) => {
19716
- if (node !== floatingRef.current) {
19717
- floatingRef.current = node;
19718
- _setFloating(node);
19750
+ const setFloating = reactExports.useCallback((node2) => {
19751
+ if (node2 !== floatingRef.current) {
19752
+ floatingRef.current = node2;
19753
+ _setFloating(node2);
19719
19754
  }
19720
19755
  }, []);
19721
19756
  const referenceEl = externalReference || _reference;
@@ -19841,7 +19876,7 @@ function useFloatingId() {
19841
19876
  }, []);
19842
19877
  return id2;
19843
19878
  }
19844
- const useReactId = React$1[/* @__PURE__ */ "useId".toString()];
19879
+ const useReactId = React$3[/* @__PURE__ */ "useId".toString()];
19845
19880
  const useId = useReactId || useFloatingId;
19846
19881
  function createPubSub() {
19847
19882
  const map2 = /* @__PURE__ */ new Map();
@@ -19861,7 +19896,7 @@ function createPubSub() {
19861
19896
  }
19862
19897
  const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
19863
19898
  const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
19864
- const useInsertionEffect = React$1[/* @__PURE__ */ "useInsertionEffect".toString()];
19899
+ const useInsertionEffect = React$3[/* @__PURE__ */ "useInsertionEffect".toString()];
19865
19900
  const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
19866
19901
  function useEffectEvent(callback) {
19867
19902
  const ref2 = reactExports.useRef(() => {
@@ -19900,23 +19935,23 @@ function useFloating(options) {
19900
19935
  const dataRef = reactExports.useRef({});
19901
19936
  const events2 = reactExports.useState(() => createPubSub())[0];
19902
19937
  const floatingId = useId();
19903
- const setPositionReference = reactExports.useCallback((node) => {
19904
- const positionReference = isElement$3(node) ? {
19905
- getBoundingClientRect: () => node.getBoundingClientRect(),
19906
- contextElement: node
19907
- } : node;
19938
+ const setPositionReference = reactExports.useCallback((node2) => {
19939
+ const positionReference = isElement$3(node2) ? {
19940
+ getBoundingClientRect: () => node2.getBoundingClientRect(),
19941
+ contextElement: node2
19942
+ } : node2;
19908
19943
  position.refs.setReference(positionReference);
19909
19944
  }, [position.refs]);
19910
- const setReference = reactExports.useCallback((node) => {
19911
- if (isElement$3(node) || node === null) {
19912
- domReferenceRef.current = node;
19913
- setDomReference(node);
19945
+ const setReference = reactExports.useCallback((node2) => {
19946
+ if (isElement$3(node2) || node2 === null) {
19947
+ domReferenceRef.current = node2;
19948
+ setDomReference(node2);
19914
19949
  }
19915
19950
  if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
19916
19951
  // `null` to support `positionReference` + an unstable `reference`
19917
19952
  // callback ref.
19918
- node !== null && !isElement$3(node)) {
19919
- position.refs.setReference(node);
19953
+ node2 !== null && !isElement$3(node2)) {
19954
+ position.refs.setReference(node2);
19920
19955
  }
19921
19956
  }, [position.refs]);
19922
19957
  const refs = reactExports.useMemo(() => ({
@@ -19941,9 +19976,9 @@ function useFloating(options) {
19941
19976
  onOpenChange
19942
19977
  }), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
19943
19978
  index(() => {
19944
- const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
19945
- if (node) {
19946
- node.context = context2;
19979
+ const node2 = tree == null ? void 0 : tree.nodesRef.current.find((node22) => node22.id === nodeId);
19980
+ if (node2) {
19981
+ node2.context = context2;
19947
19982
  }
19948
19983
  });
19949
19984
  return reactExports.useMemo(() => ({
@@ -20943,7 +20978,7 @@ function usePrev(value) {
20943
20978
  var $node = Symbol.for("Animated:node");
20944
20979
  var isAnimated = (value) => !!value && value[$node] === value;
20945
20980
  var getAnimated = (owner) => owner && owner[$node];
20946
- var setAnimated = (owner, node) => defineHidden(owner, $node, node);
20981
+ var setAnimated = (owner, node2) => defineHidden(owner, $node, node2);
20947
20982
  var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
20948
20983
  var Animated = class {
20949
20984
  constructor() {
@@ -21070,7 +21105,7 @@ var AnimatedObject = class extends Animated {
21070
21105
  }
21071
21106
  reset() {
21072
21107
  if (this.payload) {
21073
- each(this.payload, (node) => node.reset());
21108
+ each(this.payload, (node2) => node2.reset());
21074
21109
  }
21075
21110
  }
21076
21111
  /** Create a payload set. */
@@ -21088,7 +21123,7 @@ var AnimatedObject = class extends Animated {
21088
21123
  }
21089
21124
  const payload = getPayload(source);
21090
21125
  if (payload) {
21091
- each(payload, (node) => this.add(node));
21126
+ each(payload, (node2) => this.add(node2));
21092
21127
  }
21093
21128
  }
21094
21129
  };
@@ -21101,12 +21136,12 @@ var AnimatedArray = class extends AnimatedObject {
21101
21136
  return new AnimatedArray(source);
21102
21137
  }
21103
21138
  getValue() {
21104
- return this.source.map((node) => node.getValue());
21139
+ return this.source.map((node2) => node2.getValue());
21105
21140
  }
21106
21141
  setValue(source) {
21107
21142
  const payload = this.getPayload();
21108
21143
  if (source.length == payload.length) {
21109
- return payload.map((node, i2) => node.setValue(source[i2])).some(Boolean);
21144
+ return payload.map((node2, i2) => node2.setValue(source[i2])).some(Boolean);
21110
21145
  }
21111
21146
  super.setValue(source.map(makeAnimated));
21112
21147
  return true;
@@ -21641,8 +21676,8 @@ var FrameValue = class extends FluidValue {
21641
21676
  }
21642
21677
  /** Get the current value */
21643
21678
  get() {
21644
- const node = getAnimated(this);
21645
- return node && node.getValue();
21679
+ const node2 = getAnimated(this);
21680
+ return node2 && node2.getValue();
21646
21681
  }
21647
21682
  /** Create a spring that maps our value to another value */
21648
21683
  to(...args) {
@@ -21732,8 +21767,8 @@ var SpringValue = class extends FrameValue {
21732
21767
  return getFluidValue(this.animation.to);
21733
21768
  }
21734
21769
  get velocity() {
21735
- const node = getAnimated(this);
21736
- return node instanceof AnimatedValue ? node.lastVelocity || 0 : node.getPayload().map((node2) => node2.lastVelocity || 0);
21770
+ const node2 = getAnimated(this);
21771
+ return node2 instanceof AnimatedValue ? node2.lastVelocity || 0 : node2.getPayload().map((node22) => node22.lastVelocity || 0);
21737
21772
  }
21738
21773
  /**
21739
21774
  * When true, this value has been animated at least once.
@@ -21772,24 +21807,24 @@ var SpringValue = class extends FrameValue {
21772
21807
  if (!payload && hasFluidValue(anim.to)) {
21773
21808
  toValues = toArray(getFluidValue(anim.to));
21774
21809
  }
21775
- anim.values.forEach((node2, i2) => {
21776
- if (node2.done)
21810
+ anim.values.forEach((node22, i2) => {
21811
+ if (node22.done)
21777
21812
  return;
21778
21813
  const to2 = (
21779
21814
  // Animated strings always go from 0 to 1.
21780
- node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
21815
+ node22.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
21781
21816
  );
21782
21817
  let finished = anim.immediate;
21783
21818
  let position = to2;
21784
21819
  if (!finished) {
21785
- position = node2.lastPosition;
21820
+ position = node22.lastPosition;
21786
21821
  if (config2.tension <= 0) {
21787
- node2.done = true;
21822
+ node22.done = true;
21788
21823
  return;
21789
21824
  }
21790
- let elapsed = node2.elapsedTime += dt;
21825
+ let elapsed = node22.elapsedTime += dt;
21791
21826
  const from = anim.fromValues[i2];
21792
- const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
21827
+ const v0 = node22.v0 != null ? node22.v0 : node22.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
21793
21828
  let velocity;
21794
21829
  const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
21795
21830
  if (!is.und(config2.duration)) {
@@ -21797,30 +21832,30 @@ var SpringValue = class extends FrameValue {
21797
21832
  if (config2.duration > 0) {
21798
21833
  if (this._memoizedDuration !== config2.duration) {
21799
21834
  this._memoizedDuration = config2.duration;
21800
- if (node2.durationProgress > 0) {
21801
- node2.elapsedTime = config2.duration * node2.durationProgress;
21802
- elapsed = node2.elapsedTime += dt;
21835
+ if (node22.durationProgress > 0) {
21836
+ node22.elapsedTime = config2.duration * node22.durationProgress;
21837
+ elapsed = node22.elapsedTime += dt;
21803
21838
  }
21804
21839
  }
21805
21840
  p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
21806
21841
  p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
21807
- node2.durationProgress = p2;
21842
+ node22.durationProgress = p2;
21808
21843
  }
21809
21844
  position = from + config2.easing(p2) * (to2 - from);
21810
- velocity = (position - node2.lastPosition) / dt;
21845
+ velocity = (position - node22.lastPosition) / dt;
21811
21846
  finished = p2 == 1;
21812
21847
  } else if (config2.decay) {
21813
21848
  const decay = config2.decay === true ? 0.998 : config2.decay;
21814
21849
  const e2 = Math.exp(-(1 - decay) * elapsed);
21815
21850
  position = from + v0 / (1 - decay) * (1 - e2);
21816
- finished = Math.abs(node2.lastPosition - position) <= precision;
21851
+ finished = Math.abs(node22.lastPosition - position) <= precision;
21817
21852
  velocity = v0 * e2;
21818
21853
  } else {
21819
- velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
21854
+ velocity = node22.lastVelocity == null ? v0 : node22.lastVelocity;
21820
21855
  const restVelocity = config2.restVelocity || precision / 10;
21821
21856
  const bounceFactor = config2.clamp ? 0 : config2.bounce;
21822
21857
  const canBounce = !is.und(bounceFactor);
21823
- const isGrowing = from == to2 ? node2.v0 > 0 : from < to2;
21858
+ const isGrowing = from == to2 ? node22.v0 > 0 : from < to2;
21824
21859
  let isMoving;
21825
21860
  let isBouncing = false;
21826
21861
  const step = 1;
@@ -21847,7 +21882,7 @@ var SpringValue = class extends FrameValue {
21847
21882
  position = position + velocity * step;
21848
21883
  }
21849
21884
  }
21850
- node2.lastVelocity = velocity;
21885
+ node22.lastVelocity = velocity;
21851
21886
  if (Number.isNaN(position)) {
21852
21887
  console.warn(`Got NaN while animating:`, this);
21853
21888
  finished = true;
@@ -21857,20 +21892,20 @@ var SpringValue = class extends FrameValue {
21857
21892
  finished = false;
21858
21893
  }
21859
21894
  if (finished) {
21860
- node2.done = true;
21895
+ node22.done = true;
21861
21896
  } else {
21862
21897
  idle = false;
21863
21898
  }
21864
- if (node2.setValue(position, config2.round)) {
21899
+ if (node22.setValue(position, config2.round)) {
21865
21900
  changed = true;
21866
21901
  }
21867
21902
  });
21868
- const node = getAnimated(this);
21869
- const currVal = node.getValue();
21903
+ const node2 = getAnimated(this);
21904
+ const currVal = node2.getValue();
21870
21905
  if (idle) {
21871
21906
  const finalVal = getFluidValue(anim.to);
21872
21907
  if ((currVal !== finalVal || changed) && !config2.decay) {
21873
- node.setValue(finalVal);
21908
+ node2.setValue(finalVal);
21874
21909
  this._onChange(finalVal);
21875
21910
  } else if (changed && config2.decay) {
21876
21911
  this._onChange(currVal);
@@ -22100,8 +22135,8 @@ var SpringValue = class extends FrameValue {
22100
22135
  props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
22101
22136
  );
22102
22137
  }
22103
- let node = getAnimated(this);
22104
- if (!node || is.und(to2)) {
22138
+ let node2 = getAnimated(this);
22139
+ if (!node2 || is.und(to2)) {
22105
22140
  return resolve(getFinishedResult(this, true));
22106
22141
  }
22107
22142
  const reset = (
@@ -22116,16 +22151,16 @@ var SpringValue = class extends FrameValue {
22116
22151
  const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
22117
22152
  if (hasToChanged) {
22118
22153
  const nodeType = getAnimatedType(to2);
22119
- if (nodeType !== node.constructor) {
22154
+ if (nodeType !== node2.constructor) {
22120
22155
  if (immediate) {
22121
- node = this._set(goal);
22156
+ node2 = this._set(goal);
22122
22157
  } else
22123
22158
  throw Error(
22124
- `Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
22159
+ `Cannot animate between ${node2.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
22125
22160
  );
22126
22161
  }
22127
22162
  }
22128
- const goalType = node.constructor;
22163
+ const goalType = node2.constructor;
22129
22164
  let started = hasFluidValue(to2);
22130
22165
  let finished = false;
22131
22166
  if (!started) {
@@ -22147,7 +22182,7 @@ var SpringValue = class extends FrameValue {
22147
22182
  }
22148
22183
  if (!hasAsyncTo) {
22149
22184
  if (started || hasFluidValue(prevTo)) {
22150
- anim.values = node.getPayload();
22185
+ anim.values = node2.getPayload();
22151
22186
  anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
22152
22187
  }
22153
22188
  if (anim.immediate != immediate) {
@@ -22269,7 +22304,7 @@ var SpringValue = class extends FrameValue {
22269
22304
  const anim = this.animation;
22270
22305
  getAnimated(this).reset(getFluidValue(anim.to));
22271
22306
  if (!anim.immediate) {
22272
- anim.fromValues = anim.values.map((node) => node.lastPosition);
22307
+ anim.fromValues = anim.values.map((node2) => node2.lastPosition);
22273
22308
  }
22274
22309
  if (!isAnimating(this)) {
22275
22310
  setActiveBit(this, true);
@@ -22294,8 +22329,8 @@ var SpringValue = class extends FrameValue {
22294
22329
  if (isAnimating(this)) {
22295
22330
  setActiveBit(this, false);
22296
22331
  const anim = this.animation;
22297
- each(anim.values, (node) => {
22298
- node.done = true;
22332
+ each(anim.values, (node2) => {
22333
+ node2.done = true;
22299
22334
  });
22300
22335
  if (anim.toValues) {
22301
22336
  anim.onChange = anim.onPause = anim.onResume = void 0;
@@ -23168,8 +23203,8 @@ var Interpolation = class extends FrameValue {
23168
23203
  _start() {
23169
23204
  if (this.idle && !checkIdle(this._active)) {
23170
23205
  this.idle = false;
23171
- each(getPayload(this), (node) => {
23172
- node.done = false;
23206
+ each(getPayload(this), (node2) => {
23207
+ node2.done = false;
23173
23208
  });
23174
23209
  if (globals_exports.skipAnimation) {
23175
23210
  raf.batchedUpdates(() => this.advance());
@@ -23234,8 +23269,8 @@ function checkIdle(active) {
23234
23269
  function becomeIdle(self2) {
23235
23270
  if (!self2.idle) {
23236
23271
  self2.idle = true;
23237
- each(getPayload(self2), (node) => {
23238
- node.done = true;
23272
+ each(getPayload(self2), (node2) => {
23273
+ node2.done = true;
23239
23274
  });
23240
23275
  callFluidObservers(self2, {
23241
23276
  type: "idle",
@@ -23629,30 +23664,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
23629
23664
  function getNodeName(element) {
23630
23665
  return element ? (element.nodeName || "").toLowerCase() : null;
23631
23666
  }
23632
- function getWindow$1(node) {
23633
- if (node == null) {
23667
+ function getWindow$1(node2) {
23668
+ if (node2 == null) {
23634
23669
  return window;
23635
23670
  }
23636
- if (node.toString() !== "[object Window]") {
23637
- var ownerDocument = node.ownerDocument;
23671
+ if (node2.toString() !== "[object Window]") {
23672
+ var ownerDocument = node2.ownerDocument;
23638
23673
  return ownerDocument ? ownerDocument.defaultView || window : window;
23639
23674
  }
23640
- return node;
23675
+ return node2;
23641
23676
  }
23642
- function isElement$1(node) {
23643
- var OwnElement = getWindow$1(node).Element;
23644
- return node instanceof OwnElement || node instanceof Element;
23677
+ function isElement$1(node2) {
23678
+ var OwnElement = getWindow$1(node2).Element;
23679
+ return node2 instanceof OwnElement || node2 instanceof Element;
23645
23680
  }
23646
- function isHTMLElement(node) {
23647
- var OwnElement = getWindow$1(node).HTMLElement;
23648
- return node instanceof OwnElement || node instanceof HTMLElement;
23681
+ function isHTMLElement(node2) {
23682
+ var OwnElement = getWindow$1(node2).HTMLElement;
23683
+ return node2 instanceof OwnElement || node2 instanceof HTMLElement;
23649
23684
  }
23650
- function isShadowRoot(node) {
23685
+ function isShadowRoot(node2) {
23651
23686
  if (typeof ShadowRoot === "undefined") {
23652
23687
  return false;
23653
23688
  }
23654
- var OwnElement = getWindow$1(node).ShadowRoot;
23655
- return node instanceof OwnElement || node instanceof ShadowRoot;
23689
+ var OwnElement = getWindow$1(node2).ShadowRoot;
23690
+ return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
23656
23691
  }
23657
23692
  function applyStyles(_ref) {
23658
23693
  var state = _ref.state;
@@ -24134,8 +24169,8 @@ function getOppositeVariationPlacement(placement) {
24134
24169
  return hash$1[matched];
24135
24170
  });
24136
24171
  }
24137
- function getWindowScroll(node) {
24138
- var win = getWindow$1(node);
24172
+ function getWindowScroll(node2) {
24173
+ var win = getWindow$1(node2);
24139
24174
  var scrollLeft = win.pageXOffset;
24140
24175
  var scrollTop = win.pageYOffset;
24141
24176
  return {
@@ -24193,14 +24228,14 @@ function isScrollParent(element) {
24193
24228
  var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
24194
24229
  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
24195
24230
  }
24196
- function getScrollParent(node) {
24197
- if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
24198
- return node.ownerDocument.body;
24231
+ function getScrollParent(node2) {
24232
+ if (["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0) {
24233
+ return node2.ownerDocument.body;
24199
24234
  }
24200
- if (isHTMLElement(node) && isScrollParent(node)) {
24201
- return node;
24235
+ if (isHTMLElement(node2) && isScrollParent(node2)) {
24236
+ return node2;
24202
24237
  }
24203
- return getScrollParent(getParentNode(node));
24238
+ return getScrollParent(getParentNode(node2));
24204
24239
  }
24205
24240
  function listScrollParents(element, list) {
24206
24241
  var _element$ownerDocumen;
@@ -24694,11 +24729,11 @@ function getHTMLElementScroll(element) {
24694
24729
  scrollTop: element.scrollTop
24695
24730
  };
24696
24731
  }
24697
- function getNodeScroll(node) {
24698
- if (node === getWindow$1(node) || !isHTMLElement(node)) {
24699
- return getWindowScroll(node);
24732
+ function getNodeScroll(node2) {
24733
+ if (node2 === getWindow$1(node2) || !isHTMLElement(node2)) {
24734
+ return getWindowScroll(node2);
24700
24735
  } else {
24701
- return getHTMLElementScroll(node);
24736
+ return getHTMLElementScroll(node2);
24702
24737
  }
24703
24738
  }
24704
24739
  function isElementScaled(element) {
@@ -25231,7 +25266,35 @@ const SvgCommunity = ({
25231
25266
  )
25232
25267
  ]
25233
25268
  }
25234
- ), SvgMyApps$1 = SvgMyApps, SvgNeoMessaging = ({
25269
+ ), SvgMyApps$1 = SvgMyApps, SvgNeoAssistance = ({
25270
+ title,
25271
+ titleId,
25272
+ ...props
25273
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
25274
+ "svg",
25275
+ {
25276
+ xmlns: "http://www.w3.org/2000/svg",
25277
+ width: "24",
25278
+ height: "24",
25279
+ fill: "none",
25280
+ viewBox: "0 0 24 24",
25281
+ "aria-hidden": "true",
25282
+ "aria-labelledby": titleId,
25283
+ ...props,
25284
+ children: [
25285
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
25286
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
25287
+ "path",
25288
+ {
25289
+ fill: "currentColor",
25290
+ fillRule: "evenodd",
25291
+ 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",
25292
+ clipRule: "evenodd"
25293
+ }
25294
+ )
25295
+ ]
25296
+ }
25297
+ ), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
25235
25298
  title,
25236
25299
  titleId,
25237
25300
  ...props
@@ -25282,7 +25345,33 @@ const SvgCommunity = ({
25282
25345
  )
25283
25346
  ]
25284
25347
  }
25285
- ), SvgNewRelease$1 = SvgNewRelease, SvgOneMessaging = ({
25348
+ ), SvgNewRelease$1 = SvgNewRelease, SvgOneAssistance = ({
25349
+ title,
25350
+ titleId,
25351
+ ...props
25352
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
25353
+ "svg",
25354
+ {
25355
+ xmlns: "http://www.w3.org/2000/svg",
25356
+ width: "24",
25357
+ height: "24",
25358
+ fill: "none",
25359
+ viewBox: "0 0 24 24",
25360
+ "aria-hidden": "true",
25361
+ "aria-labelledby": titleId,
25362
+ ...props,
25363
+ children: [
25364
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
25365
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
25366
+ "path",
25367
+ {
25368
+ fill: "currentColor",
25369
+ 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"
25370
+ }
25371
+ )
25372
+ ]
25373
+ }
25374
+ ), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
25286
25375
  title,
25287
25376
  titleId,
25288
25377
  ...props
@@ -25613,11 +25702,11 @@ function getTranslate(el2, axis) {
25613
25702
  function isObject$1(o2) {
25614
25703
  return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
25615
25704
  }
25616
- function isNode(node) {
25705
+ function isNode(node2) {
25617
25706
  if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
25618
- return node instanceof HTMLElement;
25707
+ return node2 instanceof HTMLElement;
25619
25708
  }
25620
- return node && (node.nodeType === 1 || node.nodeType === 11);
25709
+ return node2 && (node2.nodeType === 1 || node2.nodeType === 11);
25621
25710
  }
25622
25711
  function extend$1() {
25623
25712
  const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
@@ -26645,8 +26734,8 @@ function updateSlides() {
26645
26734
  "marginRight": "marginBottom"
26646
26735
  }[property];
26647
26736
  }
26648
- function getDirectionPropertyValue(node, label) {
26649
- return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
26737
+ function getDirectionPropertyValue(node2, label) {
26738
+ return parseFloat(node2.getPropertyValue(getDirectionLabel(label)) || 0);
26650
26739
  }
26651
26740
  const params = swiper.params;
26652
26741
  const {
@@ -30246,7 +30335,7 @@ function isChildSwiperSlide(child) {
30246
30335
  }
30247
30336
  function processChildren(c6) {
30248
30337
  const slides = [];
30249
- React.Children.toArray(c6).forEach((child) => {
30338
+ React$2.Children.toArray(c6).forEach((child) => {
30250
30339
  if (isChildSwiperSlide(child)) {
30251
30340
  slides.push(child);
30252
30341
  } else if (child.props && child.props.children) {
@@ -30263,7 +30352,7 @@ function getChildren(c6) {
30263
30352
  "wrapper-start": [],
30264
30353
  "wrapper-end": []
30265
30354
  };
30266
- React.Children.toArray(c6).forEach((child) => {
30355
+ React$2.Children.toArray(c6).forEach((child) => {
30267
30356
  if (isChildSwiperSlide(child)) {
30268
30357
  slides.push(child);
30269
30358
  } else if (child.props && child.props.slot && slots[child.props.slot]) {
@@ -30314,7 +30403,7 @@ function renderVirtual(swiper, slides, virtualData) {
30314
30403
  }
30315
30404
  }
30316
30405
  return slidesToRender.map((child, index2) => {
30317
- return /* @__PURE__ */ React.cloneElement(child, {
30406
+ return /* @__PURE__ */ React$2.cloneElement(child, {
30318
30407
  swiper,
30319
30408
  style,
30320
30409
  key: `slide-${index2}`
@@ -30474,29 +30563,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
30474
30563
  return renderVirtual(swiperRef.current, slides, virtualData);
30475
30564
  }
30476
30565
  return slides.map((child, index2) => {
30477
- return /* @__PURE__ */ React.cloneElement(child, {
30566
+ return /* @__PURE__ */ React$2.cloneElement(child, {
30478
30567
  swiper: swiperRef.current,
30479
30568
  swiperSlideIndex: index2
30480
30569
  });
30481
30570
  });
30482
30571
  }
30483
- return /* @__PURE__ */ React.createElement(Tag, _extends({
30572
+ return /* @__PURE__ */ React$2.createElement(Tag, _extends({
30484
30573
  ref: swiperElRef,
30485
30574
  className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
30486
- }, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
30575
+ }, restProps), /* @__PURE__ */ React$2.createElement(SwiperContext.Provider, {
30487
30576
  value: swiperRef.current
30488
- }, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
30577
+ }, slots["container-start"], /* @__PURE__ */ React$2.createElement(WrapperTag, {
30489
30578
  className: wrapperClass(swiperParams.wrapperClass)
30490
- }, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
30579
+ }, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", {
30491
30580
  ref: prevElRef,
30492
30581
  className: "swiper-button-prev"
30493
- }), /* @__PURE__ */ React.createElement("div", {
30582
+ }), /* @__PURE__ */ React$2.createElement("div", {
30494
30583
  ref: nextElRef,
30495
30584
  className: "swiper-button-next"
30496
- })), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
30585
+ })), needsScrollbar(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
30497
30586
  ref: scrollbarElRef,
30498
30587
  className: "swiper-scrollbar"
30499
- }), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
30588
+ }), needsPagination(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
30500
30589
  ref: paginationElRef,
30501
30590
  className: "swiper-pagination"
30502
30591
  }), slots["container-end"]));
@@ -30562,25 +30651,2329 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
30562
30651
  const onLoad2 = () => {
30563
30652
  setLazyLoaded(true);
30564
30653
  };
30565
- return /* @__PURE__ */ React.createElement(Tag, _extends({
30654
+ return /* @__PURE__ */ React$2.createElement(Tag, _extends({
30566
30655
  ref: slideElRef,
30567
30656
  className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
30568
30657
  "data-swiper-slide-index": virtualIndex,
30569
30658
  onLoad: onLoad2
30570
- }, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
30659
+ }, rest), zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
30571
30660
  value: slideData
30572
- }, /* @__PURE__ */ React.createElement("div", {
30661
+ }, /* @__PURE__ */ React$2.createElement("div", {
30573
30662
  className: "swiper-zoom-container",
30574
30663
  "data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
30575
- }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
30664
+ }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
30576
30665
  className: "swiper-lazy-preloader"
30577
- }))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
30666
+ }))), !zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
30578
30667
  value: slideData
30579
- }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
30668
+ }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
30580
30669
  className: "swiper-lazy-preloader"
30581
30670
  })));
30582
30671
  });
30583
30672
  SwiperSlide.displayName = "SwiperSlide";
30673
+ var lib$3 = {};
30674
+ var lib$2 = {};
30675
+ (function(exports) {
30676
+ Object.defineProperty(exports, "__esModule", { value: true });
30677
+ exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
30678
+ var ElementType;
30679
+ (function(ElementType2) {
30680
+ ElementType2["Root"] = "root";
30681
+ ElementType2["Text"] = "text";
30682
+ ElementType2["Directive"] = "directive";
30683
+ ElementType2["Comment"] = "comment";
30684
+ ElementType2["Script"] = "script";
30685
+ ElementType2["Style"] = "style";
30686
+ ElementType2["Tag"] = "tag";
30687
+ ElementType2["CDATA"] = "cdata";
30688
+ ElementType2["Doctype"] = "doctype";
30689
+ })(ElementType = exports.ElementType || (exports.ElementType = {}));
30690
+ function isTag2(elem) {
30691
+ return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
30692
+ }
30693
+ exports.isTag = isTag2;
30694
+ exports.Root = ElementType.Root;
30695
+ exports.Text = ElementType.Text;
30696
+ exports.Directive = ElementType.Directive;
30697
+ exports.Comment = ElementType.Comment;
30698
+ exports.Script = ElementType.Script;
30699
+ exports.Style = ElementType.Style;
30700
+ exports.Tag = ElementType.Tag;
30701
+ exports.CDATA = ElementType.CDATA;
30702
+ exports.Doctype = ElementType.Doctype;
30703
+ })(lib$2);
30704
+ var node = {};
30705
+ var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
30706
+ var extendStatics = function(d2, b2) {
30707
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
30708
+ d3.__proto__ = b3;
30709
+ } || function(d3, b3) {
30710
+ for (var p2 in b3)
30711
+ if (Object.prototype.hasOwnProperty.call(b3, p2))
30712
+ d3[p2] = b3[p2];
30713
+ };
30714
+ return extendStatics(d2, b2);
30715
+ };
30716
+ return function(d2, b2) {
30717
+ if (typeof b2 !== "function" && b2 !== null)
30718
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
30719
+ extendStatics(d2, b2);
30720
+ function __() {
30721
+ this.constructor = d2;
30722
+ }
30723
+ d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
30724
+ };
30725
+ }();
30726
+ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
30727
+ __assign = Object.assign || function(t2) {
30728
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
30729
+ s2 = arguments[i2];
30730
+ for (var p2 in s2)
30731
+ if (Object.prototype.hasOwnProperty.call(s2, p2))
30732
+ t2[p2] = s2[p2];
30733
+ }
30734
+ return t2;
30735
+ };
30736
+ return __assign.apply(this, arguments);
30737
+ };
30738
+ Object.defineProperty(node, "__esModule", { value: true });
30739
+ 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;
30740
+ var domelementtype_1 = lib$2;
30741
+ var Node$2 = (
30742
+ /** @class */
30743
+ function() {
30744
+ function Node2() {
30745
+ this.parent = null;
30746
+ this.prev = null;
30747
+ this.next = null;
30748
+ this.startIndex = null;
30749
+ this.endIndex = null;
30750
+ }
30751
+ Object.defineProperty(Node2.prototype, "parentNode", {
30752
+ // Read-write aliases for properties
30753
+ /**
30754
+ * Same as {@link parent}.
30755
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
30756
+ */
30757
+ get: function() {
30758
+ return this.parent;
30759
+ },
30760
+ set: function(parent) {
30761
+ this.parent = parent;
30762
+ },
30763
+ enumerable: false,
30764
+ configurable: true
30765
+ });
30766
+ Object.defineProperty(Node2.prototype, "previousSibling", {
30767
+ /**
30768
+ * Same as {@link prev}.
30769
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
30770
+ */
30771
+ get: function() {
30772
+ return this.prev;
30773
+ },
30774
+ set: function(prev) {
30775
+ this.prev = prev;
30776
+ },
30777
+ enumerable: false,
30778
+ configurable: true
30779
+ });
30780
+ Object.defineProperty(Node2.prototype, "nextSibling", {
30781
+ /**
30782
+ * Same as {@link next}.
30783
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
30784
+ */
30785
+ get: function() {
30786
+ return this.next;
30787
+ },
30788
+ set: function(next) {
30789
+ this.next = next;
30790
+ },
30791
+ enumerable: false,
30792
+ configurable: true
30793
+ });
30794
+ Node2.prototype.cloneNode = function(recursive) {
30795
+ if (recursive === void 0) {
30796
+ recursive = false;
30797
+ }
30798
+ return cloneNode(this, recursive);
30799
+ };
30800
+ return Node2;
30801
+ }()
30802
+ );
30803
+ node.Node = Node$2;
30804
+ var DataNode = (
30805
+ /** @class */
30806
+ function(_super) {
30807
+ __extends(DataNode2, _super);
30808
+ function DataNode2(data) {
30809
+ var _this = _super.call(this) || this;
30810
+ _this.data = data;
30811
+ return _this;
30812
+ }
30813
+ Object.defineProperty(DataNode2.prototype, "nodeValue", {
30814
+ /**
30815
+ * Same as {@link data}.
30816
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
30817
+ */
30818
+ get: function() {
30819
+ return this.data;
30820
+ },
30821
+ set: function(data) {
30822
+ this.data = data;
30823
+ },
30824
+ enumerable: false,
30825
+ configurable: true
30826
+ });
30827
+ return DataNode2;
30828
+ }(Node$2)
30829
+ );
30830
+ node.DataNode = DataNode;
30831
+ var Text$2 = (
30832
+ /** @class */
30833
+ function(_super) {
30834
+ __extends(Text2, _super);
30835
+ function Text2() {
30836
+ var _this = _super !== null && _super.apply(this, arguments) || this;
30837
+ _this.type = domelementtype_1.ElementType.Text;
30838
+ return _this;
30839
+ }
30840
+ Object.defineProperty(Text2.prototype, "nodeType", {
30841
+ get: function() {
30842
+ return 3;
30843
+ },
30844
+ enumerable: false,
30845
+ configurable: true
30846
+ });
30847
+ return Text2;
30848
+ }(DataNode)
30849
+ );
30850
+ node.Text = Text$2;
30851
+ var Comment$1 = (
30852
+ /** @class */
30853
+ function(_super) {
30854
+ __extends(Comment2, _super);
30855
+ function Comment2() {
30856
+ var _this = _super !== null && _super.apply(this, arguments) || this;
30857
+ _this.type = domelementtype_1.ElementType.Comment;
30858
+ return _this;
30859
+ }
30860
+ Object.defineProperty(Comment2.prototype, "nodeType", {
30861
+ get: function() {
30862
+ return 8;
30863
+ },
30864
+ enumerable: false,
30865
+ configurable: true
30866
+ });
30867
+ return Comment2;
30868
+ }(DataNode)
30869
+ );
30870
+ node.Comment = Comment$1;
30871
+ var ProcessingInstruction$1 = (
30872
+ /** @class */
30873
+ function(_super) {
30874
+ __extends(ProcessingInstruction2, _super);
30875
+ function ProcessingInstruction2(name, data) {
30876
+ var _this = _super.call(this, data) || this;
30877
+ _this.name = name;
30878
+ _this.type = domelementtype_1.ElementType.Directive;
30879
+ return _this;
30880
+ }
30881
+ Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
30882
+ get: function() {
30883
+ return 1;
30884
+ },
30885
+ enumerable: false,
30886
+ configurable: true
30887
+ });
30888
+ return ProcessingInstruction2;
30889
+ }(DataNode)
30890
+ );
30891
+ node.ProcessingInstruction = ProcessingInstruction$1;
30892
+ var NodeWithChildren = (
30893
+ /** @class */
30894
+ function(_super) {
30895
+ __extends(NodeWithChildren2, _super);
30896
+ function NodeWithChildren2(children) {
30897
+ var _this = _super.call(this) || this;
30898
+ _this.children = children;
30899
+ return _this;
30900
+ }
30901
+ Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
30902
+ // Aliases
30903
+ /** First child of the node. */
30904
+ get: function() {
30905
+ var _a2;
30906
+ return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
30907
+ },
30908
+ enumerable: false,
30909
+ configurable: true
30910
+ });
30911
+ Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
30912
+ /** Last child of the node. */
30913
+ get: function() {
30914
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
30915
+ },
30916
+ enumerable: false,
30917
+ configurable: true
30918
+ });
30919
+ Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
30920
+ /**
30921
+ * Same as {@link children}.
30922
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
30923
+ */
30924
+ get: function() {
30925
+ return this.children;
30926
+ },
30927
+ set: function(children) {
30928
+ this.children = children;
30929
+ },
30930
+ enumerable: false,
30931
+ configurable: true
30932
+ });
30933
+ return NodeWithChildren2;
30934
+ }(Node$2)
30935
+ );
30936
+ node.NodeWithChildren = NodeWithChildren;
30937
+ var CDATA = (
30938
+ /** @class */
30939
+ function(_super) {
30940
+ __extends(CDATA2, _super);
30941
+ function CDATA2() {
30942
+ var _this = _super !== null && _super.apply(this, arguments) || this;
30943
+ _this.type = domelementtype_1.ElementType.CDATA;
30944
+ return _this;
30945
+ }
30946
+ Object.defineProperty(CDATA2.prototype, "nodeType", {
30947
+ get: function() {
30948
+ return 4;
30949
+ },
30950
+ enumerable: false,
30951
+ configurable: true
30952
+ });
30953
+ return CDATA2;
30954
+ }(NodeWithChildren)
30955
+ );
30956
+ node.CDATA = CDATA;
30957
+ var Document = (
30958
+ /** @class */
30959
+ function(_super) {
30960
+ __extends(Document2, _super);
30961
+ function Document2() {
30962
+ var _this = _super !== null && _super.apply(this, arguments) || this;
30963
+ _this.type = domelementtype_1.ElementType.Root;
30964
+ return _this;
30965
+ }
30966
+ Object.defineProperty(Document2.prototype, "nodeType", {
30967
+ get: function() {
30968
+ return 9;
30969
+ },
30970
+ enumerable: false,
30971
+ configurable: true
30972
+ });
30973
+ return Document2;
30974
+ }(NodeWithChildren)
30975
+ );
30976
+ node.Document = Document;
30977
+ var Element$2 = (
30978
+ /** @class */
30979
+ function(_super) {
30980
+ __extends(Element2, _super);
30981
+ function Element2(name, attribs, children, type2) {
30982
+ if (children === void 0) {
30983
+ children = [];
30984
+ }
30985
+ if (type2 === void 0) {
30986
+ type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
30987
+ }
30988
+ var _this = _super.call(this, children) || this;
30989
+ _this.name = name;
30990
+ _this.attribs = attribs;
30991
+ _this.type = type2;
30992
+ return _this;
30993
+ }
30994
+ Object.defineProperty(Element2.prototype, "nodeType", {
30995
+ get: function() {
30996
+ return 1;
30997
+ },
30998
+ enumerable: false,
30999
+ configurable: true
31000
+ });
31001
+ Object.defineProperty(Element2.prototype, "tagName", {
31002
+ // DOM Level 1 aliases
31003
+ /**
31004
+ * Same as {@link name}.
31005
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
31006
+ */
31007
+ get: function() {
31008
+ return this.name;
31009
+ },
31010
+ set: function(name) {
31011
+ this.name = name;
31012
+ },
31013
+ enumerable: false,
31014
+ configurable: true
31015
+ });
31016
+ Object.defineProperty(Element2.prototype, "attributes", {
31017
+ get: function() {
31018
+ var _this = this;
31019
+ return Object.keys(this.attribs).map(function(name) {
31020
+ var _a2, _b2;
31021
+ return {
31022
+ name,
31023
+ value: _this.attribs[name],
31024
+ namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
31025
+ prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
31026
+ };
31027
+ });
31028
+ },
31029
+ enumerable: false,
31030
+ configurable: true
31031
+ });
31032
+ return Element2;
31033
+ }(NodeWithChildren)
31034
+ );
31035
+ node.Element = Element$2;
31036
+ function isTag(node2) {
31037
+ return (0, domelementtype_1.isTag)(node2);
31038
+ }
31039
+ node.isTag = isTag;
31040
+ function isCDATA(node2) {
31041
+ return node2.type === domelementtype_1.ElementType.CDATA;
31042
+ }
31043
+ node.isCDATA = isCDATA;
31044
+ function isText(node2) {
31045
+ return node2.type === domelementtype_1.ElementType.Text;
31046
+ }
31047
+ node.isText = isText;
31048
+ function isComment(node2) {
31049
+ return node2.type === domelementtype_1.ElementType.Comment;
31050
+ }
31051
+ node.isComment = isComment;
31052
+ function isDirective(node2) {
31053
+ return node2.type === domelementtype_1.ElementType.Directive;
31054
+ }
31055
+ node.isDirective = isDirective;
31056
+ function isDocument(node2) {
31057
+ return node2.type === domelementtype_1.ElementType.Root;
31058
+ }
31059
+ node.isDocument = isDocument;
31060
+ function hasChildren$1(node2) {
31061
+ return Object.prototype.hasOwnProperty.call(node2, "children");
31062
+ }
31063
+ node.hasChildren = hasChildren$1;
31064
+ function cloneNode(node2, recursive) {
31065
+ if (recursive === void 0) {
31066
+ recursive = false;
31067
+ }
31068
+ var result;
31069
+ if (isText(node2)) {
31070
+ result = new Text$2(node2.data);
31071
+ } else if (isComment(node2)) {
31072
+ result = new Comment$1(node2.data);
31073
+ } else if (isTag(node2)) {
31074
+ var children = recursive ? cloneChildren(node2.children) : [];
31075
+ var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
31076
+ children.forEach(function(child) {
31077
+ return child.parent = clone_1;
31078
+ });
31079
+ if (node2.namespace != null) {
31080
+ clone_1.namespace = node2.namespace;
31081
+ }
31082
+ if (node2["x-attribsNamespace"]) {
31083
+ clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
31084
+ }
31085
+ if (node2["x-attribsPrefix"]) {
31086
+ clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
31087
+ }
31088
+ result = clone_1;
31089
+ } else if (isCDATA(node2)) {
31090
+ var children = recursive ? cloneChildren(node2.children) : [];
31091
+ var clone_2 = new CDATA(children);
31092
+ children.forEach(function(child) {
31093
+ return child.parent = clone_2;
31094
+ });
31095
+ result = clone_2;
31096
+ } else if (isDocument(node2)) {
31097
+ var children = recursive ? cloneChildren(node2.children) : [];
31098
+ var clone_3 = new Document(children);
31099
+ children.forEach(function(child) {
31100
+ return child.parent = clone_3;
31101
+ });
31102
+ if (node2["x-mode"]) {
31103
+ clone_3["x-mode"] = node2["x-mode"];
31104
+ }
31105
+ result = clone_3;
31106
+ } else if (isDirective(node2)) {
31107
+ var instruction = new ProcessingInstruction$1(node2.name, node2.data);
31108
+ if (node2["x-name"] != null) {
31109
+ instruction["x-name"] = node2["x-name"];
31110
+ instruction["x-publicId"] = node2["x-publicId"];
31111
+ instruction["x-systemId"] = node2["x-systemId"];
31112
+ }
31113
+ result = instruction;
31114
+ } else {
31115
+ throw new Error("Not implemented yet: ".concat(node2.type));
31116
+ }
31117
+ result.startIndex = node2.startIndex;
31118
+ result.endIndex = node2.endIndex;
31119
+ if (node2.sourceCodeLocation != null) {
31120
+ result.sourceCodeLocation = node2.sourceCodeLocation;
31121
+ }
31122
+ return result;
31123
+ }
31124
+ node.cloneNode = cloneNode;
31125
+ function cloneChildren(childs) {
31126
+ var children = childs.map(function(child) {
31127
+ return cloneNode(child, true);
31128
+ });
31129
+ for (var i2 = 1; i2 < children.length; i2++) {
31130
+ children[i2].prev = children[i2 - 1];
31131
+ children[i2 - 1].next = children[i2];
31132
+ }
31133
+ return children;
31134
+ }
31135
+ (function(exports) {
31136
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
31137
+ if (k22 === void 0)
31138
+ k22 = k2;
31139
+ var desc = Object.getOwnPropertyDescriptor(m2, k2);
31140
+ if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
31141
+ desc = { enumerable: true, get: function() {
31142
+ return m2[k2];
31143
+ } };
31144
+ }
31145
+ Object.defineProperty(o2, k22, desc);
31146
+ } : function(o2, m2, k2, k22) {
31147
+ if (k22 === void 0)
31148
+ k22 = k2;
31149
+ o2[k22] = m2[k2];
31150
+ });
31151
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
31152
+ for (var p2 in m2)
31153
+ if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
31154
+ __createBinding(exports2, m2, p2);
31155
+ };
31156
+ Object.defineProperty(exports, "__esModule", { value: true });
31157
+ exports.DomHandler = void 0;
31158
+ var domelementtype_12 = lib$2;
31159
+ var node_js_1 = node;
31160
+ __exportStar(node, exports);
31161
+ var defaultOpts = {
31162
+ withStartIndices: false,
31163
+ withEndIndices: false,
31164
+ xmlMode: false
31165
+ };
31166
+ var DomHandler = (
31167
+ /** @class */
31168
+ function() {
31169
+ function DomHandler2(callback, options, elementCB) {
31170
+ this.dom = [];
31171
+ this.root = new node_js_1.Document(this.dom);
31172
+ this.done = false;
31173
+ this.tagStack = [this.root];
31174
+ this.lastNode = null;
31175
+ this.parser = null;
31176
+ if (typeof options === "function") {
31177
+ elementCB = options;
31178
+ options = defaultOpts;
31179
+ }
31180
+ if (typeof callback === "object") {
31181
+ options = callback;
31182
+ callback = void 0;
31183
+ }
31184
+ this.callback = callback !== null && callback !== void 0 ? callback : null;
31185
+ this.options = options !== null && options !== void 0 ? options : defaultOpts;
31186
+ this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
31187
+ }
31188
+ DomHandler2.prototype.onparserinit = function(parser) {
31189
+ this.parser = parser;
31190
+ };
31191
+ DomHandler2.prototype.onreset = function() {
31192
+ this.dom = [];
31193
+ this.root = new node_js_1.Document(this.dom);
31194
+ this.done = false;
31195
+ this.tagStack = [this.root];
31196
+ this.lastNode = null;
31197
+ this.parser = null;
31198
+ };
31199
+ DomHandler2.prototype.onend = function() {
31200
+ if (this.done)
31201
+ return;
31202
+ this.done = true;
31203
+ this.parser = null;
31204
+ this.handleCallback(null);
31205
+ };
31206
+ DomHandler2.prototype.onerror = function(error) {
31207
+ this.handleCallback(error);
31208
+ };
31209
+ DomHandler2.prototype.onclosetag = function() {
31210
+ this.lastNode = null;
31211
+ var elem = this.tagStack.pop();
31212
+ if (this.options.withEndIndices) {
31213
+ elem.endIndex = this.parser.endIndex;
31214
+ }
31215
+ if (this.elementCB)
31216
+ this.elementCB(elem);
31217
+ };
31218
+ DomHandler2.prototype.onopentag = function(name, attribs) {
31219
+ var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
31220
+ var element = new node_js_1.Element(name, attribs, void 0, type2);
31221
+ this.addNode(element);
31222
+ this.tagStack.push(element);
31223
+ };
31224
+ DomHandler2.prototype.ontext = function(data) {
31225
+ var lastNode = this.lastNode;
31226
+ if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
31227
+ lastNode.data += data;
31228
+ if (this.options.withEndIndices) {
31229
+ lastNode.endIndex = this.parser.endIndex;
31230
+ }
31231
+ } else {
31232
+ var node2 = new node_js_1.Text(data);
31233
+ this.addNode(node2);
31234
+ this.lastNode = node2;
31235
+ }
31236
+ };
31237
+ DomHandler2.prototype.oncomment = function(data) {
31238
+ if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
31239
+ this.lastNode.data += data;
31240
+ return;
31241
+ }
31242
+ var node2 = new node_js_1.Comment(data);
31243
+ this.addNode(node2);
31244
+ this.lastNode = node2;
31245
+ };
31246
+ DomHandler2.prototype.oncommentend = function() {
31247
+ this.lastNode = null;
31248
+ };
31249
+ DomHandler2.prototype.oncdatastart = function() {
31250
+ var text = new node_js_1.Text("");
31251
+ var node2 = new node_js_1.CDATA([text]);
31252
+ this.addNode(node2);
31253
+ text.parent = node2;
31254
+ this.lastNode = text;
31255
+ };
31256
+ DomHandler2.prototype.oncdataend = function() {
31257
+ this.lastNode = null;
31258
+ };
31259
+ DomHandler2.prototype.onprocessinginstruction = function(name, data) {
31260
+ var node2 = new node_js_1.ProcessingInstruction(name, data);
31261
+ this.addNode(node2);
31262
+ };
31263
+ DomHandler2.prototype.handleCallback = function(error) {
31264
+ if (typeof this.callback === "function") {
31265
+ this.callback(error, this.dom);
31266
+ } else if (error) {
31267
+ throw error;
31268
+ }
31269
+ };
31270
+ DomHandler2.prototype.addNode = function(node2) {
31271
+ var parent = this.tagStack[this.tagStack.length - 1];
31272
+ var previousSibling = parent.children[parent.children.length - 1];
31273
+ if (this.options.withStartIndices) {
31274
+ node2.startIndex = this.parser.startIndex;
31275
+ }
31276
+ if (this.options.withEndIndices) {
31277
+ node2.endIndex = this.parser.endIndex;
31278
+ }
31279
+ parent.children.push(node2);
31280
+ if (previousSibling) {
31281
+ node2.prev = previousSibling;
31282
+ previousSibling.next = node2;
31283
+ }
31284
+ node2.parent = parent;
31285
+ this.lastNode = null;
31286
+ };
31287
+ return DomHandler2;
31288
+ }()
31289
+ );
31290
+ exports.DomHandler = DomHandler;
31291
+ exports.default = DomHandler;
31292
+ })(lib$3);
31293
+ var HTML = "html";
31294
+ var HEAD$1 = "head";
31295
+ var BODY = "body";
31296
+ var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
31297
+ var HEAD_TAG_REGEX = /<head[^]*>/i;
31298
+ var BODY_TAG_REGEX = /<body[^]*>/i;
31299
+ var parseFromDocument = function() {
31300
+ throw new Error(
31301
+ "This browser does not support `document.implementation.createHTMLDocument`"
31302
+ );
31303
+ };
31304
+ var parseFromString = function() {
31305
+ throw new Error(
31306
+ "This browser does not support `DOMParser.prototype.parseFromString`"
31307
+ );
31308
+ };
31309
+ var DOMParser$1 = typeof window === "object" && window.DOMParser;
31310
+ if (typeof DOMParser$1 === "function") {
31311
+ var domParser = new DOMParser$1();
31312
+ var mimeType = "text/html";
31313
+ parseFromString = function(html, tagName2) {
31314
+ if (tagName2) {
31315
+ html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
31316
+ }
31317
+ return domParser.parseFromString(html, mimeType);
31318
+ };
31319
+ parseFromDocument = parseFromString;
31320
+ }
31321
+ if (typeof document === "object" && document.implementation) {
31322
+ var doc = document.implementation.createHTMLDocument();
31323
+ parseFromDocument = function(html, tagName2) {
31324
+ if (tagName2) {
31325
+ var element = doc.documentElement.querySelector(tagName2);
31326
+ element.innerHTML = html;
31327
+ return doc;
31328
+ }
31329
+ doc.documentElement.innerHTML = html;
31330
+ return doc;
31331
+ };
31332
+ }
31333
+ var template = typeof document === "object" ? document.createElement("template") : {};
31334
+ var parseFromTemplate;
31335
+ if (template.content) {
31336
+ parseFromTemplate = function(html) {
31337
+ template.innerHTML = html;
31338
+ return template.content.childNodes;
31339
+ };
31340
+ }
31341
+ function domparser$1(html) {
31342
+ var firstTagName;
31343
+ var match = html.match(FIRST_TAG_REGEX);
31344
+ if (match && match[1]) {
31345
+ firstTagName = match[1].toLowerCase();
31346
+ }
31347
+ var doc;
31348
+ var element;
31349
+ var elements;
31350
+ switch (firstTagName) {
31351
+ case HTML:
31352
+ doc = parseFromString(html);
31353
+ if (!HEAD_TAG_REGEX.test(html)) {
31354
+ element = doc.querySelector(HEAD$1);
31355
+ if (element) {
31356
+ element.parentNode.removeChild(element);
31357
+ }
31358
+ }
31359
+ if (!BODY_TAG_REGEX.test(html)) {
31360
+ element = doc.querySelector(BODY);
31361
+ if (element) {
31362
+ element.parentNode.removeChild(element);
31363
+ }
31364
+ }
31365
+ return doc.querySelectorAll(HTML);
31366
+ case HEAD$1:
31367
+ case BODY:
31368
+ doc = parseFromDocument(html);
31369
+ elements = doc.querySelectorAll(firstTagName);
31370
+ if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
31371
+ return elements[0].parentNode.childNodes;
31372
+ }
31373
+ return elements;
31374
+ default:
31375
+ if (parseFromTemplate) {
31376
+ return parseFromTemplate(html);
31377
+ }
31378
+ element = parseFromDocument(html, BODY).querySelector(BODY);
31379
+ return element.childNodes;
31380
+ }
31381
+ }
31382
+ var domparser_1 = domparser$1;
31383
+ var utilities$5 = {};
31384
+ var constants$1 = {};
31385
+ constants$1.CASE_SENSITIVE_TAG_NAMES = [
31386
+ "animateMotion",
31387
+ "animateTransform",
31388
+ "clipPath",
31389
+ "feBlend",
31390
+ "feColorMatrix",
31391
+ "feComponentTransfer",
31392
+ "feComposite",
31393
+ "feConvolveMatrix",
31394
+ "feDiffuseLighting",
31395
+ "feDisplacementMap",
31396
+ "feDropShadow",
31397
+ "feFlood",
31398
+ "feFuncA",
31399
+ "feFuncB",
31400
+ "feFuncG",
31401
+ "feFuncR",
31402
+ "feGaussianBlur",
31403
+ "feImage",
31404
+ "feMerge",
31405
+ "feMergeNode",
31406
+ "feMorphology",
31407
+ "feOffset",
31408
+ "fePointLight",
31409
+ "feSpecularLighting",
31410
+ "feSpotLight",
31411
+ "feTile",
31412
+ "feTurbulence",
31413
+ "foreignObject",
31414
+ "linearGradient",
31415
+ "radialGradient",
31416
+ "textPath"
31417
+ ];
31418
+ var domhandler$1 = lib$3;
31419
+ var constants = constants$1;
31420
+ var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
31421
+ var Comment = domhandler$1.Comment;
31422
+ var Element$1 = domhandler$1.Element;
31423
+ var ProcessingInstruction = domhandler$1.ProcessingInstruction;
31424
+ var Text$1 = domhandler$1.Text;
31425
+ var caseSensitiveTagNamesMap = {};
31426
+ var tagName;
31427
+ for (var i$1 = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i$1 < len; i$1++) {
31428
+ tagName = CASE_SENSITIVE_TAG_NAMES[i$1];
31429
+ caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
31430
+ }
31431
+ function getCaseSensitiveTagName(tagName2) {
31432
+ return caseSensitiveTagNamesMap[tagName2];
31433
+ }
31434
+ function formatAttributes(attributes) {
31435
+ var result = {};
31436
+ var attribute;
31437
+ for (var i2 = 0, len = attributes.length; i2 < len; i2++) {
31438
+ attribute = attributes[i2];
31439
+ result[attribute.name] = attribute.value;
31440
+ }
31441
+ return result;
31442
+ }
31443
+ function formatTagName(tagName2) {
31444
+ tagName2 = tagName2.toLowerCase();
31445
+ var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
31446
+ if (caseSensitiveTagName) {
31447
+ return caseSensitiveTagName;
31448
+ }
31449
+ return tagName2;
31450
+ }
31451
+ function formatDOM$1(nodes, parent, directive) {
31452
+ parent = parent || null;
31453
+ var result = [];
31454
+ var tagName2;
31455
+ for (var index2 = 0, len = nodes.length; index2 < len; index2++) {
31456
+ var node2 = nodes[index2];
31457
+ var current;
31458
+ switch (node2.nodeType) {
31459
+ case 1:
31460
+ tagName2 = formatTagName(node2.nodeName);
31461
+ current = new Element$1(tagName2, formatAttributes(node2.attributes));
31462
+ current.children = formatDOM$1(
31463
+ // template children are on content
31464
+ tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
31465
+ current
31466
+ );
31467
+ break;
31468
+ case 3:
31469
+ current = new Text$1(node2.nodeValue);
31470
+ break;
31471
+ case 8:
31472
+ current = new Comment(node2.nodeValue);
31473
+ break;
31474
+ default:
31475
+ continue;
31476
+ }
31477
+ var prev = result[index2 - 1] || null;
31478
+ if (prev) {
31479
+ prev.next = current;
31480
+ }
31481
+ current.parent = parent;
31482
+ current.prev = prev;
31483
+ current.next = null;
31484
+ result.push(current);
31485
+ }
31486
+ if (directive) {
31487
+ current = new ProcessingInstruction(
31488
+ directive.substring(0, directive.indexOf(" ")).toLowerCase(),
31489
+ directive
31490
+ );
31491
+ current.next = result[0] || null;
31492
+ current.parent = parent;
31493
+ result.unshift(current);
31494
+ if (result[1]) {
31495
+ result[1].prev = result[0];
31496
+ }
31497
+ }
31498
+ return result;
31499
+ }
31500
+ utilities$5.formatAttributes = formatAttributes;
31501
+ utilities$5.formatDOM = formatDOM$1;
31502
+ var domparser = domparser_1;
31503
+ var utilities$4 = utilities$5;
31504
+ var formatDOM = utilities$4.formatDOM;
31505
+ var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
31506
+ function HTMLDOMParser(html) {
31507
+ if (typeof html !== "string") {
31508
+ throw new TypeError("First argument must be a string");
31509
+ }
31510
+ if (html === "") {
31511
+ return [];
31512
+ }
31513
+ var match = html.match(DIRECTIVE_REGEX);
31514
+ var directive;
31515
+ if (match && match[1]) {
31516
+ directive = match[1];
31517
+ }
31518
+ return formatDOM(domparser(html), null, directive);
31519
+ }
31520
+ var htmlToDom = HTMLDOMParser;
31521
+ var lib$1 = {};
31522
+ var possibleStandardNamesOptimized$1 = {};
31523
+ var SAME$1 = 0;
31524
+ possibleStandardNamesOptimized$1.SAME = SAME$1;
31525
+ var CAMELCASE$1 = 1;
31526
+ possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
31527
+ possibleStandardNamesOptimized$1.possibleStandardNames = {
31528
+ accept: 0,
31529
+ acceptCharset: 1,
31530
+ "accept-charset": "acceptCharset",
31531
+ accessKey: 1,
31532
+ action: 0,
31533
+ allowFullScreen: 1,
31534
+ alt: 0,
31535
+ as: 0,
31536
+ async: 0,
31537
+ autoCapitalize: 1,
31538
+ autoComplete: 1,
31539
+ autoCorrect: 1,
31540
+ autoFocus: 1,
31541
+ autoPlay: 1,
31542
+ autoSave: 1,
31543
+ capture: 0,
31544
+ cellPadding: 1,
31545
+ cellSpacing: 1,
31546
+ challenge: 0,
31547
+ charSet: 1,
31548
+ checked: 0,
31549
+ children: 0,
31550
+ cite: 0,
31551
+ class: "className",
31552
+ classID: 1,
31553
+ className: 1,
31554
+ cols: 0,
31555
+ colSpan: 1,
31556
+ content: 0,
31557
+ contentEditable: 1,
31558
+ contextMenu: 1,
31559
+ controls: 0,
31560
+ controlsList: 1,
31561
+ coords: 0,
31562
+ crossOrigin: 1,
31563
+ dangerouslySetInnerHTML: 1,
31564
+ data: 0,
31565
+ dateTime: 1,
31566
+ default: 0,
31567
+ defaultChecked: 1,
31568
+ defaultValue: 1,
31569
+ defer: 0,
31570
+ dir: 0,
31571
+ disabled: 0,
31572
+ disablePictureInPicture: 1,
31573
+ disableRemotePlayback: 1,
31574
+ download: 0,
31575
+ draggable: 0,
31576
+ encType: 1,
31577
+ enterKeyHint: 1,
31578
+ for: "htmlFor",
31579
+ form: 0,
31580
+ formMethod: 1,
31581
+ formAction: 1,
31582
+ formEncType: 1,
31583
+ formNoValidate: 1,
31584
+ formTarget: 1,
31585
+ frameBorder: 1,
31586
+ headers: 0,
31587
+ height: 0,
31588
+ hidden: 0,
31589
+ high: 0,
31590
+ href: 0,
31591
+ hrefLang: 1,
31592
+ htmlFor: 1,
31593
+ httpEquiv: 1,
31594
+ "http-equiv": "httpEquiv",
31595
+ icon: 0,
31596
+ id: 0,
31597
+ innerHTML: 1,
31598
+ inputMode: 1,
31599
+ integrity: 0,
31600
+ is: 0,
31601
+ itemID: 1,
31602
+ itemProp: 1,
31603
+ itemRef: 1,
31604
+ itemScope: 1,
31605
+ itemType: 1,
31606
+ keyParams: 1,
31607
+ keyType: 1,
31608
+ kind: 0,
31609
+ label: 0,
31610
+ lang: 0,
31611
+ list: 0,
31612
+ loop: 0,
31613
+ low: 0,
31614
+ manifest: 0,
31615
+ marginWidth: 1,
31616
+ marginHeight: 1,
31617
+ max: 0,
31618
+ maxLength: 1,
31619
+ media: 0,
31620
+ mediaGroup: 1,
31621
+ method: 0,
31622
+ min: 0,
31623
+ minLength: 1,
31624
+ multiple: 0,
31625
+ muted: 0,
31626
+ name: 0,
31627
+ noModule: 1,
31628
+ nonce: 0,
31629
+ noValidate: 1,
31630
+ open: 0,
31631
+ optimum: 0,
31632
+ pattern: 0,
31633
+ placeholder: 0,
31634
+ playsInline: 1,
31635
+ poster: 0,
31636
+ preload: 0,
31637
+ profile: 0,
31638
+ radioGroup: 1,
31639
+ readOnly: 1,
31640
+ referrerPolicy: 1,
31641
+ rel: 0,
31642
+ required: 0,
31643
+ reversed: 0,
31644
+ role: 0,
31645
+ rows: 0,
31646
+ rowSpan: 1,
31647
+ sandbox: 0,
31648
+ scope: 0,
31649
+ scoped: 0,
31650
+ scrolling: 0,
31651
+ seamless: 0,
31652
+ selected: 0,
31653
+ shape: 0,
31654
+ size: 0,
31655
+ sizes: 0,
31656
+ span: 0,
31657
+ spellCheck: 1,
31658
+ src: 0,
31659
+ srcDoc: 1,
31660
+ srcLang: 1,
31661
+ srcSet: 1,
31662
+ start: 0,
31663
+ step: 0,
31664
+ style: 0,
31665
+ summary: 0,
31666
+ tabIndex: 1,
31667
+ target: 0,
31668
+ title: 0,
31669
+ type: 0,
31670
+ useMap: 1,
31671
+ value: 0,
31672
+ width: 0,
31673
+ wmode: 0,
31674
+ wrap: 0,
31675
+ about: 0,
31676
+ accentHeight: 1,
31677
+ "accent-height": "accentHeight",
31678
+ accumulate: 0,
31679
+ additive: 0,
31680
+ alignmentBaseline: 1,
31681
+ "alignment-baseline": "alignmentBaseline",
31682
+ allowReorder: 1,
31683
+ alphabetic: 0,
31684
+ amplitude: 0,
31685
+ arabicForm: 1,
31686
+ "arabic-form": "arabicForm",
31687
+ ascent: 0,
31688
+ attributeName: 1,
31689
+ attributeType: 1,
31690
+ autoReverse: 1,
31691
+ azimuth: 0,
31692
+ baseFrequency: 1,
31693
+ baselineShift: 1,
31694
+ "baseline-shift": "baselineShift",
31695
+ baseProfile: 1,
31696
+ bbox: 0,
31697
+ begin: 0,
31698
+ bias: 0,
31699
+ by: 0,
31700
+ calcMode: 1,
31701
+ capHeight: 1,
31702
+ "cap-height": "capHeight",
31703
+ clip: 0,
31704
+ clipPath: 1,
31705
+ "clip-path": "clipPath",
31706
+ clipPathUnits: 1,
31707
+ clipRule: 1,
31708
+ "clip-rule": "clipRule",
31709
+ color: 0,
31710
+ colorInterpolation: 1,
31711
+ "color-interpolation": "colorInterpolation",
31712
+ colorInterpolationFilters: 1,
31713
+ "color-interpolation-filters": "colorInterpolationFilters",
31714
+ colorProfile: 1,
31715
+ "color-profile": "colorProfile",
31716
+ colorRendering: 1,
31717
+ "color-rendering": "colorRendering",
31718
+ contentScriptType: 1,
31719
+ contentStyleType: 1,
31720
+ cursor: 0,
31721
+ cx: 0,
31722
+ cy: 0,
31723
+ d: 0,
31724
+ datatype: 0,
31725
+ decelerate: 0,
31726
+ descent: 0,
31727
+ diffuseConstant: 1,
31728
+ direction: 0,
31729
+ display: 0,
31730
+ divisor: 0,
31731
+ dominantBaseline: 1,
31732
+ "dominant-baseline": "dominantBaseline",
31733
+ dur: 0,
31734
+ dx: 0,
31735
+ dy: 0,
31736
+ edgeMode: 1,
31737
+ elevation: 0,
31738
+ enableBackground: 1,
31739
+ "enable-background": "enableBackground",
31740
+ end: 0,
31741
+ exponent: 0,
31742
+ externalResourcesRequired: 1,
31743
+ fill: 0,
31744
+ fillOpacity: 1,
31745
+ "fill-opacity": "fillOpacity",
31746
+ fillRule: 1,
31747
+ "fill-rule": "fillRule",
31748
+ filter: 0,
31749
+ filterRes: 1,
31750
+ filterUnits: 1,
31751
+ floodOpacity: 1,
31752
+ "flood-opacity": "floodOpacity",
31753
+ floodColor: 1,
31754
+ "flood-color": "floodColor",
31755
+ focusable: 0,
31756
+ fontFamily: 1,
31757
+ "font-family": "fontFamily",
31758
+ fontSize: 1,
31759
+ "font-size": "fontSize",
31760
+ fontSizeAdjust: 1,
31761
+ "font-size-adjust": "fontSizeAdjust",
31762
+ fontStretch: 1,
31763
+ "font-stretch": "fontStretch",
31764
+ fontStyle: 1,
31765
+ "font-style": "fontStyle",
31766
+ fontVariant: 1,
31767
+ "font-variant": "fontVariant",
31768
+ fontWeight: 1,
31769
+ "font-weight": "fontWeight",
31770
+ format: 0,
31771
+ from: 0,
31772
+ fx: 0,
31773
+ fy: 0,
31774
+ g1: 0,
31775
+ g2: 0,
31776
+ glyphName: 1,
31777
+ "glyph-name": "glyphName",
31778
+ glyphOrientationHorizontal: 1,
31779
+ "glyph-orientation-horizontal": "glyphOrientationHorizontal",
31780
+ glyphOrientationVertical: 1,
31781
+ "glyph-orientation-vertical": "glyphOrientationVertical",
31782
+ glyphRef: 1,
31783
+ gradientTransform: 1,
31784
+ gradientUnits: 1,
31785
+ hanging: 0,
31786
+ horizAdvX: 1,
31787
+ "horiz-adv-x": "horizAdvX",
31788
+ horizOriginX: 1,
31789
+ "horiz-origin-x": "horizOriginX",
31790
+ ideographic: 0,
31791
+ imageRendering: 1,
31792
+ "image-rendering": "imageRendering",
31793
+ in2: 0,
31794
+ in: 0,
31795
+ inlist: 0,
31796
+ intercept: 0,
31797
+ k1: 0,
31798
+ k2: 0,
31799
+ k3: 0,
31800
+ k4: 0,
31801
+ k: 0,
31802
+ kernelMatrix: 1,
31803
+ kernelUnitLength: 1,
31804
+ kerning: 0,
31805
+ keyPoints: 1,
31806
+ keySplines: 1,
31807
+ keyTimes: 1,
31808
+ lengthAdjust: 1,
31809
+ letterSpacing: 1,
31810
+ "letter-spacing": "letterSpacing",
31811
+ lightingColor: 1,
31812
+ "lighting-color": "lightingColor",
31813
+ limitingConeAngle: 1,
31814
+ local: 0,
31815
+ markerEnd: 1,
31816
+ "marker-end": "markerEnd",
31817
+ markerHeight: 1,
31818
+ markerMid: 1,
31819
+ "marker-mid": "markerMid",
31820
+ markerStart: 1,
31821
+ "marker-start": "markerStart",
31822
+ markerUnits: 1,
31823
+ markerWidth: 1,
31824
+ mask: 0,
31825
+ maskContentUnits: 1,
31826
+ maskUnits: 1,
31827
+ mathematical: 0,
31828
+ mode: 0,
31829
+ numOctaves: 1,
31830
+ offset: 0,
31831
+ opacity: 0,
31832
+ operator: 0,
31833
+ order: 0,
31834
+ orient: 0,
31835
+ orientation: 0,
31836
+ origin: 0,
31837
+ overflow: 0,
31838
+ overlinePosition: 1,
31839
+ "overline-position": "overlinePosition",
31840
+ overlineThickness: 1,
31841
+ "overline-thickness": "overlineThickness",
31842
+ paintOrder: 1,
31843
+ "paint-order": "paintOrder",
31844
+ panose1: 0,
31845
+ "panose-1": "panose1",
31846
+ pathLength: 1,
31847
+ patternContentUnits: 1,
31848
+ patternTransform: 1,
31849
+ patternUnits: 1,
31850
+ pointerEvents: 1,
31851
+ "pointer-events": "pointerEvents",
31852
+ points: 0,
31853
+ pointsAtX: 1,
31854
+ pointsAtY: 1,
31855
+ pointsAtZ: 1,
31856
+ prefix: 0,
31857
+ preserveAlpha: 1,
31858
+ preserveAspectRatio: 1,
31859
+ primitiveUnits: 1,
31860
+ property: 0,
31861
+ r: 0,
31862
+ radius: 0,
31863
+ refX: 1,
31864
+ refY: 1,
31865
+ renderingIntent: 1,
31866
+ "rendering-intent": "renderingIntent",
31867
+ repeatCount: 1,
31868
+ repeatDur: 1,
31869
+ requiredExtensions: 1,
31870
+ requiredFeatures: 1,
31871
+ resource: 0,
31872
+ restart: 0,
31873
+ result: 0,
31874
+ results: 0,
31875
+ rotate: 0,
31876
+ rx: 0,
31877
+ ry: 0,
31878
+ scale: 0,
31879
+ security: 0,
31880
+ seed: 0,
31881
+ shapeRendering: 1,
31882
+ "shape-rendering": "shapeRendering",
31883
+ slope: 0,
31884
+ spacing: 0,
31885
+ specularConstant: 1,
31886
+ specularExponent: 1,
31887
+ speed: 0,
31888
+ spreadMethod: 1,
31889
+ startOffset: 1,
31890
+ stdDeviation: 1,
31891
+ stemh: 0,
31892
+ stemv: 0,
31893
+ stitchTiles: 1,
31894
+ stopColor: 1,
31895
+ "stop-color": "stopColor",
31896
+ stopOpacity: 1,
31897
+ "stop-opacity": "stopOpacity",
31898
+ strikethroughPosition: 1,
31899
+ "strikethrough-position": "strikethroughPosition",
31900
+ strikethroughThickness: 1,
31901
+ "strikethrough-thickness": "strikethroughThickness",
31902
+ string: 0,
31903
+ stroke: 0,
31904
+ strokeDasharray: 1,
31905
+ "stroke-dasharray": "strokeDasharray",
31906
+ strokeDashoffset: 1,
31907
+ "stroke-dashoffset": "strokeDashoffset",
31908
+ strokeLinecap: 1,
31909
+ "stroke-linecap": "strokeLinecap",
31910
+ strokeLinejoin: 1,
31911
+ "stroke-linejoin": "strokeLinejoin",
31912
+ strokeMiterlimit: 1,
31913
+ "stroke-miterlimit": "strokeMiterlimit",
31914
+ strokeWidth: 1,
31915
+ "stroke-width": "strokeWidth",
31916
+ strokeOpacity: 1,
31917
+ "stroke-opacity": "strokeOpacity",
31918
+ suppressContentEditableWarning: 1,
31919
+ suppressHydrationWarning: 1,
31920
+ surfaceScale: 1,
31921
+ systemLanguage: 1,
31922
+ tableValues: 1,
31923
+ targetX: 1,
31924
+ targetY: 1,
31925
+ textAnchor: 1,
31926
+ "text-anchor": "textAnchor",
31927
+ textDecoration: 1,
31928
+ "text-decoration": "textDecoration",
31929
+ textLength: 1,
31930
+ textRendering: 1,
31931
+ "text-rendering": "textRendering",
31932
+ to: 0,
31933
+ transform: 0,
31934
+ typeof: 0,
31935
+ u1: 0,
31936
+ u2: 0,
31937
+ underlinePosition: 1,
31938
+ "underline-position": "underlinePosition",
31939
+ underlineThickness: 1,
31940
+ "underline-thickness": "underlineThickness",
31941
+ unicode: 0,
31942
+ unicodeBidi: 1,
31943
+ "unicode-bidi": "unicodeBidi",
31944
+ unicodeRange: 1,
31945
+ "unicode-range": "unicodeRange",
31946
+ unitsPerEm: 1,
31947
+ "units-per-em": "unitsPerEm",
31948
+ unselectable: 0,
31949
+ vAlphabetic: 1,
31950
+ "v-alphabetic": "vAlphabetic",
31951
+ values: 0,
31952
+ vectorEffect: 1,
31953
+ "vector-effect": "vectorEffect",
31954
+ version: 0,
31955
+ vertAdvY: 1,
31956
+ "vert-adv-y": "vertAdvY",
31957
+ vertOriginX: 1,
31958
+ "vert-origin-x": "vertOriginX",
31959
+ vertOriginY: 1,
31960
+ "vert-origin-y": "vertOriginY",
31961
+ vHanging: 1,
31962
+ "v-hanging": "vHanging",
31963
+ vIdeographic: 1,
31964
+ "v-ideographic": "vIdeographic",
31965
+ viewBox: 1,
31966
+ viewTarget: 1,
31967
+ visibility: 0,
31968
+ vMathematical: 1,
31969
+ "v-mathematical": "vMathematical",
31970
+ vocab: 0,
31971
+ widths: 0,
31972
+ wordSpacing: 1,
31973
+ "word-spacing": "wordSpacing",
31974
+ writingMode: 1,
31975
+ "writing-mode": "writingMode",
31976
+ x1: 0,
31977
+ x2: 0,
31978
+ x: 0,
31979
+ xChannelSelector: 1,
31980
+ xHeight: 1,
31981
+ "x-height": "xHeight",
31982
+ xlinkActuate: 1,
31983
+ "xlink:actuate": "xlinkActuate",
31984
+ xlinkArcrole: 1,
31985
+ "xlink:arcrole": "xlinkArcrole",
31986
+ xlinkHref: 1,
31987
+ "xlink:href": "xlinkHref",
31988
+ xlinkRole: 1,
31989
+ "xlink:role": "xlinkRole",
31990
+ xlinkShow: 1,
31991
+ "xlink:show": "xlinkShow",
31992
+ xlinkTitle: 1,
31993
+ "xlink:title": "xlinkTitle",
31994
+ xlinkType: 1,
31995
+ "xlink:type": "xlinkType",
31996
+ xmlBase: 1,
31997
+ "xml:base": "xmlBase",
31998
+ xmlLang: 1,
31999
+ "xml:lang": "xmlLang",
32000
+ xmlns: 0,
32001
+ "xml:space": "xmlSpace",
32002
+ xmlnsXlink: 1,
32003
+ "xmlns:xlink": "xmlnsXlink",
32004
+ xmlSpace: 1,
32005
+ y1: 0,
32006
+ y2: 0,
32007
+ y: 0,
32008
+ yChannelSelector: 1,
32009
+ z: 0,
32010
+ zoomAndPan: 1
32011
+ };
32012
+ Object.defineProperty(lib$1, "__esModule", { value: true });
32013
+ function _slicedToArray(arr2, i2) {
32014
+ return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
32015
+ }
32016
+ function _arrayWithHoles(arr2) {
32017
+ if (Array.isArray(arr2))
32018
+ return arr2;
32019
+ }
32020
+ function _iterableToArrayLimit(arr2, i2) {
32021
+ var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
32022
+ if (_i2 == null)
32023
+ return;
32024
+ var _arr = [];
32025
+ var _n = true;
32026
+ var _d2 = false;
32027
+ var _s, _e2;
32028
+ try {
32029
+ for (_i2 = _i2.call(arr2); !(_n = (_s = _i2.next()).done); _n = true) {
32030
+ _arr.push(_s.value);
32031
+ if (i2 && _arr.length === i2)
32032
+ break;
32033
+ }
32034
+ } catch (err2) {
32035
+ _d2 = true;
32036
+ _e2 = err2;
32037
+ } finally {
32038
+ try {
32039
+ if (!_n && _i2["return"] != null)
32040
+ _i2["return"]();
32041
+ } finally {
32042
+ if (_d2)
32043
+ throw _e2;
32044
+ }
32045
+ }
32046
+ return _arr;
32047
+ }
32048
+ function _unsupportedIterableToArray(o2, minLen) {
32049
+ if (!o2)
32050
+ return;
32051
+ if (typeof o2 === "string")
32052
+ return _arrayLikeToArray(o2, minLen);
32053
+ var n2 = Object.prototype.toString.call(o2).slice(8, -1);
32054
+ if (n2 === "Object" && o2.constructor)
32055
+ n2 = o2.constructor.name;
32056
+ if (n2 === "Map" || n2 === "Set")
32057
+ return Array.from(o2);
32058
+ if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
32059
+ return _arrayLikeToArray(o2, minLen);
32060
+ }
32061
+ function _arrayLikeToArray(arr2, len) {
32062
+ if (len == null || len > arr2.length)
32063
+ len = arr2.length;
32064
+ for (var i2 = 0, arr22 = new Array(len); i2 < len; i2++)
32065
+ arr22[i2] = arr2[i2];
32066
+ return arr22;
32067
+ }
32068
+ function _nonIterableRest() {
32069
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
32070
+ }
32071
+ var RESERVED = 0;
32072
+ var STRING = 1;
32073
+ var BOOLEANISH_STRING = 2;
32074
+ var BOOLEAN = 3;
32075
+ var OVERLOADED_BOOLEAN = 4;
32076
+ var NUMERIC = 5;
32077
+ var POSITIVE_NUMERIC = 6;
32078
+ function getPropertyInfo(name) {
32079
+ return properties.hasOwnProperty(name) ? properties[name] : null;
32080
+ }
32081
+ function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
32082
+ this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
32083
+ this.attributeName = attributeName;
32084
+ this.attributeNamespace = attributeNamespace;
32085
+ this.mustUseProperty = mustUseProperty;
32086
+ this.propertyName = name;
32087
+ this.type = type2;
32088
+ this.sanitizeURL = sanitizeURL;
32089
+ this.removeEmptyString = removeEmptyString;
32090
+ }
32091
+ var properties = {};
32092
+ var reservedProps = [
32093
+ "children",
32094
+ "dangerouslySetInnerHTML",
32095
+ // TODO: This prevents the assignment of defaultValue to regular
32096
+ // elements (not just inputs). Now that ReactDOMInput assigns to the
32097
+ // defaultValue property -- do we need this?
32098
+ "defaultValue",
32099
+ "defaultChecked",
32100
+ "innerHTML",
32101
+ "suppressContentEditableWarning",
32102
+ "suppressHydrationWarning",
32103
+ "style"
32104
+ ];
32105
+ reservedProps.forEach(function(name) {
32106
+ properties[name] = new PropertyInfoRecord(
32107
+ name,
32108
+ RESERVED,
32109
+ false,
32110
+ // mustUseProperty
32111
+ name,
32112
+ // attributeName
32113
+ null,
32114
+ // attributeNamespace
32115
+ false,
32116
+ // sanitizeURL
32117
+ false
32118
+ );
32119
+ });
32120
+ [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
32121
+ var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
32122
+ properties[name] = new PropertyInfoRecord(
32123
+ name,
32124
+ STRING,
32125
+ false,
32126
+ // mustUseProperty
32127
+ attributeName,
32128
+ // attributeName
32129
+ null,
32130
+ // attributeNamespace
32131
+ false,
32132
+ // sanitizeURL
32133
+ false
32134
+ );
32135
+ });
32136
+ ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
32137
+ properties[name] = new PropertyInfoRecord(
32138
+ name,
32139
+ BOOLEANISH_STRING,
32140
+ false,
32141
+ // mustUseProperty
32142
+ name.toLowerCase(),
32143
+ // attributeName
32144
+ null,
32145
+ // attributeNamespace
32146
+ false,
32147
+ // sanitizeURL
32148
+ false
32149
+ );
32150
+ });
32151
+ ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
32152
+ properties[name] = new PropertyInfoRecord(
32153
+ name,
32154
+ BOOLEANISH_STRING,
32155
+ false,
32156
+ // mustUseProperty
32157
+ name,
32158
+ // attributeName
32159
+ null,
32160
+ // attributeNamespace
32161
+ false,
32162
+ // sanitizeURL
32163
+ false
32164
+ );
32165
+ });
32166
+ [
32167
+ "allowFullScreen",
32168
+ "async",
32169
+ // Note: there is a special case that prevents it from being written to the DOM
32170
+ // on the client side because the browsers are inconsistent. Instead we call focus().
32171
+ "autoFocus",
32172
+ "autoPlay",
32173
+ "controls",
32174
+ "default",
32175
+ "defer",
32176
+ "disabled",
32177
+ "disablePictureInPicture",
32178
+ "disableRemotePlayback",
32179
+ "formNoValidate",
32180
+ "hidden",
32181
+ "loop",
32182
+ "noModule",
32183
+ "noValidate",
32184
+ "open",
32185
+ "playsInline",
32186
+ "readOnly",
32187
+ "required",
32188
+ "reversed",
32189
+ "scoped",
32190
+ "seamless",
32191
+ // Microdata
32192
+ "itemScope"
32193
+ ].forEach(function(name) {
32194
+ properties[name] = new PropertyInfoRecord(
32195
+ name,
32196
+ BOOLEAN,
32197
+ false,
32198
+ // mustUseProperty
32199
+ name.toLowerCase(),
32200
+ // attributeName
32201
+ null,
32202
+ // attributeNamespace
32203
+ false,
32204
+ // sanitizeURL
32205
+ false
32206
+ );
32207
+ });
32208
+ [
32209
+ "checked",
32210
+ // Note: `option.selected` is not updated if `select.multiple` is
32211
+ // disabled with `removeAttribute`. We have special logic for handling this.
32212
+ "multiple",
32213
+ "muted",
32214
+ "selected"
32215
+ // NOTE: if you add a camelCased prop to this list,
32216
+ // you'll need to set attributeName to name.toLowerCase()
32217
+ // instead in the assignment below.
32218
+ ].forEach(function(name) {
32219
+ properties[name] = new PropertyInfoRecord(
32220
+ name,
32221
+ BOOLEAN,
32222
+ true,
32223
+ // mustUseProperty
32224
+ name,
32225
+ // attributeName
32226
+ null,
32227
+ // attributeNamespace
32228
+ false,
32229
+ // sanitizeURL
32230
+ false
32231
+ );
32232
+ });
32233
+ [
32234
+ "capture",
32235
+ "download"
32236
+ // NOTE: if you add a camelCased prop to this list,
32237
+ // you'll need to set attributeName to name.toLowerCase()
32238
+ // instead in the assignment below.
32239
+ ].forEach(function(name) {
32240
+ properties[name] = new PropertyInfoRecord(
32241
+ name,
32242
+ OVERLOADED_BOOLEAN,
32243
+ false,
32244
+ // mustUseProperty
32245
+ name,
32246
+ // attributeName
32247
+ null,
32248
+ // attributeNamespace
32249
+ false,
32250
+ // sanitizeURL
32251
+ false
32252
+ );
32253
+ });
32254
+ [
32255
+ "cols",
32256
+ "rows",
32257
+ "size",
32258
+ "span"
32259
+ // NOTE: if you add a camelCased prop to this list,
32260
+ // you'll need to set attributeName to name.toLowerCase()
32261
+ // instead in the assignment below.
32262
+ ].forEach(function(name) {
32263
+ properties[name] = new PropertyInfoRecord(
32264
+ name,
32265
+ POSITIVE_NUMERIC,
32266
+ false,
32267
+ // mustUseProperty
32268
+ name,
32269
+ // attributeName
32270
+ null,
32271
+ // attributeNamespace
32272
+ false,
32273
+ // sanitizeURL
32274
+ false
32275
+ );
32276
+ });
32277
+ ["rowSpan", "start"].forEach(function(name) {
32278
+ properties[name] = new PropertyInfoRecord(
32279
+ name,
32280
+ NUMERIC,
32281
+ false,
32282
+ // mustUseProperty
32283
+ name.toLowerCase(),
32284
+ // attributeName
32285
+ null,
32286
+ // attributeNamespace
32287
+ false,
32288
+ // sanitizeURL
32289
+ false
32290
+ );
32291
+ });
32292
+ var CAMELIZE = /[\-\:]([a-z])/g;
32293
+ var capitalize$1 = function capitalize(token) {
32294
+ return token[1].toUpperCase();
32295
+ };
32296
+ [
32297
+ "accent-height",
32298
+ "alignment-baseline",
32299
+ "arabic-form",
32300
+ "baseline-shift",
32301
+ "cap-height",
32302
+ "clip-path",
32303
+ "clip-rule",
32304
+ "color-interpolation",
32305
+ "color-interpolation-filters",
32306
+ "color-profile",
32307
+ "color-rendering",
32308
+ "dominant-baseline",
32309
+ "enable-background",
32310
+ "fill-opacity",
32311
+ "fill-rule",
32312
+ "flood-color",
32313
+ "flood-opacity",
32314
+ "font-family",
32315
+ "font-size",
32316
+ "font-size-adjust",
32317
+ "font-stretch",
32318
+ "font-style",
32319
+ "font-variant",
32320
+ "font-weight",
32321
+ "glyph-name",
32322
+ "glyph-orientation-horizontal",
32323
+ "glyph-orientation-vertical",
32324
+ "horiz-adv-x",
32325
+ "horiz-origin-x",
32326
+ "image-rendering",
32327
+ "letter-spacing",
32328
+ "lighting-color",
32329
+ "marker-end",
32330
+ "marker-mid",
32331
+ "marker-start",
32332
+ "overline-position",
32333
+ "overline-thickness",
32334
+ "paint-order",
32335
+ "panose-1",
32336
+ "pointer-events",
32337
+ "rendering-intent",
32338
+ "shape-rendering",
32339
+ "stop-color",
32340
+ "stop-opacity",
32341
+ "strikethrough-position",
32342
+ "strikethrough-thickness",
32343
+ "stroke-dasharray",
32344
+ "stroke-dashoffset",
32345
+ "stroke-linecap",
32346
+ "stroke-linejoin",
32347
+ "stroke-miterlimit",
32348
+ "stroke-opacity",
32349
+ "stroke-width",
32350
+ "text-anchor",
32351
+ "text-decoration",
32352
+ "text-rendering",
32353
+ "underline-position",
32354
+ "underline-thickness",
32355
+ "unicode-bidi",
32356
+ "unicode-range",
32357
+ "units-per-em",
32358
+ "v-alphabetic",
32359
+ "v-hanging",
32360
+ "v-ideographic",
32361
+ "v-mathematical",
32362
+ "vector-effect",
32363
+ "vert-adv-y",
32364
+ "vert-origin-x",
32365
+ "vert-origin-y",
32366
+ "word-spacing",
32367
+ "writing-mode",
32368
+ "xmlns:xlink",
32369
+ "x-height"
32370
+ // NOTE: if you add a camelCased prop to this list,
32371
+ // you'll need to set attributeName to name.toLowerCase()
32372
+ // instead in the assignment below.
32373
+ ].forEach(function(attributeName) {
32374
+ var name = attributeName.replace(CAMELIZE, capitalize$1);
32375
+ properties[name] = new PropertyInfoRecord(
32376
+ name,
32377
+ STRING,
32378
+ false,
32379
+ // mustUseProperty
32380
+ attributeName,
32381
+ null,
32382
+ // attributeNamespace
32383
+ false,
32384
+ // sanitizeURL
32385
+ false
32386
+ );
32387
+ });
32388
+ [
32389
+ "xlink:actuate",
32390
+ "xlink:arcrole",
32391
+ "xlink:role",
32392
+ "xlink:show",
32393
+ "xlink:title",
32394
+ "xlink:type"
32395
+ // NOTE: if you add a camelCased prop to this list,
32396
+ // you'll need to set attributeName to name.toLowerCase()
32397
+ // instead in the assignment below.
32398
+ ].forEach(function(attributeName) {
32399
+ var name = attributeName.replace(CAMELIZE, capitalize$1);
32400
+ properties[name] = new PropertyInfoRecord(
32401
+ name,
32402
+ STRING,
32403
+ false,
32404
+ // mustUseProperty
32405
+ attributeName,
32406
+ "http://www.w3.org/1999/xlink",
32407
+ false,
32408
+ // sanitizeURL
32409
+ false
32410
+ );
32411
+ });
32412
+ [
32413
+ "xml:base",
32414
+ "xml:lang",
32415
+ "xml:space"
32416
+ // NOTE: if you add a camelCased prop to this list,
32417
+ // you'll need to set attributeName to name.toLowerCase()
32418
+ // instead in the assignment below.
32419
+ ].forEach(function(attributeName) {
32420
+ var name = attributeName.replace(CAMELIZE, capitalize$1);
32421
+ properties[name] = new PropertyInfoRecord(
32422
+ name,
32423
+ STRING,
32424
+ false,
32425
+ // mustUseProperty
32426
+ attributeName,
32427
+ "http://www.w3.org/XML/1998/namespace",
32428
+ false,
32429
+ // sanitizeURL
32430
+ false
32431
+ );
32432
+ });
32433
+ ["tabIndex", "crossOrigin"].forEach(function(attributeName) {
32434
+ properties[attributeName] = new PropertyInfoRecord(
32435
+ attributeName,
32436
+ STRING,
32437
+ false,
32438
+ // mustUseProperty
32439
+ attributeName.toLowerCase(),
32440
+ // attributeName
32441
+ null,
32442
+ // attributeNamespace
32443
+ false,
32444
+ // sanitizeURL
32445
+ false
32446
+ );
32447
+ });
32448
+ var xlinkHref = "xlinkHref";
32449
+ properties[xlinkHref] = new PropertyInfoRecord(
32450
+ "xlinkHref",
32451
+ STRING,
32452
+ false,
32453
+ // mustUseProperty
32454
+ "xlink:href",
32455
+ "http://www.w3.org/1999/xlink",
32456
+ true,
32457
+ // sanitizeURL
32458
+ false
32459
+ );
32460
+ ["src", "href", "action", "formAction"].forEach(function(attributeName) {
32461
+ properties[attributeName] = new PropertyInfoRecord(
32462
+ attributeName,
32463
+ STRING,
32464
+ false,
32465
+ // mustUseProperty
32466
+ attributeName.toLowerCase(),
32467
+ // attributeName
32468
+ null,
32469
+ // attributeNamespace
32470
+ true,
32471
+ // sanitizeURL
32472
+ true
32473
+ );
32474
+ });
32475
+ var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
32476
+ 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";
32477
+ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
32478
+ var isCustomAttribute = RegExp.prototype.test.bind(
32479
+ // eslint-disable-next-line no-misleading-character-class
32480
+ new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
32481
+ );
32482
+ var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
32483
+ var propName = possibleStandardNamesOptimized[standardName];
32484
+ if (propName === SAME) {
32485
+ accumulator[standardName] = standardName;
32486
+ } else if (propName === CAMELCASE) {
32487
+ accumulator[standardName.toLowerCase()] = standardName;
32488
+ } else {
32489
+ accumulator[standardName] = propName;
32490
+ }
32491
+ return accumulator;
32492
+ }, {});
32493
+ lib$1.BOOLEAN = BOOLEAN;
32494
+ lib$1.BOOLEANISH_STRING = BOOLEANISH_STRING;
32495
+ lib$1.NUMERIC = NUMERIC;
32496
+ lib$1.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
32497
+ lib$1.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
32498
+ lib$1.RESERVED = RESERVED;
32499
+ lib$1.STRING = STRING;
32500
+ lib$1.getPropertyInfo = getPropertyInfo;
32501
+ lib$1.isCustomAttribute = isCustomAttribute;
32502
+ lib$1.possibleStandardNames = possibleStandardNames;
32503
+ var cjs = {};
32504
+ var styleToObject = { exports: {} };
32505
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
32506
+ var NEWLINE_REGEX = /\n/g;
32507
+ var WHITESPACE_REGEX = /^\s*/;
32508
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
32509
+ var COLON_REGEX = /^:\s*/;
32510
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
32511
+ var SEMICOLON_REGEX = /^[;\s]*/;
32512
+ var TRIM_REGEX = /^\s+|\s+$/g;
32513
+ var NEWLINE = "\n";
32514
+ var FORWARD_SLASH = "/";
32515
+ var ASTERISK = "*";
32516
+ var EMPTY_STRING = "";
32517
+ var TYPE_COMMENT = "comment";
32518
+ var TYPE_DECLARATION = "declaration";
32519
+ var inlineStyleParser = function(style, options) {
32520
+ if (typeof style !== "string") {
32521
+ throw new TypeError("First argument must be a string");
32522
+ }
32523
+ if (!style)
32524
+ return [];
32525
+ options = options || {};
32526
+ var lineno = 1;
32527
+ var column = 1;
32528
+ function updatePosition(str) {
32529
+ var lines = str.match(NEWLINE_REGEX);
32530
+ if (lines)
32531
+ lineno += lines.length;
32532
+ var i2 = str.lastIndexOf(NEWLINE);
32533
+ column = ~i2 ? str.length - i2 : column + str.length;
32534
+ }
32535
+ function position() {
32536
+ var start2 = { line: lineno, column };
32537
+ return function(node2) {
32538
+ node2.position = new Position(start2);
32539
+ whitespace();
32540
+ return node2;
32541
+ };
32542
+ }
32543
+ function Position(start2) {
32544
+ this.start = start2;
32545
+ this.end = { line: lineno, column };
32546
+ this.source = options.source;
32547
+ }
32548
+ Position.prototype.content = style;
32549
+ function error(msg) {
32550
+ var err2 = new Error(
32551
+ options.source + ":" + lineno + ":" + column + ": " + msg
32552
+ );
32553
+ err2.reason = msg;
32554
+ err2.filename = options.source;
32555
+ err2.line = lineno;
32556
+ err2.column = column;
32557
+ err2.source = style;
32558
+ if (options.silent)
32559
+ ;
32560
+ else {
32561
+ throw err2;
32562
+ }
32563
+ }
32564
+ function match(re2) {
32565
+ var m2 = re2.exec(style);
32566
+ if (!m2)
32567
+ return;
32568
+ var str = m2[0];
32569
+ updatePosition(str);
32570
+ style = style.slice(str.length);
32571
+ return m2;
32572
+ }
32573
+ function whitespace() {
32574
+ match(WHITESPACE_REGEX);
32575
+ }
32576
+ function comments(rules) {
32577
+ var c6;
32578
+ rules = rules || [];
32579
+ while (c6 = comment()) {
32580
+ if (c6 !== false) {
32581
+ rules.push(c6);
32582
+ }
32583
+ }
32584
+ return rules;
32585
+ }
32586
+ function comment() {
32587
+ var pos = position();
32588
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
32589
+ return;
32590
+ var i2 = 2;
32591
+ while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
32592
+ ++i2;
32593
+ }
32594
+ i2 += 2;
32595
+ if (EMPTY_STRING === style.charAt(i2 - 1)) {
32596
+ return error("End of comment missing");
32597
+ }
32598
+ var str = style.slice(2, i2 - 2);
32599
+ column += 2;
32600
+ updatePosition(str);
32601
+ style = style.slice(i2);
32602
+ column += 2;
32603
+ return pos({
32604
+ type: TYPE_COMMENT,
32605
+ comment: str
32606
+ });
32607
+ }
32608
+ function declaration() {
32609
+ var pos = position();
32610
+ var prop = match(PROPERTY_REGEX);
32611
+ if (!prop)
32612
+ return;
32613
+ comment();
32614
+ if (!match(COLON_REGEX))
32615
+ return error("property missing ':'");
32616
+ var val = match(VALUE_REGEX);
32617
+ var ret = pos({
32618
+ type: TYPE_DECLARATION,
32619
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
32620
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
32621
+ });
32622
+ match(SEMICOLON_REGEX);
32623
+ return ret;
32624
+ }
32625
+ function declarations() {
32626
+ var decls = [];
32627
+ comments(decls);
32628
+ var decl;
32629
+ while (decl = declaration()) {
32630
+ if (decl !== false) {
32631
+ decls.push(decl);
32632
+ comments(decls);
32633
+ }
32634
+ }
32635
+ return decls;
32636
+ }
32637
+ whitespace();
32638
+ return declarations();
32639
+ };
32640
+ function trim(str) {
32641
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
32642
+ }
32643
+ var parse$2 = inlineStyleParser;
32644
+ function StyleToObject(style, iterator) {
32645
+ var output = null;
32646
+ if (!style || typeof style !== "string") {
32647
+ return output;
32648
+ }
32649
+ var declaration;
32650
+ var declarations = parse$2(style);
32651
+ var hasIterator = typeof iterator === "function";
32652
+ var property;
32653
+ var value;
32654
+ for (var i2 = 0, len = declarations.length; i2 < len; i2++) {
32655
+ declaration = declarations[i2];
32656
+ property = declaration.property;
32657
+ value = declaration.value;
32658
+ if (hasIterator) {
32659
+ iterator(property, value, declaration);
32660
+ } else if (value) {
32661
+ output || (output = {});
32662
+ output[property] = value;
32663
+ }
32664
+ }
32665
+ return output;
32666
+ }
32667
+ styleToObject.exports = StyleToObject;
32668
+ styleToObject.exports.default = StyleToObject;
32669
+ var styleToObjectExports = styleToObject.exports;
32670
+ var utilities$3 = {};
32671
+ utilities$3.__esModule = true;
32672
+ utilities$3.camelCase = void 0;
32673
+ var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
32674
+ var HYPHEN_REGEX = /-([a-z])/g;
32675
+ var NO_HYPHEN_REGEX = /^[^-]+$/;
32676
+ var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
32677
+ var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
32678
+ var skipCamelCase = function(property) {
32679
+ return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
32680
+ };
32681
+ var capitalize2 = function(match, character) {
32682
+ return character.toUpperCase();
32683
+ };
32684
+ var trimHyphen = function(match, prefix2) {
32685
+ return "".concat(prefix2, "-");
32686
+ };
32687
+ var camelCase = function(property, options) {
32688
+ if (options === void 0) {
32689
+ options = {};
32690
+ }
32691
+ if (skipCamelCase(property)) {
32692
+ return property;
32693
+ }
32694
+ property = property.toLowerCase();
32695
+ if (options.reactCompat) {
32696
+ property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
32697
+ } else {
32698
+ property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
32699
+ }
32700
+ return property.replace(HYPHEN_REGEX, capitalize2);
32701
+ };
32702
+ utilities$3.camelCase = camelCase;
32703
+ (function(exports) {
32704
+ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
32705
+ return mod && mod.__esModule ? mod : { "default": mod };
32706
+ };
32707
+ exports.__esModule = true;
32708
+ var style_to_object_1 = __importDefault(styleToObjectExports);
32709
+ var utilities_1 = utilities$3;
32710
+ function StyleToJS(style, options) {
32711
+ var output = {};
32712
+ if (!style || typeof style !== "string") {
32713
+ return output;
32714
+ }
32715
+ (0, style_to_object_1["default"])(style, function(property, value) {
32716
+ if (property && value) {
32717
+ output[(0, utilities_1.camelCase)(property, options)] = value;
32718
+ }
32719
+ });
32720
+ return output;
32721
+ }
32722
+ exports["default"] = StyleToJS;
32723
+ })(cjs);
32724
+ var React$1 = reactExports;
32725
+ var styleToJS = cjs.default;
32726
+ function invertObject(obj, override) {
32727
+ if (!obj || typeof obj !== "object") {
32728
+ throw new TypeError("First argument must be an object");
32729
+ }
32730
+ var isOverridePresent = typeof override === "function";
32731
+ var overrides = {};
32732
+ var result = {};
32733
+ for (var key in obj) {
32734
+ var value = obj[key];
32735
+ if (isOverridePresent) {
32736
+ overrides = override(key, value);
32737
+ if (overrides && overrides.length === 2) {
32738
+ result[overrides[0]] = overrides[1];
32739
+ continue;
32740
+ }
32741
+ }
32742
+ if (typeof value === "string") {
32743
+ result[value] = key;
32744
+ }
32745
+ }
32746
+ return result;
32747
+ }
32748
+ var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
32749
+ "annotation-xml",
32750
+ "color-profile",
32751
+ "font-face",
32752
+ "font-face-src",
32753
+ "font-face-uri",
32754
+ "font-face-format",
32755
+ "font-face-name",
32756
+ "missing-glyph"
32757
+ ]);
32758
+ function isCustomComponent(tagName2, props) {
32759
+ if (tagName2.indexOf("-") === -1) {
32760
+ return props && typeof props.is === "string";
32761
+ }
32762
+ if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
32763
+ return false;
32764
+ }
32765
+ return true;
32766
+ }
32767
+ var STYLE_TO_JS_OPTIONS = { reactCompat: true };
32768
+ function setStyleProp$1(style, props) {
32769
+ if (style === null || style === void 0) {
32770
+ return;
32771
+ }
32772
+ try {
32773
+ props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
32774
+ } catch (err2) {
32775
+ props.style = {};
32776
+ }
32777
+ }
32778
+ var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
32779
+ var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
32780
+ "tr",
32781
+ "tbody",
32782
+ "thead",
32783
+ "tfoot",
32784
+ "colgroup",
32785
+ "table",
32786
+ "head",
32787
+ "html",
32788
+ "frameset"
32789
+ ]);
32790
+ function canTextBeChildOfNode$1(node2) {
32791
+ return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
32792
+ }
32793
+ function returnFirstArg(arg) {
32794
+ return arg;
32795
+ }
32796
+ var utilities$2 = {
32797
+ PRESERVE_CUSTOM_ATTRIBUTES,
32798
+ ELEMENTS_WITH_NO_TEXT_CHILDREN,
32799
+ invertObject,
32800
+ isCustomComponent,
32801
+ setStyleProp: setStyleProp$1,
32802
+ canTextBeChildOfNode: canTextBeChildOfNode$1,
32803
+ returnFirstArg
32804
+ };
32805
+ var reactProperty = lib$1;
32806
+ var utilities$1 = utilities$2;
32807
+ var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
32808
+ var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
32809
+ var VALUE_ONLY_INPUTS = {
32810
+ reset: true,
32811
+ submit: true
32812
+ };
32813
+ var attributesToProps$3 = function attributesToProps(attributes, nodeName) {
32814
+ attributes = attributes || {};
32815
+ var attributeName;
32816
+ var attributeNameLowerCased;
32817
+ var attributeValue;
32818
+ var propName;
32819
+ var propertyInfo;
32820
+ var props = {};
32821
+ var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
32822
+ for (attributeName in attributes) {
32823
+ attributeValue = attributes[attributeName];
32824
+ if (reactProperty.isCustomAttribute(attributeName)) {
32825
+ props[attributeName] = attributeValue;
32826
+ continue;
32827
+ }
32828
+ attributeNameLowerCased = attributeName.toLowerCase();
32829
+ propName = getPropName(attributeNameLowerCased);
32830
+ if (propName) {
32831
+ propertyInfo = reactProperty.getPropertyInfo(propName);
32832
+ if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
32833
+ propName = getPropName("default" + attributeNameLowerCased);
32834
+ }
32835
+ props[propName] = attributeValue;
32836
+ switch (propertyInfo && propertyInfo.type) {
32837
+ case reactProperty.BOOLEAN:
32838
+ props[propName] = true;
32839
+ break;
32840
+ case reactProperty.OVERLOADED_BOOLEAN:
32841
+ if (attributeValue === "") {
32842
+ props[propName] = true;
32843
+ }
32844
+ break;
32845
+ }
32846
+ continue;
32847
+ }
32848
+ if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
32849
+ props[attributeName] = attributeValue;
32850
+ }
32851
+ }
32852
+ utilities$1.setStyleProp(attributes.style, props);
32853
+ return props;
32854
+ };
32855
+ function getPropName(attributeName) {
32856
+ return reactProperty.possibleStandardNames[attributeName];
32857
+ }
32858
+ var React = reactExports;
32859
+ var attributesToProps$2 = attributesToProps$3;
32860
+ var utilities = utilities$2;
32861
+ var setStyleProp = utilities.setStyleProp;
32862
+ var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
32863
+ function domToReact$2(nodes, options) {
32864
+ options = options || {};
32865
+ var library = options.library || React;
32866
+ var cloneElement = library.cloneElement;
32867
+ var createElement2 = library.createElement;
32868
+ var isValidElement = library.isValidElement;
32869
+ var result = [];
32870
+ var node2;
32871
+ var isWhitespace;
32872
+ var hasReplace = typeof options.replace === "function";
32873
+ var transform = options.transform || utilities.returnFirstArg;
32874
+ var replaceElement;
32875
+ var props;
32876
+ var children;
32877
+ var trim2 = options.trim;
32878
+ for (var i2 = 0, len = nodes.length; i2 < len; i2++) {
32879
+ node2 = nodes[i2];
32880
+ if (hasReplace) {
32881
+ replaceElement = options.replace(node2);
32882
+ if (isValidElement(replaceElement)) {
32883
+ if (len > 1) {
32884
+ replaceElement = cloneElement(replaceElement, {
32885
+ key: replaceElement.key || i2
32886
+ });
32887
+ }
32888
+ result.push(transform(replaceElement, node2, i2));
32889
+ continue;
32890
+ }
32891
+ }
32892
+ if (node2.type === "text") {
32893
+ isWhitespace = !node2.data.trim().length;
32894
+ if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
32895
+ continue;
32896
+ }
32897
+ if (trim2 && isWhitespace) {
32898
+ continue;
32899
+ }
32900
+ result.push(transform(node2.data, node2, i2));
32901
+ continue;
32902
+ }
32903
+ props = node2.attribs;
32904
+ if (skipAttributesToProps(node2)) {
32905
+ setStyleProp(props.style, props);
32906
+ } else if (props) {
32907
+ props = attributesToProps$2(props, node2.name);
32908
+ }
32909
+ children = null;
32910
+ switch (node2.type) {
32911
+ case "script":
32912
+ case "style":
32913
+ if (node2.children[0]) {
32914
+ props.dangerouslySetInnerHTML = {
32915
+ __html: node2.children[0].data
32916
+ };
32917
+ }
32918
+ break;
32919
+ case "tag":
32920
+ if (node2.name === "textarea" && node2.children[0]) {
32921
+ props.defaultValue = node2.children[0].data;
32922
+ } else if (node2.children && node2.children.length) {
32923
+ children = domToReact$2(node2.children, options);
32924
+ }
32925
+ break;
32926
+ default:
32927
+ continue;
32928
+ }
32929
+ if (len > 1) {
32930
+ props.key = i2;
32931
+ }
32932
+ result.push(transform(createElement2(node2.name, props, children), node2, i2));
32933
+ }
32934
+ return result.length === 1 ? result[0] : result;
32935
+ }
32936
+ function skipAttributesToProps(node2) {
32937
+ return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
32938
+ }
32939
+ var domToReact_1 = domToReact$2;
32940
+ var domhandler = lib$3;
32941
+ var htmlToDOM = htmlToDom;
32942
+ var attributesToProps$1 = attributesToProps$3;
32943
+ var domToReact$1 = domToReact_1;
32944
+ htmlToDOM = /* istanbul ignore next */
32945
+ typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
32946
+ var domParserOptions = { lowerCaseAttributeNames: false };
32947
+ function HTMLReactParser(html, options) {
32948
+ if (typeof html !== "string") {
32949
+ throw new TypeError("First argument must be a string");
32950
+ }
32951
+ if (html === "") {
32952
+ return [];
32953
+ }
32954
+ options = options || {};
32955
+ return domToReact$1(
32956
+ htmlToDOM(html, options.htmlparser2 || domParserOptions),
32957
+ options
32958
+ );
32959
+ }
32960
+ HTMLReactParser.domToReact = domToReact$1;
32961
+ HTMLReactParser.htmlToDOM = htmlToDOM;
32962
+ HTMLReactParser.attributesToProps = attributesToProps$1;
32963
+ HTMLReactParser.Comment = domhandler.Comment;
32964
+ HTMLReactParser.Element = domhandler.Element;
32965
+ HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
32966
+ HTMLReactParser.Text = domhandler.Text;
32967
+ var htmlReactParser = HTMLReactParser;
32968
+ HTMLReactParser.default = HTMLReactParser;
32969
+ const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs(htmlReactParser);
32970
+ var domToReact = HTMLReactParser$1.domToReact;
32971
+ HTMLReactParser$1.htmlToDOM;
32972
+ var attributesToProps2 = HTMLReactParser$1.attributesToProps;
32973
+ HTMLReactParser$1.Comment;
32974
+ HTMLReactParser$1.Element;
32975
+ HTMLReactParser$1.ProcessingInstruction;
32976
+ HTMLReactParser$1.Text;
30584
32977
  /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
30585
32978
  const Z_FIXED$1 = 4;
30586
32979
  const Z_BINARY = 0;
@@ -30931,7 +33324,7 @@ const build_tree = (s2, desc) => {
30931
33324
  const elems = desc.stat_desc.elems;
30932
33325
  let n2, m2;
30933
33326
  let max_code = -1;
30934
- let node;
33327
+ let node2;
30935
33328
  s2.heap_len = 0;
30936
33329
  s2.heap_max = HEAP_SIZE$1;
30937
33330
  for (n2 = 0; n2 < elems; n2++) {
@@ -30943,19 +33336,19 @@ const build_tree = (s2, desc) => {
30943
33336
  }
30944
33337
  }
30945
33338
  while (s2.heap_len < 2) {
30946
- node = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
30947
- tree[node * 2] = 1;
30948
- s2.depth[node] = 0;
33339
+ node2 = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
33340
+ tree[node2 * 2] = 1;
33341
+ s2.depth[node2] = 0;
30949
33342
  s2.opt_len--;
30950
33343
  if (has_stree) {
30951
- s2.static_len -= stree[node * 2 + 1];
33344
+ s2.static_len -= stree[node2 * 2 + 1];
30952
33345
  }
30953
33346
  }
30954
33347
  desc.max_code = max_code;
30955
33348
  for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
30956
33349
  pqdownheap(s2, tree, n2);
30957
33350
  }
30958
- node = elems;
33351
+ node2 = elems;
30959
33352
  do {
30960
33353
  n2 = s2.heap[
30961
33354
  1
@@ -30977,13 +33370,13 @@ const build_tree = (s2, desc) => {
30977
33370
  ];
30978
33371
  s2.heap[--s2.heap_max] = n2;
30979
33372
  s2.heap[--s2.heap_max] = m2;
30980
- tree[node * 2] = tree[n2 * 2] + tree[m2 * 2];
30981
- s2.depth[node] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
30982
- tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node;
33373
+ tree[node2 * 2] = tree[n2 * 2] + tree[m2 * 2];
33374
+ s2.depth[node2] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
33375
+ tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node2;
30983
33376
  s2.heap[
30984
33377
  1
30985
33378
  /*SMALLEST*/
30986
- ] = node++;
33379
+ ] = node2++;
30987
33380
  pqdownheap(
30988
33381
  s2,
30989
33382
  tree,
@@ -36898,13 +39291,13 @@ var listGetNode = function(list, key) {
36898
39291
  }
36899
39292
  };
36900
39293
  var listGet = function(objects, key) {
36901
- var node = listGetNode(objects, key);
36902
- return node && node.value;
39294
+ var node2 = listGetNode(objects, key);
39295
+ return node2 && node2.value;
36903
39296
  };
36904
39297
  var listSet = function(objects, key, value) {
36905
- var node = listGetNode(objects, key);
36906
- if (node) {
36907
- node.value = value;
39298
+ var node2 = listGetNode(objects, key);
39299
+ if (node2) {
39300
+ node2.value = value;
36908
39301
  } else {
36909
39302
  objects.next = /** @type {import('.').ListNode<typeof value>} */
36910
39303
  {
@@ -41716,12 +44109,12 @@ function generateUniformsSync(group, uniformData) {
41716
44109
  break;
41717
44110
  }
41718
44111
  if (!parsed) {
41719
- const template = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
44112
+ const template2 = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
41720
44113
  funcFragments.push(`
41721
44114
  cu = ud["${i2}"];
41722
44115
  cv = cu.value;
41723
44116
  v = uv["${i2}"];
41724
- ${template};`);
44117
+ ${template2};`);
41725
44118
  }
41726
44119
  }
41727
44120
  return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
@@ -43140,8 +45533,8 @@ class Texture extends EventEmitter2 {
43140
45533
  * @param anchor - Default anchor point used for sprite placement / rotation
43141
45534
  * @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
43142
45535
  */
43143
- constructor(baseTexture, frame, orig, trim, rotate, anchor, borders) {
43144
- 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 = trim, this.valid = false, this.destroyed = false, this._uvs = DEFAULT_UVS, this.uvMatrix = null, this.orig = orig || frame, this._rotate = Number(rotate || 0), rotate === true)
45536
+ constructor(baseTexture, frame, orig, trim2, rotate, anchor, borders) {
45537
+ 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)
43145
45538
  this._rotate = 2;
43146
45539
  else if (this._rotate % 2 !== 0)
43147
45540
  throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
@@ -44381,14 +46774,14 @@ class TextureMatrix {
44381
46774
  this._textureID = tex._updateID, this._updateID++;
44382
46775
  const uvs = tex._uvs;
44383
46776
  this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
44384
- const orig = tex.orig, trim = tex.trim;
44385
- trim && (tempMat$1.set(
44386
- orig.width / trim.width,
46777
+ const orig = tex.orig, trim2 = tex.trim;
46778
+ trim2 && (tempMat$1.set(
46779
+ orig.width / trim2.width,
44387
46780
  0,
44388
46781
  0,
44389
- orig.height / trim.height,
44390
- -trim.x / trim.width,
44391
- -trim.y / trim.height
46782
+ orig.height / trim2.height,
46783
+ -trim2.x / trim2.width,
46784
+ -trim2.y / trim2.height
44392
46785
  ), this.mapCoord.append(tempMat$1));
44393
46786
  const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
44394
46787
  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;
@@ -45222,12 +47615,12 @@ function generateUniformBufferSync(group, uniformData) {
45222
47615
 
45223
47616
  `);
45224
47617
  } else {
45225
- const template = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
47618
+ const template2 = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
45226
47619
  funcFragments.push(`
45227
47620
  cv = ud.${name}.value;
45228
47621
  v = uv.${name};
45229
47622
  offset = ${uboElement.offset / 4};
45230
- ${template};
47623
+ ${template2};
45231
47624
  `);
45232
47625
  }
45233
47626
  }
@@ -48796,9 +51189,9 @@ class Sprite extends Container {
48796
51189
  if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
48797
51190
  return;
48798
51191
  this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
48799
- 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, trim = texture.trim, orig = texture.orig, anchor = this._anchor;
51192
+ 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;
48800
51193
  let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
48801
- if (trim ? (w1 = trim.x - anchor._x * orig.width, w0 = w1 + trim.width, h1 = trim.y - anchor._y * orig.height, h0 = h1 + trim.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) {
51194
+ 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) {
48802
51195
  const resolution = settings.RESOLUTION;
48803
51196
  for (let i2 = 0; i2 < vertexData.length; ++i2)
48804
51197
  vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
@@ -48832,8 +51225,8 @@ class Sprite extends Container {
48832
51225
  }
48833
51226
  /** Updates the bounds of the sprite. */
48834
51227
  _calculateBounds() {
48835
- const trim = this._texture.trim, orig = this._texture.orig;
48836
- !trim || trim.width === orig.width && trim.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
51228
+ const trim2 = this._texture.trim, orig = this._texture.orig;
51229
+ !trim2 || trim2.width === orig.width && trim2.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
48837
51230
  }
48838
51231
  /**
48839
51232
  * Gets the local bounds of the sprite object.
@@ -49242,7 +51635,7 @@ const contextSettings = {
49242
51635
  static measureFont(font) {
49243
51636
  if (_TextMetrics2._fonts[font])
49244
51637
  return _TextMetrics2._fonts[font];
49245
- const properties = {
51638
+ const properties2 = {
49246
51639
  ascent: 0,
49247
51640
  descent: 0,
49248
51641
  fontSize: 0
@@ -49252,7 +51645,7 @@ const contextSettings = {
49252
51645
  let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
49253
51646
  const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
49254
51647
  if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
49255
- return _TextMetrics2._fonts[font] = properties, properties;
51648
+ return _TextMetrics2._fonts[font] = properties2, properties2;
49256
51649
  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);
49257
51650
  const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
49258
51651
  let i2 = 0, idx = 0, stop2 = false;
@@ -49267,7 +51660,7 @@ const contextSettings = {
49267
51660
  else
49268
51661
  break;
49269
51662
  }
49270
- for (properties.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
51663
+ for (properties2.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
49271
51664
  for (let j2 = 0; j2 < line; j2 += 4)
49272
51665
  if (imagedata[idx + j2] !== 255) {
49273
51666
  stop2 = true;
@@ -49278,7 +51671,7 @@ const contextSettings = {
49278
51671
  else
49279
51672
  break;
49280
51673
  }
49281
- return properties.descent = i2 - baseline, properties.fontSize = properties.ascent + properties.descent, _TextMetrics2._fonts[font] = properties, properties;
51674
+ return properties2.descent = i2 - baseline, properties2.fontSize = properties2.ascent + properties2.descent, _TextMetrics2._fonts[font] = properties2, properties2;
49282
51675
  }
49283
51676
  /**
49284
51677
  * Clear font metrics in metrics cache.
@@ -49650,8 +52043,8 @@ const genericFontFamilies = [
49650
52043
  get trim() {
49651
52044
  return this._trim;
49652
52045
  }
49653
- set trim(trim) {
49654
- this._trim !== trim && (this._trim = trim, this.styleID++);
52046
+ set trim(trim2) {
52047
+ this._trim !== trim2 && (this._trim = trim2, this.styleID++);
49655
52048
  }
49656
52049
  /**
49657
52050
  * How newlines and spaces should be handled.
@@ -54242,10 +56635,10 @@ class ParticleBuffer {
54242
56635
  * @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
54243
56636
  * @param {number} size - The size of the batch.
54244
56637
  */
54245
- constructor(properties, dynamicPropertyFlags, size2) {
56638
+ constructor(properties2, dynamicPropertyFlags, size2) {
54246
56639
  this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
54247
- for (let i2 = 0; i2 < properties.length; ++i2) {
54248
- let property = properties[i2];
56640
+ for (let i2 = 0; i2 < properties2.length; ++i2) {
56641
+ let property = properties2[i2];
54249
56642
  property = {
54250
56643
  attributeName: property.attributeName,
54251
56644
  size: property.size,
@@ -54482,8 +56875,8 @@ class ParticleRenderer extends ObjectRenderer {
54482
56875
  uploadVertices(children, startIndex, amount, array, stride, offset2) {
54483
56876
  let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
54484
56877
  for (let i2 = 0; i2 < amount; ++i2) {
54485
- const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim = texture.trim, orig = texture.orig;
54486
- trim ? (w1 = trim.x - sprite.anchor.x * orig.width, w0 = w1 + trim.width, h1 = trim.y - sprite.anchor.y * orig.height, h0 = h1 + trim.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;
56878
+ const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim2 = texture.trim, orig = texture.orig;
56879
+ 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;
54487
56880
  }
54488
56881
  }
54489
56882
  /**
@@ -55024,10 +57417,10 @@ const GAUSSIAN_VALUES = {
55024
57417
  function generateBlurFragSource(kernelSize) {
55025
57418
  const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
55026
57419
  let fragSource = fragTemplate, blurLoop = "";
55027
- const template = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
57420
+ const template2 = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
55028
57421
  let value;
55029
57422
  for (let i2 = 0; i2 < kernelSize; i2++) {
55030
- let blur = template.replace("%index%", i2.toString());
57423
+ let blur = template2.replace("%index%", i2.toString());
55031
57424
  value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
55032
57425
  `;
55033
57426
  }
@@ -55066,10 +57459,10 @@ const vertTemplate = `
55066
57459
  }`;
55067
57460
  function generateBlurVertSource(kernelSize, x2) {
55068
57461
  const halfLength = Math.ceil(kernelSize / 2);
55069
- let vertSource = vertTemplate, blurLoop = "", template;
55070
- x2 ? template = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
57462
+ let vertSource = vertTemplate, blurLoop = "", template2;
57463
+ x2 ? template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template2 = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
55071
57464
  for (let i2 = 0; i2 < kernelSize; i2++) {
55072
- let blur = template.replace("%index%", i2.toString());
57465
+ let blur = template2.replace("%index%", i2.toString());
55073
57466
  blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
55074
57467
  `;
55075
57468
  }
@@ -59210,7 +61603,7 @@ const _Spritesheet = class _Spritesheet2 {
59210
61603
  for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
59211
61604
  const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
59212
61605
  if (rect) {
59213
- let frame = null, trim = null;
61606
+ let frame = null, trim2 = null;
59214
61607
  const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
59215
61608
  0,
59216
61609
  0,
@@ -59227,7 +61620,7 @@ const _Spritesheet = class _Spritesheet2 {
59227
61620
  Math.floor(rect.y) / this.resolution,
59228
61621
  Math.floor(rect.w) / this.resolution,
59229
61622
  Math.floor(rect.h) / this.resolution
59230
- ), data.trimmed !== false && data.spriteSourceSize && (trim = new Rectangle(
61623
+ ), data.trimmed !== false && data.spriteSourceSize && (trim2 = new Rectangle(
59231
61624
  Math.floor(data.spriteSourceSize.x) / this.resolution,
59232
61625
  Math.floor(data.spriteSourceSize.y) / this.resolution,
59233
61626
  Math.floor(rect.w) / this.resolution,
@@ -59236,7 +61629,7 @@ const _Spritesheet = class _Spritesheet2 {
59236
61629
  this.baseTexture,
59237
61630
  frame,
59238
61631
  orig,
59239
- trim,
61632
+ trim2,
59240
61633
  data.rotated ? 2 : 0,
59241
61634
  data.anchor,
59242
61635
  data.borders
@@ -60217,6 +62610,42 @@ const useConversation = () => {
60217
62610
  }, useConversation$1 = useConversation;
60218
62611
  dayjs.extend(relativeTime);
60219
62612
  dayjs.extend(customParseFormat);
62613
+ function useDate() {
62614
+ const [lang, setLang] = reactExports.useState("fr"), sessionQuery = useSession();
62615
+ function parseDate(date, lang2) {
62616
+ if (date.length < 11)
62617
+ return dayjs(date, ["YYYY-MM-DD"], lang2);
62618
+ if (date.split("").findIndex((char) => "0" > char || char > "9") < 0)
62619
+ return dayjs(Number.parseInt(date));
62620
+ {
62621
+ let day = dayjs(date);
62622
+ return day.isValid() || (day = dayjs(date, ["YYYY-MM-DD HH:mm:ss.SSS"])), day;
62623
+ }
62624
+ }
62625
+ const fromNow = reactExports.useCallback((date) => {
62626
+ let computedDate = dayjs();
62627
+ try {
62628
+ return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date, lang) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)) : typeof date.$date == "string" && (computedDate = parseDate(date.$date, lang)), computedDate.isValid() ? computedDate.fromNow() : "");
62629
+ } catch {
62630
+ return "";
62631
+ }
62632
+ }, [lang]), formatDate = reactExports.useCallback((date, format) => {
62633
+ let computedDate = dayjs();
62634
+ try {
62635
+ return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date, lang) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)) : typeof date.$date == "string" && (computedDate = parseDate(date.$date, lang)), computedDate.isValid() ? computedDate.locale(lang).format(format || "D MMMM YYYY HH:mm:ss") : "");
62636
+ } catch {
62637
+ return "";
62638
+ }
62639
+ }, [lang]);
62640
+ return reactExports.useEffect(() => {
62641
+ var _a2;
62642
+ const lang2 = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
62643
+ setLang(lang2), dayjs.locale(lang2);
62644
+ }, [sessionQuery == null ? void 0 : sessionQuery.data, setLang]), {
62645
+ fromNow,
62646
+ formatDate
62647
+ };
62648
+ }
60220
62649
  const DEFAULT_EVENTS = ["mousedown", "touchstart"];
60221
62650
  function useClickOutside(handler, events2, nodes) {
60222
62651
  const ref2 = reactExports.useRef();
@@ -60227,7 +62656,7 @@ function useClickOutside(handler, events2, nodes) {
60227
62656
  } = event ?? {};
60228
62657
  if (Array.isArray(nodes)) {
60229
62658
  const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
60230
- nodes.every((node) => !!node && !event.composedPath().includes(node)) && !shouldIgnore && handler();
62659
+ nodes.every((node2) => !!node2 && !event.composedPath().includes(node2)) && !shouldIgnore && handler();
60231
62660
  } else
60232
62661
  ref2.current && !ref2.current.contains(target) && handler();
60233
62662
  };
@@ -60464,10 +62893,10 @@ function useHover() {
60464
62893
  };
60465
62894
  return reactExports.useEffect(
60466
62895
  () => {
60467
- const node = ref2.current;
60468
- if (node)
60469
- return node.addEventListener("mouseover", handleMouseOver), node.addEventListener("mouseout", handleMouseOut), () => {
60470
- node.removeEventListener("mouseover", handleMouseOver), node.removeEventListener("mouseout", handleMouseOut);
62896
+ const node2 = ref2.current;
62897
+ if (node2)
62898
+ return node2.addEventListener("mouseover", handleMouseOver), node2.addEventListener("mouseout", handleMouseOut), () => {
62899
+ node2.removeEventListener("mouseover", handleMouseOver), node2.removeEventListener("mouseout", handleMouseOut);
60471
62900
  };
60472
62901
  },
60473
62902
  [ref2]
@@ -60513,12 +62942,12 @@ function useToggle(initialState2 = false) {
60513
62942
  function useTrapFocus() {
60514
62943
  const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
60515
62944
  return reactExports.useEffect(() => {
60516
- const node = ref2.current, firstFocusableElement = node.querySelectorAll(focusableElements)[0], focusableContent = node.querySelectorAll(focusableElements), lastFocusableElement = ref2 && (focusableContent == null ? void 0 : focusableContent[focusableContent.length - 1]), handleKeydown = (event) => {
62945
+ 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) => {
60517
62946
  event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
60518
62947
  };
60519
- if (node)
60520
- return node.addEventListener("keydown", handleKeydown), () => {
60521
- node.removeEventListener("keydown", handleKeydown);
62948
+ if (node2)
62949
+ return node2.addEventListener("keydown", handleKeydown), () => {
62950
+ node2.removeEventListener("keydown", handleKeydown);
60522
62951
  };
60523
62952
  }, []), ref2;
60524
62953
  }
@@ -60719,98 +63148,6 @@ function useXitiTrackPageLoad() {
60719
63148
  xitiStatus
60720
63149
  };
60721
63150
  }
60722
- function useZendeskGuide() {
60723
- const sessionQuery = useSession(), {
60724
- isAdml
60725
- } = useIsAdml(), {
60726
- theme
60727
- } = useOdeTheme(), hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = reactExports.useState(""), [dataModule, setDataModule] = reactExports.useState(void 0), setZendeskGuideLabels = () => {
60728
- var _a2;
60729
- const modulePathnameSplit = locationPathname.split("/");
60730
- let moduleLabel = "", labels = "";
60731
- if (dataModule != null && dataModule.labels && Object.keys(dataModule == null ? void 0 : dataModule.labels).length > 0 && modulePathnameSplit.length > 1) {
60732
- for (let i2 = 1; i2 < modulePathnameSplit.length; i2++)
60733
- modulePathnameSplit[i2].length > 0 && modulePathnameSplit[i2].match(/\d/) == null && (moduleLabel.length === 0 ? moduleLabel = modulePathnameSplit[i2] : moduleLabel = moduleLabel + "/" + modulePathnameSplit[i2]);
60734
- 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);
60735
- } else
60736
- dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
60737
- if (labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
60738
- const userProfile = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.userProfile[0]) || "";
60739
- labels = labels.replace("${profile}", userProfile.toLowerCase());
60740
- }
60741
- labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
60742
- labels: [labels]
60743
- });
60744
- };
60745
- return reactExports.useEffect(() => {
60746
- window.location.pathname !== locationPathname && setLocationPathname(window.location.pathname), !(dataModule === void 0 || Object.keys(dataModule).length === 0) && setZendeskGuideLabels();
60747
- }, [window.location.pathname, dataModule]), reactExports.useEffect(() => {
60748
- document.getElementById("ze-snippet") || hasSupportWorkflow === void 0 || (async () => {
60749
- var _a2;
60750
- const zendeskGuideConfig = await odeServices.http().get("/zendeskGuide/config");
60751
- if (zendeskGuideConfig && zendeskGuideConfig.key && zendeskGuideConfig.key !== "") {
60752
- const scriptZendesk = document.createElement("script");
60753
- scriptZendesk.id = "ze-snippet", scriptZendesk.src = `https://static.zdassets.com/ekr/snippet.js?key=${zendeskGuideConfig.key}`;
60754
- const currentLanguage = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
60755
- document.body.appendChild(scriptZendesk).onload = () => {
60756
- currentLanguage === "es" ? window.zE(function() {
60757
- window.zE.setLocale("es-419");
60758
- }) : window.zE(function() {
60759
- window.zE.setLocale("fr");
60760
- }), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "updateSettings", {
60761
- webWidget: {
60762
- color: {
60763
- theme: zendeskGuideConfig.color || "#ffc400"
60764
- },
60765
- zIndex: 2,
60766
- launcher: {
60767
- mobile: {
60768
- labelVisible: true
60769
- }
60770
- },
60771
- contactForm: {
60772
- suppress: !hasSupportWorkflow
60773
- },
60774
- helpCenter: {
60775
- messageButton: {
60776
- "*": "Assistance ENT",
60777
- "es-419": "Asistencia ENT"
60778
- }
60779
- }
60780
- }
60781
- }), window.addEventListener("scroll", () => {
60782
- window.zE("webWidget", "updateSettings", {
60783
- webWidget: {
60784
- launcher: {
60785
- mobile: {
60786
- labelVisible: window.scrollY <= 5
60787
- }
60788
- }
60789
- }
60790
- });
60791
- }), window.zE("webWidget:on", "open", function() {
60792
- hasSupportWorkflow && window.zE("webWidget", "updateSettings", {
60793
- webWidget: {
60794
- contactForm: {
60795
- suppress: false
60796
- }
60797
- }
60798
- });
60799
- }), window.zE("webWidget:on", "userEvent", function(ref2) {
60800
- const category = ref2.category, action = ref2.action, properties = ref2.properties;
60801
- action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties && properties.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
60802
- webWidget: {
60803
- contactForm: {
60804
- suppress: true
60805
- }
60806
- }
60807
- }), window.zE("webWidget", "close"), window.open("/support", "_blank"));
60808
- });
60809
- };
60810
- }
60811
- })();
60812
- }, [hasSupportWorkflow]), null;
60813
- }
60814
63151
  const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
60815
63152
  src,
60816
63153
  alt,
@@ -61262,8 +63599,8 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
61262
63599
  onMenuItemKeyDown,
61263
63600
  onMenuItemMouseEnter,
61264
63601
  onMenuItemClick
61265
- } = itemProps, handleOnClick = () => {
61266
- onClick2 == null || onClick2(), type2 === "action" && onMenuItemClick();
63602
+ } = itemProps, handleOnClick = (event) => {
63603
+ onClick2 == null || onClick2(event), type2 === "action" && onMenuItemClick();
61267
63604
  }, id2 = reactExports.useId(), dropdownItem = clsx("dropdown-item", {
61268
63605
  focus: isFocused === id2
61269
63606
  });
@@ -61626,8 +63963,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
61626
63963
  }
61627
63964
  });
61628
63965
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
61629
- 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: (node) => {
61630
- modalRef.current = node, isOpen2 && (trapRef.current = node);
63966
+ 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) => {
63967
+ modalRef.current = node2, isOpen2 && (trapRef.current = node2);
61631
63968
  }, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
61632
63969
  isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
61633
63970
  opacity: 0.65
@@ -61709,7 +64046,8 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
61709
64046
  className,
61710
64047
  ...restProps
61711
64048
  }, ref2) => {
61712
- const {
64049
+ var _a2, _b2;
64050
+ const [content, setContent] = reactExports.useState(((_a2 = restProps.defaultValue) == null ? void 0 : _a2.toString()) || ((_b2 = restProps.value) == null ? void 0 : _b2.toString())), {
61713
64051
  id: id2,
61714
64052
  isRequired,
61715
64053
  isReadOnly,
@@ -61726,7 +64064,16 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
61726
64064
  "form-control-plaintext": isReadOnly,
61727
64065
  "no-validation-icon": noValidationIcon
61728
64066
  }, className);
61729
- return /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ref: ref2, id: id2, className: classes2, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps });
64067
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
64068
+ /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ref: ref2, id: id2, className: classes2, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps, value: content, onChange: (event) => {
64069
+ setContent(event.target.value);
64070
+ } }),
64071
+ restProps.maxLength && content && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "small text-gray-700 p-2 text-end", children: [
64072
+ content.length,
64073
+ " / ",
64074
+ restProps.maxLength
64075
+ ] })
64076
+ ] });
61730
64077
  }), TextArea$1 = TextArea;
61731
64078
  function useTreeItemEvents(nodeId, label, expanded, setExpanded, onItemSelect, onItemFold, onItemUnfold, onItemFocus, onItemBlur) {
61732
64079
  const handleItemClick = (event) => {
@@ -61779,7 +64126,7 @@ const TreeItem = (props) => {
61779
64126
  reactExports.useEffect(() => {
61780
64127
  if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
61781
64128
  const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
61782
- selectedNodesIds.some((node) => node === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node === nodeId) : (setExpanded(false), false));
64129
+ selectedNodesIds.some((node2) => node2 === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node2 === nodeId) : (setExpanded(false), false));
61783
64130
  } else
61784
64131
  setExpanded(false);
61785
64132
  }, [nodeId, selectedNodesIds]);
@@ -61828,7 +64175,7 @@ const TreeItem = (props) => {
61828
64175
  onTreeItemFocus == null || onTreeItemFocus(nodeId);
61829
64176
  }, handleItemBlur = (nodeId) => {
61830
64177
  onTreeItemBlur == null || onTreeItemBlur(nodeId);
61831
- }, renderTree = (node) => /* @__PURE__ */ jsxRuntimeExports.jsx(TreeItem$1, { nodeId: node.id, label: node.name, section: node.section, selectedNodesIds, selected: selectedItem === node.id, onItemSelect: handlers.select, onItemFold: handleItemFold, onItemUnfold: handleItemUnfold, onItemFocus: handleItemFocus, onItemBlur: handleItemBlur, children: Array.isArray(node.children) ? node.children.map((item) => renderTree(item)) : null }, node.id);
64178
+ }, 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);
61832
64179
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
61833
64180
  }), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
61834
64181
  children
@@ -62499,15 +64846,19 @@ const useThumb = ({
62499
64846
  /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("title") }),
62500
64847
  /* @__PURE__ */ jsxRuntimeExports.jsx(Input$1, { type: "text", defaultValue: isUpdating ? resource == null ? void 0 : resource.name : "", ...register("title", {
62501
64848
  required: true,
64849
+ maxLength: 60,
62502
64850
  pattern: {
62503
64851
  value: /[^ ]/,
62504
64852
  message: "invalid title"
62505
64853
  }
62506
- }), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true })
64854
+ }), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true, maxLength: 60 })
62507
64855
  ] }),
62508
64856
  /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "description", isOptional: true, children: [
62509
64857
  /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("description") }),
62510
- /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea$1, { defaultValue: isUpdating ? resource == null ? void 0 : resource.description : "", ...register("description"), placeholder: t2("explorer.resource.editModal.description.placeholder"), size: "md" })
64858
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea$1, { value: resource.description, ...register("description", {
64859
+ required: false,
64860
+ maxLength: 400
64861
+ }), placeholder: t2("explorer.resource.editModal.description.placeholder"), size: "md", maxLength: 400 })
62511
64862
  ] })
62512
64863
  ] })
62513
64864
  ] }),
@@ -62979,17 +65330,17 @@ const stripAccents = (input) => {
62979
65330
  }, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
62980
65331
  const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
62981
65332
  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"), "");
62982
- }, slugify = (node, options = { delimiter: "-", prefix: "" }) => {
62983
- if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node || typeof node == "boolean")
65333
+ }, slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
65334
+ if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node2 || typeof node2 == "boolean")
62984
65335
  return "";
62985
65336
  const { delimiter, prefix: prefix2 } = options;
62986
- if (typeof node == "boolean")
65337
+ if (typeof node2 == "boolean")
62987
65338
  return "";
62988
- if (typeof node == "string" || typeof node == "number") {
62989
- const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node), delimiter);
65339
+ if (typeof node2 == "string" || typeof node2 == "number") {
65340
+ const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node2), delimiter);
62990
65341
  return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
62991
65342
  }
62992
- return "children" in node ? slugify(node.children) : "type" in node ? slugify(node.props.children, options) : Symbol.iterator in node ? slugify(Array.from(node).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
65343
+ 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) : "";
62993
65344
  };
62994
65345
  var _default = slugify$1.default = slugify;
62995
65346
  const useSlug = ({
@@ -63731,7 +66082,101 @@ const WidgetAppsFooter = () => {
63731
66082
  !bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
63732
66083
  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))
63733
66084
  ] });
63734
- }, SearchEngine = () => {
66085
+ };
66086
+ function Help({
66087
+ isHelpOpen,
66088
+ setIsHelpOpen,
66089
+ parsedHeadline,
66090
+ parsedContent,
66091
+ error
66092
+ }) {
66093
+ const {
66094
+ t: t2
66095
+ } = useTranslation(), handleHelpOpen = () => {
66096
+ setIsHelpOpen(false);
66097
+ };
66098
+ return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
66099
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
66100
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
66101
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
66102
+ ] }), document.getElementById("portal")) : null;
66103
+ }
66104
+ function useHelp() {
66105
+ var _a2, _b2, _c2, _d2, _e2;
66106
+ const {
66107
+ appCode
66108
+ } = useOdeClient(), {
66109
+ theme
66110
+ } = 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";
66111
+ reactExports.useEffect(() => {
66112
+ (async () => {
66113
+ let helpURL = "";
66114
+ 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/");
66115
+ try {
66116
+ const res = await fetch(helpURL), html2 = await res.text();
66117
+ if (res.status === 404) {
66118
+ setError(true);
66119
+ return;
66120
+ }
66121
+ setHtml(html2), setError(false);
66122
+ } catch (error2) {
66123
+ setError(true), console.error(error2);
66124
+ }
66125
+ })();
66126
+ }, [appCode, helpPath]);
66127
+ const parsedHTML = HTMLReactParser$1(html, {
66128
+ replace: (domNode) => {
66129
+ const typedDomNode = domNode;
66130
+ if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
66131
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
66132
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
66133
+ setVisibility(!visibility);
66134
+ }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
66135
+ domToReact(typedDomNode.children, {
66136
+ replace: (domNode2) => {
66137
+ const typedDomNode2 = domNode2;
66138
+ if (typedDomNode2.attribs && typedDomNode2.name === "ul")
66139
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
66140
+ display: visibility ? "block" : "none"
66141
+ }, children: domToReact(typedDomNode2.children, {
66142
+ replace: (domNode3) => {
66143
+ const typedDomNode3 = domNode3;
66144
+ if (typedDomNode3.attribs && typedDomNode3.name === "a")
66145
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps2(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
66146
+ setVisibility(false);
66147
+ }, children: domToReact(typedDomNode3.children) }) });
66148
+ }
66149
+ }) });
66150
+ }
66151
+ })
66152
+ ] });
66153
+ if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
66154
+ const props = attributesToProps2(domNode.attribs);
66155
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
66156
+ display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
66157
+ }, children: domToReact(typedDomNode.children, {
66158
+ replace: (domNode2) => {
66159
+ const typedDomNode2 = domNode2;
66160
+ if (typedDomNode2.attribs && typedDomNode2.name === "img") {
66161
+ const attribs = domNode2.attribs.src;
66162
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps2(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
66163
+ }
66164
+ }
66165
+ }) });
66166
+ }
66167
+ }
66168
+ }), 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;
66169
+ return {
66170
+ html,
66171
+ visibility,
66172
+ isModalOpen,
66173
+ setIsModalOpen,
66174
+ parsedContent,
66175
+ parsedHeadline,
66176
+ error
66177
+ };
66178
+ }
66179
+ const SearchEngine = () => {
63735
66180
  const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
63736
66181
  t: t2
63737
66182
  } = useTranslation();
@@ -63765,8 +66210,15 @@ const WidgetAppsFooter = () => {
63765
66210
  user,
63766
66211
  avatar
63767
66212
  } = useUser(), {
66213
+ currentLanguage,
63768
66214
  currentApp
63769
- } = useOdeClient(), classes2 = clsx("header", {
66215
+ } = useOdeClient(), {
66216
+ isModalOpen: isHelpOpen,
66217
+ setIsModalOpen: setIsHelpOpen,
66218
+ parsedContent,
66219
+ parsedHeadline,
66220
+ error
66221
+ } = useHelp(), classes2 = clsx("header", {
63770
66222
  "no-2d": is1d,
63771
66223
  "no-1d": !is1d
63772
66224
  }), {
@@ -63802,6 +66254,15 @@ const WidgetAppsFooter = () => {
63802
66254
  /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
63803
66255
  ] }) }),
63804
66256
  /* @__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" }) }) }),
66257
+ currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
66258
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
66259
+ setIsHelpOpen(true);
66260
+ }, children: [
66261
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
66262
+ /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
66263
+ ] }),
66264
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
66265
+ ] }) : null,
63805
66266
  /* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
63806
66267
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
63807
66268
  /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
@@ -63846,6 +66307,15 @@ const WidgetAppsFooter = () => {
63846
66307
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
63847
66308
  hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
63848
66309
  ] }) }),
66310
+ currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
66311
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
66312
+ setIsHelpOpen(true);
66313
+ }, children: [
66314
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
66315
+ /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
66316
+ ] }),
66317
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
66318
+ ] }) : null,
63849
66319
  /* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
63850
66320
  /* @__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" }) }),
63851
66321
  /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
@@ -63880,14 +66350,35 @@ const WidgetAppsFooter = () => {
63880
66350
  showCookiesConsent,
63881
66351
  handleConsultCookies,
63882
66352
  handleCloseCookiesConsent
63883
- } = useCookiesConsent();
63884
- useZendeskGuide();
63885
- const classes2 = clsx("d-flex flex-column bg-white", {
66353
+ } = useCookiesConsent(), classes2 = clsx("d-flex flex-column bg-white", {
63886
66354
  "container-fluid": !headless,
63887
66355
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
63888
66356
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
63889
- }), 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: {
63890
- position: "top-right"
66357
+ }), 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, { containerStyle: {
66358
+ zIndex: 0
66359
+ }, toastOptions: {
66360
+ position: "top-right",
66361
+ style: {},
66362
+ success: {
66363
+ style: {
66364
+ zIndex: 9999
66365
+ }
66366
+ },
66367
+ error: {
66368
+ style: {
66369
+ zIndex: 9999
66370
+ }
66371
+ },
66372
+ loading: {
66373
+ style: {
66374
+ zIndex: 9999
66375
+ }
66376
+ },
66377
+ custom: {
66378
+ style: {
66379
+ zIndex: 9999
66380
+ }
66381
+ }
63891
66382
  } });
63892
66383
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
63893
66384
  renderHeader,
@@ -64121,7 +66612,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
64121
66612
  var withSelectorExports = withSelector.exports;
64122
66613
  const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
64123
66614
  var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
64124
- const { useDebugValue } = React;
66615
+ const { useDebugValue } = React$2;
64125
66616
  const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
64126
66617
  let didWarnAboutEqualityFn = false;
64127
66618
  const identity = (arg) => arg;
@@ -64368,11 +66859,11 @@ class TreeNodeFolderWrapper {
64368
66859
  }
64369
66860
  }
64370
66861
  const wrapTreeNode = (treeNode, folders, parentId) => {
64371
- return modifyNode(treeNode, (node) => {
64372
- if (node.id === parentId) {
64373
- node.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
66862
+ return modifyNode(treeNode, (node2) => {
66863
+ if (node2.id === parentId) {
66864
+ node2.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
64374
66865
  }
64375
- return node;
66866
+ return node2;
64376
66867
  });
64377
66868
  };
64378
66869
  const initialState = {
@@ -64716,7 +67207,7 @@ const useSearchForm = () => {
64716
67207
  function ExplorerBreadcrumb() {
64717
67208
  const { appCode } = useOdeClient();
64718
67209
  const { gotoPreviousFolder } = useStoreActions();
64719
- const { t: t2 } = useTranslation();
67210
+ const { t: t2 } = useTranslation(["common", appCode]);
64720
67211
  const { inputSearch } = useSearchForm();
64721
67212
  const selectedNodesIds = useSelectedNodesIds();
64722
67213
  const isTrashFolder = useIsTrash();
@@ -64769,45 +67260,45 @@ const useTrashModal = () => {
64769
67260
  };
64770
67261
  };
64771
67262
  function addNode(treeData, { parentId, newFolder }) {
64772
- return modifyNode(treeData, (node) => {
67263
+ return modifyNode(treeData, (node2) => {
64773
67264
  var _a2;
64774
- if (node.id === parentId) {
67265
+ if (node2.id === parentId) {
64775
67266
  const parentAncestors = [
64776
- ...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
67267
+ ...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
64777
67268
  ];
64778
- const ancestors = arrayUnique([...parentAncestors, node.id]);
67269
+ const ancestors = arrayUnique([...parentAncestors, node2.id]);
64779
67270
  const newNode = {
64780
- ...node,
67271
+ ...node2,
64781
67272
  children: [
64782
- ...node.children || [],
67273
+ ...node2.children || [],
64783
67274
  new TreeNodeFolderWrapper({ ...newFolder, ancestors })
64784
67275
  ]
64785
67276
  };
64786
67277
  return newNode;
64787
67278
  } else {
64788
- return node;
67279
+ return node2;
64789
67280
  }
64790
67281
  });
64791
67282
  }
64792
67283
  function deleteNode(treeData, { folders }) {
64793
- return modifyNode(treeData, (node) => {
64794
- if (folders.includes(node.id)) {
67284
+ return modifyNode(treeData, (node2) => {
67285
+ if (folders.includes(node2.id)) {
64795
67286
  return void 0;
64796
67287
  } else {
64797
- return node;
67288
+ return node2;
64798
67289
  }
64799
67290
  });
64800
67291
  }
64801
67292
  function moveNode(treeData, { destinationId, folders }) {
64802
- return modifyNode(treeData, (node, parent) => {
67293
+ return modifyNode(treeData, (node2, parent) => {
64803
67294
  var _a2, _b2;
64804
- if (destinationId === node.id) {
67295
+ if (destinationId === node2.id) {
64805
67296
  const parentAncestors = [
64806
- ...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
67297
+ ...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
64807
67298
  ];
64808
- const ancestors = arrayUnique([...parentAncestors, node.id]);
64809
- const newChildren = [...node.children || []];
64810
- const childrenIds = ((_b2 = node.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
67299
+ const ancestors = arrayUnique([...parentAncestors, node2.id]);
67300
+ const newChildren = [...node2.children || []];
67301
+ const childrenIds = ((_b2 = node2.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
64811
67302
  for (const folder of folders) {
64812
67303
  if (!childrenIds.includes(folder)) {
64813
67304
  const item = findNodeById(folder, treeData);
@@ -64821,23 +67312,23 @@ function moveNode(treeData, { destinationId, folders }) {
64821
67312
  }
64822
67313
  }
64823
67314
  const newNode = {
64824
- ...node,
67315
+ ...node2,
64825
67316
  children: newChildren
64826
67317
  };
64827
67318
  return newNode;
64828
- } else if (folders.includes(node.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
67319
+ } else if (folders.includes(node2.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
64829
67320
  return void 0;
64830
67321
  } else {
64831
- return node;
67322
+ return node2;
64832
67323
  }
64833
67324
  });
64834
67325
  }
64835
67326
  function updateNode(treeData, { folderId, newFolder }) {
64836
- return modifyNode(treeData, (node) => {
64837
- if (node.id === folderId) {
67327
+ return modifyNode(treeData, (node2) => {
67328
+ if (node2.id === folderId) {
64838
67329
  return new TreeNodeFolderWrapper(newFolder);
64839
67330
  } else {
64840
- return node;
67331
+ return node2;
64841
67332
  }
64842
67333
  });
64843
67334
  }
@@ -65172,7 +67663,7 @@ const useCopyResource = () => {
65172
67663
  }
65173
67664
  );
65174
67665
  }
65175
- if (currentFolder.id && currentFolder.id !== "default") {
67666
+ if (currentFolder.id && currentFolder.id !== FOLDER.DEFAULT) {
65176
67667
  moveToFolder({
65177
67668
  searchParams,
65178
67669
  resourceIds: [data.duplicateId],
@@ -65554,10 +68045,9 @@ const useCreateResource = () => {
65554
68045
  var _a2, _b2, _c2;
65555
68046
  await queryClient2.cancelQueries({ queryKey });
65556
68047
  const previousData = queryClient2.getQueryData(queryKey);
65557
- const { thumbnail } = variables;
65558
68048
  const newResource = {
65559
68049
  ...variables,
65560
- thumbnail: thumbnail ? URL.createObjectURL(thumbnail) : "",
68050
+ thumbnail: data.thumbnail || "",
65561
68051
  application,
65562
68052
  assetId: data._id || data.entId || "",
65563
68053
  id: data._id || data.entId || "",
@@ -65621,7 +68111,7 @@ const List = () => {
65621
68111
  const treeData = useTreeData();
65622
68112
  const toast = useToast();
65623
68113
  const { appCode } = useOdeClient();
65624
- const { t: t2 } = useTranslation();
68114
+ const { t: t2 } = useTranslation([appCode]);
65625
68115
  const { setSearchParams, setSearchConfig, setTreeData } = useStoreActions();
65626
68116
  const { data, isError: isError2, error, isLoading, isFetching, fetchNextPage } = useSearchContext();
65627
68117
  const hasNoFolders = (data == null ? void 0 : data.pages[0].folders.length) === 0;
@@ -65864,7 +68354,10 @@ const TreeViewContainer = () => {
65864
68354
  /* @__PURE__ */ jsxRuntimeExports.jsx(
65865
68355
  TreeView$1,
65866
68356
  {
65867
- data: treeData,
68357
+ data: {
68358
+ ...treeData,
68359
+ name: t2("explorer.filters.mine", { ns: appCode })
68360
+ },
65868
68361
  selectedNodesIds,
65869
68362
  onTreeItemSelect: selectTreeItem,
65870
68363
  onTreeItemFold: foldTreeItem,
@@ -66282,7 +68775,7 @@ const ResourceCard = ({
66282
68775
  Image$2,
66283
68776
  {
66284
68777
  alt: "",
66285
- src: resource == null ? void 0 : resource.thumbnail,
68778
+ src: `${resource == null ? void 0 : resource.thumbnail}?thumbnail=80x80`,
66286
68779
  objectFit: "cover",
66287
68780
  className: "h-full w-100"
66288
68781
  }
@@ -66339,13 +68832,13 @@ const ResourceCard = ({
66339
68832
  );
66340
68833
  };
66341
68834
  ResourceCard.displayName = "ResourceCard";
66342
- dayjs.extend(relativeTime);
66343
68835
  const ResourcesList = ({
66344
68836
  data,
66345
68837
  fetchNextPage
66346
68838
  }) => {
66347
- const { currentApp, currentLanguage } = useOdeClient();
68839
+ const { currentApp } = useOdeClient();
66348
68840
  const { t: t2 } = useTranslation();
68841
+ const { fromNow } = useDate();
66349
68842
  const searchParams = useSearchParams();
66350
68843
  const resourceIds = useResourceIds();
66351
68844
  const selectedResources = useSelectedResources();
@@ -66392,12 +68885,12 @@ const ResourcesList = ({
66392
68885
  setSelectedResources([...selectedResources, resource]);
66393
68886
  }
66394
68887
  const classes2 = clsx("grid ps-0 list-unstyled");
66395
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
68888
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(React$2.Fragment, { children: [
66396
68889
  /* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
66397
68890
  // eslint-disable-next-line react/no-array-index-key
66398
- /* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
68891
+ /* @__PURE__ */ jsxRuntimeExports.jsx(React$2.Fragment, { children: page.resources.map((resource) => {
66399
68892
  const { id: id2, updatedAt } = resource;
66400
- const time = dayjs(updatedAt).locale(currentLanguage).fromNow();
68893
+ const time = fromNow(updatedAt);
66401
68894
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
66402
68895
  animated.li,
66403
68896
  {
@@ -66539,6 +69032,7 @@ function FolderModal$1({
66539
69032
  type: "text",
66540
69033
  ...register("name", {
66541
69034
  required: true,
69035
+ maxLength: 60,
66542
69036
  pattern: {
66543
69037
  value: /[^ ]/,
66544
69038
  message: "invalid title"
@@ -66546,7 +69040,8 @@ function FolderModal$1({
66546
69040
  }),
66547
69041
  placeholder: t2("explorer.create.folder.name"),
66548
69042
  size: "md",
66549
- "aria-required": true
69043
+ "aria-required": true,
69044
+ maxLength: 60
66550
69045
  }
66551
69046
  )
66552
69047
  ] }) }) }),
@@ -66668,7 +69163,7 @@ const Library = () => {
66668
69163
  href: libraryUrl,
66669
69164
  target: "_blank",
66670
69165
  rel: "noreferrer",
66671
- className: "d-inline-flex gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
69166
+ className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
66672
69167
  children: [
66673
69168
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t2("explorer.libray.btn") }),
66674
69169
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgArrowRight$1, {})
@@ -66810,14 +69305,10 @@ function useActionBar() {
66810
69305
  case ACTION.UPD_PROPS:
66811
69306
  case "edit":
66812
69307
  return onEdit();
66813
- case "export":
66814
- if (resourceIds.length > 0) {
66815
- return onExport();
66816
- } else {
66817
- return null;
66818
- }
66819
69308
  case ACTION.SHARE:
66820
69309
  return setOpenedModalName("share");
69310
+ case ACTION.EXPORT:
69311
+ return setOpenedModalName("export");
66821
69312
  default:
66822
69313
  throw Error(`Unknown action: ${action.id}`);
66823
69314
  }
@@ -66889,6 +69380,8 @@ function useActionBar() {
66889
69380
  const onEditResourceCancel = onFinish("edit_resource");
66890
69381
  const onShareResourceSuccess = onFinish("share");
66891
69382
  const onShareResourceCancel = onFinish("share");
69383
+ const onExportCancel = onFinish("export");
69384
+ const onExportSuccess = onFinish("export");
66892
69385
  async function onCopy() {
66893
69386
  if (selectedResources && selectedResources.length > 0) {
66894
69387
  const selectedResource = selectedResources[0];
@@ -66905,12 +69398,6 @@ function useActionBar() {
66905
69398
  setOpenedModalName("edit_folder");
66906
69399
  }
66907
69400
  }
66908
- function onExport() {
66909
- if (resourceIds && resourceIds.length > 0) {
66910
- const selectedResource = selectedResources[0].assetId;
66911
- goToExport({ searchParams, assetId: selectedResource });
66912
- }
66913
- }
66914
69401
  function overrideLabel(action) {
66915
69402
  if (action.id === "edit" && folderIds.length > 0) {
66916
69403
  return "explorer.rename";
@@ -66944,6 +69431,9 @@ function useActionBar() {
66944
69431
  isShareResourceOpen: openedModalName === "share",
66945
69432
  onShareResourceCancel,
66946
69433
  onShareResourceSuccess,
69434
+ isExportModalOpen: openedModalName === "export",
69435
+ onExportCancel,
69436
+ onExportSuccess,
66947
69437
  onClearActionBar
66948
69438
  };
66949
69439
  }
@@ -66993,6 +69483,7 @@ const UpdateModal = reactExports.lazy(
66993
69483
  const DeleteModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => DeleteModal$1), true ? void 0 : void 0));
66994
69484
  const MoveModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => MoveModal$1), true ? void 0 : void 0));
66995
69485
  const FolderModal = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => FolderModal$2), true ? void 0 : void 0));
69486
+ const ExportModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => ExportModal$1), true ? void 0 : void 0));
66996
69487
  function ActionBarContainer() {
66997
69488
  const { appCode } = useOdeClient();
66998
69489
  const { t: t2 } = useTranslation();
@@ -67013,6 +69504,9 @@ function ActionBarContainer() {
67013
69504
  isShareResourceOpen,
67014
69505
  onShareResourceCancel,
67015
69506
  onShareResourceSuccess,
69507
+ isExportModalOpen,
69508
+ onExportCancel,
69509
+ onExportSuccess,
67016
69510
  onMoveCancel,
67017
69511
  onMoveSuccess,
67018
69512
  onDeleteCancel,
@@ -67141,6 +69635,14 @@ function ActionBarContainer() {
67141
69635
  }
67142
69636
  ) : null
67143
69637
  }
69638
+ ),
69639
+ isExportModalOpen && selectedResource && /* @__PURE__ */ jsxRuntimeExports.jsx(
69640
+ ExportModal$2,
69641
+ {
69642
+ isOpen: isExportModalOpen,
69643
+ onCancel: onExportCancel,
69644
+ onSuccess: onExportSuccess
69645
+ }
67144
69646
  )
67145
69647
  ] })
67146
69648
  ] });
@@ -67394,6 +69896,69 @@ const MoveModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
67394
69896
  __proto__: null,
67395
69897
  default: MoveModal
67396
69898
  }, Symbol.toStringTag, { value: "Module" }));
69899
+ const useExportModal = (onSuccess) => {
69900
+ const selectedResources = useSelectedResources();
69901
+ const searchParams = useSearchParams();
69902
+ const toast = useToast();
69903
+ const { t: t2 } = useTranslation();
69904
+ const handleExportClick = () => {
69905
+ if (selectedResources.length) {
69906
+ goToExport({ searchParams, assetId: selectedResources[0].assetId });
69907
+ onSuccess();
69908
+ } else {
69909
+ toast.error(t2("explorer.error.noResourceSelected"));
69910
+ }
69911
+ };
69912
+ return { handleExportClick };
69913
+ };
69914
+ function ExportModal({
69915
+ isOpen,
69916
+ onSuccess,
69917
+ onCancel
69918
+ }) {
69919
+ const { handleExportClick } = useExportModal(onSuccess);
69920
+ const { t: t2 } = useTranslation();
69921
+ return reactDomExports.createPortal(
69922
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "exportModal", children: [
69923
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2("explorer.export.title") }),
69924
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
69925
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
69926
+ /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.1") }),
69927
+ /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.2") }),
69928
+ /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.3") })
69929
+ ] }),
69930
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "warning", children: t2("explorer.export.body.warning") })
69931
+ ] }),
69932
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Footer, { children: [
69933
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
69934
+ Button$1,
69935
+ {
69936
+ color: "tertiary",
69937
+ onClick: onCancel,
69938
+ type: "button",
69939
+ variant: "ghost",
69940
+ children: t2("explorer.cancel")
69941
+ }
69942
+ ),
69943
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
69944
+ Button$1,
69945
+ {
69946
+ color: "primary",
69947
+ onClick: handleExportClick,
69948
+ type: "button",
69949
+ variant: "filled",
69950
+ children: t2("explorer.actions.export")
69951
+ }
69952
+ )
69953
+ ] })
69954
+ ] }),
69955
+ document.getElementById("portal")
69956
+ );
69957
+ }
69958
+ const ExportModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69959
+ __proto__: null,
69960
+ default: ExportModal
69961
+ }, Symbol.toStringTag, { value: "Module" }));
67397
69962
  function __vite__mapDeps(indexes) {
67398
69963
  if (!__vite__mapDeps.viteFileDeps) {
67399
69964
  __vite__mapDeps.viteFileDeps = []