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

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 node2 of mutation.addedNodes) {
72
- if (node2.tagName === "LINK" && node2.rel === "modulepreload")
73
- processPreload(node2);
71
+ for (const node of mutation.addedNodes) {
72
+ if (node.tagName === "LINK" && node.rel === "modulepreload")
73
+ processPreload(node);
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$2 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
419
- const React$3 = /* @__PURE__ */ _mergeNamespaces({
418
+ const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
419
+ const React$1 = /* @__PURE__ */ _mergeNamespaces({
420
420
  __proto__: null,
421
- default: React$2
421
+ default: React
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$2(string) {
1347
+ function capitalize(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$2(p2[1].toLowerCase());
1385
+ p2[1] = capitalize(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$2(p2[1].toLowerCase());
1393
+ p2[1] = capitalize(p2[1].toLowerCase());
1394
1394
  if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
1395
- p2[2] = capitalize$2(p2[2].toLowerCase());
1395
+ p2[2] = capitalize(p2[2].toLowerCase());
1396
1396
  }
1397
1397
  return p2.join("-");
1398
1398
  }
@@ -4100,12 +4100,6 @@ 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
- }
4109
4103
  function useTranslation(ns) {
4110
4104
  let props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4111
4105
  const {
@@ -4149,9 +4143,9 @@ function useTranslation(ns) {
4149
4143
  if (i18n.reportNamespaces.addUsedNamespaces)
4150
4144
  i18n.reportNamespaces.addUsedNamespaces(namespaces);
4151
4145
  const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n2) => hasLoadedNamespace(n2, i18n, i18nOptions));
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);
4146
+ function getT() {
4147
+ return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
4148
+ }
4155
4149
  const [t2, setT] = reactExports.useState(getT);
4156
4150
  let joinedNS = namespaces.join();
4157
4151
  if (props.lng)
@@ -4168,21 +4162,21 @@ function useTranslation(ns) {
4168
4162
  if (props.lng) {
4169
4163
  loadLanguages(i18n, props.lng, namespaces, () => {
4170
4164
  if (isMounted.current)
4171
- setT(getNewT);
4165
+ setT(getT);
4172
4166
  });
4173
4167
  } else {
4174
4168
  loadNamespaces(i18n, namespaces, () => {
4175
4169
  if (isMounted.current)
4176
- setT(getNewT);
4170
+ setT(getT);
4177
4171
  });
4178
4172
  }
4179
4173
  }
4180
4174
  if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
4181
- setT(getNewT);
4175
+ setT(getT);
4182
4176
  }
4183
4177
  function boundReset() {
4184
4178
  if (isMounted.current)
4185
- setT(getNewT);
4179
+ setT(getT);
4186
4180
  }
4187
4181
  if (bindI18n && i18n)
4188
4182
  i18n.on(bindI18n, boundReset);
@@ -4196,11 +4190,13 @@ function useTranslation(ns) {
4196
4190
  bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
4197
4191
  };
4198
4192
  }, [i18n, joinedNS]);
4193
+ const isInitial = reactExports.useRef(true);
4199
4194
  reactExports.useEffect(() => {
4200
- if (isMounted.current && ready) {
4195
+ if (isMounted.current && !isInitial.current) {
4201
4196
  setT(getT);
4202
4197
  }
4203
- }, [i18n, keyPrefix, ready]);
4198
+ isInitial.current = false;
4199
+ }, [i18n, keyPrefix]);
4204
4200
  const ret = [t2, i18n, ready];
4205
4201
  ret.t = t2;
4206
4202
  ret.i18n = i18n;
@@ -4239,10 +4235,7 @@ instance.use(Backend).use(initReactI18next).init({
4239
4235
  prefix: "[[",
4240
4236
  suffix: "]]"
4241
4237
  },
4242
- debug: false,
4243
- react: {
4244
- useSuspense: false
4245
- }
4238
+ debug: false
4246
4239
  });
4247
4240
  var Subscribable = class {
4248
4241
  constructor() {
@@ -7231,7 +7224,7 @@ var uaParser = { exports: {} };
7231
7224
  return str.toLowerCase();
7232
7225
  }, majorize = function(version) {
7233
7226
  return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
7234
- }, trim2 = function(str, len) {
7227
+ }, trim = function(str, len) {
7235
7228
  if (typeof str === STR_TYPE) {
7236
7229
  str = str.replace(/^\s\s*/, EMPTY);
7237
7230
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
@@ -8067,7 +8060,7 @@ var uaParser = { exports: {} };
8067
8060
  /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
8068
8061
  // HbbTV devices
8069
8062
  ],
8070
- [[VENDOR, trim2], [MODEL, trim2], [TYPE2, SMARTTV]],
8063
+ [[VENDOR, trim], [MODEL, trim], [TYPE2, SMARTTV]],
8071
8064
  [
8072
8065
  /\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
8073
8066
  // SmartTV from Unidentified Vendors
@@ -8411,7 +8404,7 @@ var uaParser = { exports: {} };
8411
8404
  return _ua;
8412
8405
  };
8413
8406
  this.setUA = function(ua3) {
8414
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim2(ua3, UA_MAX_LENGTH) : ua3;
8407
+ _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
8415
8408
  return this;
8416
8409
  };
8417
8410
  this.setUA(_ua);
@@ -8460,7 +8453,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
8460
8453
  return t2;
8461
8454
  }
8462
8455
  return e2;
8463
- }, i$2 = (e2, t2, r2, i2, p2) => {
8456
+ }, i$1 = (e2, t2, r2, i2, p2) => {
8464
8457
  let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
8465
8458
  let t3 = 0, r3 = 11;
8466
8459
  for (; t3 < e3.length; )
@@ -8490,7 +8483,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
8490
8483
  }, "");
8491
8484
  function u$4(e2) {
8492
8485
  let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
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);
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);
8494
8487
  }
8495
8488
  let d$1, f$1, g$1;
8496
8489
  u$4.bind({ g: 1 });
@@ -8972,35 +8965,7 @@ const SvgAlertCircle = ({
8972
8965
  )
8973
8966
  ]
8974
8967
  }
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 = ({
8968
+ ), SvgBookmark$1 = SvgBookmark, SvgClose = ({
9004
8969
  title,
9005
8970
  titleId,
9006
8971
  ...props
@@ -16896,8 +16861,8 @@ const INPUT_VALIDATION_RULES = {
16896
16861
  required: "required",
16897
16862
  validate: "validate"
16898
16863
  };
16899
- const HookFormContext = React$2.createContext(null);
16900
- const useFormContext = () => React$2.useContext(HookFormContext);
16864
+ const HookFormContext = React.createContext(null);
16865
+ const useFormContext = () => React.useContext(HookFormContext);
16901
16866
  var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
16902
16867
  const result = {
16903
16868
  defaultValues: control._defaultValues
@@ -16925,9 +16890,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
16925
16890
  var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
16926
16891
  var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
16927
16892
  function useSubscribe(props) {
16928
- const _props = React$2.useRef(props);
16893
+ const _props = React.useRef(props);
16929
16894
  _props.current = props;
16930
- React$2.useEffect(() => {
16895
+ React.useEffect(() => {
16931
16896
  const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
16932
16897
  next: _props.current.next
16933
16898
  });
@@ -16939,9 +16904,9 @@ function useSubscribe(props) {
16939
16904
  function useFormState(props) {
16940
16905
  const methods = useFormContext();
16941
16906
  const { control = methods.control, disabled, name, exact } = props || {};
16942
- const [formState, updateFormState] = React$2.useState(control._formState);
16943
- const _mounted = React$2.useRef(true);
16944
- const _localProxyFormState = React$2.useRef({
16907
+ const [formState, updateFormState] = React.useState(control._formState);
16908
+ const _mounted = React.useRef(true);
16909
+ const _localProxyFormState = React.useRef({
16945
16910
  isDirty: false,
16946
16911
  isLoading: false,
16947
16912
  dirtyFields: false,
@@ -16950,7 +16915,7 @@ function useFormState(props) {
16950
16915
  isValid: false,
16951
16916
  errors: false
16952
16917
  });
16953
- const _name = React$2.useRef(name);
16918
+ const _name = React.useRef(name);
16954
16919
  _name.current = name;
16955
16920
  useSubscribe({
16956
16921
  disabled,
@@ -16960,7 +16925,7 @@ function useFormState(props) {
16960
16925
  }),
16961
16926
  subject: control._subjects.state
16962
16927
  });
16963
- React$2.useEffect(() => {
16928
+ React.useEffect(() => {
16964
16929
  _mounted.current = true;
16965
16930
  _localProxyFormState.current.isValid && control._updateValid(true);
16966
16931
  return () => {
@@ -16984,7 +16949,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
16984
16949
  function useWatch(props) {
16985
16950
  const methods = useFormContext();
16986
16951
  const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
16987
- const _name = React$2.useRef(name);
16952
+ const _name = React.useRef(name);
16988
16953
  _name.current = name;
16989
16954
  useSubscribe({
16990
16955
  disabled,
@@ -16995,8 +16960,8 @@ function useWatch(props) {
16995
16960
  }
16996
16961
  }
16997
16962
  });
16998
- const [value, updateValue] = React$2.useState(control._getWatch(name, defaultValue2));
16999
- React$2.useEffect(() => control._removeUnmounted());
16963
+ const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
16964
+ React.useEffect(() => control._removeUnmounted());
17000
16965
  return value;
17001
16966
  }
17002
16967
  var isKey = (value) => /^\w*$/.test(value);
@@ -17032,12 +16997,12 @@ function useController(props) {
17032
16997
  control,
17033
16998
  name
17034
16999
  });
17035
- const _registerProps = React$2.useRef(control.register(name, {
17000
+ const _registerProps = React.useRef(control.register(name, {
17036
17001
  ...props.rules,
17037
17002
  value,
17038
17003
  ...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
17039
17004
  }));
17040
- React$2.useEffect(() => {
17005
+ React.useEffect(() => {
17041
17006
  const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
17042
17007
  const updateMounted = (name2, value2) => {
17043
17008
  const field = get(control._fields, name2);
@@ -17057,7 +17022,7 @@ function useController(props) {
17057
17022
  (isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
17058
17023
  };
17059
17024
  }, [name, control, isArrayField, shouldUnregister]);
17060
- React$2.useEffect(() => {
17025
+ React.useEffect(() => {
17061
17026
  if (get(control._fields, name)) {
17062
17027
  control._updateDisabledField({
17063
17028
  disabled,
@@ -17072,14 +17037,14 @@ function useController(props) {
17072
17037
  name,
17073
17038
  value,
17074
17039
  ...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
17075
- onChange: React$2.useCallback((event) => _registerProps.current.onChange({
17040
+ onChange: React.useCallback((event) => _registerProps.current.onChange({
17076
17041
  target: {
17077
17042
  value: getEventValue(event),
17078
17043
  name
17079
17044
  },
17080
17045
  type: EVENTS.CHANGE
17081
17046
  }), [name]),
17082
- onBlur: React$2.useCallback(() => _registerProps.current.onBlur({
17047
+ onBlur: React.useCallback(() => _registerProps.current.onBlur({
17083
17048
  target: {
17084
17049
  value: get(control._formValues, name),
17085
17050
  name
@@ -18321,9 +18286,9 @@ function createFormControl(props = {}, flushRootRender) {
18321
18286
  };
18322
18287
  }
18323
18288
  function useForm(props = {}) {
18324
- const _formControl = React$2.useRef();
18325
- const _values = React$2.useRef();
18326
- const [formState, updateFormState] = React$2.useState({
18289
+ const _formControl = React.useRef();
18290
+ const _values = React.useRef();
18291
+ const [formState, updateFormState] = React.useState({
18327
18292
  isDirty: false,
18328
18293
  isValidating: false,
18329
18294
  isLoading: isFunction(props.defaultValues),
@@ -18354,8 +18319,8 @@ function useForm(props = {}) {
18354
18319
  }
18355
18320
  }
18356
18321
  });
18357
- React$2.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
18358
- React$2.useEffect(() => {
18322
+ React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
18323
+ React.useEffect(() => {
18359
18324
  if (control._proxyFormState.isDirty) {
18360
18325
  const isDirty = control._getDirty();
18361
18326
  if (isDirty !== formState.isDirty) {
@@ -18365,7 +18330,7 @@ function useForm(props = {}) {
18365
18330
  }
18366
18331
  }
18367
18332
  }, [control, formState.isDirty]);
18368
- React$2.useEffect(() => {
18333
+ React.useEffect(() => {
18369
18334
  if (props.values && !deepEqual$1(props.values, _values.current)) {
18370
18335
  control._reset(props.values, control._options.resetOptions);
18371
18336
  _values.current = props.values;
@@ -18374,12 +18339,12 @@ function useForm(props = {}) {
18374
18339
  control._resetDefaultValues();
18375
18340
  }
18376
18341
  }, [props.values, control]);
18377
- React$2.useEffect(() => {
18342
+ React.useEffect(() => {
18378
18343
  if (props.errors) {
18379
18344
  control._setErrors(props.errors);
18380
18345
  }
18381
18346
  }, [props.errors, control]);
18382
- React$2.useEffect(() => {
18347
+ React.useEffect(() => {
18383
18348
  if (!control._state.mount) {
18384
18349
  control._updateValid();
18385
18350
  control._state.mount = true;
@@ -18393,9 +18358,9 @@ function useForm(props = {}) {
18393
18358
  _formControl.current.formState = getProxyFormState(formState, control);
18394
18359
  return _formControl.current;
18395
18360
  }
18396
- function getWindow$3(node2) {
18361
+ function getWindow$3(node) {
18397
18362
  var _node$ownerDocument;
18398
- return (node2 == null ? void 0 : (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18363
+ return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18399
18364
  }
18400
18365
  function isElement$3(value) {
18401
18366
  return value instanceof Element || value instanceof getWindow$3(value).Element;
@@ -18958,19 +18923,19 @@ const size$1 = function(options) {
18958
18923
  }
18959
18924
  };
18960
18925
  };
18961
- function getNodeName$1(node2) {
18962
- if (isNode$1(node2)) {
18963
- return (node2.nodeName || "").toLowerCase();
18926
+ function getNodeName$1(node) {
18927
+ if (isNode$1(node)) {
18928
+ return (node.nodeName || "").toLowerCase();
18964
18929
  }
18965
18930
  return "#document";
18966
18931
  }
18967
- function getWindow$2(node2) {
18932
+ function getWindow$2(node) {
18968
18933
  var _node$ownerDocument;
18969
- return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18934
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
18970
18935
  }
18971
- function getDocumentElement$1(node2) {
18936
+ function getDocumentElement$1(node) {
18972
18937
  var _ref;
18973
- return (_ref = (isNode$1(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
18938
+ return (_ref = (isNode$1(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
18974
18939
  }
18975
18940
  function isNode$1(value) {
18976
18941
  return value instanceof Node || value instanceof getWindow$2(value).Node;
@@ -19019,8 +18984,8 @@ function isWebKit() {
19019
18984
  return false;
19020
18985
  return CSS.supports("-webkit-backdrop-filter", "none");
19021
18986
  }
19022
- function isLastTraversableNode(node2) {
19023
- return ["html", "body", "#document"].includes(getNodeName$1(node2));
18987
+ function isLastTraversableNode(node) {
18988
+ return ["html", "body", "#document"].includes(getNodeName$1(node));
19024
18989
  }
19025
18990
  function getComputedStyle$3(element) {
19026
18991
  return getWindow$2(element).getComputedStyle(element);
@@ -19037,30 +19002,30 @@ function getNodeScroll$1(element) {
19037
19002
  scrollTop: element.pageYOffset
19038
19003
  };
19039
19004
  }
19040
- function getParentNode$1(node2) {
19041
- if (getNodeName$1(node2) === "html") {
19042
- return node2;
19005
+ function getParentNode$1(node) {
19006
+ if (getNodeName$1(node) === "html") {
19007
+ return node;
19043
19008
  }
19044
19009
  const result = (
19045
19010
  // Step into the shadow DOM of the parent of a slotted node.
19046
- node2.assignedSlot || // DOM Element detected.
19047
- node2.parentNode || // ShadowRoot detected.
19048
- isShadowRoot$1(node2) && node2.host || // Fallback.
19049
- getDocumentElement$1(node2)
19011
+ node.assignedSlot || // DOM Element detected.
19012
+ node.parentNode || // ShadowRoot detected.
19013
+ isShadowRoot$1(node) && node.host || // Fallback.
19014
+ getDocumentElement$1(node)
19050
19015
  );
19051
19016
  return isShadowRoot$1(result) ? result.host : result;
19052
19017
  }
19053
- function getNearestOverflowAncestor(node2) {
19054
- const parentNode = getParentNode$1(node2);
19018
+ function getNearestOverflowAncestor(node) {
19019
+ const parentNode = getParentNode$1(node);
19055
19020
  if (isLastTraversableNode(parentNode)) {
19056
- return node2.ownerDocument ? node2.ownerDocument.body : node2.body;
19021
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
19057
19022
  }
19058
19023
  if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
19059
19024
  return parentNode;
19060
19025
  }
19061
19026
  return getNearestOverflowAncestor(parentNode);
19062
19027
  }
19063
- function getOverflowAncestors(node2, list, traverseIframes) {
19028
+ function getOverflowAncestors(node, list, traverseIframes) {
19064
19029
  var _node$ownerDocument2;
19065
19030
  if (list === void 0) {
19066
19031
  list = [];
@@ -19068,8 +19033,8 @@ function getOverflowAncestors(node2, list, traverseIframes) {
19068
19033
  if (traverseIframes === void 0) {
19069
19034
  traverseIframes = true;
19070
19035
  }
19071
- const scrollableAncestor = getNearestOverflowAncestor(node2);
19072
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
19036
+ const scrollableAncestor = getNearestOverflowAncestor(node);
19037
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
19073
19038
  const win = getWindow$2(scrollableAncestor);
19074
19039
  if (isBody) {
19075
19040
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
@@ -19741,16 +19706,16 @@ function useFloating$1(options) {
19741
19706
  }
19742
19707
  const [_reference, _setReference] = reactExports.useState(null);
19743
19708
  const [_floating, _setFloating] = reactExports.useState(null);
19744
- const setReference = reactExports.useCallback((node2) => {
19745
- if (node2 !== referenceRef.current) {
19746
- referenceRef.current = node2;
19747
- _setReference(node2);
19709
+ const setReference = reactExports.useCallback((node) => {
19710
+ if (node !== referenceRef.current) {
19711
+ referenceRef.current = node;
19712
+ _setReference(node);
19748
19713
  }
19749
19714
  }, []);
19750
- const setFloating = reactExports.useCallback((node2) => {
19751
- if (node2 !== floatingRef.current) {
19752
- floatingRef.current = node2;
19753
- _setFloating(node2);
19715
+ const setFloating = reactExports.useCallback((node) => {
19716
+ if (node !== floatingRef.current) {
19717
+ floatingRef.current = node;
19718
+ _setFloating(node);
19754
19719
  }
19755
19720
  }, []);
19756
19721
  const referenceEl = externalReference || _reference;
@@ -19876,7 +19841,7 @@ function useFloatingId() {
19876
19841
  }, []);
19877
19842
  return id2;
19878
19843
  }
19879
- const useReactId = React$3[/* @__PURE__ */ "useId".toString()];
19844
+ const useReactId = React$1[/* @__PURE__ */ "useId".toString()];
19880
19845
  const useId = useReactId || useFloatingId;
19881
19846
  function createPubSub() {
19882
19847
  const map2 = /* @__PURE__ */ new Map();
@@ -19896,7 +19861,7 @@ function createPubSub() {
19896
19861
  }
19897
19862
  const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
19898
19863
  const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
19899
- const useInsertionEffect = React$3[/* @__PURE__ */ "useInsertionEffect".toString()];
19864
+ const useInsertionEffect = React$1[/* @__PURE__ */ "useInsertionEffect".toString()];
19900
19865
  const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
19901
19866
  function useEffectEvent(callback) {
19902
19867
  const ref2 = reactExports.useRef(() => {
@@ -19935,23 +19900,23 @@ function useFloating(options) {
19935
19900
  const dataRef = reactExports.useRef({});
19936
19901
  const events2 = reactExports.useState(() => createPubSub())[0];
19937
19902
  const floatingId = useId();
19938
- const setPositionReference = reactExports.useCallback((node2) => {
19939
- const positionReference = isElement$3(node2) ? {
19940
- getBoundingClientRect: () => node2.getBoundingClientRect(),
19941
- contextElement: node2
19942
- } : node2;
19903
+ const setPositionReference = reactExports.useCallback((node) => {
19904
+ const positionReference = isElement$3(node) ? {
19905
+ getBoundingClientRect: () => node.getBoundingClientRect(),
19906
+ contextElement: node
19907
+ } : node;
19943
19908
  position.refs.setReference(positionReference);
19944
19909
  }, [position.refs]);
19945
- const setReference = reactExports.useCallback((node2) => {
19946
- if (isElement$3(node2) || node2 === null) {
19947
- domReferenceRef.current = node2;
19948
- setDomReference(node2);
19910
+ const setReference = reactExports.useCallback((node) => {
19911
+ if (isElement$3(node) || node === null) {
19912
+ domReferenceRef.current = node;
19913
+ setDomReference(node);
19949
19914
  }
19950
19915
  if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
19951
19916
  // `null` to support `positionReference` + an unstable `reference`
19952
19917
  // callback ref.
19953
- node2 !== null && !isElement$3(node2)) {
19954
- position.refs.setReference(node2);
19918
+ node !== null && !isElement$3(node)) {
19919
+ position.refs.setReference(node);
19955
19920
  }
19956
19921
  }, [position.refs]);
19957
19922
  const refs = reactExports.useMemo(() => ({
@@ -19976,9 +19941,9 @@ function useFloating(options) {
19976
19941
  onOpenChange
19977
19942
  }), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
19978
19943
  index(() => {
19979
- const node2 = tree == null ? void 0 : tree.nodesRef.current.find((node22) => node22.id === nodeId);
19980
- if (node2) {
19981
- node2.context = context2;
19944
+ const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
19945
+ if (node) {
19946
+ node.context = context2;
19982
19947
  }
19983
19948
  });
19984
19949
  return reactExports.useMemo(() => ({
@@ -20978,7 +20943,7 @@ function usePrev(value) {
20978
20943
  var $node = Symbol.for("Animated:node");
20979
20944
  var isAnimated = (value) => !!value && value[$node] === value;
20980
20945
  var getAnimated = (owner) => owner && owner[$node];
20981
- var setAnimated = (owner, node2) => defineHidden(owner, $node, node2);
20946
+ var setAnimated = (owner, node) => defineHidden(owner, $node, node);
20982
20947
  var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
20983
20948
  var Animated = class {
20984
20949
  constructor() {
@@ -21105,7 +21070,7 @@ var AnimatedObject = class extends Animated {
21105
21070
  }
21106
21071
  reset() {
21107
21072
  if (this.payload) {
21108
- each(this.payload, (node2) => node2.reset());
21073
+ each(this.payload, (node) => node.reset());
21109
21074
  }
21110
21075
  }
21111
21076
  /** Create a payload set. */
@@ -21123,7 +21088,7 @@ var AnimatedObject = class extends Animated {
21123
21088
  }
21124
21089
  const payload = getPayload(source);
21125
21090
  if (payload) {
21126
- each(payload, (node2) => this.add(node2));
21091
+ each(payload, (node) => this.add(node));
21127
21092
  }
21128
21093
  }
21129
21094
  };
@@ -21136,12 +21101,12 @@ var AnimatedArray = class extends AnimatedObject {
21136
21101
  return new AnimatedArray(source);
21137
21102
  }
21138
21103
  getValue() {
21139
- return this.source.map((node2) => node2.getValue());
21104
+ return this.source.map((node) => node.getValue());
21140
21105
  }
21141
21106
  setValue(source) {
21142
21107
  const payload = this.getPayload();
21143
21108
  if (source.length == payload.length) {
21144
- return payload.map((node2, i2) => node2.setValue(source[i2])).some(Boolean);
21109
+ return payload.map((node, i2) => node.setValue(source[i2])).some(Boolean);
21145
21110
  }
21146
21111
  super.setValue(source.map(makeAnimated));
21147
21112
  return true;
@@ -21676,8 +21641,8 @@ var FrameValue = class extends FluidValue {
21676
21641
  }
21677
21642
  /** Get the current value */
21678
21643
  get() {
21679
- const node2 = getAnimated(this);
21680
- return node2 && node2.getValue();
21644
+ const node = getAnimated(this);
21645
+ return node && node.getValue();
21681
21646
  }
21682
21647
  /** Create a spring that maps our value to another value */
21683
21648
  to(...args) {
@@ -21767,8 +21732,8 @@ var SpringValue = class extends FrameValue {
21767
21732
  return getFluidValue(this.animation.to);
21768
21733
  }
21769
21734
  get velocity() {
21770
- const node2 = getAnimated(this);
21771
- return node2 instanceof AnimatedValue ? node2.lastVelocity || 0 : node2.getPayload().map((node22) => node22.lastVelocity || 0);
21735
+ const node = getAnimated(this);
21736
+ return node instanceof AnimatedValue ? node.lastVelocity || 0 : node.getPayload().map((node2) => node2.lastVelocity || 0);
21772
21737
  }
21773
21738
  /**
21774
21739
  * When true, this value has been animated at least once.
@@ -21807,24 +21772,24 @@ var SpringValue = class extends FrameValue {
21807
21772
  if (!payload && hasFluidValue(anim.to)) {
21808
21773
  toValues = toArray(getFluidValue(anim.to));
21809
21774
  }
21810
- anim.values.forEach((node22, i2) => {
21811
- if (node22.done)
21775
+ anim.values.forEach((node2, i2) => {
21776
+ if (node2.done)
21812
21777
  return;
21813
21778
  const to2 = (
21814
21779
  // Animated strings always go from 0 to 1.
21815
- node22.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
21780
+ node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
21816
21781
  );
21817
21782
  let finished = anim.immediate;
21818
21783
  let position = to2;
21819
21784
  if (!finished) {
21820
- position = node22.lastPosition;
21785
+ position = node2.lastPosition;
21821
21786
  if (config2.tension <= 0) {
21822
- node22.done = true;
21787
+ node2.done = true;
21823
21788
  return;
21824
21789
  }
21825
- let elapsed = node22.elapsedTime += dt;
21790
+ let elapsed = node2.elapsedTime += dt;
21826
21791
  const from = anim.fromValues[i2];
21827
- const v0 = node22.v0 != null ? node22.v0 : node22.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
21792
+ const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
21828
21793
  let velocity;
21829
21794
  const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
21830
21795
  if (!is.und(config2.duration)) {
@@ -21832,30 +21797,30 @@ var SpringValue = class extends FrameValue {
21832
21797
  if (config2.duration > 0) {
21833
21798
  if (this._memoizedDuration !== config2.duration) {
21834
21799
  this._memoizedDuration = config2.duration;
21835
- if (node22.durationProgress > 0) {
21836
- node22.elapsedTime = config2.duration * node22.durationProgress;
21837
- elapsed = node22.elapsedTime += dt;
21800
+ if (node2.durationProgress > 0) {
21801
+ node2.elapsedTime = config2.duration * node2.durationProgress;
21802
+ elapsed = node2.elapsedTime += dt;
21838
21803
  }
21839
21804
  }
21840
21805
  p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
21841
21806
  p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
21842
- node22.durationProgress = p2;
21807
+ node2.durationProgress = p2;
21843
21808
  }
21844
21809
  position = from + config2.easing(p2) * (to2 - from);
21845
- velocity = (position - node22.lastPosition) / dt;
21810
+ velocity = (position - node2.lastPosition) / dt;
21846
21811
  finished = p2 == 1;
21847
21812
  } else if (config2.decay) {
21848
21813
  const decay = config2.decay === true ? 0.998 : config2.decay;
21849
21814
  const e2 = Math.exp(-(1 - decay) * elapsed);
21850
21815
  position = from + v0 / (1 - decay) * (1 - e2);
21851
- finished = Math.abs(node22.lastPosition - position) <= precision;
21816
+ finished = Math.abs(node2.lastPosition - position) <= precision;
21852
21817
  velocity = v0 * e2;
21853
21818
  } else {
21854
- velocity = node22.lastVelocity == null ? v0 : node22.lastVelocity;
21819
+ velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
21855
21820
  const restVelocity = config2.restVelocity || precision / 10;
21856
21821
  const bounceFactor = config2.clamp ? 0 : config2.bounce;
21857
21822
  const canBounce = !is.und(bounceFactor);
21858
- const isGrowing = from == to2 ? node22.v0 > 0 : from < to2;
21823
+ const isGrowing = from == to2 ? node2.v0 > 0 : from < to2;
21859
21824
  let isMoving;
21860
21825
  let isBouncing = false;
21861
21826
  const step = 1;
@@ -21882,7 +21847,7 @@ var SpringValue = class extends FrameValue {
21882
21847
  position = position + velocity * step;
21883
21848
  }
21884
21849
  }
21885
- node22.lastVelocity = velocity;
21850
+ node2.lastVelocity = velocity;
21886
21851
  if (Number.isNaN(position)) {
21887
21852
  console.warn(`Got NaN while animating:`, this);
21888
21853
  finished = true;
@@ -21892,20 +21857,20 @@ var SpringValue = class extends FrameValue {
21892
21857
  finished = false;
21893
21858
  }
21894
21859
  if (finished) {
21895
- node22.done = true;
21860
+ node2.done = true;
21896
21861
  } else {
21897
21862
  idle = false;
21898
21863
  }
21899
- if (node22.setValue(position, config2.round)) {
21864
+ if (node2.setValue(position, config2.round)) {
21900
21865
  changed = true;
21901
21866
  }
21902
21867
  });
21903
- const node2 = getAnimated(this);
21904
- const currVal = node2.getValue();
21868
+ const node = getAnimated(this);
21869
+ const currVal = node.getValue();
21905
21870
  if (idle) {
21906
21871
  const finalVal = getFluidValue(anim.to);
21907
21872
  if ((currVal !== finalVal || changed) && !config2.decay) {
21908
- node2.setValue(finalVal);
21873
+ node.setValue(finalVal);
21909
21874
  this._onChange(finalVal);
21910
21875
  } else if (changed && config2.decay) {
21911
21876
  this._onChange(currVal);
@@ -22135,8 +22100,8 @@ var SpringValue = class extends FrameValue {
22135
22100
  props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
22136
22101
  );
22137
22102
  }
22138
- let node2 = getAnimated(this);
22139
- if (!node2 || is.und(to2)) {
22103
+ let node = getAnimated(this);
22104
+ if (!node || is.und(to2)) {
22140
22105
  return resolve(getFinishedResult(this, true));
22141
22106
  }
22142
22107
  const reset = (
@@ -22151,16 +22116,16 @@ var SpringValue = class extends FrameValue {
22151
22116
  const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
22152
22117
  if (hasToChanged) {
22153
22118
  const nodeType = getAnimatedType(to2);
22154
- if (nodeType !== node2.constructor) {
22119
+ if (nodeType !== node.constructor) {
22155
22120
  if (immediate) {
22156
- node2 = this._set(goal);
22121
+ node = this._set(goal);
22157
22122
  } else
22158
22123
  throw Error(
22159
- `Cannot animate between ${node2.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
22124
+ `Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
22160
22125
  );
22161
22126
  }
22162
22127
  }
22163
- const goalType = node2.constructor;
22128
+ const goalType = node.constructor;
22164
22129
  let started = hasFluidValue(to2);
22165
22130
  let finished = false;
22166
22131
  if (!started) {
@@ -22182,7 +22147,7 @@ var SpringValue = class extends FrameValue {
22182
22147
  }
22183
22148
  if (!hasAsyncTo) {
22184
22149
  if (started || hasFluidValue(prevTo)) {
22185
- anim.values = node2.getPayload();
22150
+ anim.values = node.getPayload();
22186
22151
  anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
22187
22152
  }
22188
22153
  if (anim.immediate != immediate) {
@@ -22304,7 +22269,7 @@ var SpringValue = class extends FrameValue {
22304
22269
  const anim = this.animation;
22305
22270
  getAnimated(this).reset(getFluidValue(anim.to));
22306
22271
  if (!anim.immediate) {
22307
- anim.fromValues = anim.values.map((node2) => node2.lastPosition);
22272
+ anim.fromValues = anim.values.map((node) => node.lastPosition);
22308
22273
  }
22309
22274
  if (!isAnimating(this)) {
22310
22275
  setActiveBit(this, true);
@@ -22329,8 +22294,8 @@ var SpringValue = class extends FrameValue {
22329
22294
  if (isAnimating(this)) {
22330
22295
  setActiveBit(this, false);
22331
22296
  const anim = this.animation;
22332
- each(anim.values, (node2) => {
22333
- node2.done = true;
22297
+ each(anim.values, (node) => {
22298
+ node.done = true;
22334
22299
  });
22335
22300
  if (anim.toValues) {
22336
22301
  anim.onChange = anim.onPause = anim.onResume = void 0;
@@ -23203,8 +23168,8 @@ var Interpolation = class extends FrameValue {
23203
23168
  _start() {
23204
23169
  if (this.idle && !checkIdle(this._active)) {
23205
23170
  this.idle = false;
23206
- each(getPayload(this), (node2) => {
23207
- node2.done = false;
23171
+ each(getPayload(this), (node) => {
23172
+ node.done = false;
23208
23173
  });
23209
23174
  if (globals_exports.skipAnimation) {
23210
23175
  raf.batchedUpdates(() => this.advance());
@@ -23269,8 +23234,8 @@ function checkIdle(active) {
23269
23234
  function becomeIdle(self2) {
23270
23235
  if (!self2.idle) {
23271
23236
  self2.idle = true;
23272
- each(getPayload(self2), (node2) => {
23273
- node2.done = true;
23237
+ each(getPayload(self2), (node) => {
23238
+ node.done = true;
23274
23239
  });
23275
23240
  callFluidObservers(self2, {
23276
23241
  type: "idle",
@@ -23664,30 +23629,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
23664
23629
  function getNodeName(element) {
23665
23630
  return element ? (element.nodeName || "").toLowerCase() : null;
23666
23631
  }
23667
- function getWindow$1(node2) {
23668
- if (node2 == null) {
23632
+ function getWindow$1(node) {
23633
+ if (node == null) {
23669
23634
  return window;
23670
23635
  }
23671
- if (node2.toString() !== "[object Window]") {
23672
- var ownerDocument = node2.ownerDocument;
23636
+ if (node.toString() !== "[object Window]") {
23637
+ var ownerDocument = node.ownerDocument;
23673
23638
  return ownerDocument ? ownerDocument.defaultView || window : window;
23674
23639
  }
23675
- return node2;
23640
+ return node;
23676
23641
  }
23677
- function isElement$1(node2) {
23678
- var OwnElement = getWindow$1(node2).Element;
23679
- return node2 instanceof OwnElement || node2 instanceof Element;
23642
+ function isElement$1(node) {
23643
+ var OwnElement = getWindow$1(node).Element;
23644
+ return node instanceof OwnElement || node instanceof Element;
23680
23645
  }
23681
- function isHTMLElement(node2) {
23682
- var OwnElement = getWindow$1(node2).HTMLElement;
23683
- return node2 instanceof OwnElement || node2 instanceof HTMLElement;
23646
+ function isHTMLElement(node) {
23647
+ var OwnElement = getWindow$1(node).HTMLElement;
23648
+ return node instanceof OwnElement || node instanceof HTMLElement;
23684
23649
  }
23685
- function isShadowRoot(node2) {
23650
+ function isShadowRoot(node) {
23686
23651
  if (typeof ShadowRoot === "undefined") {
23687
23652
  return false;
23688
23653
  }
23689
- var OwnElement = getWindow$1(node2).ShadowRoot;
23690
- return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
23654
+ var OwnElement = getWindow$1(node).ShadowRoot;
23655
+ return node instanceof OwnElement || node instanceof ShadowRoot;
23691
23656
  }
23692
23657
  function applyStyles(_ref) {
23693
23658
  var state = _ref.state;
@@ -24169,8 +24134,8 @@ function getOppositeVariationPlacement(placement) {
24169
24134
  return hash$1[matched];
24170
24135
  });
24171
24136
  }
24172
- function getWindowScroll(node2) {
24173
- var win = getWindow$1(node2);
24137
+ function getWindowScroll(node) {
24138
+ var win = getWindow$1(node);
24174
24139
  var scrollLeft = win.pageXOffset;
24175
24140
  var scrollTop = win.pageYOffset;
24176
24141
  return {
@@ -24228,14 +24193,14 @@ function isScrollParent(element) {
24228
24193
  var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
24229
24194
  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
24230
24195
  }
24231
- function getScrollParent(node2) {
24232
- if (["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0) {
24233
- return node2.ownerDocument.body;
24196
+ function getScrollParent(node) {
24197
+ if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
24198
+ return node.ownerDocument.body;
24234
24199
  }
24235
- if (isHTMLElement(node2) && isScrollParent(node2)) {
24236
- return node2;
24200
+ if (isHTMLElement(node) && isScrollParent(node)) {
24201
+ return node;
24237
24202
  }
24238
- return getScrollParent(getParentNode(node2));
24203
+ return getScrollParent(getParentNode(node));
24239
24204
  }
24240
24205
  function listScrollParents(element, list) {
24241
24206
  var _element$ownerDocumen;
@@ -24729,11 +24694,11 @@ function getHTMLElementScroll(element) {
24729
24694
  scrollTop: element.scrollTop
24730
24695
  };
24731
24696
  }
24732
- function getNodeScroll(node2) {
24733
- if (node2 === getWindow$1(node2) || !isHTMLElement(node2)) {
24734
- return getWindowScroll(node2);
24697
+ function getNodeScroll(node) {
24698
+ if (node === getWindow$1(node) || !isHTMLElement(node)) {
24699
+ return getWindowScroll(node);
24735
24700
  } else {
24736
- return getHTMLElementScroll(node2);
24701
+ return getHTMLElementScroll(node);
24737
24702
  }
24738
24703
  }
24739
24704
  function isElementScaled(element) {
@@ -25266,35 +25231,7 @@ const SvgCommunity = ({
25266
25231
  )
25267
25232
  ]
25268
25233
  }
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 = ({
25234
+ ), SvgMyApps$1 = SvgMyApps, SvgNeoMessaging = ({
25298
25235
  title,
25299
25236
  titleId,
25300
25237
  ...props
@@ -25345,33 +25282,7 @@ const SvgCommunity = ({
25345
25282
  )
25346
25283
  ]
25347
25284
  }
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 = ({
25285
+ ), SvgNewRelease$1 = SvgNewRelease, SvgOneMessaging = ({
25375
25286
  title,
25376
25287
  titleId,
25377
25288
  ...props
@@ -25702,11 +25613,11 @@ function getTranslate(el2, axis) {
25702
25613
  function isObject$1(o2) {
25703
25614
  return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
25704
25615
  }
25705
- function isNode(node2) {
25616
+ function isNode(node) {
25706
25617
  if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
25707
- return node2 instanceof HTMLElement;
25618
+ return node instanceof HTMLElement;
25708
25619
  }
25709
- return node2 && (node2.nodeType === 1 || node2.nodeType === 11);
25620
+ return node && (node.nodeType === 1 || node.nodeType === 11);
25710
25621
  }
25711
25622
  function extend$1() {
25712
25623
  const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
@@ -26734,8 +26645,8 @@ function updateSlides() {
26734
26645
  "marginRight": "marginBottom"
26735
26646
  }[property];
26736
26647
  }
26737
- function getDirectionPropertyValue(node2, label) {
26738
- return parseFloat(node2.getPropertyValue(getDirectionLabel(label)) || 0);
26648
+ function getDirectionPropertyValue(node, label) {
26649
+ return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
26739
26650
  }
26740
26651
  const params = swiper.params;
26741
26652
  const {
@@ -30335,7 +30246,7 @@ function isChildSwiperSlide(child) {
30335
30246
  }
30336
30247
  function processChildren(c6) {
30337
30248
  const slides = [];
30338
- React$2.Children.toArray(c6).forEach((child) => {
30249
+ React.Children.toArray(c6).forEach((child) => {
30339
30250
  if (isChildSwiperSlide(child)) {
30340
30251
  slides.push(child);
30341
30252
  } else if (child.props && child.props.children) {
@@ -30352,7 +30263,7 @@ function getChildren(c6) {
30352
30263
  "wrapper-start": [],
30353
30264
  "wrapper-end": []
30354
30265
  };
30355
- React$2.Children.toArray(c6).forEach((child) => {
30266
+ React.Children.toArray(c6).forEach((child) => {
30356
30267
  if (isChildSwiperSlide(child)) {
30357
30268
  slides.push(child);
30358
30269
  } else if (child.props && child.props.slot && slots[child.props.slot]) {
@@ -30403,7 +30314,7 @@ function renderVirtual(swiper, slides, virtualData) {
30403
30314
  }
30404
30315
  }
30405
30316
  return slidesToRender.map((child, index2) => {
30406
- return /* @__PURE__ */ React$2.cloneElement(child, {
30317
+ return /* @__PURE__ */ React.cloneElement(child, {
30407
30318
  swiper,
30408
30319
  style,
30409
30320
  key: `slide-${index2}`
@@ -30563,29 +30474,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
30563
30474
  return renderVirtual(swiperRef.current, slides, virtualData);
30564
30475
  }
30565
30476
  return slides.map((child, index2) => {
30566
- return /* @__PURE__ */ React$2.cloneElement(child, {
30477
+ return /* @__PURE__ */ React.cloneElement(child, {
30567
30478
  swiper: swiperRef.current,
30568
30479
  swiperSlideIndex: index2
30569
30480
  });
30570
30481
  });
30571
30482
  }
30572
- return /* @__PURE__ */ React$2.createElement(Tag, _extends({
30483
+ return /* @__PURE__ */ React.createElement(Tag, _extends({
30573
30484
  ref: swiperElRef,
30574
30485
  className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
30575
- }, restProps), /* @__PURE__ */ React$2.createElement(SwiperContext.Provider, {
30486
+ }, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
30576
30487
  value: swiperRef.current
30577
- }, slots["container-start"], /* @__PURE__ */ React$2.createElement(WrapperTag, {
30488
+ }, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
30578
30489
  className: wrapperClass(swiperParams.wrapperClass)
30579
- }, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", {
30490
+ }, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
30580
30491
  ref: prevElRef,
30581
30492
  className: "swiper-button-prev"
30582
- }), /* @__PURE__ */ React$2.createElement("div", {
30493
+ }), /* @__PURE__ */ React.createElement("div", {
30583
30494
  ref: nextElRef,
30584
30495
  className: "swiper-button-next"
30585
- })), needsScrollbar(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
30496
+ })), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
30586
30497
  ref: scrollbarElRef,
30587
30498
  className: "swiper-scrollbar"
30588
- }), needsPagination(swiperParams) && /* @__PURE__ */ React$2.createElement("div", {
30499
+ }), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
30589
30500
  ref: paginationElRef,
30590
30501
  className: "swiper-pagination"
30591
30502
  }), slots["container-end"]));
@@ -30651,2329 +30562,25 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
30651
30562
  const onLoad2 = () => {
30652
30563
  setLazyLoaded(true);
30653
30564
  };
30654
- return /* @__PURE__ */ React$2.createElement(Tag, _extends({
30565
+ return /* @__PURE__ */ React.createElement(Tag, _extends({
30655
30566
  ref: slideElRef,
30656
30567
  className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
30657
30568
  "data-swiper-slide-index": virtualIndex,
30658
30569
  onLoad: onLoad2
30659
- }, rest), zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
30570
+ }, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
30660
30571
  value: slideData
30661
- }, /* @__PURE__ */ React$2.createElement("div", {
30572
+ }, /* @__PURE__ */ React.createElement("div", {
30662
30573
  className: "swiper-zoom-container",
30663
30574
  "data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
30664
- }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
30575
+ }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
30665
30576
  className: "swiper-lazy-preloader"
30666
- }))), !zoom && /* @__PURE__ */ React$2.createElement(SwiperSlideContext.Provider, {
30577
+ }))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
30667
30578
  value: slideData
30668
- }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React$2.createElement("div", {
30579
+ }, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
30669
30580
  className: "swiper-lazy-preloader"
30670
30581
  })));
30671
30582
  });
30672
30583
  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;
32977
30584
  /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
32978
30585
  const Z_FIXED$1 = 4;
32979
30586
  const Z_BINARY = 0;
@@ -33324,7 +30931,7 @@ const build_tree = (s2, desc) => {
33324
30931
  const elems = desc.stat_desc.elems;
33325
30932
  let n2, m2;
33326
30933
  let max_code = -1;
33327
- let node2;
30934
+ let node;
33328
30935
  s2.heap_len = 0;
33329
30936
  s2.heap_max = HEAP_SIZE$1;
33330
30937
  for (n2 = 0; n2 < elems; n2++) {
@@ -33336,19 +30943,19 @@ const build_tree = (s2, desc) => {
33336
30943
  }
33337
30944
  }
33338
30945
  while (s2.heap_len < 2) {
33339
- node2 = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
33340
- tree[node2 * 2] = 1;
33341
- s2.depth[node2] = 0;
30946
+ node = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
30947
+ tree[node * 2] = 1;
30948
+ s2.depth[node] = 0;
33342
30949
  s2.opt_len--;
33343
30950
  if (has_stree) {
33344
- s2.static_len -= stree[node2 * 2 + 1];
30951
+ s2.static_len -= stree[node * 2 + 1];
33345
30952
  }
33346
30953
  }
33347
30954
  desc.max_code = max_code;
33348
30955
  for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
33349
30956
  pqdownheap(s2, tree, n2);
33350
30957
  }
33351
- node2 = elems;
30958
+ node = elems;
33352
30959
  do {
33353
30960
  n2 = s2.heap[
33354
30961
  1
@@ -33370,13 +30977,13 @@ const build_tree = (s2, desc) => {
33370
30977
  ];
33371
30978
  s2.heap[--s2.heap_max] = n2;
33372
30979
  s2.heap[--s2.heap_max] = m2;
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;
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;
33376
30983
  s2.heap[
33377
30984
  1
33378
30985
  /*SMALLEST*/
33379
- ] = node2++;
30986
+ ] = node++;
33380
30987
  pqdownheap(
33381
30988
  s2,
33382
30989
  tree,
@@ -39291,13 +36898,13 @@ var listGetNode = function(list, key) {
39291
36898
  }
39292
36899
  };
39293
36900
  var listGet = function(objects, key) {
39294
- var node2 = listGetNode(objects, key);
39295
- return node2 && node2.value;
36901
+ var node = listGetNode(objects, key);
36902
+ return node && node.value;
39296
36903
  };
39297
36904
  var listSet = function(objects, key, value) {
39298
- var node2 = listGetNode(objects, key);
39299
- if (node2) {
39300
- node2.value = value;
36905
+ var node = listGetNode(objects, key);
36906
+ if (node) {
36907
+ node.value = value;
39301
36908
  } else {
39302
36909
  objects.next = /** @type {import('.').ListNode<typeof value>} */
39303
36910
  {
@@ -44109,12 +41716,12 @@ function generateUniformsSync(group, uniformData) {
44109
41716
  break;
44110
41717
  }
44111
41718
  if (!parsed) {
44112
- const template2 = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
41719
+ const template = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
44113
41720
  funcFragments.push(`
44114
41721
  cu = ud["${i2}"];
44115
41722
  cv = cu.value;
44116
41723
  v = uv["${i2}"];
44117
- ${template2};`);
41724
+ ${template};`);
44118
41725
  }
44119
41726
  }
44120
41727
  return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
@@ -45533,8 +43140,8 @@ class Texture extends EventEmitter2 {
45533
43140
  * @param anchor - Default anchor point used for sprite placement / rotation
45534
43141
  * @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
45535
43142
  */
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)
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)
45538
43145
  this._rotate = 2;
45539
43146
  else if (this._rotate % 2 !== 0)
45540
43147
  throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
@@ -46774,14 +44381,14 @@ class TextureMatrix {
46774
44381
  this._textureID = tex._updateID, this._updateID++;
46775
44382
  const uvs = tex._uvs;
46776
44383
  this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
46777
- const orig = tex.orig, trim2 = tex.trim;
46778
- trim2 && (tempMat$1.set(
46779
- orig.width / trim2.width,
44384
+ const orig = tex.orig, trim = tex.trim;
44385
+ trim && (tempMat$1.set(
44386
+ orig.width / trim.width,
46780
44387
  0,
46781
44388
  0,
46782
- orig.height / trim2.height,
46783
- -trim2.x / trim2.width,
46784
- -trim2.y / trim2.height
44389
+ orig.height / trim.height,
44390
+ -trim.x / trim.width,
44391
+ -trim.y / trim.height
46785
44392
  ), this.mapCoord.append(tempMat$1));
46786
44393
  const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
46787
44394
  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;
@@ -47615,12 +45222,12 @@ function generateUniformBufferSync(group, uniformData) {
47615
45222
 
47616
45223
  `);
47617
45224
  } else {
47618
- const template2 = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
45225
+ const template = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
47619
45226
  funcFragments.push(`
47620
45227
  cv = ud.${name}.value;
47621
45228
  v = uv.${name};
47622
45229
  offset = ${uboElement.offset / 4};
47623
- ${template2};
45230
+ ${template};
47624
45231
  `);
47625
45232
  }
47626
45233
  }
@@ -51189,9 +48796,9 @@ class Sprite extends Container {
51189
48796
  if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
51190
48797
  return;
51191
48798
  this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
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;
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;
51193
48800
  let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
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) {
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) {
51195
48802
  const resolution = settings.RESOLUTION;
51196
48803
  for (let i2 = 0; i2 < vertexData.length; ++i2)
51197
48804
  vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
@@ -51225,8 +48832,8 @@ class Sprite extends Container {
51225
48832
  }
51226
48833
  /** Updates the bounds of the sprite. */
51227
48834
  _calculateBounds() {
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));
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));
51230
48837
  }
51231
48838
  /**
51232
48839
  * Gets the local bounds of the sprite object.
@@ -51635,7 +49242,7 @@ const contextSettings = {
51635
49242
  static measureFont(font) {
51636
49243
  if (_TextMetrics2._fonts[font])
51637
49244
  return _TextMetrics2._fonts[font];
51638
- const properties2 = {
49245
+ const properties = {
51639
49246
  ascent: 0,
51640
49247
  descent: 0,
51641
49248
  fontSize: 0
@@ -51645,7 +49252,7 @@ const contextSettings = {
51645
49252
  let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
51646
49253
  const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
51647
49254
  if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
51648
- return _TextMetrics2._fonts[font] = properties2, properties2;
49255
+ return _TextMetrics2._fonts[font] = properties, properties;
51649
49256
  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);
51650
49257
  const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
51651
49258
  let i2 = 0, idx = 0, stop2 = false;
@@ -51660,7 +49267,7 @@ const contextSettings = {
51660
49267
  else
51661
49268
  break;
51662
49269
  }
51663
- for (properties2.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
49270
+ for (properties.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
51664
49271
  for (let j2 = 0; j2 < line; j2 += 4)
51665
49272
  if (imagedata[idx + j2] !== 255) {
51666
49273
  stop2 = true;
@@ -51671,7 +49278,7 @@ const contextSettings = {
51671
49278
  else
51672
49279
  break;
51673
49280
  }
51674
- return properties2.descent = i2 - baseline, properties2.fontSize = properties2.ascent + properties2.descent, _TextMetrics2._fonts[font] = properties2, properties2;
49281
+ return properties.descent = i2 - baseline, properties.fontSize = properties.ascent + properties.descent, _TextMetrics2._fonts[font] = properties, properties;
51675
49282
  }
51676
49283
  /**
51677
49284
  * Clear font metrics in metrics cache.
@@ -52043,8 +49650,8 @@ const genericFontFamilies = [
52043
49650
  get trim() {
52044
49651
  return this._trim;
52045
49652
  }
52046
- set trim(trim2) {
52047
- this._trim !== trim2 && (this._trim = trim2, this.styleID++);
49653
+ set trim(trim) {
49654
+ this._trim !== trim && (this._trim = trim, this.styleID++);
52048
49655
  }
52049
49656
  /**
52050
49657
  * How newlines and spaces should be handled.
@@ -56635,10 +54242,10 @@ class ParticleBuffer {
56635
54242
  * @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
56636
54243
  * @param {number} size - The size of the batch.
56637
54244
  */
56638
- constructor(properties2, dynamicPropertyFlags, size2) {
54245
+ constructor(properties, dynamicPropertyFlags, size2) {
56639
54246
  this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
56640
- for (let i2 = 0; i2 < properties2.length; ++i2) {
56641
- let property = properties2[i2];
54247
+ for (let i2 = 0; i2 < properties.length; ++i2) {
54248
+ let property = properties[i2];
56642
54249
  property = {
56643
54250
  attributeName: property.attributeName,
56644
54251
  size: property.size,
@@ -56875,8 +54482,8 @@ class ParticleRenderer extends ObjectRenderer {
56875
54482
  uploadVertices(children, startIndex, amount, array, stride, offset2) {
56876
54483
  let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
56877
54484
  for (let i2 = 0; i2 < amount; ++i2) {
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;
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;
56880
54487
  }
56881
54488
  }
56882
54489
  /**
@@ -57417,10 +55024,10 @@ const GAUSSIAN_VALUES = {
57417
55024
  function generateBlurFragSource(kernelSize) {
57418
55025
  const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
57419
55026
  let fragSource = fragTemplate, blurLoop = "";
57420
- const template2 = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
55027
+ const template = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
57421
55028
  let value;
57422
55029
  for (let i2 = 0; i2 < kernelSize; i2++) {
57423
- let blur = template2.replace("%index%", i2.toString());
55030
+ let blur = template.replace("%index%", i2.toString());
57424
55031
  value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
57425
55032
  `;
57426
55033
  }
@@ -57459,10 +55066,10 @@ const vertTemplate = `
57459
55066
  }`;
57460
55067
  function generateBlurVertSource(kernelSize, x2) {
57461
55068
  const halfLength = Math.ceil(kernelSize / 2);
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);";
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);";
57464
55071
  for (let i2 = 0; i2 < kernelSize; i2++) {
57465
- let blur = template2.replace("%index%", i2.toString());
55072
+ let blur = template.replace("%index%", i2.toString());
57466
55073
  blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
57467
55074
  `;
57468
55075
  }
@@ -61603,7 +59210,7 @@ const _Spritesheet = class _Spritesheet2 {
61603
59210
  for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
61604
59211
  const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
61605
59212
  if (rect) {
61606
- let frame = null, trim2 = null;
59213
+ let frame = null, trim = null;
61607
59214
  const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
61608
59215
  0,
61609
59216
  0,
@@ -61620,7 +59227,7 @@ const _Spritesheet = class _Spritesheet2 {
61620
59227
  Math.floor(rect.y) / this.resolution,
61621
59228
  Math.floor(rect.w) / this.resolution,
61622
59229
  Math.floor(rect.h) / this.resolution
61623
- ), data.trimmed !== false && data.spriteSourceSize && (trim2 = new Rectangle(
59230
+ ), data.trimmed !== false && data.spriteSourceSize && (trim = new Rectangle(
61624
59231
  Math.floor(data.spriteSourceSize.x) / this.resolution,
61625
59232
  Math.floor(data.spriteSourceSize.y) / this.resolution,
61626
59233
  Math.floor(rect.w) / this.resolution,
@@ -61629,7 +59236,7 @@ const _Spritesheet = class _Spritesheet2 {
61629
59236
  this.baseTexture,
61630
59237
  frame,
61631
59238
  orig,
61632
- trim2,
59239
+ trim,
61633
59240
  data.rotated ? 2 : 0,
61634
59241
  data.anchor,
61635
59242
  data.borders
@@ -62610,42 +60217,6 @@ const useConversation = () => {
62610
60217
  }, useConversation$1 = useConversation;
62611
60218
  dayjs.extend(relativeTime);
62612
60219
  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
- }
62649
60220
  const DEFAULT_EVENTS = ["mousedown", "touchstart"];
62650
60221
  function useClickOutside(handler, events2, nodes) {
62651
60222
  const ref2 = reactExports.useRef();
@@ -62656,7 +60227,7 @@ function useClickOutside(handler, events2, nodes) {
62656
60227
  } = event ?? {};
62657
60228
  if (Array.isArray(nodes)) {
62658
60229
  const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
62659
- nodes.every((node2) => !!node2 && !event.composedPath().includes(node2)) && !shouldIgnore && handler();
60230
+ nodes.every((node) => !!node && !event.composedPath().includes(node)) && !shouldIgnore && handler();
62660
60231
  } else
62661
60232
  ref2.current && !ref2.current.contains(target) && handler();
62662
60233
  };
@@ -62893,10 +60464,10 @@ function useHover() {
62893
60464
  };
62894
60465
  return reactExports.useEffect(
62895
60466
  () => {
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);
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);
62900
60471
  };
62901
60472
  },
62902
60473
  [ref2]
@@ -62942,12 +60513,12 @@ function useToggle(initialState2 = false) {
62942
60513
  function useTrapFocus() {
62943
60514
  const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
62944
60515
  return reactExports.useEffect(() => {
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) => {
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) => {
62946
60517
  event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
62947
60518
  };
62948
- if (node2)
62949
- return node2.addEventListener("keydown", handleKeydown), () => {
62950
- node2.removeEventListener("keydown", handleKeydown);
60519
+ if (node)
60520
+ return node.addEventListener("keydown", handleKeydown), () => {
60521
+ node.removeEventListener("keydown", handleKeydown);
62951
60522
  };
62952
60523
  }, []), ref2;
62953
60524
  }
@@ -63148,6 +60719,98 @@ function useXitiTrackPageLoad() {
63148
60719
  xitiStatus
63149
60720
  };
63150
60721
  }
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
+ }
63151
60814
  const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
63152
60815
  src,
63153
60816
  alt,
@@ -63599,8 +61262,8 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
63599
61262
  onMenuItemKeyDown,
63600
61263
  onMenuItemMouseEnter,
63601
61264
  onMenuItemClick
63602
- } = itemProps, handleOnClick = (event) => {
63603
- onClick2 == null || onClick2(event), type2 === "action" && onMenuItemClick();
61265
+ } = itemProps, handleOnClick = () => {
61266
+ onClick2 == null || onClick2(), type2 === "action" && onMenuItemClick();
63604
61267
  }, id2 = reactExports.useId(), dropdownItem = clsx("dropdown-item", {
63605
61268
  focus: isFocused === id2
63606
61269
  });
@@ -63963,8 +61626,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
63963
61626
  }
63964
61627
  });
63965
61628
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
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);
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);
63968
61631
  }, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
63969
61632
  isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
63970
61633
  opacity: 0.65
@@ -64046,8 +61709,7 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
64046
61709
  className,
64047
61710
  ...restProps
64048
61711
  }, ref2) => {
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())), {
61712
+ const {
64051
61713
  id: id2,
64052
61714
  isRequired,
64053
61715
  isReadOnly,
@@ -64064,16 +61726,7 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
64064
61726
  "form-control-plaintext": isReadOnly,
64065
61727
  "no-validation-icon": noValidationIcon
64066
61728
  }, className);
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
- ] });
61729
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ref: ref2, id: id2, className: classes2, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps });
64077
61730
  }), TextArea$1 = TextArea;
64078
61731
  function useTreeItemEvents(nodeId, label, expanded, setExpanded, onItemSelect, onItemFold, onItemUnfold, onItemFocus, onItemBlur) {
64079
61732
  const handleItemClick = (event) => {
@@ -64126,7 +61779,7 @@ const TreeItem = (props) => {
64126
61779
  reactExports.useEffect(() => {
64127
61780
  if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
64128
61781
  const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
64129
- selectedNodesIds.some((node2) => node2 === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node2 === nodeId) : (setExpanded(false), false));
61782
+ selectedNodesIds.some((node) => node === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node === nodeId) : (setExpanded(false), false));
64130
61783
  } else
64131
61784
  setExpanded(false);
64132
61785
  }, [nodeId, selectedNodesIds]);
@@ -64175,7 +61828,7 @@ const TreeItem = (props) => {
64175
61828
  onTreeItemFocus == null || onTreeItemFocus(nodeId);
64176
61829
  }, handleItemBlur = (nodeId) => {
64177
61830
  onTreeItemBlur == null || onTreeItemBlur(nodeId);
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);
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);
64179
61832
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
64180
61833
  }), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
64181
61834
  children
@@ -64846,19 +62499,15 @@ const useThumb = ({
64846
62499
  /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("title") }),
64847
62500
  /* @__PURE__ */ jsxRuntimeExports.jsx(Input$1, { type: "text", defaultValue: isUpdating ? resource == null ? void 0 : resource.name : "", ...register("title", {
64848
62501
  required: true,
64849
- maxLength: 60,
64850
62502
  pattern: {
64851
62503
  value: /[^ ]/,
64852
62504
  message: "invalid title"
64853
62505
  }
64854
- }), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true, maxLength: 60 })
62506
+ }), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true })
64855
62507
  ] }),
64856
62508
  /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "description", isOptional: true, children: [
64857
62509
  /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("description") }),
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 })
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" })
64862
62511
  ] })
64863
62512
  ] })
64864
62513
  ] }),
@@ -65330,17 +62979,17 @@ const stripAccents = (input) => {
65330
62979
  }, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
65331
62980
  const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
65332
62981
  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"), "");
65333
- }, slugify = (node2, options = { delimiter: "-", prefix: "" }) => {
65334
- if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node2 || typeof node2 == "boolean")
62982
+ }, slugify = (node, options = { delimiter: "-", prefix: "" }) => {
62983
+ if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node || typeof node == "boolean")
65335
62984
  return "";
65336
62985
  const { delimiter, prefix: prefix2 } = options;
65337
- if (typeof node2 == "boolean")
62986
+ if (typeof node == "boolean")
65338
62987
  return "";
65339
- if (typeof node2 == "string" || typeof node2 == "number") {
65340
- const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node2), delimiter);
62988
+ if (typeof node == "string" || typeof node == "number") {
62989
+ const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node), delimiter);
65341
62990
  return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
65342
62991
  }
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) : "";
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) : "";
65344
62993
  };
65345
62994
  var _default = slugify$1.default = slugify;
65346
62995
  const useSlug = ({
@@ -66082,101 +63731,7 @@ const WidgetAppsFooter = () => {
66082
63731
  !bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
66083
63732
  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))
66084
63733
  ] });
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 = () => {
63734
+ }, SearchEngine = () => {
66180
63735
  const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
66181
63736
  t: t2
66182
63737
  } = useTranslation();
@@ -66210,15 +63765,8 @@ const SearchEngine = () => {
66210
63765
  user,
66211
63766
  avatar
66212
63767
  } = useUser(), {
66213
- currentLanguage,
66214
63768
  currentApp
66215
- } = useOdeClient(), {
66216
- isModalOpen: isHelpOpen,
66217
- setIsModalOpen: setIsHelpOpen,
66218
- parsedContent,
66219
- parsedHeadline,
66220
- error
66221
- } = useHelp(), classes2 = clsx("header", {
63769
+ } = useOdeClient(), classes2 = clsx("header", {
66222
63770
  "no-2d": is1d,
66223
63771
  "no-1d": !is1d
66224
63772
  }), {
@@ -66254,15 +63802,6 @@ const SearchEngine = () => {
66254
63802
  /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
66255
63803
  ] }) }),
66256
63804
  /* @__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,
66266
63805
  /* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
66267
63806
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
66268
63807
  /* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
@@ -66307,15 +63846,6 @@ const SearchEngine = () => {
66307
63846
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
66308
63847
  hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
66309
63848
  ] }) }),
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,
66319
63849
  /* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
66320
63850
  /* @__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" }) }),
66321
63851
  /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
@@ -66350,35 +63880,14 @@ const SearchEngine = () => {
66350
63880
  showCookiesConsent,
66351
63881
  handleConsultCookies,
66352
63882
  handleCloseCookiesConsent
66353
- } = useCookiesConsent(), classes2 = clsx("d-flex flex-column bg-white", {
63883
+ } = useCookiesConsent();
63884
+ useZendeskGuide();
63885
+ const classes2 = clsx("d-flex flex-column bg-white", {
66354
63886
  "container-fluid": !headless,
66355
63887
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
66356
63888
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
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
- }
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"
66382
63891
  } });
66383
63892
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
66384
63893
  renderHeader,
@@ -66612,7 +64121,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
66612
64121
  var withSelectorExports = withSelector.exports;
66613
64122
  const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
66614
64123
  var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
66615
- const { useDebugValue } = React$2;
64124
+ const { useDebugValue } = React;
66616
64125
  const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
66617
64126
  let didWarnAboutEqualityFn = false;
66618
64127
  const identity = (arg) => arg;
@@ -66859,11 +64368,11 @@ class TreeNodeFolderWrapper {
66859
64368
  }
66860
64369
  }
66861
64370
  const wrapTreeNode = (treeNode, folders, parentId) => {
66862
- return modifyNode(treeNode, (node2) => {
66863
- if (node2.id === parentId) {
66864
- node2.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
64371
+ return modifyNode(treeNode, (node) => {
64372
+ if (node.id === parentId) {
64373
+ node.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
66865
64374
  }
66866
- return node2;
64375
+ return node;
66867
64376
  });
66868
64377
  };
66869
64378
  const initialState = {
@@ -67207,7 +64716,7 @@ const useSearchForm = () => {
67207
64716
  function ExplorerBreadcrumb() {
67208
64717
  const { appCode } = useOdeClient();
67209
64718
  const { gotoPreviousFolder } = useStoreActions();
67210
- const { t: t2 } = useTranslation(["common", appCode]);
64719
+ const { t: t2 } = useTranslation();
67211
64720
  const { inputSearch } = useSearchForm();
67212
64721
  const selectedNodesIds = useSelectedNodesIds();
67213
64722
  const isTrashFolder = useIsTrash();
@@ -67260,45 +64769,45 @@ const useTrashModal = () => {
67260
64769
  };
67261
64770
  };
67262
64771
  function addNode(treeData, { parentId, newFolder }) {
67263
- return modifyNode(treeData, (node2) => {
64772
+ return modifyNode(treeData, (node) => {
67264
64773
  var _a2;
67265
- if (node2.id === parentId) {
64774
+ if (node.id === parentId) {
67266
64775
  const parentAncestors = [
67267
- ...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
64776
+ ...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
67268
64777
  ];
67269
- const ancestors = arrayUnique([...parentAncestors, node2.id]);
64778
+ const ancestors = arrayUnique([...parentAncestors, node.id]);
67270
64779
  const newNode = {
67271
- ...node2,
64780
+ ...node,
67272
64781
  children: [
67273
- ...node2.children || [],
64782
+ ...node.children || [],
67274
64783
  new TreeNodeFolderWrapper({ ...newFolder, ancestors })
67275
64784
  ]
67276
64785
  };
67277
64786
  return newNode;
67278
64787
  } else {
67279
- return node2;
64788
+ return node;
67280
64789
  }
67281
64790
  });
67282
64791
  }
67283
64792
  function deleteNode(treeData, { folders }) {
67284
- return modifyNode(treeData, (node2) => {
67285
- if (folders.includes(node2.id)) {
64793
+ return modifyNode(treeData, (node) => {
64794
+ if (folders.includes(node.id)) {
67286
64795
  return void 0;
67287
64796
  } else {
67288
- return node2;
64797
+ return node;
67289
64798
  }
67290
64799
  });
67291
64800
  }
67292
64801
  function moveNode(treeData, { destinationId, folders }) {
67293
- return modifyNode(treeData, (node2, parent) => {
64802
+ return modifyNode(treeData, (node, parent) => {
67294
64803
  var _a2, _b2;
67295
- if (destinationId === node2.id) {
64804
+ if (destinationId === node.id) {
67296
64805
  const parentAncestors = [
67297
- ...((_a2 = node2.folder) == null ? void 0 : _a2.ancestors) || []
64806
+ ...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
67298
64807
  ];
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)) || [];
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)) || [];
67302
64811
  for (const folder of folders) {
67303
64812
  if (!childrenIds.includes(folder)) {
67304
64813
  const item = findNodeById(folder, treeData);
@@ -67312,23 +64821,23 @@ function moveNode(treeData, { destinationId, folders }) {
67312
64821
  }
67313
64822
  }
67314
64823
  const newNode = {
67315
- ...node2,
64824
+ ...node,
67316
64825
  children: newChildren
67317
64826
  };
67318
64827
  return newNode;
67319
- } else if (folders.includes(node2.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
64828
+ } else if (folders.includes(node.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
67320
64829
  return void 0;
67321
64830
  } else {
67322
- return node2;
64831
+ return node;
67323
64832
  }
67324
64833
  });
67325
64834
  }
67326
64835
  function updateNode(treeData, { folderId, newFolder }) {
67327
- return modifyNode(treeData, (node2) => {
67328
- if (node2.id === folderId) {
64836
+ return modifyNode(treeData, (node) => {
64837
+ if (node.id === folderId) {
67329
64838
  return new TreeNodeFolderWrapper(newFolder);
67330
64839
  } else {
67331
- return node2;
64840
+ return node;
67332
64841
  }
67333
64842
  });
67334
64843
  }
@@ -67663,7 +65172,7 @@ const useCopyResource = () => {
67663
65172
  }
67664
65173
  );
67665
65174
  }
67666
- if (currentFolder.id && currentFolder.id !== FOLDER.DEFAULT) {
65175
+ if (currentFolder.id && currentFolder.id !== "default") {
67667
65176
  moveToFolder({
67668
65177
  searchParams,
67669
65178
  resourceIds: [data.duplicateId],
@@ -68045,9 +65554,10 @@ const useCreateResource = () => {
68045
65554
  var _a2, _b2, _c2;
68046
65555
  await queryClient2.cancelQueries({ queryKey });
68047
65556
  const previousData = queryClient2.getQueryData(queryKey);
65557
+ const { thumbnail } = variables;
68048
65558
  const newResource = {
68049
65559
  ...variables,
68050
- thumbnail: data.thumbnail || "",
65560
+ thumbnail: thumbnail ? URL.createObjectURL(thumbnail) : "",
68051
65561
  application,
68052
65562
  assetId: data._id || data.entId || "",
68053
65563
  id: data._id || data.entId || "",
@@ -68111,7 +65621,7 @@ const List = () => {
68111
65621
  const treeData = useTreeData();
68112
65622
  const toast = useToast();
68113
65623
  const { appCode } = useOdeClient();
68114
- const { t: t2 } = useTranslation([appCode]);
65624
+ const { t: t2 } = useTranslation();
68115
65625
  const { setSearchParams, setSearchConfig, setTreeData } = useStoreActions();
68116
65626
  const { data, isError: isError2, error, isLoading, isFetching, fetchNextPage } = useSearchContext();
68117
65627
  const hasNoFolders = (data == null ? void 0 : data.pages[0].folders.length) === 0;
@@ -68354,10 +65864,7 @@ const TreeViewContainer = () => {
68354
65864
  /* @__PURE__ */ jsxRuntimeExports.jsx(
68355
65865
  TreeView$1,
68356
65866
  {
68357
- data: {
68358
- ...treeData,
68359
- name: t2("explorer.filters.mine", { ns: appCode })
68360
- },
65867
+ data: treeData,
68361
65868
  selectedNodesIds,
68362
65869
  onTreeItemSelect: selectTreeItem,
68363
65870
  onTreeItemFold: foldTreeItem,
@@ -68775,7 +66282,7 @@ const ResourceCard = ({
68775
66282
  Image$2,
68776
66283
  {
68777
66284
  alt: "",
68778
- src: `${resource == null ? void 0 : resource.thumbnail}?thumbnail=80x80`,
66285
+ src: resource == null ? void 0 : resource.thumbnail,
68779
66286
  objectFit: "cover",
68780
66287
  className: "h-full w-100"
68781
66288
  }
@@ -68832,13 +66339,13 @@ const ResourceCard = ({
68832
66339
  );
68833
66340
  };
68834
66341
  ResourceCard.displayName = "ResourceCard";
66342
+ dayjs.extend(relativeTime);
68835
66343
  const ResourcesList = ({
68836
66344
  data,
68837
66345
  fetchNextPage
68838
66346
  }) => {
68839
- const { currentApp } = useOdeClient();
66347
+ const { currentApp, currentLanguage } = useOdeClient();
68840
66348
  const { t: t2 } = useTranslation();
68841
- const { fromNow } = useDate();
68842
66349
  const searchParams = useSearchParams();
68843
66350
  const resourceIds = useResourceIds();
68844
66351
  const selectedResources = useSelectedResources();
@@ -68885,12 +66392,12 @@ const ResourcesList = ({
68885
66392
  setSelectedResources([...selectedResources, resource]);
68886
66393
  }
68887
66394
  const classes2 = clsx("grid ps-0 list-unstyled");
68888
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(React$2.Fragment, { children: [
66395
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
68889
66396
  /* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
68890
66397
  // eslint-disable-next-line react/no-array-index-key
68891
- /* @__PURE__ */ jsxRuntimeExports.jsx(React$2.Fragment, { children: page.resources.map((resource) => {
66398
+ /* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
68892
66399
  const { id: id2, updatedAt } = resource;
68893
- const time = fromNow(updatedAt);
66400
+ const time = dayjs(updatedAt).locale(currentLanguage).fromNow();
68894
66401
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
68895
66402
  animated.li,
68896
66403
  {
@@ -69032,7 +66539,6 @@ function FolderModal$1({
69032
66539
  type: "text",
69033
66540
  ...register("name", {
69034
66541
  required: true,
69035
- maxLength: 60,
69036
66542
  pattern: {
69037
66543
  value: /[^ ]/,
69038
66544
  message: "invalid title"
@@ -69040,8 +66546,7 @@ function FolderModal$1({
69040
66546
  }),
69041
66547
  placeholder: t2("explorer.create.folder.name"),
69042
66548
  size: "md",
69043
- "aria-required": true,
69044
- maxLength: 60
66549
+ "aria-required": true
69045
66550
  }
69046
66551
  )
69047
66552
  ] }) }) }),
@@ -69163,7 +66668,7 @@ const Library = () => {
69163
66668
  href: libraryUrl,
69164
66669
  target: "_blank",
69165
66670
  rel: "noreferrer",
69166
- className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
66671
+ className: "d-inline-flex gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
69167
66672
  children: [
69168
66673
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t2("explorer.libray.btn") }),
69169
66674
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgArrowRight$1, {})
@@ -69305,10 +66810,14 @@ function useActionBar() {
69305
66810
  case ACTION.UPD_PROPS:
69306
66811
  case "edit":
69307
66812
  return onEdit();
66813
+ case "export":
66814
+ if (resourceIds.length > 0) {
66815
+ return onExport();
66816
+ } else {
66817
+ return null;
66818
+ }
69308
66819
  case ACTION.SHARE:
69309
66820
  return setOpenedModalName("share");
69310
- case ACTION.EXPORT:
69311
- return setOpenedModalName("export");
69312
66821
  default:
69313
66822
  throw Error(`Unknown action: ${action.id}`);
69314
66823
  }
@@ -69380,8 +66889,6 @@ function useActionBar() {
69380
66889
  const onEditResourceCancel = onFinish("edit_resource");
69381
66890
  const onShareResourceSuccess = onFinish("share");
69382
66891
  const onShareResourceCancel = onFinish("share");
69383
- const onExportCancel = onFinish("export");
69384
- const onExportSuccess = onFinish("export");
69385
66892
  async function onCopy() {
69386
66893
  if (selectedResources && selectedResources.length > 0) {
69387
66894
  const selectedResource = selectedResources[0];
@@ -69398,6 +66905,12 @@ function useActionBar() {
69398
66905
  setOpenedModalName("edit_folder");
69399
66906
  }
69400
66907
  }
66908
+ function onExport() {
66909
+ if (resourceIds && resourceIds.length > 0) {
66910
+ const selectedResource = selectedResources[0].assetId;
66911
+ goToExport({ searchParams, assetId: selectedResource });
66912
+ }
66913
+ }
69401
66914
  function overrideLabel(action) {
69402
66915
  if (action.id === "edit" && folderIds.length > 0) {
69403
66916
  return "explorer.rename";
@@ -69431,9 +66944,6 @@ function useActionBar() {
69431
66944
  isShareResourceOpen: openedModalName === "share",
69432
66945
  onShareResourceCancel,
69433
66946
  onShareResourceSuccess,
69434
- isExportModalOpen: openedModalName === "export",
69435
- onExportCancel,
69436
- onExportSuccess,
69437
66947
  onClearActionBar
69438
66948
  };
69439
66949
  }
@@ -69483,7 +66993,6 @@ const UpdateModal = reactExports.lazy(
69483
66993
  const DeleteModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => DeleteModal$1), true ? void 0 : void 0));
69484
66994
  const MoveModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => MoveModal$1), true ? void 0 : void 0));
69485
66995
  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));
69487
66996
  function ActionBarContainer() {
69488
66997
  const { appCode } = useOdeClient();
69489
66998
  const { t: t2 } = useTranslation();
@@ -69504,9 +67013,6 @@ function ActionBarContainer() {
69504
67013
  isShareResourceOpen,
69505
67014
  onShareResourceCancel,
69506
67015
  onShareResourceSuccess,
69507
- isExportModalOpen,
69508
- onExportCancel,
69509
- onExportSuccess,
69510
67016
  onMoveCancel,
69511
67017
  onMoveSuccess,
69512
67018
  onDeleteCancel,
@@ -69635,14 +67141,6 @@ function ActionBarContainer() {
69635
67141
  }
69636
67142
  ) : null
69637
67143
  }
69638
- ),
69639
- isExportModalOpen && selectedResource && /* @__PURE__ */ jsxRuntimeExports.jsx(
69640
- ExportModal$2,
69641
- {
69642
- isOpen: isExportModalOpen,
69643
- onCancel: onExportCancel,
69644
- onSuccess: onExportSuccess
69645
- }
69646
67144
  )
69647
67145
  ] })
69648
67146
  ] });
@@ -69896,69 +67394,6 @@ const MoveModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
69896
67394
  __proto__: null,
69897
67395
  default: MoveModal
69898
67396
  }, 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" }));
69962
67397
  function __vite__mapDeps(indexes) {
69963
67398
  if (!__vite__mapDeps.viteFileDeps) {
69964
67399
  __vite__mapDeps.viteFileDeps = []