Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

76715 строки
3.1 MiB

  1. var __create = Object.create;
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
  6. var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
  7. get: (a3, b) => (typeof require < "u" ? require : a3)[b]
  8. }) : x)(function(x) {
  9. if (typeof require < "u") return require.apply(this, arguments);
  10. throw Error('Dynamic require of "' + x + '" is not supported');
  11. });
  12. var __esm = (fn4, res, err) => function() {
  13. if (err) throw err[0];
  14. try {
  15. return fn4 && (res = (0, fn4[__getOwnPropNames(fn4)[0]])(fn4 = 0)), res;
  16. } catch (e) {
  17. throw err = [e], e;
  18. }
  19. };
  20. var __commonJS = (cb, mod) => function() {
  21. try {
  22. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  23. } catch (e) {
  24. throw mod = 0, e;
  25. }
  26. };
  27. var __export = (target, all) => {
  28. for (var name in all)
  29. __defProp(target, name, { get: all[name], enumerable: !0 });
  30. }, __copyProps = (to, from2, except, desc) => {
  31. if (from2 && typeof from2 == "object" || typeof from2 == "function")
  32. for (let key of __getOwnPropNames(from2))
  33. !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
  34. return to;
  35. };
  36. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  37. // If the importer is in node compatibility mode or this is not an ESM
  38. // file that has been converted to a CommonJS file using a Babel-
  39. // compatible transform (i.e. "__esModule" has not been set), then set
  40. // "default" to the CommonJS "module.exports" for node compatibility.
  41. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
  42. mod
  43. ));
  44. // ../../node_modules/react/cjs/react.production.min.js
  45. var require_react_production_min = __commonJS({
  46. "../../node_modules/react/cjs/react.production.min.js"(exports) {
  47. "use strict";
  48. var l = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), p3 = /* @__PURE__ */ Symbol.for("react.fragment"), q = /* @__PURE__ */ Symbol.for("react.strict_mode"), r2 = /* @__PURE__ */ Symbol.for("react.profiler"), t = /* @__PURE__ */ Symbol.for("react.provider"), u2 = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), z = Symbol.iterator;
  49. function A3(a3) {
  50. return a3 === null || typeof a3 != "object" ? null : (a3 = z && a3[z] || a3["@@iterator"], typeof a3 == "function" ? a3 : null);
  51. }
  52. var B3 = { isMounted: function() {
  53. return !1;
  54. }, enqueueForceUpdate: function() {
  55. }, enqueueReplaceState: function() {
  56. }, enqueueSetState: function() {
  57. } }, C3 = Object.assign, D = {};
  58. function E(a3, b, e) {
  59. this.props = a3, this.context = b, this.refs = D, this.updater = e || B3;
  60. }
  61. E.prototype.isReactComponent = {};
  62. E.prototype.setState = function(a3, b) {
  63. if (typeof a3 != "object" && typeof a3 != "function" && a3 != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
  64. this.updater.enqueueSetState(this, a3, b, "setState");
  65. };
  66. E.prototype.forceUpdate = function(a3) {
  67. this.updater.enqueueForceUpdate(this, a3, "forceUpdate");
  68. };
  69. function F() {
  70. }
  71. F.prototype = E.prototype;
  72. function G(a3, b, e) {
  73. this.props = a3, this.context = b, this.refs = D, this.updater = e || B3;
  74. }
  75. var H = G.prototype = new F();
  76. H.constructor = G;
  77. C3(H, E.prototype);
  78. H.isPureReactComponent = !0;
  79. var I = Array.isArray, J = Object.prototype.hasOwnProperty, K2 = { current: null }, L = { key: !0, ref: !0, __self: !0, __source: !0 };
  80. function M(a3, b, e) {
  81. var d, c = {}, k = null, h3 = null;
  82. if (b != null) for (d in b.ref !== void 0 && (h3 = b.ref), b.key !== void 0 && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
  83. var g2 = arguments.length - 2;
  84. if (g2 === 1) c.children = e;
  85. else if (1 < g2) {
  86. for (var f4 = Array(g2), m3 = 0; m3 < g2; m3++) f4[m3] = arguments[m3 + 2];
  87. c.children = f4;
  88. }
  89. if (a3 && a3.defaultProps) for (d in g2 = a3.defaultProps, g2) c[d] === void 0 && (c[d] = g2[d]);
  90. return { $$typeof: l, type: a3, key: k, ref: h3, props: c, _owner: K2.current };
  91. }
  92. function N(a3, b) {
  93. return { $$typeof: l, type: a3.type, key: b, ref: a3.ref, props: a3.props, _owner: a3._owner };
  94. }
  95. function O(a3) {
  96. return typeof a3 == "object" && a3 !== null && a3.$$typeof === l;
  97. }
  98. function escape4(a3) {
  99. var b = { "=": "=0", ":": "=2" };
  100. return "$" + a3.replace(/[=:]/g, function(a4) {
  101. return b[a4];
  102. });
  103. }
  104. var P3 = /\/+/g;
  105. function Q(a3, b) {
  106. return typeof a3 == "object" && a3 !== null && a3.key != null ? escape4("" + a3.key) : b.toString(36);
  107. }
  108. function R(a3, b, e, d, c) {
  109. var k = typeof a3;
  110. (k === "undefined" || k === "boolean") && (a3 = null);
  111. var h3 = !1;
  112. if (a3 === null) h3 = !0;
  113. else switch (k) {
  114. case "string":
  115. case "number":
  116. h3 = !0;
  117. break;
  118. case "object":
  119. switch (a3.$$typeof) {
  120. case l:
  121. case n:
  122. h3 = !0;
  123. }
  124. }
  125. if (h3) return h3 = a3, c = c(h3), a3 = d === "" ? "." + Q(h3, 0) : d, I(c) ? (e = "", a3 != null && (e = a3.replace(P3, "$&/") + "/"), R(c, b, e, "", function(a4) {
  126. return a4;
  127. })) : c != null && (O(c) && (c = N(c, e + (!c.key || h3 && h3.key === c.key ? "" : ("" + c.key).replace(P3, "$&/") + "/") + a3)), b.push(c)), 1;
  128. if (h3 = 0, d = d === "" ? "." : d + ":", I(a3)) for (var g2 = 0; g2 < a3.length; g2++) {
  129. k = a3[g2];
  130. var f4 = d + Q(k, g2);
  131. h3 += R(k, b, e, f4, c);
  132. }
  133. else if (f4 = A3(a3), typeof f4 == "function") for (a3 = f4.call(a3), g2 = 0; !(k = a3.next()).done; ) k = k.value, f4 = d + Q(k, g2++), h3 += R(k, b, e, f4, c);
  134. else if (k === "object") throw b = String(a3), Error("Objects are not valid as a React child (found: " + (b === "[object Object]" ? "object with keys {" + Object.keys(a3).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
  135. return h3;
  136. }
  137. function S(a3, b, e) {
  138. if (a3 == null) return a3;
  139. var d = [], c = 0;
  140. return R(a3, d, "", "", function(a4) {
  141. return b.call(e, a4, c++);
  142. }), d;
  143. }
  144. function T2(a3) {
  145. if (a3._status === -1) {
  146. var b = a3._result;
  147. b = b(), b.then(function(b2) {
  148. (a3._status === 0 || a3._status === -1) && (a3._status = 1, a3._result = b2);
  149. }, function(b2) {
  150. (a3._status === 0 || a3._status === -1) && (a3._status = 2, a3._result = b2);
  151. }), a3._status === -1 && (a3._status = 0, a3._result = b);
  152. }
  153. if (a3._status === 1) return a3._result.default;
  154. throw a3._result;
  155. }
  156. var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 };
  157. function X() {
  158. throw Error("act(...) is not supported in production builds of React.");
  159. }
  160. exports.Children = { map: S, forEach: function(a3, b, e) {
  161. S(a3, function() {
  162. b.apply(this, arguments);
  163. }, e);
  164. }, count: function(a3) {
  165. var b = 0;
  166. return S(a3, function() {
  167. b++;
  168. }), b;
  169. }, toArray: function(a3) {
  170. return S(a3, function(a4) {
  171. return a4;
  172. }) || [];
  173. }, only: function(a3) {
  174. if (!O(a3)) throw Error("React.Children.only expected to receive a single React element child.");
  175. return a3;
  176. } };
  177. exports.Component = E;
  178. exports.Fragment = p3;
  179. exports.Profiler = r2;
  180. exports.PureComponent = G;
  181. exports.StrictMode = q;
  182. exports.Suspense = w;
  183. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
  184. exports.act = X;
  185. exports.cloneElement = function(a3, b, e) {
  186. if (a3 == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a3 + ".");
  187. var d = C3({}, a3.props), c = a3.key, k = a3.ref, h3 = a3._owner;
  188. if (b != null) {
  189. if (b.ref !== void 0 && (k = b.ref, h3 = K2.current), b.key !== void 0 && (c = "" + b.key), a3.type && a3.type.defaultProps) var g2 = a3.type.defaultProps;
  190. for (f4 in b) J.call(b, f4) && !L.hasOwnProperty(f4) && (d[f4] = b[f4] === void 0 && g2 !== void 0 ? g2[f4] : b[f4]);
  191. }
  192. var f4 = arguments.length - 2;
  193. if (f4 === 1) d.children = e;
  194. else if (1 < f4) {
  195. g2 = Array(f4);
  196. for (var m3 = 0; m3 < f4; m3++) g2[m3] = arguments[m3 + 2];
  197. d.children = g2;
  198. }
  199. return { $$typeof: l, type: a3.type, key: c, ref: k, props: d, _owner: h3 };
  200. };
  201. exports.createContext = function(a3) {
  202. return a3 = { $$typeof: u2, _currentValue: a3, _currentValue2: a3, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, a3.Provider = { $$typeof: t, _context: a3 }, a3.Consumer = a3;
  203. };
  204. exports.createElement = M;
  205. exports.createFactory = function(a3) {
  206. var b = M.bind(null, a3);
  207. return b.type = a3, b;
  208. };
  209. exports.createRef = function() {
  210. return { current: null };
  211. };
  212. exports.forwardRef = function(a3) {
  213. return { $$typeof: v, render: a3 };
  214. };
  215. exports.isValidElement = O;
  216. exports.lazy = function(a3) {
  217. return { $$typeof: y, _payload: { _status: -1, _result: a3 }, _init: T2 };
  218. };
  219. exports.memo = function(a3, b) {
  220. return { $$typeof: x, type: a3, compare: b === void 0 ? null : b };
  221. };
  222. exports.startTransition = function(a3) {
  223. var b = V.transition;
  224. V.transition = {};
  225. try {
  226. a3();
  227. } finally {
  228. V.transition = b;
  229. }
  230. };
  231. exports.unstable_act = X;
  232. exports.useCallback = function(a3, b) {
  233. return U.current.useCallback(a3, b);
  234. };
  235. exports.useContext = function(a3) {
  236. return U.current.useContext(a3);
  237. };
  238. exports.useDebugValue = function() {
  239. };
  240. exports.useDeferredValue = function(a3) {
  241. return U.current.useDeferredValue(a3);
  242. };
  243. exports.useEffect = function(a3, b) {
  244. return U.current.useEffect(a3, b);
  245. };
  246. exports.useId = function() {
  247. return U.current.useId();
  248. };
  249. exports.useImperativeHandle = function(a3, b, e) {
  250. return U.current.useImperativeHandle(a3, b, e);
  251. };
  252. exports.useInsertionEffect = function(a3, b) {
  253. return U.current.useInsertionEffect(a3, b);
  254. };
  255. exports.useLayoutEffect = function(a3, b) {
  256. return U.current.useLayoutEffect(a3, b);
  257. };
  258. exports.useMemo = function(a3, b) {
  259. return U.current.useMemo(a3, b);
  260. };
  261. exports.useReducer = function(a3, b, e) {
  262. return U.current.useReducer(a3, b, e);
  263. };
  264. exports.useRef = function(a3) {
  265. return U.current.useRef(a3);
  266. };
  267. exports.useState = function(a3) {
  268. return U.current.useState(a3);
  269. };
  270. exports.useSyncExternalStore = function(a3, b, e) {
  271. return U.current.useSyncExternalStore(a3, b, e);
  272. };
  273. exports.useTransition = function() {
  274. return U.current.useTransition();
  275. };
  276. exports.version = "18.3.1";
  277. }
  278. });
  279. // ../../node_modules/react/index.js
  280. var require_react = __commonJS({
  281. "../../node_modules/react/index.js"(exports, module2) {
  282. "use strict";
  283. module2.exports = require_react_production_min();
  284. }
  285. });
  286. // ../../node_modules/scheduler/cjs/scheduler.production.min.js
  287. var require_scheduler_production_min = __commonJS({
  288. "../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
  289. "use strict";
  290. function f4(a3, b) {
  291. var c = a3.length;
  292. a3.push(b);
  293. a: for (; 0 < c; ) {
  294. var d = c - 1 >>> 1, e = a3[d];
  295. if (0 < g2(e, b)) a3[d] = b, a3[c] = e, c = d;
  296. else break a;
  297. }
  298. }
  299. function h3(a3) {
  300. return a3.length === 0 ? null : a3[0];
  301. }
  302. function k(a3) {
  303. if (a3.length === 0) return null;
  304. var b = a3[0], c = a3.pop();
  305. if (c !== b) {
  306. a3[0] = c;
  307. a: for (var d = 0, e = a3.length, w = e >>> 1; d < w; ) {
  308. var m3 = 2 * (d + 1) - 1, C3 = a3[m3], n = m3 + 1, x = a3[n];
  309. if (0 > g2(C3, c)) n < e && 0 > g2(x, C3) ? (a3[d] = x, a3[n] = c, d = n) : (a3[d] = C3, a3[m3] = c, d = m3);
  310. else if (n < e && 0 > g2(x, c)) a3[d] = x, a3[n] = c, d = n;
  311. else break a;
  312. }
  313. }
  314. return b;
  315. }
  316. function g2(a3, b) {
  317. var c = a3.sortIndex - b.sortIndex;
  318. return c !== 0 ? c : a3.id - b.id;
  319. }
  320. typeof performance == "object" && typeof performance.now == "function" ? (l = performance, exports.unstable_now = function() {
  321. return l.now();
  322. }) : (p3 = Date, q = p3.now(), exports.unstable_now = function() {
  323. return p3.now() - q;
  324. });
  325. var l, p3, q, r2 = [], t = [], u2 = 1, v = null, y = 3, z = !1, A3 = !1, B3 = !1, D = typeof setTimeout == "function" ? setTimeout : null, E = typeof clearTimeout == "function" ? clearTimeout : null, F = typeof setImmediate < "u" ? setImmediate : null;
  326. typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
  327. function G(a3) {
  328. for (var b = h3(t); b !== null; ) {
  329. if (b.callback === null) k(t);
  330. else if (b.startTime <= a3) k(t), b.sortIndex = b.expirationTime, f4(r2, b);
  331. else break;
  332. b = h3(t);
  333. }
  334. }
  335. function H(a3) {
  336. if (B3 = !1, G(a3), !A3) if (h3(r2) !== null) A3 = !0, I(J);
  337. else {
  338. var b = h3(t);
  339. b !== null && K2(H, b.startTime - a3);
  340. }
  341. }
  342. function J(a3, b) {
  343. A3 = !1, B3 && (B3 = !1, E(L), L = -1), z = !0;
  344. var c = y;
  345. try {
  346. for (G(b), v = h3(r2); v !== null && (!(v.expirationTime > b) || a3 && !M()); ) {
  347. var d = v.callback;
  348. if (typeof d == "function") {
  349. v.callback = null, y = v.priorityLevel;
  350. var e = d(v.expirationTime <= b);
  351. b = exports.unstable_now(), typeof e == "function" ? v.callback = e : v === h3(r2) && k(r2), G(b);
  352. } else k(r2);
  353. v = h3(r2);
  354. }
  355. if (v !== null) var w = !0;
  356. else {
  357. var m3 = h3(t);
  358. m3 !== null && K2(H, m3.startTime - b), w = !1;
  359. }
  360. return w;
  361. } finally {
  362. v = null, y = c, z = !1;
  363. }
  364. }
  365. var N = !1, O = null, L = -1, P3 = 5, Q = -1;
  366. function M() {
  367. return !(exports.unstable_now() - Q < P3);
  368. }
  369. function R() {
  370. if (O !== null) {
  371. var a3 = exports.unstable_now();
  372. Q = a3;
  373. var b = !0;
  374. try {
  375. b = O(!0, a3);
  376. } finally {
  377. b ? S() : (N = !1, O = null);
  378. }
  379. } else N = !1;
  380. }
  381. var S;
  382. typeof F == "function" ? S = function() {
  383. F(R);
  384. } : typeof MessageChannel < "u" ? (T2 = new MessageChannel(), U = T2.port2, T2.port1.onmessage = R, S = function() {
  385. U.postMessage(null);
  386. }) : S = function() {
  387. D(R, 0);
  388. };
  389. var T2, U;
  390. function I(a3) {
  391. O = a3, N || (N = !0, S());
  392. }
  393. function K2(a3, b) {
  394. L = D(function() {
  395. a3(exports.unstable_now());
  396. }, b);
  397. }
  398. exports.unstable_IdlePriority = 5;
  399. exports.unstable_ImmediatePriority = 1;
  400. exports.unstable_LowPriority = 4;
  401. exports.unstable_NormalPriority = 3;
  402. exports.unstable_Profiling = null;
  403. exports.unstable_UserBlockingPriority = 2;
  404. exports.unstable_cancelCallback = function(a3) {
  405. a3.callback = null;
  406. };
  407. exports.unstable_continueExecution = function() {
  408. A3 || z || (A3 = !0, I(J));
  409. };
  410. exports.unstable_forceFrameRate = function(a3) {
  411. 0 > a3 || 125 < a3 ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P3 = 0 < a3 ? Math.floor(1e3 / a3) : 5;
  412. };
  413. exports.unstable_getCurrentPriorityLevel = function() {
  414. return y;
  415. };
  416. exports.unstable_getFirstCallbackNode = function() {
  417. return h3(r2);
  418. };
  419. exports.unstable_next = function(a3) {
  420. switch (y) {
  421. case 1:
  422. case 2:
  423. case 3:
  424. var b = 3;
  425. break;
  426. default:
  427. b = y;
  428. }
  429. var c = y;
  430. y = b;
  431. try {
  432. return a3();
  433. } finally {
  434. y = c;
  435. }
  436. };
  437. exports.unstable_pauseExecution = function() {
  438. };
  439. exports.unstable_requestPaint = function() {
  440. };
  441. exports.unstable_runWithPriority = function(a3, b) {
  442. switch (a3) {
  443. case 1:
  444. case 2:
  445. case 3:
  446. case 4:
  447. case 5:
  448. break;
  449. default:
  450. a3 = 3;
  451. }
  452. var c = y;
  453. y = a3;
  454. try {
  455. return b();
  456. } finally {
  457. y = c;
  458. }
  459. };
  460. exports.unstable_scheduleCallback = function(a3, b, c) {
  461. var d = exports.unstable_now();
  462. switch (typeof c == "object" && c !== null ? (c = c.delay, c = typeof c == "number" && 0 < c ? d + c : d) : c = d, a3) {
  463. case 1:
  464. var e = -1;
  465. break;
  466. case 2:
  467. e = 250;
  468. break;
  469. case 5:
  470. e = 1073741823;
  471. break;
  472. case 4:
  473. e = 1e4;
  474. break;
  475. default:
  476. e = 5e3;
  477. }
  478. return e = c + e, a3 = { id: u2++, callback: b, priorityLevel: a3, startTime: c, expirationTime: e, sortIndex: -1 }, c > d ? (a3.sortIndex = c, f4(t, a3), h3(r2) === null && a3 === h3(t) && (B3 ? (E(L), L = -1) : B3 = !0, K2(H, c - d))) : (a3.sortIndex = e, f4(r2, a3), A3 || z || (A3 = !0, I(J))), a3;
  479. };
  480. exports.unstable_shouldYield = M;
  481. exports.unstable_wrapCallback = function(a3) {
  482. var b = y;
  483. return function() {
  484. var c = y;
  485. y = b;
  486. try {
  487. return a3.apply(this, arguments);
  488. } finally {
  489. y = c;
  490. }
  491. };
  492. };
  493. }
  494. });
  495. // ../../node_modules/scheduler/index.js
  496. var require_scheduler = __commonJS({
  497. "../../node_modules/scheduler/index.js"(exports, module2) {
  498. "use strict";
  499. module2.exports = require_scheduler_production_min();
  500. }
  501. });
  502. // ../../node_modules/react-dom/cjs/react-dom.production.min.js
  503. var require_react_dom_production_min = __commonJS({
  504. "../../node_modules/react-dom/cjs/react-dom.production.min.js"(exports) {
  505. "use strict";
  506. var aa = require_react(), ca = require_scheduler();
  507. function p3(a3) {
  508. for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
  509. return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  510. }
  511. var da = /* @__PURE__ */ new Set(), ea = {};
  512. function fa(a3, b) {
  513. ha(a3, b), ha(a3 + "Capture", b);
  514. }
  515. function ha(a3, b) {
  516. for (ea[a3] = b, a3 = 0; a3 < b.length; a3++) da.add(b[a3]);
  517. }
  518. var ia = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), ja = Object.prototype.hasOwnProperty, ka = /^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {};
  519. function oa(a3) {
  520. return ja.call(ma, a3) ? !0 : ja.call(la, a3) ? !1 : ka.test(a3) ? ma[a3] = !0 : (la[a3] = !0, !1);
  521. }
  522. function pa(a3, b, c, d) {
  523. if (c !== null && c.type === 0) return !1;
  524. switch (typeof b) {
  525. case "function":
  526. case "symbol":
  527. return !0;
  528. case "boolean":
  529. return d ? !1 : c !== null ? !c.acceptsBooleans : (a3 = a3.toLowerCase().slice(0, 5), a3 !== "data-" && a3 !== "aria-");
  530. default:
  531. return !1;
  532. }
  533. }
  534. function qa(a3, b, c, d) {
  535. if (b === null || typeof b > "u" || pa(a3, b, c, d)) return !0;
  536. if (d) return !1;
  537. if (c !== null) switch (c.type) {
  538. case 3:
  539. return !b;
  540. case 4:
  541. return b === !1;
  542. case 5:
  543. return isNaN(b);
  544. case 6:
  545. return isNaN(b) || 1 > b;
  546. }
  547. return !1;
  548. }
  549. function v(a3, b, c, d, e, f4, g2) {
  550. this.acceptsBooleans = b === 2 || b === 3 || b === 4, this.attributeName = d, this.attributeNamespace = e, this.mustUseProperty = c, this.propertyName = a3, this.type = b, this.sanitizeURL = f4, this.removeEmptyString = g2;
  551. }
  552. var z = {};
  553. "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a3) {
  554. z[a3] = new v(a3, 0, !1, a3, null, !1, !1);
  555. });
  556. [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a3) {
  557. var b = a3[0];
  558. z[b] = new v(b, 1, !1, a3[1], null, !1, !1);
  559. });
  560. ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a3) {
  561. z[a3] = new v(a3, 2, !1, a3.toLowerCase(), null, !1, !1);
  562. });
  563. ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a3) {
  564. z[a3] = new v(a3, 2, !1, a3, null, !1, !1);
  565. });
  566. "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a3) {
  567. z[a3] = new v(a3, 3, !1, a3.toLowerCase(), null, !1, !1);
  568. });
  569. ["checked", "multiple", "muted", "selected"].forEach(function(a3) {
  570. z[a3] = new v(a3, 3, !0, a3, null, !1, !1);
  571. });
  572. ["capture", "download"].forEach(function(a3) {
  573. z[a3] = new v(a3, 4, !1, a3, null, !1, !1);
  574. });
  575. ["cols", "rows", "size", "span"].forEach(function(a3) {
  576. z[a3] = new v(a3, 6, !1, a3, null, !1, !1);
  577. });
  578. ["rowSpan", "start"].forEach(function(a3) {
  579. z[a3] = new v(a3, 5, !1, a3.toLowerCase(), null, !1, !1);
  580. });
  581. var ra = /[\-:]([a-z])/g;
  582. function sa(a3) {
  583. return a3[1].toUpperCase();
  584. }
  585. "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a3) {
  586. var b = a3.replace(
  587. ra,
  588. sa
  589. );
  590. z[b] = new v(b, 1, !1, a3, null, !1, !1);
  591. });
  592. "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a3) {
  593. var b = a3.replace(ra, sa);
  594. z[b] = new v(b, 1, !1, a3, "http://www.w3.org/1999/xlink", !1, !1);
  595. });
  596. ["xml:base", "xml:lang", "xml:space"].forEach(function(a3) {
  597. var b = a3.replace(ra, sa);
  598. z[b] = new v(b, 1, !1, a3, "http://www.w3.org/XML/1998/namespace", !1, !1);
  599. });
  600. ["tabIndex", "crossOrigin"].forEach(function(a3) {
  601. z[a3] = new v(a3, 1, !1, a3.toLowerCase(), null, !1, !1);
  602. });
  603. z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
  604. ["src", "href", "action", "formAction"].forEach(function(a3) {
  605. z[a3] = new v(a3, 1, !1, a3.toLowerCase(), null, !0, !0);
  606. });
  607. function ta(a3, b, c, d) {
  608. var e = z.hasOwnProperty(b) ? z[b] : null;
  609. (e !== null ? e.type !== 0 : d || !(2 < b.length) || b[0] !== "o" && b[0] !== "O" || b[1] !== "n" && b[1] !== "N") && (qa(b, c, e, d) && (c = null), d || e === null ? oa(b) && (c === null ? a3.removeAttribute(b) : a3.setAttribute(b, "" + c)) : e.mustUseProperty ? a3[e.propertyName] = c === null ? e.type === 3 ? !1 : "" : c : (b = e.attributeName, d = e.attributeNamespace, c === null ? a3.removeAttribute(b) : (e = e.type, c = e === 3 || e === 4 && c === !0 ? "" : "" + c, d ? a3.setAttributeNS(d, b, c) : a3.setAttribute(b, c))));
  610. }
  611. var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = /* @__PURE__ */ Symbol.for("react.element"), wa = /* @__PURE__ */ Symbol.for("react.portal"), ya = /* @__PURE__ */ Symbol.for("react.fragment"), za = /* @__PURE__ */ Symbol.for("react.strict_mode"), Aa = /* @__PURE__ */ Symbol.for("react.profiler"), Ba = /* @__PURE__ */ Symbol.for("react.provider"), Ca = /* @__PURE__ */ Symbol.for("react.context"), Da = /* @__PURE__ */ Symbol.for("react.forward_ref"), Ea = /* @__PURE__ */ Symbol.for("react.suspense"), Fa = /* @__PURE__ */ Symbol.for("react.suspense_list"), Ga = /* @__PURE__ */ Symbol.for("react.memo"), Ha = /* @__PURE__ */ Symbol.for("react.lazy"), Ia = /* @__PURE__ */ Symbol.for("react.offscreen"), Ja = Symbol.iterator;
  612. function Ka(a3) {
  613. return a3 === null || typeof a3 != "object" ? null : (a3 = Ja && a3[Ja] || a3["@@iterator"], typeof a3 == "function" ? a3 : null);
  614. }
  615. var A3 = Object.assign, La;
  616. function Ma(a3) {
  617. if (La === void 0) try {
  618. throw Error();
  619. } catch (c) {
  620. var b = c.stack.trim().match(/\n( *(at )?)/);
  621. La = b && b[1] || "";
  622. }
  623. return `
  624. ` + La + a3;
  625. }
  626. var Na = !1;
  627. function Oa(a3, b) {
  628. if (!a3 || Na) return "";
  629. Na = !0;
  630. var c = Error.prepareStackTrace;
  631. Error.prepareStackTrace = void 0;
  632. try {
  633. if (b) if (b = function() {
  634. throw Error();
  635. }, Object.defineProperty(b.prototype, "props", { set: function() {
  636. throw Error();
  637. } }), typeof Reflect == "object" && Reflect.construct) {
  638. try {
  639. Reflect.construct(b, []);
  640. } catch (l) {
  641. var d = l;
  642. }
  643. Reflect.construct(a3, [], b);
  644. } else {
  645. try {
  646. b.call();
  647. } catch (l) {
  648. d = l;
  649. }
  650. a3.call(b.prototype);
  651. }
  652. else {
  653. try {
  654. throw Error();
  655. } catch (l) {
  656. d = l;
  657. }
  658. a3();
  659. }
  660. } catch (l) {
  661. if (l && d && typeof l.stack == "string") {
  662. for (var e = l.stack.split(`
  663. `), f4 = d.stack.split(`
  664. `), g2 = e.length - 1, h3 = f4.length - 1; 1 <= g2 && 0 <= h3 && e[g2] !== f4[h3]; ) h3--;
  665. for (; 1 <= g2 && 0 <= h3; g2--, h3--) if (e[g2] !== f4[h3]) {
  666. if (g2 !== 1 || h3 !== 1)
  667. do
  668. if (g2--, h3--, 0 > h3 || e[g2] !== f4[h3]) {
  669. var k = `
  670. ` + e[g2].replace(" at new ", " at ");
  671. return a3.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a3.displayName)), k;
  672. }
  673. while (1 <= g2 && 0 <= h3);
  674. break;
  675. }
  676. }
  677. } finally {
  678. Na = !1, Error.prepareStackTrace = c;
  679. }
  680. return (a3 = a3 ? a3.displayName || a3.name : "") ? Ma(a3) : "";
  681. }
  682. function Pa(a3) {
  683. switch (a3.tag) {
  684. case 5:
  685. return Ma(a3.type);
  686. case 16:
  687. return Ma("Lazy");
  688. case 13:
  689. return Ma("Suspense");
  690. case 19:
  691. return Ma("SuspenseList");
  692. case 0:
  693. case 2:
  694. case 15:
  695. return a3 = Oa(a3.type, !1), a3;
  696. case 11:
  697. return a3 = Oa(a3.type.render, !1), a3;
  698. case 1:
  699. return a3 = Oa(a3.type, !0), a3;
  700. default:
  701. return "";
  702. }
  703. }
  704. function Qa(a3) {
  705. if (a3 == null) return null;
  706. if (typeof a3 == "function") return a3.displayName || a3.name || null;
  707. if (typeof a3 == "string") return a3;
  708. switch (a3) {
  709. case ya:
  710. return "Fragment";
  711. case wa:
  712. return "Portal";
  713. case Aa:
  714. return "Profiler";
  715. case za:
  716. return "StrictMode";
  717. case Ea:
  718. return "Suspense";
  719. case Fa:
  720. return "SuspenseList";
  721. }
  722. if (typeof a3 == "object") switch (a3.$$typeof) {
  723. case Ca:
  724. return (a3.displayName || "Context") + ".Consumer";
  725. case Ba:
  726. return (a3._context.displayName || "Context") + ".Provider";
  727. case Da:
  728. var b = a3.render;
  729. return a3 = a3.displayName, a3 || (a3 = b.displayName || b.name || "", a3 = a3 !== "" ? "ForwardRef(" + a3 + ")" : "ForwardRef"), a3;
  730. case Ga:
  731. return b = a3.displayName || null, b !== null ? b : Qa(a3.type) || "Memo";
  732. case Ha:
  733. b = a3._payload, a3 = a3._init;
  734. try {
  735. return Qa(a3(b));
  736. } catch {
  737. }
  738. }
  739. return null;
  740. }
  741. function Ra(a3) {
  742. var b = a3.type;
  743. switch (a3.tag) {
  744. case 24:
  745. return "Cache";
  746. case 9:
  747. return (b.displayName || "Context") + ".Consumer";
  748. case 10:
  749. return (b._context.displayName || "Context") + ".Provider";
  750. case 18:
  751. return "DehydratedFragment";
  752. case 11:
  753. return a3 = b.render, a3 = a3.displayName || a3.name || "", b.displayName || (a3 !== "" ? "ForwardRef(" + a3 + ")" : "ForwardRef");
  754. case 7:
  755. return "Fragment";
  756. case 5:
  757. return b;
  758. case 4:
  759. return "Portal";
  760. case 3:
  761. return "Root";
  762. case 6:
  763. return "Text";
  764. case 16:
  765. return Qa(b);
  766. case 8:
  767. return b === za ? "StrictMode" : "Mode";
  768. case 22:
  769. return "Offscreen";
  770. case 12:
  771. return "Profiler";
  772. case 21:
  773. return "Scope";
  774. case 13:
  775. return "Suspense";
  776. case 19:
  777. return "SuspenseList";
  778. case 25:
  779. return "TracingMarker";
  780. case 1:
  781. case 0:
  782. case 17:
  783. case 2:
  784. case 14:
  785. case 15:
  786. if (typeof b == "function") return b.displayName || b.name || null;
  787. if (typeof b == "string") return b;
  788. }
  789. return null;
  790. }
  791. function Sa(a3) {
  792. switch (typeof a3) {
  793. case "boolean":
  794. case "number":
  795. case "string":
  796. case "undefined":
  797. return a3;
  798. case "object":
  799. return a3;
  800. default:
  801. return "";
  802. }
  803. }
  804. function Ta(a3) {
  805. var b = a3.type;
  806. return (a3 = a3.nodeName) && a3.toLowerCase() === "input" && (b === "checkbox" || b === "radio");
  807. }
  808. function Ua(a3) {
  809. var b = Ta(a3) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a3.constructor.prototype, b), d = "" + a3[b];
  810. if (!a3.hasOwnProperty(b) && typeof c < "u" && typeof c.get == "function" && typeof c.set == "function") {
  811. var e = c.get, f4 = c.set;
  812. return Object.defineProperty(a3, b, { configurable: !0, get: function() {
  813. return e.call(this);
  814. }, set: function(a4) {
  815. d = "" + a4, f4.call(this, a4);
  816. } }), Object.defineProperty(a3, b, { enumerable: c.enumerable }), { getValue: function() {
  817. return d;
  818. }, setValue: function(a4) {
  819. d = "" + a4;
  820. }, stopTracking: function() {
  821. a3._valueTracker = null, delete a3[b];
  822. } };
  823. }
  824. }
  825. function Va(a3) {
  826. a3._valueTracker || (a3._valueTracker = Ua(a3));
  827. }
  828. function Wa(a3) {
  829. if (!a3) return !1;
  830. var b = a3._valueTracker;
  831. if (!b) return !0;
  832. var c = b.getValue(), d = "";
  833. return a3 && (d = Ta(a3) ? a3.checked ? "true" : "false" : a3.value), a3 = d, a3 !== c ? (b.setValue(a3), !0) : !1;
  834. }
  835. function Xa(a3) {
  836. if (a3 = a3 || (typeof document < "u" ? document : void 0), typeof a3 > "u") return null;
  837. try {
  838. return a3.activeElement || a3.body;
  839. } catch {
  840. return a3.body;
  841. }
  842. }
  843. function Ya(a3, b) {
  844. var c = b.checked;
  845. return A3({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: c ?? a3._wrapperState.initialChecked });
  846. }
  847. function Za(a3, b) {
  848. var c = b.defaultValue == null ? "" : b.defaultValue, d = b.checked != null ? b.checked : b.defaultChecked;
  849. c = Sa(b.value != null ? b.value : c), a3._wrapperState = { initialChecked: d, initialValue: c, controlled: b.type === "checkbox" || b.type === "radio" ? b.checked != null : b.value != null };
  850. }
  851. function ab(a3, b) {
  852. b = b.checked, b != null && ta(a3, "checked", b, !1);
  853. }
  854. function bb(a3, b) {
  855. ab(a3, b);
  856. var c = Sa(b.value), d = b.type;
  857. if (c != null) d === "number" ? (c === 0 && a3.value === "" || a3.value != c) && (a3.value = "" + c) : a3.value !== "" + c && (a3.value = "" + c);
  858. else if (d === "submit" || d === "reset") {
  859. a3.removeAttribute("value");
  860. return;
  861. }
  862. b.hasOwnProperty("value") ? cb(a3, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a3, b.type, Sa(b.defaultValue)), b.checked == null && b.defaultChecked != null && (a3.defaultChecked = !!b.defaultChecked);
  863. }
  864. function db(a3, b, c) {
  865. if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) {
  866. var d = b.type;
  867. if (!(d !== "submit" && d !== "reset" || b.value !== void 0 && b.value !== null)) return;
  868. b = "" + a3._wrapperState.initialValue, c || b === a3.value || (a3.value = b), a3.defaultValue = b;
  869. }
  870. c = a3.name, c !== "" && (a3.name = ""), a3.defaultChecked = !!a3._wrapperState.initialChecked, c !== "" && (a3.name = c);
  871. }
  872. function cb(a3, b, c) {
  873. (b !== "number" || Xa(a3.ownerDocument) !== a3) && (c == null ? a3.defaultValue = "" + a3._wrapperState.initialValue : a3.defaultValue !== "" + c && (a3.defaultValue = "" + c));
  874. }
  875. var eb = Array.isArray;
  876. function fb(a3, b, c, d) {
  877. if (a3 = a3.options, b) {
  878. b = {};
  879. for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0;
  880. for (c = 0; c < a3.length; c++) e = b.hasOwnProperty("$" + a3[c].value), a3[c].selected !== e && (a3[c].selected = e), e && d && (a3[c].defaultSelected = !0);
  881. } else {
  882. for (c = "" + Sa(c), b = null, e = 0; e < a3.length; e++) {
  883. if (a3[e].value === c) {
  884. a3[e].selected = !0, d && (a3[e].defaultSelected = !0);
  885. return;
  886. }
  887. b !== null || a3[e].disabled || (b = a3[e]);
  888. }
  889. b !== null && (b.selected = !0);
  890. }
  891. }
  892. function gb(a3, b) {
  893. if (b.dangerouslySetInnerHTML != null) throw Error(p3(91));
  894. return A3({}, b, { value: void 0, defaultValue: void 0, children: "" + a3._wrapperState.initialValue });
  895. }
  896. function hb(a3, b) {
  897. var c = b.value;
  898. if (c == null) {
  899. if (c = b.children, b = b.defaultValue, c != null) {
  900. if (b != null) throw Error(p3(92));
  901. if (eb(c)) {
  902. if (1 < c.length) throw Error(p3(93));
  903. c = c[0];
  904. }
  905. b = c;
  906. }
  907. b == null && (b = ""), c = b;
  908. }
  909. a3._wrapperState = { initialValue: Sa(c) };
  910. }
  911. function ib(a3, b) {
  912. var c = Sa(b.value), d = Sa(b.defaultValue);
  913. c != null && (c = "" + c, c !== a3.value && (a3.value = c), b.defaultValue == null && a3.defaultValue !== c && (a3.defaultValue = c)), d != null && (a3.defaultValue = "" + d);
  914. }
  915. function jb(a3) {
  916. var b = a3.textContent;
  917. b === a3._wrapperState.initialValue && b !== "" && b !== null && (a3.value = b);
  918. }
  919. function kb(a3) {
  920. switch (a3) {
  921. case "svg":
  922. return "http://www.w3.org/2000/svg";
  923. case "math":
  924. return "http://www.w3.org/1998/Math/MathML";
  925. default:
  926. return "http://www.w3.org/1999/xhtml";
  927. }
  928. }
  929. function lb(a3, b) {
  930. return a3 == null || a3 === "http://www.w3.org/1999/xhtml" ? kb(b) : a3 === "http://www.w3.org/2000/svg" && b === "foreignObject" ? "http://www.w3.org/1999/xhtml" : a3;
  931. }
  932. var mb, nb = (function(a3) {
  933. return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
  934. MSApp.execUnsafeLocalFunction(function() {
  935. return a3(b, c, d, e);
  936. });
  937. } : a3;
  938. })(function(a3, b) {
  939. if (a3.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in a3) a3.innerHTML = b;
  940. else {
  941. for (mb = mb || document.createElement("div"), mb.innerHTML = "<svg>" + b.valueOf().toString() + "</svg>", b = mb.firstChild; a3.firstChild; ) a3.removeChild(a3.firstChild);
  942. for (; b.firstChild; ) a3.appendChild(b.firstChild);
  943. }
  944. });
  945. function ob(a3, b) {
  946. if (b) {
  947. var c = a3.firstChild;
  948. if (c && c === a3.lastChild && c.nodeType === 3) {
  949. c.nodeValue = b;
  950. return;
  951. }
  952. }
  953. a3.textContent = b;
  954. }
  955. var pb = {
  956. animationIterationCount: !0,
  957. aspectRatio: !0,
  958. borderImageOutset: !0,
  959. borderImageSlice: !0,
  960. borderImageWidth: !0,
  961. boxFlex: !0,
  962. boxFlexGroup: !0,
  963. boxOrdinalGroup: !0,
  964. columnCount: !0,
  965. columns: !0,
  966. flex: !0,
  967. flexGrow: !0,
  968. flexPositive: !0,
  969. flexShrink: !0,
  970. flexNegative: !0,
  971. flexOrder: !0,
  972. gridArea: !0,
  973. gridRow: !0,
  974. gridRowEnd: !0,
  975. gridRowSpan: !0,
  976. gridRowStart: !0,
  977. gridColumn: !0,
  978. gridColumnEnd: !0,
  979. gridColumnSpan: !0,
  980. gridColumnStart: !0,
  981. fontWeight: !0,
  982. lineClamp: !0,
  983. lineHeight: !0,
  984. opacity: !0,
  985. order: !0,
  986. orphans: !0,
  987. tabSize: !0,
  988. widows: !0,
  989. zIndex: !0,
  990. zoom: !0,
  991. fillOpacity: !0,
  992. floodOpacity: !0,
  993. stopOpacity: !0,
  994. strokeDasharray: !0,
  995. strokeDashoffset: !0,
  996. strokeMiterlimit: !0,
  997. strokeOpacity: !0,
  998. strokeWidth: !0
  999. }, qb = ["Webkit", "ms", "Moz", "O"];
  1000. Object.keys(pb).forEach(function(a3) {
  1001. qb.forEach(function(b) {
  1002. b = b + a3.charAt(0).toUpperCase() + a3.substring(1), pb[b] = pb[a3];
  1003. });
  1004. });
  1005. function rb(a3, b, c) {
  1006. return b == null || typeof b == "boolean" || b === "" ? "" : c || typeof b != "number" || b === 0 || pb.hasOwnProperty(a3) && pb[a3] ? ("" + b).trim() : b + "px";
  1007. }
  1008. function sb2(a3, b) {
  1009. a3 = a3.style;
  1010. for (var c in b) if (b.hasOwnProperty(c)) {
  1011. var d = c.indexOf("--") === 0, e = rb(c, b[c], d);
  1012. c === "float" && (c = "cssFloat"), d ? a3.setProperty(c, e) : a3[c] = e;
  1013. }
  1014. }
  1015. var tb = A3({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
  1016. function ub(a3, b) {
  1017. if (b) {
  1018. if (tb[a3] && (b.children != null || b.dangerouslySetInnerHTML != null)) throw Error(p3(137, a3));
  1019. if (b.dangerouslySetInnerHTML != null) {
  1020. if (b.children != null) throw Error(p3(60));
  1021. if (typeof b.dangerouslySetInnerHTML != "object" || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p3(61));
  1022. }
  1023. if (b.style != null && typeof b.style != "object") throw Error(p3(62));
  1024. }
  1025. }
  1026. function vb(a3, b) {
  1027. if (a3.indexOf("-") === -1) return typeof b.is == "string";
  1028. switch (a3) {
  1029. case "annotation-xml":
  1030. case "color-profile":
  1031. case "font-face":
  1032. case "font-face-src":
  1033. case "font-face-uri":
  1034. case "font-face-format":
  1035. case "font-face-name":
  1036. case "missing-glyph":
  1037. return !1;
  1038. default:
  1039. return !0;
  1040. }
  1041. }
  1042. var wb = null;
  1043. function xb(a3) {
  1044. return a3 = a3.target || a3.srcElement || window, a3.correspondingUseElement && (a3 = a3.correspondingUseElement), a3.nodeType === 3 ? a3.parentNode : a3;
  1045. }
  1046. var yb = null, zb = null, Ab = null;
  1047. function Bb(a3) {
  1048. if (a3 = Cb(a3)) {
  1049. if (typeof yb != "function") throw Error(p3(280));
  1050. var b = a3.stateNode;
  1051. b && (b = Db(b), yb(a3.stateNode, a3.type, b));
  1052. }
  1053. }
  1054. function Eb(a3) {
  1055. zb ? Ab ? Ab.push(a3) : Ab = [a3] : zb = a3;
  1056. }
  1057. function Fb() {
  1058. if (zb) {
  1059. var a3 = zb, b = Ab;
  1060. if (Ab = zb = null, Bb(a3), b) for (a3 = 0; a3 < b.length; a3++) Bb(b[a3]);
  1061. }
  1062. }
  1063. function Gb(a3, b) {
  1064. return a3(b);
  1065. }
  1066. function Hb() {
  1067. }
  1068. var Ib = !1;
  1069. function Jb(a3, b, c) {
  1070. if (Ib) return a3(b, c);
  1071. Ib = !0;
  1072. try {
  1073. return Gb(a3, b, c);
  1074. } finally {
  1075. Ib = !1, (zb !== null || Ab !== null) && (Hb(), Fb());
  1076. }
  1077. }
  1078. function Kb(a3, b) {
  1079. var c = a3.stateNode;
  1080. if (c === null) return null;
  1081. var d = Db(c);
  1082. if (d === null) return null;
  1083. c = d[b];
  1084. a: switch (b) {
  1085. case "onClick":
  1086. case "onClickCapture":
  1087. case "onDoubleClick":
  1088. case "onDoubleClickCapture":
  1089. case "onMouseDown":
  1090. case "onMouseDownCapture":
  1091. case "onMouseMove":
  1092. case "onMouseMoveCapture":
  1093. case "onMouseUp":
  1094. case "onMouseUpCapture":
  1095. case "onMouseEnter":
  1096. (d = !d.disabled) || (a3 = a3.type, d = !(a3 === "button" || a3 === "input" || a3 === "select" || a3 === "textarea")), a3 = !d;
  1097. break a;
  1098. default:
  1099. a3 = !1;
  1100. }
  1101. if (a3) return null;
  1102. if (c && typeof c != "function") throw Error(p3(231, b, typeof c));
  1103. return c;
  1104. }
  1105. var Lb = !1;
  1106. if (ia) try {
  1107. Mb = {}, Object.defineProperty(Mb, "passive", { get: function() {
  1108. Lb = !0;
  1109. } }), window.addEventListener("test", Mb, Mb), window.removeEventListener("test", Mb, Mb);
  1110. } catch {
  1111. Lb = !1;
  1112. }
  1113. var Mb;
  1114. function Nb(a3, b, c, d, e, f4, g2, h3, k) {
  1115. var l = Array.prototype.slice.call(arguments, 3);
  1116. try {
  1117. b.apply(c, l);
  1118. } catch (m3) {
  1119. this.onError(m3);
  1120. }
  1121. }
  1122. var Ob = !1, Pb = null, Qb = !1, Rb = null, Sb = { onError: function(a3) {
  1123. Ob = !0, Pb = a3;
  1124. } };
  1125. function Tb(a3, b, c, d, e, f4, g2, h3, k) {
  1126. Ob = !1, Pb = null, Nb.apply(Sb, arguments);
  1127. }
  1128. function Ub(a3, b, c, d, e, f4, g2, h3, k) {
  1129. if (Tb.apply(this, arguments), Ob) {
  1130. if (Ob) {
  1131. var l = Pb;
  1132. Ob = !1, Pb = null;
  1133. } else throw Error(p3(198));
  1134. Qb || (Qb = !0, Rb = l);
  1135. }
  1136. }
  1137. function Vb(a3) {
  1138. var b = a3, c = a3;
  1139. if (a3.alternate) for (; b.return; ) b = b.return;
  1140. else {
  1141. a3 = b;
  1142. do
  1143. b = a3, (b.flags & 4098) !== 0 && (c = b.return), a3 = b.return;
  1144. while (a3);
  1145. }
  1146. return b.tag === 3 ? c : null;
  1147. }
  1148. function Wb(a3) {
  1149. if (a3.tag === 13) {
  1150. var b = a3.memoizedState;
  1151. if (b === null && (a3 = a3.alternate, a3 !== null && (b = a3.memoizedState)), b !== null) return b.dehydrated;
  1152. }
  1153. return null;
  1154. }
  1155. function Xb(a3) {
  1156. if (Vb(a3) !== a3) throw Error(p3(188));
  1157. }
  1158. function Yb(a3) {
  1159. var b = a3.alternate;
  1160. if (!b) {
  1161. if (b = Vb(a3), b === null) throw Error(p3(188));
  1162. return b !== a3 ? null : a3;
  1163. }
  1164. for (var c = a3, d = b; ; ) {
  1165. var e = c.return;
  1166. if (e === null) break;
  1167. var f4 = e.alternate;
  1168. if (f4 === null) {
  1169. if (d = e.return, d !== null) {
  1170. c = d;
  1171. continue;
  1172. }
  1173. break;
  1174. }
  1175. if (e.child === f4.child) {
  1176. for (f4 = e.child; f4; ) {
  1177. if (f4 === c) return Xb(e), a3;
  1178. if (f4 === d) return Xb(e), b;
  1179. f4 = f4.sibling;
  1180. }
  1181. throw Error(p3(188));
  1182. }
  1183. if (c.return !== d.return) c = e, d = f4;
  1184. else {
  1185. for (var g2 = !1, h3 = e.child; h3; ) {
  1186. if (h3 === c) {
  1187. g2 = !0, c = e, d = f4;
  1188. break;
  1189. }
  1190. if (h3 === d) {
  1191. g2 = !0, d = e, c = f4;
  1192. break;
  1193. }
  1194. h3 = h3.sibling;
  1195. }
  1196. if (!g2) {
  1197. for (h3 = f4.child; h3; ) {
  1198. if (h3 === c) {
  1199. g2 = !0, c = f4, d = e;
  1200. break;
  1201. }
  1202. if (h3 === d) {
  1203. g2 = !0, d = f4, c = e;
  1204. break;
  1205. }
  1206. h3 = h3.sibling;
  1207. }
  1208. if (!g2) throw Error(p3(189));
  1209. }
  1210. }
  1211. if (c.alternate !== d) throw Error(p3(190));
  1212. }
  1213. if (c.tag !== 3) throw Error(p3(188));
  1214. return c.stateNode.current === c ? a3 : b;
  1215. }
  1216. function Zb(a3) {
  1217. return a3 = Yb(a3), a3 !== null ? $b(a3) : null;
  1218. }
  1219. function $b(a3) {
  1220. if (a3.tag === 5 || a3.tag === 6) return a3;
  1221. for (a3 = a3.child; a3 !== null; ) {
  1222. var b = $b(a3);
  1223. if (b !== null) return b;
  1224. a3 = a3.sibling;
  1225. }
  1226. return null;
  1227. }
  1228. var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B3 = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null;
  1229. function mc(a3) {
  1230. if (lc && typeof lc.onCommitFiberRoot == "function") try {
  1231. lc.onCommitFiberRoot(kc, a3, void 0, (a3.current.flags & 128) === 128);
  1232. } catch {
  1233. }
  1234. }
  1235. var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2;
  1236. function nc(a3) {
  1237. return a3 >>>= 0, a3 === 0 ? 32 : 31 - (pc(a3) / qc | 0) | 0;
  1238. }
  1239. var rc = 64, sc = 4194304;
  1240. function tc(a3) {
  1241. switch (a3 & -a3) {
  1242. case 1:
  1243. return 1;
  1244. case 2:
  1245. return 2;
  1246. case 4:
  1247. return 4;
  1248. case 8:
  1249. return 8;
  1250. case 16:
  1251. return 16;
  1252. case 32:
  1253. return 32;
  1254. case 64:
  1255. case 128:
  1256. case 256:
  1257. case 512:
  1258. case 1024:
  1259. case 2048:
  1260. case 4096:
  1261. case 8192:
  1262. case 16384:
  1263. case 32768:
  1264. case 65536:
  1265. case 131072:
  1266. case 262144:
  1267. case 524288:
  1268. case 1048576:
  1269. case 2097152:
  1270. return a3 & 4194240;
  1271. case 4194304:
  1272. case 8388608:
  1273. case 16777216:
  1274. case 33554432:
  1275. case 67108864:
  1276. return a3 & 130023424;
  1277. case 134217728:
  1278. return 134217728;
  1279. case 268435456:
  1280. return 268435456;
  1281. case 536870912:
  1282. return 536870912;
  1283. case 1073741824:
  1284. return 1073741824;
  1285. default:
  1286. return a3;
  1287. }
  1288. }
  1289. function uc(a3, b) {
  1290. var c = a3.pendingLanes;
  1291. if (c === 0) return 0;
  1292. var d = 0, e = a3.suspendedLanes, f4 = a3.pingedLanes, g2 = c & 268435455;
  1293. if (g2 !== 0) {
  1294. var h3 = g2 & ~e;
  1295. h3 !== 0 ? d = tc(h3) : (f4 &= g2, f4 !== 0 && (d = tc(f4)));
  1296. } else g2 = c & ~e, g2 !== 0 ? d = tc(g2) : f4 !== 0 && (d = tc(f4));
  1297. if (d === 0) return 0;
  1298. if (b !== 0 && b !== d && (b & e) === 0 && (e = d & -d, f4 = b & -b, e >= f4 || e === 16 && (f4 & 4194240) !== 0)) return b;
  1299. if ((d & 4) !== 0 && (d |= c & 16), b = a3.entangledLanes, b !== 0) for (a3 = a3.entanglements, b &= d; 0 < b; ) c = 31 - oc(b), e = 1 << c, d |= a3[c], b &= ~e;
  1300. return d;
  1301. }
  1302. function vc(a3, b) {
  1303. switch (a3) {
  1304. case 1:
  1305. case 2:
  1306. case 4:
  1307. return b + 250;
  1308. case 8:
  1309. case 16:
  1310. case 32:
  1311. case 64:
  1312. case 128:
  1313. case 256:
  1314. case 512:
  1315. case 1024:
  1316. case 2048:
  1317. case 4096:
  1318. case 8192:
  1319. case 16384:
  1320. case 32768:
  1321. case 65536:
  1322. case 131072:
  1323. case 262144:
  1324. case 524288:
  1325. case 1048576:
  1326. case 2097152:
  1327. return b + 5e3;
  1328. case 4194304:
  1329. case 8388608:
  1330. case 16777216:
  1331. case 33554432:
  1332. case 67108864:
  1333. return -1;
  1334. case 134217728:
  1335. case 268435456:
  1336. case 536870912:
  1337. case 1073741824:
  1338. return -1;
  1339. default:
  1340. return -1;
  1341. }
  1342. }
  1343. function wc(a3, b) {
  1344. for (var c = a3.suspendedLanes, d = a3.pingedLanes, e = a3.expirationTimes, f4 = a3.pendingLanes; 0 < f4; ) {
  1345. var g2 = 31 - oc(f4), h3 = 1 << g2, k = e[g2];
  1346. k === -1 ? ((h3 & c) === 0 || (h3 & d) !== 0) && (e[g2] = vc(h3, b)) : k <= b && (a3.expiredLanes |= h3), f4 &= ~h3;
  1347. }
  1348. }
  1349. function xc(a3) {
  1350. return a3 = a3.pendingLanes & -1073741825, a3 !== 0 ? a3 : a3 & 1073741824 ? 1073741824 : 0;
  1351. }
  1352. function yc() {
  1353. var a3 = rc;
  1354. return rc <<= 1, (rc & 4194240) === 0 && (rc = 64), a3;
  1355. }
  1356. function zc(a3) {
  1357. for (var b = [], c = 0; 31 > c; c++) b.push(a3);
  1358. return b;
  1359. }
  1360. function Ac(a3, b, c) {
  1361. a3.pendingLanes |= b, b !== 536870912 && (a3.suspendedLanes = 0, a3.pingedLanes = 0), a3 = a3.eventTimes, b = 31 - oc(b), a3[b] = c;
  1362. }
  1363. function Bc(a3, b) {
  1364. var c = a3.pendingLanes & ~b;
  1365. a3.pendingLanes = b, a3.suspendedLanes = 0, a3.pingedLanes = 0, a3.expiredLanes &= b, a3.mutableReadLanes &= b, a3.entangledLanes &= b, b = a3.entanglements;
  1366. var d = a3.eventTimes;
  1367. for (a3 = a3.expirationTimes; 0 < c; ) {
  1368. var e = 31 - oc(c), f4 = 1 << e;
  1369. b[e] = 0, d[e] = -1, a3[e] = -1, c &= ~f4;
  1370. }
  1371. }
  1372. function Cc(a3, b) {
  1373. var c = a3.entangledLanes |= b;
  1374. for (a3 = a3.entanglements; c; ) {
  1375. var d = 31 - oc(c), e = 1 << d;
  1376. e & b | a3[d] & b && (a3[d] |= b), c &= ~e;
  1377. }
  1378. }
  1379. var C3 = 0;
  1380. function Dc(a3) {
  1381. return a3 &= -a3, 1 < a3 ? 4 < a3 ? (a3 & 268435455) !== 0 ? 16 : 536870912 : 4 : 1;
  1382. }
  1383. var Ec, Fc, Gc, Hc, Ic, Jc = !1, Kc = [], Lc = null, Mc = null, Nc = null, Oc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Qc = [], Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
  1384. function Sc(a3, b) {
  1385. switch (a3) {
  1386. case "focusin":
  1387. case "focusout":
  1388. Lc = null;
  1389. break;
  1390. case "dragenter":
  1391. case "dragleave":
  1392. Mc = null;
  1393. break;
  1394. case "mouseover":
  1395. case "mouseout":
  1396. Nc = null;
  1397. break;
  1398. case "pointerover":
  1399. case "pointerout":
  1400. Oc.delete(b.pointerId);
  1401. break;
  1402. case "gotpointercapture":
  1403. case "lostpointercapture":
  1404. Pc.delete(b.pointerId);
  1405. }
  1406. }
  1407. function Tc(a3, b, c, d, e, f4) {
  1408. return a3 === null || a3.nativeEvent !== f4 ? (a3 = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f4, targetContainers: [e] }, b !== null && (b = Cb(b), b !== null && Fc(b)), a3) : (a3.eventSystemFlags |= d, b = a3.targetContainers, e !== null && b.indexOf(e) === -1 && b.push(e), a3);
  1409. }
  1410. function Uc(a3, b, c, d, e) {
  1411. switch (b) {
  1412. case "focusin":
  1413. return Lc = Tc(Lc, a3, b, c, d, e), !0;
  1414. case "dragenter":
  1415. return Mc = Tc(Mc, a3, b, c, d, e), !0;
  1416. case "mouseover":
  1417. return Nc = Tc(Nc, a3, b, c, d, e), !0;
  1418. case "pointerover":
  1419. var f4 = e.pointerId;
  1420. return Oc.set(f4, Tc(Oc.get(f4) || null, a3, b, c, d, e)), !0;
  1421. case "gotpointercapture":
  1422. return f4 = e.pointerId, Pc.set(f4, Tc(Pc.get(f4) || null, a3, b, c, d, e)), !0;
  1423. }
  1424. return !1;
  1425. }
  1426. function Vc(a3) {
  1427. var b = Wc(a3.target);
  1428. if (b !== null) {
  1429. var c = Vb(b);
  1430. if (c !== null) {
  1431. if (b = c.tag, b === 13) {
  1432. if (b = Wb(c), b !== null) {
  1433. a3.blockedOn = b, Ic(a3.priority, function() {
  1434. Gc(c);
  1435. });
  1436. return;
  1437. }
  1438. } else if (b === 3 && c.stateNode.current.memoizedState.isDehydrated) {
  1439. a3.blockedOn = c.tag === 3 ? c.stateNode.containerInfo : null;
  1440. return;
  1441. }
  1442. }
  1443. }
  1444. a3.blockedOn = null;
  1445. }
  1446. function Xc(a3) {
  1447. if (a3.blockedOn !== null) return !1;
  1448. for (var b = a3.targetContainers; 0 < b.length; ) {
  1449. var c = Yc(a3.domEventName, a3.eventSystemFlags, b[0], a3.nativeEvent);
  1450. if (c === null) {
  1451. c = a3.nativeEvent;
  1452. var d = new c.constructor(c.type, c);
  1453. wb = d, c.target.dispatchEvent(d), wb = null;
  1454. } else return b = Cb(c), b !== null && Fc(b), a3.blockedOn = c, !1;
  1455. b.shift();
  1456. }
  1457. return !0;
  1458. }
  1459. function Zc(a3, b, c) {
  1460. Xc(a3) && c.delete(b);
  1461. }
  1462. function $c() {
  1463. Jc = !1, Lc !== null && Xc(Lc) && (Lc = null), Mc !== null && Xc(Mc) && (Mc = null), Nc !== null && Xc(Nc) && (Nc = null), Oc.forEach(Zc), Pc.forEach(Zc);
  1464. }
  1465. function ad(a3, b) {
  1466. a3.blockedOn === b && (a3.blockedOn = null, Jc || (Jc = !0, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c)));
  1467. }
  1468. function bd(a3) {
  1469. function b(b2) {
  1470. return ad(b2, a3);
  1471. }
  1472. if (0 < Kc.length) {
  1473. ad(Kc[0], a3);
  1474. for (var c = 1; c < Kc.length; c++) {
  1475. var d = Kc[c];
  1476. d.blockedOn === a3 && (d.blockedOn = null);
  1477. }
  1478. }
  1479. for (Lc !== null && ad(Lc, a3), Mc !== null && ad(Mc, a3), Nc !== null && ad(Nc, a3), Oc.forEach(b), Pc.forEach(b), c = 0; c < Qc.length; c++) d = Qc[c], d.blockedOn === a3 && (d.blockedOn = null);
  1480. for (; 0 < Qc.length && (c = Qc[0], c.blockedOn === null); ) Vc(c), c.blockedOn === null && Qc.shift();
  1481. }
  1482. var cd = ua.ReactCurrentBatchConfig, dd = !0;
  1483. function ed(a3, b, c, d) {
  1484. var e = C3, f4 = cd.transition;
  1485. cd.transition = null;
  1486. try {
  1487. C3 = 1, fd(a3, b, c, d);
  1488. } finally {
  1489. C3 = e, cd.transition = f4;
  1490. }
  1491. }
  1492. function gd(a3, b, c, d) {
  1493. var e = C3, f4 = cd.transition;
  1494. cd.transition = null;
  1495. try {
  1496. C3 = 4, fd(a3, b, c, d);
  1497. } finally {
  1498. C3 = e, cd.transition = f4;
  1499. }
  1500. }
  1501. function fd(a3, b, c, d) {
  1502. if (dd) {
  1503. var e = Yc(a3, b, c, d);
  1504. if (e === null) hd(a3, b, d, id, c), Sc(a3, d);
  1505. else if (Uc(e, a3, b, c, d)) d.stopPropagation();
  1506. else if (Sc(a3, d), b & 4 && -1 < Rc.indexOf(a3)) {
  1507. for (; e !== null; ) {
  1508. var f4 = Cb(e);
  1509. if (f4 !== null && Ec(f4), f4 = Yc(a3, b, c, d), f4 === null && hd(a3, b, d, id, c), f4 === e) break;
  1510. e = f4;
  1511. }
  1512. e !== null && d.stopPropagation();
  1513. } else hd(a3, b, d, null, c);
  1514. }
  1515. }
  1516. var id = null;
  1517. function Yc(a3, b, c, d) {
  1518. if (id = null, a3 = xb(d), a3 = Wc(a3), a3 !== null) if (b = Vb(a3), b === null) a3 = null;
  1519. else if (c = b.tag, c === 13) {
  1520. if (a3 = Wb(b), a3 !== null) return a3;
  1521. a3 = null;
  1522. } else if (c === 3) {
  1523. if (b.stateNode.current.memoizedState.isDehydrated) return b.tag === 3 ? b.stateNode.containerInfo : null;
  1524. a3 = null;
  1525. } else b !== a3 && (a3 = null);
  1526. return id = a3, null;
  1527. }
  1528. function jd(a3) {
  1529. switch (a3) {
  1530. case "cancel":
  1531. case "click":
  1532. case "close":
  1533. case "contextmenu":
  1534. case "copy":
  1535. case "cut":
  1536. case "auxclick":
  1537. case "dblclick":
  1538. case "dragend":
  1539. case "dragstart":
  1540. case "drop":
  1541. case "focusin":
  1542. case "focusout":
  1543. case "input":
  1544. case "invalid":
  1545. case "keydown":
  1546. case "keypress":
  1547. case "keyup":
  1548. case "mousedown":
  1549. case "mouseup":
  1550. case "paste":
  1551. case "pause":
  1552. case "play":
  1553. case "pointercancel":
  1554. case "pointerdown":
  1555. case "pointerup":
  1556. case "ratechange":
  1557. case "reset":
  1558. case "resize":
  1559. case "seeked":
  1560. case "submit":
  1561. case "touchcancel":
  1562. case "touchend":
  1563. case "touchstart":
  1564. case "volumechange":
  1565. case "change":
  1566. case "selectionchange":
  1567. case "textInput":
  1568. case "compositionstart":
  1569. case "compositionend":
  1570. case "compositionupdate":
  1571. case "beforeblur":
  1572. case "afterblur":
  1573. case "beforeinput":
  1574. case "blur":
  1575. case "fullscreenchange":
  1576. case "focus":
  1577. case "hashchange":
  1578. case "popstate":
  1579. case "select":
  1580. case "selectstart":
  1581. return 1;
  1582. case "drag":
  1583. case "dragenter":
  1584. case "dragexit":
  1585. case "dragleave":
  1586. case "dragover":
  1587. case "mousemove":
  1588. case "mouseout":
  1589. case "mouseover":
  1590. case "pointermove":
  1591. case "pointerout":
  1592. case "pointerover":
  1593. case "scroll":
  1594. case "toggle":
  1595. case "touchmove":
  1596. case "wheel":
  1597. case "mouseenter":
  1598. case "mouseleave":
  1599. case "pointerenter":
  1600. case "pointerleave":
  1601. return 4;
  1602. case "message":
  1603. switch (ec()) {
  1604. case fc:
  1605. return 1;
  1606. case gc:
  1607. return 4;
  1608. case hc:
  1609. case ic:
  1610. return 16;
  1611. case jc:
  1612. return 536870912;
  1613. default:
  1614. return 16;
  1615. }
  1616. default:
  1617. return 16;
  1618. }
  1619. }
  1620. var kd = null, ld = null, md = null;
  1621. function nd() {
  1622. if (md) return md;
  1623. var a3, b = ld, c = b.length, d, e = "value" in kd ? kd.value : kd.textContent, f4 = e.length;
  1624. for (a3 = 0; a3 < c && b[a3] === e[a3]; a3++) ;
  1625. var g2 = c - a3;
  1626. for (d = 1; d <= g2 && b[c - d] === e[f4 - d]; d++) ;
  1627. return md = e.slice(a3, 1 < d ? 1 - d : void 0);
  1628. }
  1629. function od(a3) {
  1630. var b = a3.keyCode;
  1631. return "charCode" in a3 ? (a3 = a3.charCode, a3 === 0 && b === 13 && (a3 = 13)) : a3 = b, a3 === 10 && (a3 = 13), 32 <= a3 || a3 === 13 ? a3 : 0;
  1632. }
  1633. function pd() {
  1634. return !0;
  1635. }
  1636. function qd() {
  1637. return !1;
  1638. }
  1639. function rd(a3) {
  1640. function b(b2, d, e, f4, g2) {
  1641. this._reactName = b2, this._targetInst = e, this.type = d, this.nativeEvent = f4, this.target = g2, this.currentTarget = null;
  1642. for (var c in a3) a3.hasOwnProperty(c) && (b2 = a3[c], this[c] = b2 ? b2(f4) : f4[c]);
  1643. return this.isDefaultPrevented = (f4.defaultPrevented != null ? f4.defaultPrevented : f4.returnValue === !1) ? pd : qd, this.isPropagationStopped = qd, this;
  1644. }
  1645. return A3(b.prototype, { preventDefault: function() {
  1646. this.defaultPrevented = !0;
  1647. var a4 = this.nativeEvent;
  1648. a4 && (a4.preventDefault ? a4.preventDefault() : typeof a4.returnValue != "unknown" && (a4.returnValue = !1), this.isDefaultPrevented = pd);
  1649. }, stopPropagation: function() {
  1650. var a4 = this.nativeEvent;
  1651. a4 && (a4.stopPropagation ? a4.stopPropagation() : typeof a4.cancelBubble != "unknown" && (a4.cancelBubble = !0), this.isPropagationStopped = pd);
  1652. }, persist: function() {
  1653. }, isPersistent: pd }), b;
  1654. }
  1655. var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a3) {
  1656. return a3.timeStamp || Date.now();
  1657. }, defaultPrevented: 0, isTrusted: 0 }, td = rd(sd), ud = A3({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A3({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a3) {
  1658. return a3.relatedTarget === void 0 ? a3.fromElement === a3.srcElement ? a3.toElement : a3.fromElement : a3.relatedTarget;
  1659. }, movementX: function(a3) {
  1660. return "movementX" in a3 ? a3.movementX : (a3 !== yd && (yd && a3.type === "mousemove" ? (wd = a3.screenX - yd.screenX, xd = a3.screenY - yd.screenY) : xd = wd = 0, yd = a3), wd);
  1661. }, movementY: function(a3) {
  1662. return "movementY" in a3 ? a3.movementY : xd;
  1663. } }), Bd = rd(Ad), Cd = A3({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A3({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A3({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A3({}, sd, { clipboardData: function(a3) {
  1664. return "clipboardData" in a3 ? a3.clipboardData : window.clipboardData;
  1665. } }), Jd = rd(Id), Kd = A3({}, sd, { data: 0 }), Ld = rd(Kd), Md = {
  1666. Esc: "Escape",
  1667. Spacebar: " ",
  1668. Left: "ArrowLeft",
  1669. Up: "ArrowUp",
  1670. Right: "ArrowRight",
  1671. Down: "ArrowDown",
  1672. Del: "Delete",
  1673. Win: "OS",
  1674. Menu: "ContextMenu",
  1675. Apps: "ContextMenu",
  1676. Scroll: "ScrollLock",
  1677. MozPrintableKey: "Unidentified"
  1678. }, Nd = {
  1679. 8: "Backspace",
  1680. 9: "Tab",
  1681. 12: "Clear",
  1682. 13: "Enter",
  1683. 16: "Shift",
  1684. 17: "Control",
  1685. 18: "Alt",
  1686. 19: "Pause",
  1687. 20: "CapsLock",
  1688. 27: "Escape",
  1689. 32: " ",
  1690. 33: "PageUp",
  1691. 34: "PageDown",
  1692. 35: "End",
  1693. 36: "Home",
  1694. 37: "ArrowLeft",
  1695. 38: "ArrowUp",
  1696. 39: "ArrowRight",
  1697. 40: "ArrowDown",
  1698. 45: "Insert",
  1699. 46: "Delete",
  1700. 112: "F1",
  1701. 113: "F2",
  1702. 114: "F3",
  1703. 115: "F4",
  1704. 116: "F5",
  1705. 117: "F6",
  1706. 118: "F7",
  1707. 119: "F8",
  1708. 120: "F9",
  1709. 121: "F10",
  1710. 122: "F11",
  1711. 123: "F12",
  1712. 144: "NumLock",
  1713. 145: "ScrollLock",
  1714. 224: "Meta"
  1715. }, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
  1716. function Pd(a3) {
  1717. var b = this.nativeEvent;
  1718. return b.getModifierState ? b.getModifierState(a3) : (a3 = Od[a3]) ? !!b[a3] : !1;
  1719. }
  1720. function zd() {
  1721. return Pd;
  1722. }
  1723. var Qd = A3({}, ud, { key: function(a3) {
  1724. if (a3.key) {
  1725. var b = Md[a3.key] || a3.key;
  1726. if (b !== "Unidentified") return b;
  1727. }
  1728. return a3.type === "keypress" ? (a3 = od(a3), a3 === 13 ? "Enter" : String.fromCharCode(a3)) : a3.type === "keydown" || a3.type === "keyup" ? Nd[a3.keyCode] || "Unidentified" : "";
  1729. }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a3) {
  1730. return a3.type === "keypress" ? od(a3) : 0;
  1731. }, keyCode: function(a3) {
  1732. return a3.type === "keydown" || a3.type === "keyup" ? a3.keyCode : 0;
  1733. }, which: function(a3) {
  1734. return a3.type === "keypress" ? od(a3) : a3.type === "keydown" || a3.type === "keyup" ? a3.keyCode : 0;
  1735. } }), Rd = rd(Qd), Sd = A3({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Td = rd(Sd), Ud = A3({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }), Vd = rd(Ud), Wd = A3({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A3({}, Ad, {
  1736. deltaX: function(a3) {
  1737. return "deltaX" in a3 ? a3.deltaX : "wheelDeltaX" in a3 ? -a3.wheelDeltaX : 0;
  1738. },
  1739. deltaY: function(a3) {
  1740. return "deltaY" in a3 ? a3.deltaY : "wheelDeltaY" in a3 ? -a3.wheelDeltaY : "wheelDelta" in a3 ? -a3.wheelDelta : 0;
  1741. },
  1742. deltaZ: 0,
  1743. deltaMode: 0
  1744. }), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be = null;
  1745. ia && "documentMode" in document && (be = document.documentMode);
  1746. var ce = ia && "TextEvent" in window && !be, de = ia && (!ae || be && 8 < be && 11 >= be), ee = " ", fe = !1;
  1747. function ge(a3, b) {
  1748. switch (a3) {
  1749. case "keyup":
  1750. return $d.indexOf(b.keyCode) !== -1;
  1751. case "keydown":
  1752. return b.keyCode !== 229;
  1753. case "keypress":
  1754. case "mousedown":
  1755. case "focusout":
  1756. return !0;
  1757. default:
  1758. return !1;
  1759. }
  1760. }
  1761. function he(a3) {
  1762. return a3 = a3.detail, typeof a3 == "object" && "data" in a3 ? a3.data : null;
  1763. }
  1764. var ie = !1;
  1765. function je(a3, b) {
  1766. switch (a3) {
  1767. case "compositionend":
  1768. return he(b);
  1769. case "keypress":
  1770. return b.which !== 32 ? null : (fe = !0, ee);
  1771. case "textInput":
  1772. return a3 = b.data, a3 === ee && fe ? null : a3;
  1773. default:
  1774. return null;
  1775. }
  1776. }
  1777. function ke(a3, b) {
  1778. if (ie) return a3 === "compositionend" || !ae && ge(a3, b) ? (a3 = nd(), md = ld = kd = null, ie = !1, a3) : null;
  1779. switch (a3) {
  1780. case "paste":
  1781. return null;
  1782. case "keypress":
  1783. if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {
  1784. if (b.char && 1 < b.char.length) return b.char;
  1785. if (b.which) return String.fromCharCode(b.which);
  1786. }
  1787. return null;
  1788. case "compositionend":
  1789. return de && b.locale !== "ko" ? null : b.data;
  1790. default:
  1791. return null;
  1792. }
  1793. }
  1794. var le = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 };
  1795. function me(a3) {
  1796. var b = a3 && a3.nodeName && a3.nodeName.toLowerCase();
  1797. return b === "input" ? !!le[a3.type] : b === "textarea";
  1798. }
  1799. function ne(a3, b, c, d) {
  1800. Eb(d), b = oe(b, "onChange"), 0 < b.length && (c = new td("onChange", "change", null, c, d), a3.push({ event: c, listeners: b }));
  1801. }
  1802. var pe = null, qe = null;
  1803. function re2(a3) {
  1804. se(a3, 0);
  1805. }
  1806. function te(a3) {
  1807. var b = ue(a3);
  1808. if (Wa(b)) return a3;
  1809. }
  1810. function ve(a3, b) {
  1811. if (a3 === "change") return b;
  1812. }
  1813. var we = !1;
  1814. ia && (ia ? (ye = "oninput" in document, ye || (ze = document.createElement("div"), ze.setAttribute("oninput", "return;"), ye = typeof ze.oninput == "function"), xe = ye) : xe = !1, we = xe && (!document.documentMode || 9 < document.documentMode));
  1815. var xe, ye, ze;
  1816. function Ae() {
  1817. pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null);
  1818. }
  1819. function Be(a3) {
  1820. if (a3.propertyName === "value" && te(qe)) {
  1821. var b = [];
  1822. ne(b, qe, a3, xb(a3)), Jb(re2, b);
  1823. }
  1824. }
  1825. function Ce(a3, b, c) {
  1826. a3 === "focusin" ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : a3 === "focusout" && Ae();
  1827. }
  1828. function De(a3) {
  1829. if (a3 === "selectionchange" || a3 === "keyup" || a3 === "keydown") return te(qe);
  1830. }
  1831. function Ee(a3, b) {
  1832. if (a3 === "click") return te(b);
  1833. }
  1834. function Fe(a3, b) {
  1835. if (a3 === "input" || a3 === "change") return te(b);
  1836. }
  1837. function Ge(a3, b) {
  1838. return a3 === b && (a3 !== 0 || 1 / a3 === 1 / b) || a3 !== a3 && b !== b;
  1839. }
  1840. var He = typeof Object.is == "function" ? Object.is : Ge;
  1841. function Ie(a3, b) {
  1842. if (He(a3, b)) return !0;
  1843. if (typeof a3 != "object" || a3 === null || typeof b != "object" || b === null) return !1;
  1844. var c = Object.keys(a3), d = Object.keys(b);
  1845. if (c.length !== d.length) return !1;
  1846. for (d = 0; d < c.length; d++) {
  1847. var e = c[d];
  1848. if (!ja.call(b, e) || !He(a3[e], b[e])) return !1;
  1849. }
  1850. return !0;
  1851. }
  1852. function Je(a3) {
  1853. for (; a3 && a3.firstChild; ) a3 = a3.firstChild;
  1854. return a3;
  1855. }
  1856. function Ke(a3, b) {
  1857. var c = Je(a3);
  1858. a3 = 0;
  1859. for (var d; c; ) {
  1860. if (c.nodeType === 3) {
  1861. if (d = a3 + c.textContent.length, a3 <= b && d >= b) return { node: c, offset: b - a3 };
  1862. a3 = d;
  1863. }
  1864. a: {
  1865. for (; c; ) {
  1866. if (c.nextSibling) {
  1867. c = c.nextSibling;
  1868. break a;
  1869. }
  1870. c = c.parentNode;
  1871. }
  1872. c = void 0;
  1873. }
  1874. c = Je(c);
  1875. }
  1876. }
  1877. function Le(a3, b) {
  1878. return a3 && b ? a3 === b ? !0 : a3 && a3.nodeType === 3 ? !1 : b && b.nodeType === 3 ? Le(a3, b.parentNode) : "contains" in a3 ? a3.contains(b) : a3.compareDocumentPosition ? !!(a3.compareDocumentPosition(b) & 16) : !1 : !1;
  1879. }
  1880. function Me() {
  1881. for (var a3 = window, b = Xa(); b instanceof a3.HTMLIFrameElement; ) {
  1882. try {
  1883. var c = typeof b.contentWindow.location.href == "string";
  1884. } catch {
  1885. c = !1;
  1886. }
  1887. if (c) a3 = b.contentWindow;
  1888. else break;
  1889. b = Xa(a3.document);
  1890. }
  1891. return b;
  1892. }
  1893. function Ne(a3) {
  1894. var b = a3 && a3.nodeName && a3.nodeName.toLowerCase();
  1895. return b && (b === "input" && (a3.type === "text" || a3.type === "search" || a3.type === "tel" || a3.type === "url" || a3.type === "password") || b === "textarea" || a3.contentEditable === "true");
  1896. }
  1897. function Oe(a3) {
  1898. var b = Me(), c = a3.focusedElem, d = a3.selectionRange;
  1899. if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) {
  1900. if (d !== null && Ne(c)) {
  1901. if (b = d.start, a3 = d.end, a3 === void 0 && (a3 = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a3, c.value.length);
  1902. else if (a3 = (b = c.ownerDocument || document) && b.defaultView || window, a3.getSelection) {
  1903. a3 = a3.getSelection();
  1904. var e = c.textContent.length, f4 = Math.min(d.start, e);
  1905. d = d.end === void 0 ? f4 : Math.min(d.end, e), !a3.extend && f4 > d && (e = d, d = f4, f4 = e), e = Ke(c, f4);
  1906. var g2 = Ke(
  1907. c,
  1908. d
  1909. );
  1910. e && g2 && (a3.rangeCount !== 1 || a3.anchorNode !== e.node || a3.anchorOffset !== e.offset || a3.focusNode !== g2.node || a3.focusOffset !== g2.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a3.removeAllRanges(), f4 > d ? (a3.addRange(b), a3.extend(g2.node, g2.offset)) : (b.setEnd(g2.node, g2.offset), a3.addRange(b)));
  1911. }
  1912. }
  1913. for (b = [], a3 = c; a3 = a3.parentNode; ) a3.nodeType === 1 && b.push({ element: a3, left: a3.scrollLeft, top: a3.scrollTop });
  1914. for (typeof c.focus == "function" && c.focus(), c = 0; c < b.length; c++) a3 = b[c], a3.element.scrollLeft = a3.left, a3.element.scrollTop = a3.top;
  1915. }
  1916. }
  1917. var Pe = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = !1;
  1918. function Ue(a3, b, c) {
  1919. var d = c.window === c ? c.document : c.nodeType === 9 ? c : c.ownerDocument;
  1920. Te || Qe == null || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = { start: d.selectionStart, end: d.selectionEnd } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = { anchorNode: d.anchorNode, anchorOffset: d.anchorOffset, focusNode: d.focusNode, focusOffset: d.focusOffset }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a3.push({ event: b, listeners: d }), b.target = Qe)));
  1921. }
  1922. function Ve(a3, b) {
  1923. var c = {};
  1924. return c[a3.toLowerCase()] = b.toLowerCase(), c["Webkit" + a3] = "webkit" + b, c["Moz" + a3] = "moz" + b, c;
  1925. }
  1926. var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {};
  1927. ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
  1928. function Ze(a3) {
  1929. if (Xe[a3]) return Xe[a3];
  1930. if (!We[a3]) return a3;
  1931. var b = We[a3], c;
  1932. for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a3] = b[c];
  1933. return a3;
  1934. }
  1935. var $e = Ze("animationend"), af = Ze("animationiteration"), bf = Ze("animationstart"), cf = Ze("transitionend"), df = /* @__PURE__ */ new Map(), ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
  1936. function ff(a3, b) {
  1937. df.set(a3, b), fa(b, [a3]);
  1938. }
  1939. for (gf = 0; gf < ef.length; gf++)
  1940. hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1), ff(jf, "on" + kf);
  1941. var hf, jf, kf, gf;
  1942. ff($e, "onAnimationEnd");
  1943. ff(af, "onAnimationIteration");
  1944. ff(bf, "onAnimationStart");
  1945. ff("dblclick", "onDoubleClick");
  1946. ff("focusin", "onFocus");
  1947. ff("focusout", "onBlur");
  1948. ff(cf, "onTransitionEnd");
  1949. ha("onMouseEnter", ["mouseout", "mouseover"]);
  1950. ha("onMouseLeave", ["mouseout", "mouseover"]);
  1951. ha("onPointerEnter", ["pointerout", "pointerover"]);
  1952. ha("onPointerLeave", ["pointerout", "pointerover"]);
  1953. fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
  1954. fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
  1955. fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
  1956. fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
  1957. fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
  1958. fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
  1959. var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
  1960. function nf(a3, b, c) {
  1961. var d = a3.type || "unknown-event";
  1962. a3.currentTarget = c, Ub(d, b, void 0, a3), a3.currentTarget = null;
  1963. }
  1964. function se(a3, b) {
  1965. b = (b & 4) !== 0;
  1966. for (var c = 0; c < a3.length; c++) {
  1967. var d = a3[c], e = d.event;
  1968. d = d.listeners;
  1969. a: {
  1970. var f4 = void 0;
  1971. if (b) for (var g2 = d.length - 1; 0 <= g2; g2--) {
  1972. var h3 = d[g2], k = h3.instance, l = h3.currentTarget;
  1973. if (h3 = h3.listener, k !== f4 && e.isPropagationStopped()) break a;
  1974. nf(e, h3, l), f4 = k;
  1975. }
  1976. else for (g2 = 0; g2 < d.length; g2++) {
  1977. if (h3 = d[g2], k = h3.instance, l = h3.currentTarget, h3 = h3.listener, k !== f4 && e.isPropagationStopped()) break a;
  1978. nf(e, h3, l), f4 = k;
  1979. }
  1980. }
  1981. }
  1982. if (Qb) throw a3 = Rb, Qb = !1, Rb = null, a3;
  1983. }
  1984. function D(a3, b) {
  1985. var c = b[of];
  1986. c === void 0 && (c = b[of] = /* @__PURE__ */ new Set());
  1987. var d = a3 + "__bubble";
  1988. c.has(d) || (pf(b, a3, 2, !1), c.add(d));
  1989. }
  1990. function qf(a3, b, c) {
  1991. var d = 0;
  1992. b && (d |= 4), pf(c, a3, d, b);
  1993. }
  1994. var rf = "_reactListening" + Math.random().toString(36).slice(2);
  1995. function sf(a3) {
  1996. if (!a3[rf]) {
  1997. a3[rf] = !0, da.forEach(function(b2) {
  1998. b2 !== "selectionchange" && (mf.has(b2) || qf(b2, !1, a3), qf(b2, !0, a3));
  1999. });
  2000. var b = a3.nodeType === 9 ? a3 : a3.ownerDocument;
  2001. b === null || b[rf] || (b[rf] = !0, qf("selectionchange", !1, b));
  2002. }
  2003. }
  2004. function pf(a3, b, c, d) {
  2005. switch (jd(b)) {
  2006. case 1:
  2007. var e = ed;
  2008. break;
  2009. case 4:
  2010. e = gd;
  2011. break;
  2012. default:
  2013. e = fd;
  2014. }
  2015. c = e.bind(null, b, c, a3), e = void 0, !Lb || b !== "touchstart" && b !== "touchmove" && b !== "wheel" || (e = !0), d ? e !== void 0 ? a3.addEventListener(b, c, { capture: !0, passive: e }) : a3.addEventListener(b, c, !0) : e !== void 0 ? a3.addEventListener(b, c, { passive: e }) : a3.addEventListener(b, c, !1);
  2016. }
  2017. function hd(a3, b, c, d, e) {
  2018. var f4 = d;
  2019. if ((b & 1) === 0 && (b & 2) === 0 && d !== null) a: for (; ; ) {
  2020. if (d === null) return;
  2021. var g2 = d.tag;
  2022. if (g2 === 3 || g2 === 4) {
  2023. var h3 = d.stateNode.containerInfo;
  2024. if (h3 === e || h3.nodeType === 8 && h3.parentNode === e) break;
  2025. if (g2 === 4) for (g2 = d.return; g2 !== null; ) {
  2026. var k = g2.tag;
  2027. if ((k === 3 || k === 4) && (k = g2.stateNode.containerInfo, k === e || k.nodeType === 8 && k.parentNode === e)) return;
  2028. g2 = g2.return;
  2029. }
  2030. for (; h3 !== null; ) {
  2031. if (g2 = Wc(h3), g2 === null) return;
  2032. if (k = g2.tag, k === 5 || k === 6) {
  2033. d = f4 = g2;
  2034. continue a;
  2035. }
  2036. h3 = h3.parentNode;
  2037. }
  2038. }
  2039. d = d.return;
  2040. }
  2041. Jb(function() {
  2042. var d2 = f4, e2 = xb(c), g3 = [];
  2043. a: {
  2044. var h4 = df.get(a3);
  2045. if (h4 !== void 0) {
  2046. var k2 = td, n = a3;
  2047. switch (a3) {
  2048. case "keypress":
  2049. if (od(c) === 0) break a;
  2050. case "keydown":
  2051. case "keyup":
  2052. k2 = Rd;
  2053. break;
  2054. case "focusin":
  2055. n = "focus", k2 = Fd;
  2056. break;
  2057. case "focusout":
  2058. n = "blur", k2 = Fd;
  2059. break;
  2060. case "beforeblur":
  2061. case "afterblur":
  2062. k2 = Fd;
  2063. break;
  2064. case "click":
  2065. if (c.button === 2) break a;
  2066. case "auxclick":
  2067. case "dblclick":
  2068. case "mousedown":
  2069. case "mousemove":
  2070. case "mouseup":
  2071. case "mouseout":
  2072. case "mouseover":
  2073. case "contextmenu":
  2074. k2 = Bd;
  2075. break;
  2076. case "drag":
  2077. case "dragend":
  2078. case "dragenter":
  2079. case "dragexit":
  2080. case "dragleave":
  2081. case "dragover":
  2082. case "dragstart":
  2083. case "drop":
  2084. k2 = Dd;
  2085. break;
  2086. case "touchcancel":
  2087. case "touchend":
  2088. case "touchmove":
  2089. case "touchstart":
  2090. k2 = Vd;
  2091. break;
  2092. case $e:
  2093. case af:
  2094. case bf:
  2095. k2 = Hd;
  2096. break;
  2097. case cf:
  2098. k2 = Xd;
  2099. break;
  2100. case "scroll":
  2101. k2 = vd;
  2102. break;
  2103. case "wheel":
  2104. k2 = Zd;
  2105. break;
  2106. case "copy":
  2107. case "cut":
  2108. case "paste":
  2109. k2 = Jd;
  2110. break;
  2111. case "gotpointercapture":
  2112. case "lostpointercapture":
  2113. case "pointercancel":
  2114. case "pointerdown":
  2115. case "pointermove":
  2116. case "pointerout":
  2117. case "pointerover":
  2118. case "pointerup":
  2119. k2 = Td;
  2120. }
  2121. var t = (b & 4) !== 0, J = !t && a3 === "scroll", x = t ? h4 !== null ? h4 + "Capture" : null : h4;
  2122. t = [];
  2123. for (var w = d2, u2; w !== null; ) {
  2124. u2 = w;
  2125. var F = u2.stateNode;
  2126. if (u2.tag === 5 && F !== null && (u2 = F, x !== null && (F = Kb(w, x), F != null && t.push(tf(w, F, u2)))), J) break;
  2127. w = w.return;
  2128. }
  2129. 0 < t.length && (h4 = new k2(h4, n, null, c, e2), g3.push({ event: h4, listeners: t }));
  2130. }
  2131. }
  2132. if ((b & 7) === 0) {
  2133. a: {
  2134. if (h4 = a3 === "mouseover" || a3 === "pointerover", k2 = a3 === "mouseout" || a3 === "pointerout", h4 && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf])) break a;
  2135. if ((k2 || h4) && (h4 = e2.window === e2 ? e2 : (h4 = e2.ownerDocument) ? h4.defaultView || h4.parentWindow : window, k2 ? (n = c.relatedTarget || c.toElement, k2 = d2, n = n ? Wc(n) : null, n !== null && (J = Vb(n), n !== J || n.tag !== 5 && n.tag !== 6) && (n = null)) : (k2 = null, n = d2), k2 !== n)) {
  2136. if (t = Bd, F = "onMouseLeave", x = "onMouseEnter", w = "mouse", (a3 === "pointerout" || a3 === "pointerover") && (t = Td, F = "onPointerLeave", x = "onPointerEnter", w = "pointer"), J = k2 == null ? h4 : ue(k2), u2 = n == null ? h4 : ue(n), h4 = new t(F, w + "leave", k2, c, e2), h4.target = J, h4.relatedTarget = u2, F = null, Wc(e2) === d2 && (t = new t(x, w + "enter", n, c, e2), t.target = u2, t.relatedTarget = J, F = t), J = F, k2 && n) b: {
  2137. for (t = k2, x = n, w = 0, u2 = t; u2; u2 = vf(u2)) w++;
  2138. for (u2 = 0, F = x; F; F = vf(F)) u2++;
  2139. for (; 0 < w - u2; ) t = vf(t), w--;
  2140. for (; 0 < u2 - w; ) x = vf(x), u2--;
  2141. for (; w--; ) {
  2142. if (t === x || x !== null && t === x.alternate) break b;
  2143. t = vf(t), x = vf(x);
  2144. }
  2145. t = null;
  2146. }
  2147. else t = null;
  2148. k2 !== null && wf(g3, h4, k2, t, !1), n !== null && J !== null && wf(g3, J, n, t, !0);
  2149. }
  2150. }
  2151. a: {
  2152. if (h4 = d2 ? ue(d2) : window, k2 = h4.nodeName && h4.nodeName.toLowerCase(), k2 === "select" || k2 === "input" && h4.type === "file") var na = ve;
  2153. else if (me(h4)) if (we) na = Fe;
  2154. else {
  2155. na = De;
  2156. var xa = Ce;
  2157. }
  2158. else (k2 = h4.nodeName) && k2.toLowerCase() === "input" && (h4.type === "checkbox" || h4.type === "radio") && (na = Ee);
  2159. if (na && (na = na(a3, d2))) {
  2160. ne(g3, na, c, e2);
  2161. break a;
  2162. }
  2163. xa && xa(a3, h4, d2), a3 === "focusout" && (xa = h4._wrapperState) && xa.controlled && h4.type === "number" && cb(h4, "number", h4.value);
  2164. }
  2165. switch (xa = d2 ? ue(d2) : window, a3) {
  2166. case "focusin":
  2167. (me(xa) || xa.contentEditable === "true") && (Qe = xa, Re = d2, Se = null);
  2168. break;
  2169. case "focusout":
  2170. Se = Re = Qe = null;
  2171. break;
  2172. case "mousedown":
  2173. Te = !0;
  2174. break;
  2175. case "contextmenu":
  2176. case "mouseup":
  2177. case "dragend":
  2178. Te = !1, Ue(g3, c, e2);
  2179. break;
  2180. case "selectionchange":
  2181. if (Pe) break;
  2182. case "keydown":
  2183. case "keyup":
  2184. Ue(g3, c, e2);
  2185. }
  2186. var $a;
  2187. if (ae) b: {
  2188. switch (a3) {
  2189. case "compositionstart":
  2190. var ba = "onCompositionStart";
  2191. break b;
  2192. case "compositionend":
  2193. ba = "onCompositionEnd";
  2194. break b;
  2195. case "compositionupdate":
  2196. ba = "onCompositionUpdate";
  2197. break b;
  2198. }
  2199. ba = void 0;
  2200. }
  2201. else ie ? ge(a3, c) && (ba = "onCompositionEnd") : a3 === "keydown" && c.keyCode === 229 && (ba = "onCompositionStart");
  2202. ba && (de && c.locale !== "ko" && (ie || ba !== "onCompositionStart" ? ba === "onCompositionEnd" && ie && ($a = nd()) : (kd = e2, ld = "value" in kd ? kd.value : kd.textContent, ie = !0)), xa = oe(d2, ba), 0 < xa.length && (ba = new Ld(ba, a3, null, c, e2), g3.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c), $a !== null && (ba.data = $a)))), ($a = ce ? je(a3, c) : ke(a3, c)) && (d2 = oe(d2, "onBeforeInput"), 0 < d2.length && (e2 = new Ld("onBeforeInput", "beforeinput", null, c, e2), g3.push({ event: e2, listeners: d2 }), e2.data = $a));
  2203. }
  2204. se(g3, b);
  2205. });
  2206. }
  2207. function tf(a3, b, c) {
  2208. return { instance: a3, listener: b, currentTarget: c };
  2209. }
  2210. function oe(a3, b) {
  2211. for (var c = b + "Capture", d = []; a3 !== null; ) {
  2212. var e = a3, f4 = e.stateNode;
  2213. e.tag === 5 && f4 !== null && (e = f4, f4 = Kb(a3, c), f4 != null && d.unshift(tf(a3, f4, e)), f4 = Kb(a3, b), f4 != null && d.push(tf(a3, f4, e))), a3 = a3.return;
  2214. }
  2215. return d;
  2216. }
  2217. function vf(a3) {
  2218. if (a3 === null) return null;
  2219. do
  2220. a3 = a3.return;
  2221. while (a3 && a3.tag !== 5);
  2222. return a3 || null;
  2223. }
  2224. function wf(a3, b, c, d, e) {
  2225. for (var f4 = b._reactName, g2 = []; c !== null && c !== d; ) {
  2226. var h3 = c, k = h3.alternate, l = h3.stateNode;
  2227. if (k !== null && k === d) break;
  2228. h3.tag === 5 && l !== null && (h3 = l, e ? (k = Kb(c, f4), k != null && g2.unshift(tf(c, k, h3))) : e || (k = Kb(c, f4), k != null && g2.push(tf(c, k, h3)))), c = c.return;
  2229. }
  2230. g2.length !== 0 && a3.push({ event: b, listeners: g2 });
  2231. }
  2232. var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g;
  2233. function zf(a3) {
  2234. return (typeof a3 == "string" ? a3 : "" + a3).replace(xf, `
  2235. `).replace(yf, "");
  2236. }
  2237. function Af(a3, b, c) {
  2238. if (b = zf(b), zf(a3) !== b && c) throw Error(p3(425));
  2239. }
  2240. function Bf() {
  2241. }
  2242. var Cf = null, Df = null;
  2243. function Ef(a3, b) {
  2244. return a3 === "textarea" || a3 === "noscript" || typeof b.children == "string" || typeof b.children == "number" || typeof b.dangerouslySetInnerHTML == "object" && b.dangerouslySetInnerHTML !== null && b.dangerouslySetInnerHTML.__html != null;
  2245. }
  2246. var Ff = typeof setTimeout == "function" ? setTimeout : void 0, Gf = typeof clearTimeout == "function" ? clearTimeout : void 0, Hf = typeof Promise == "function" ? Promise : void 0, Jf = typeof queueMicrotask == "function" ? queueMicrotask : typeof Hf < "u" ? function(a3) {
  2247. return Hf.resolve(null).then(a3).catch(If);
  2248. } : Ff;
  2249. function If(a3) {
  2250. setTimeout(function() {
  2251. throw a3;
  2252. });
  2253. }
  2254. function Kf(a3, b) {
  2255. var c = b, d = 0;
  2256. do {
  2257. var e = c.nextSibling;
  2258. if (a3.removeChild(c), e && e.nodeType === 8) if (c = e.data, c === "/$") {
  2259. if (d === 0) {
  2260. a3.removeChild(e), bd(b);
  2261. return;
  2262. }
  2263. d--;
  2264. } else c !== "$" && c !== "$?" && c !== "$!" || d++;
  2265. c = e;
  2266. } while (c);
  2267. bd(b);
  2268. }
  2269. function Lf(a3) {
  2270. for (; a3 != null; a3 = a3.nextSibling) {
  2271. var b = a3.nodeType;
  2272. if (b === 1 || b === 3) break;
  2273. if (b === 8) {
  2274. if (b = a3.data, b === "$" || b === "$!" || b === "$?") break;
  2275. if (b === "/$") return null;
  2276. }
  2277. }
  2278. return a3;
  2279. }
  2280. function Mf(a3) {
  2281. a3 = a3.previousSibling;
  2282. for (var b = 0; a3; ) {
  2283. if (a3.nodeType === 8) {
  2284. var c = a3.data;
  2285. if (c === "$" || c === "$!" || c === "$?") {
  2286. if (b === 0) return a3;
  2287. b--;
  2288. } else c === "/$" && b++;
  2289. }
  2290. a3 = a3.previousSibling;
  2291. }
  2292. return null;
  2293. }
  2294. var Nf = Math.random().toString(36).slice(2), Of = "__reactFiber$" + Nf, Pf = "__reactProps$" + Nf, uf = "__reactContainer$" + Nf, of = "__reactEvents$" + Nf, Qf = "__reactListeners$" + Nf, Rf = "__reactHandles$" + Nf;
  2295. function Wc(a3) {
  2296. var b = a3[Of];
  2297. if (b) return b;
  2298. for (var c = a3.parentNode; c; ) {
  2299. if (b = c[uf] || c[Of]) {
  2300. if (c = b.alternate, b.child !== null || c !== null && c.child !== null) for (a3 = Mf(a3); a3 !== null; ) {
  2301. if (c = a3[Of]) return c;
  2302. a3 = Mf(a3);
  2303. }
  2304. return b;
  2305. }
  2306. a3 = c, c = a3.parentNode;
  2307. }
  2308. return null;
  2309. }
  2310. function Cb(a3) {
  2311. return a3 = a3[Of] || a3[uf], !a3 || a3.tag !== 5 && a3.tag !== 6 && a3.tag !== 13 && a3.tag !== 3 ? null : a3;
  2312. }
  2313. function ue(a3) {
  2314. if (a3.tag === 5 || a3.tag === 6) return a3.stateNode;
  2315. throw Error(p3(33));
  2316. }
  2317. function Db(a3) {
  2318. return a3[Pf] || null;
  2319. }
  2320. var Sf = [], Tf = -1;
  2321. function Uf(a3) {
  2322. return { current: a3 };
  2323. }
  2324. function E(a3) {
  2325. 0 > Tf || (a3.current = Sf[Tf], Sf[Tf] = null, Tf--);
  2326. }
  2327. function G(a3, b) {
  2328. Tf++, Sf[Tf] = a3.current, a3.current = b;
  2329. }
  2330. var Vf = {}, H = Uf(Vf), Wf = Uf(!1), Xf = Vf;
  2331. function Yf(a3, b) {
  2332. var c = a3.type.contextTypes;
  2333. if (!c) return Vf;
  2334. var d = a3.stateNode;
  2335. if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;
  2336. var e = {}, f4;
  2337. for (f4 in c) e[f4] = b[f4];
  2338. return d && (a3 = a3.stateNode, a3.__reactInternalMemoizedUnmaskedChildContext = b, a3.__reactInternalMemoizedMaskedChildContext = e), e;
  2339. }
  2340. function Zf(a3) {
  2341. return a3 = a3.childContextTypes, a3 != null;
  2342. }
  2343. function $f() {
  2344. E(Wf), E(H);
  2345. }
  2346. function ag(a3, b, c) {
  2347. if (H.current !== Vf) throw Error(p3(168));
  2348. G(H, b), G(Wf, c);
  2349. }
  2350. function bg(a3, b, c) {
  2351. var d = a3.stateNode;
  2352. if (b = b.childContextTypes, typeof d.getChildContext != "function") return c;
  2353. d = d.getChildContext();
  2354. for (var e in d) if (!(e in b)) throw Error(p3(108, Ra(a3) || "Unknown", e));
  2355. return A3({}, c, d);
  2356. }
  2357. function cg(a3) {
  2358. return a3 = (a3 = a3.stateNode) && a3.__reactInternalMemoizedMergedChildContext || Vf, Xf = H.current, G(H, a3), G(Wf, Wf.current), !0;
  2359. }
  2360. function dg(a3, b, c) {
  2361. var d = a3.stateNode;
  2362. if (!d) throw Error(p3(169));
  2363. c ? (a3 = bg(a3, b, Xf), d.__reactInternalMemoizedMergedChildContext = a3, E(Wf), E(H), G(H, a3)) : E(Wf), G(Wf, c);
  2364. }
  2365. var eg = null, fg = !1, gg = !1;
  2366. function hg(a3) {
  2367. eg === null ? eg = [a3] : eg.push(a3);
  2368. }
  2369. function ig(a3) {
  2370. fg = !0, hg(a3);
  2371. }
  2372. function jg() {
  2373. if (!gg && eg !== null) {
  2374. gg = !0;
  2375. var a3 = 0, b = C3;
  2376. try {
  2377. var c = eg;
  2378. for (C3 = 1; a3 < c.length; a3++) {
  2379. var d = c[a3];
  2380. do
  2381. d = d(!0);
  2382. while (d !== null);
  2383. }
  2384. eg = null, fg = !1;
  2385. } catch (e) {
  2386. throw eg !== null && (eg = eg.slice(a3 + 1)), ac(fc, jg), e;
  2387. } finally {
  2388. C3 = b, gg = !1;
  2389. }
  2390. }
  2391. return null;
  2392. }
  2393. var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = "";
  2394. function tg(a3, b) {
  2395. kg[lg++] = ng, kg[lg++] = mg, mg = a3, ng = b;
  2396. }
  2397. function ug(a3, b, c) {
  2398. og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, qg = a3;
  2399. var d = rg;
  2400. a3 = sg;
  2401. var e = 32 - oc(d) - 1;
  2402. d &= ~(1 << e), c += 1;
  2403. var f4 = 32 - oc(b) + e;
  2404. if (30 < f4) {
  2405. var g2 = e - e % 5;
  2406. f4 = (d & (1 << g2) - 1).toString(32), d >>= g2, e -= g2, rg = 1 << 32 - oc(b) + e | c << e | d, sg = f4 + a3;
  2407. } else rg = 1 << f4 | c << e | d, sg = a3;
  2408. }
  2409. function vg(a3) {
  2410. a3.return !== null && (tg(a3, 1), ug(a3, 1, 0));
  2411. }
  2412. function wg(a3) {
  2413. for (; a3 === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
  2414. for (; a3 === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
  2415. }
  2416. var xg = null, yg = null, I = !1, zg = null;
  2417. function Ag(a3, b) {
  2418. var c = Bg(5, null, null, 0);
  2419. c.elementType = "DELETED", c.stateNode = b, c.return = a3, b = a3.deletions, b === null ? (a3.deletions = [c], a3.flags |= 16) : b.push(c);
  2420. }
  2421. function Cg(a3, b) {
  2422. switch (a3.tag) {
  2423. case 5:
  2424. var c = a3.type;
  2425. return b = b.nodeType !== 1 || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b, b !== null ? (a3.stateNode = b, xg = a3, yg = Lf(b.firstChild), !0) : !1;
  2426. case 6:
  2427. return b = a3.pendingProps === "" || b.nodeType !== 3 ? null : b, b !== null ? (a3.stateNode = b, xg = a3, yg = null, !0) : !1;
  2428. case 13:
  2429. return b = b.nodeType !== 8 ? null : b, b !== null ? (c = qg !== null ? { id: rg, overflow: sg } : null, a3.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a3, a3.child = c, xg = a3, yg = null, !0) : !1;
  2430. default:
  2431. return !1;
  2432. }
  2433. }
  2434. function Dg(a3) {
  2435. return (a3.mode & 1) !== 0 && (a3.flags & 128) === 0;
  2436. }
  2437. function Eg(a3) {
  2438. if (I) {
  2439. var b = yg;
  2440. if (b) {
  2441. var c = b;
  2442. if (!Cg(a3, b)) {
  2443. if (Dg(a3)) throw Error(p3(418));
  2444. b = Lf(c.nextSibling);
  2445. var d = xg;
  2446. b && Cg(a3, b) ? Ag(d, c) : (a3.flags = a3.flags & -4097 | 2, I = !1, xg = a3);
  2447. }
  2448. } else {
  2449. if (Dg(a3)) throw Error(p3(418));
  2450. a3.flags = a3.flags & -4097 | 2, I = !1, xg = a3;
  2451. }
  2452. }
  2453. }
  2454. function Fg(a3) {
  2455. for (a3 = a3.return; a3 !== null && a3.tag !== 5 && a3.tag !== 3 && a3.tag !== 13; ) a3 = a3.return;
  2456. xg = a3;
  2457. }
  2458. function Gg(a3) {
  2459. if (a3 !== xg) return !1;
  2460. if (!I) return Fg(a3), I = !0, !1;
  2461. var b;
  2462. if ((b = a3.tag !== 3) && !(b = a3.tag !== 5) && (b = a3.type, b = b !== "head" && b !== "body" && !Ef(a3.type, a3.memoizedProps)), b && (b = yg)) {
  2463. if (Dg(a3)) throw Hg(), Error(p3(418));
  2464. for (; b; ) Ag(a3, b), b = Lf(b.nextSibling);
  2465. }
  2466. if (Fg(a3), a3.tag === 13) {
  2467. if (a3 = a3.memoizedState, a3 = a3 !== null ? a3.dehydrated : null, !a3) throw Error(p3(317));
  2468. a: {
  2469. for (a3 = a3.nextSibling, b = 0; a3; ) {
  2470. if (a3.nodeType === 8) {
  2471. var c = a3.data;
  2472. if (c === "/$") {
  2473. if (b === 0) {
  2474. yg = Lf(a3.nextSibling);
  2475. break a;
  2476. }
  2477. b--;
  2478. } else c !== "$" && c !== "$!" && c !== "$?" || b++;
  2479. }
  2480. a3 = a3.nextSibling;
  2481. }
  2482. yg = null;
  2483. }
  2484. } else yg = xg ? Lf(a3.stateNode.nextSibling) : null;
  2485. return !0;
  2486. }
  2487. function Hg() {
  2488. for (var a3 = yg; a3; ) a3 = Lf(a3.nextSibling);
  2489. }
  2490. function Ig() {
  2491. yg = xg = null, I = !1;
  2492. }
  2493. function Jg(a3) {
  2494. zg === null ? zg = [a3] : zg.push(a3);
  2495. }
  2496. var Kg = ua.ReactCurrentBatchConfig;
  2497. function Lg(a3, b, c) {
  2498. if (a3 = c.ref, a3 !== null && typeof a3 != "function" && typeof a3 != "object") {
  2499. if (c._owner) {
  2500. if (c = c._owner, c) {
  2501. if (c.tag !== 1) throw Error(p3(309));
  2502. var d = c.stateNode;
  2503. }
  2504. if (!d) throw Error(p3(147, a3));
  2505. var e = d, f4 = "" + a3;
  2506. return b !== null && b.ref !== null && typeof b.ref == "function" && b.ref._stringRef === f4 ? b.ref : (b = function(a4) {
  2507. var b2 = e.refs;
  2508. a4 === null ? delete b2[f4] : b2[f4] = a4;
  2509. }, b._stringRef = f4, b);
  2510. }
  2511. if (typeof a3 != "string") throw Error(p3(284));
  2512. if (!c._owner) throw Error(p3(290, a3));
  2513. }
  2514. return a3;
  2515. }
  2516. function Mg(a3, b) {
  2517. throw a3 = Object.prototype.toString.call(b), Error(p3(31, a3 === "[object Object]" ? "object with keys {" + Object.keys(b).join(", ") + "}" : a3));
  2518. }
  2519. function Ng(a3) {
  2520. var b = a3._init;
  2521. return b(a3._payload);
  2522. }
  2523. function Og(a3) {
  2524. function b(b2, c2) {
  2525. if (a3) {
  2526. var d2 = b2.deletions;
  2527. d2 === null ? (b2.deletions = [c2], b2.flags |= 16) : d2.push(c2);
  2528. }
  2529. }
  2530. function c(c2, d2) {
  2531. if (!a3) return null;
  2532. for (; d2 !== null; ) b(c2, d2), d2 = d2.sibling;
  2533. return null;
  2534. }
  2535. function d(a4, b2) {
  2536. for (a4 = /* @__PURE__ */ new Map(); b2 !== null; ) b2.key !== null ? a4.set(b2.key, b2) : a4.set(b2.index, b2), b2 = b2.sibling;
  2537. return a4;
  2538. }
  2539. function e(a4, b2) {
  2540. return a4 = Pg(a4, b2), a4.index = 0, a4.sibling = null, a4;
  2541. }
  2542. function f4(b2, c2, d2) {
  2543. return b2.index = d2, a3 ? (d2 = b2.alternate, d2 !== null ? (d2 = d2.index, d2 < c2 ? (b2.flags |= 2, c2) : d2) : (b2.flags |= 2, c2)) : (b2.flags |= 1048576, c2);
  2544. }
  2545. function g2(b2) {
  2546. return a3 && b2.alternate === null && (b2.flags |= 2), b2;
  2547. }
  2548. function h3(a4, b2, c2, d2) {
  2549. return b2 === null || b2.tag !== 6 ? (b2 = Qg(c2, a4.mode, d2), b2.return = a4, b2) : (b2 = e(b2, c2), b2.return = a4, b2);
  2550. }
  2551. function k(a4, b2, c2, d2) {
  2552. var f5 = c2.type;
  2553. return f5 === ya ? m3(a4, b2, c2.props.children, d2, c2.key) : b2 !== null && (b2.elementType === f5 || typeof f5 == "object" && f5 !== null && f5.$$typeof === Ha && Ng(f5) === b2.type) ? (d2 = e(b2, c2.props), d2.ref = Lg(a4, b2, c2), d2.return = a4, d2) : (d2 = Rg(c2.type, c2.key, c2.props, null, a4.mode, d2), d2.ref = Lg(a4, b2, c2), d2.return = a4, d2);
  2554. }
  2555. function l(a4, b2, c2, d2) {
  2556. return b2 === null || b2.tag !== 4 || b2.stateNode.containerInfo !== c2.containerInfo || b2.stateNode.implementation !== c2.implementation ? (b2 = Sg(c2, a4.mode, d2), b2.return = a4, b2) : (b2 = e(b2, c2.children || []), b2.return = a4, b2);
  2557. }
  2558. function m3(a4, b2, c2, d2, f5) {
  2559. return b2 === null || b2.tag !== 7 ? (b2 = Tg(c2, a4.mode, d2, f5), b2.return = a4, b2) : (b2 = e(b2, c2), b2.return = a4, b2);
  2560. }
  2561. function q(a4, b2, c2) {
  2562. if (typeof b2 == "string" && b2 !== "" || typeof b2 == "number") return b2 = Qg("" + b2, a4.mode, c2), b2.return = a4, b2;
  2563. if (typeof b2 == "object" && b2 !== null) {
  2564. switch (b2.$$typeof) {
  2565. case va:
  2566. return c2 = Rg(b2.type, b2.key, b2.props, null, a4.mode, c2), c2.ref = Lg(a4, null, b2), c2.return = a4, c2;
  2567. case wa:
  2568. return b2 = Sg(b2, a4.mode, c2), b2.return = a4, b2;
  2569. case Ha:
  2570. var d2 = b2._init;
  2571. return q(a4, d2(b2._payload), c2);
  2572. }
  2573. if (eb(b2) || Ka(b2)) return b2 = Tg(b2, a4.mode, c2, null), b2.return = a4, b2;
  2574. Mg(a4, b2);
  2575. }
  2576. return null;
  2577. }
  2578. function r2(a4, b2, c2, d2) {
  2579. var e2 = b2 !== null ? b2.key : null;
  2580. if (typeof c2 == "string" && c2 !== "" || typeof c2 == "number") return e2 !== null ? null : h3(a4, b2, "" + c2, d2);
  2581. if (typeof c2 == "object" && c2 !== null) {
  2582. switch (c2.$$typeof) {
  2583. case va:
  2584. return c2.key === e2 ? k(a4, b2, c2, d2) : null;
  2585. case wa:
  2586. return c2.key === e2 ? l(a4, b2, c2, d2) : null;
  2587. case Ha:
  2588. return e2 = c2._init, r2(
  2589. a4,
  2590. b2,
  2591. e2(c2._payload),
  2592. d2
  2593. );
  2594. }
  2595. if (eb(c2) || Ka(c2)) return e2 !== null ? null : m3(a4, b2, c2, d2, null);
  2596. Mg(a4, c2);
  2597. }
  2598. return null;
  2599. }
  2600. function y(a4, b2, c2, d2, e2) {
  2601. if (typeof d2 == "string" && d2 !== "" || typeof d2 == "number") return a4 = a4.get(c2) || null, h3(b2, a4, "" + d2, e2);
  2602. if (typeof d2 == "object" && d2 !== null) {
  2603. switch (d2.$$typeof) {
  2604. case va:
  2605. return a4 = a4.get(d2.key === null ? c2 : d2.key) || null, k(b2, a4, d2, e2);
  2606. case wa:
  2607. return a4 = a4.get(d2.key === null ? c2 : d2.key) || null, l(b2, a4, d2, e2);
  2608. case Ha:
  2609. var f5 = d2._init;
  2610. return y(a4, b2, c2, f5(d2._payload), e2);
  2611. }
  2612. if (eb(d2) || Ka(d2)) return a4 = a4.get(c2) || null, m3(b2, a4, d2, e2, null);
  2613. Mg(b2, d2);
  2614. }
  2615. return null;
  2616. }
  2617. function n(e2, g3, h4, k2) {
  2618. for (var l2 = null, m4 = null, u2 = g3, w = g3 = 0, x = null; u2 !== null && w < h4.length; w++) {
  2619. u2.index > w ? (x = u2, u2 = null) : x = u2.sibling;
  2620. var n2 = r2(e2, u2, h4[w], k2);
  2621. if (n2 === null) {
  2622. u2 === null && (u2 = x);
  2623. break;
  2624. }
  2625. a3 && u2 && n2.alternate === null && b(e2, u2), g3 = f4(n2, g3, w), m4 === null ? l2 = n2 : m4.sibling = n2, m4 = n2, u2 = x;
  2626. }
  2627. if (w === h4.length) return c(e2, u2), I && tg(e2, w), l2;
  2628. if (u2 === null) {
  2629. for (; w < h4.length; w++) u2 = q(e2, h4[w], k2), u2 !== null && (g3 = f4(u2, g3, w), m4 === null ? l2 = u2 : m4.sibling = u2, m4 = u2);
  2630. return I && tg(e2, w), l2;
  2631. }
  2632. for (u2 = d(e2, u2); w < h4.length; w++) x = y(u2, e2, w, h4[w], k2), x !== null && (a3 && x.alternate !== null && u2.delete(x.key === null ? w : x.key), g3 = f4(x, g3, w), m4 === null ? l2 = x : m4.sibling = x, m4 = x);
  2633. return a3 && u2.forEach(function(a4) {
  2634. return b(e2, a4);
  2635. }), I && tg(e2, w), l2;
  2636. }
  2637. function t(e2, g3, h4, k2) {
  2638. var l2 = Ka(h4);
  2639. if (typeof l2 != "function") throw Error(p3(150));
  2640. if (h4 = l2.call(h4), h4 == null) throw Error(p3(151));
  2641. for (var u2 = l2 = null, m4 = g3, w = g3 = 0, x = null, n2 = h4.next(); m4 !== null && !n2.done; w++, n2 = h4.next()) {
  2642. m4.index > w ? (x = m4, m4 = null) : x = m4.sibling;
  2643. var t2 = r2(e2, m4, n2.value, k2);
  2644. if (t2 === null) {
  2645. m4 === null && (m4 = x);
  2646. break;
  2647. }
  2648. a3 && m4 && t2.alternate === null && b(e2, m4), g3 = f4(t2, g3, w), u2 === null ? l2 = t2 : u2.sibling = t2, u2 = t2, m4 = x;
  2649. }
  2650. if (n2.done) return c(
  2651. e2,
  2652. m4
  2653. ), I && tg(e2, w), l2;
  2654. if (m4 === null) {
  2655. for (; !n2.done; w++, n2 = h4.next()) n2 = q(e2, n2.value, k2), n2 !== null && (g3 = f4(n2, g3, w), u2 === null ? l2 = n2 : u2.sibling = n2, u2 = n2);
  2656. return I && tg(e2, w), l2;
  2657. }
  2658. for (m4 = d(e2, m4); !n2.done; w++, n2 = h4.next()) n2 = y(m4, e2, w, n2.value, k2), n2 !== null && (a3 && n2.alternate !== null && m4.delete(n2.key === null ? w : n2.key), g3 = f4(n2, g3, w), u2 === null ? l2 = n2 : u2.sibling = n2, u2 = n2);
  2659. return a3 && m4.forEach(function(a4) {
  2660. return b(e2, a4);
  2661. }), I && tg(e2, w), l2;
  2662. }
  2663. function J(a4, d2, f5, h4) {
  2664. if (typeof f5 == "object" && f5 !== null && f5.type === ya && f5.key === null && (f5 = f5.props.children), typeof f5 == "object" && f5 !== null) {
  2665. switch (f5.$$typeof) {
  2666. case va:
  2667. a: {
  2668. for (var k2 = f5.key, l2 = d2; l2 !== null; ) {
  2669. if (l2.key === k2) {
  2670. if (k2 = f5.type, k2 === ya) {
  2671. if (l2.tag === 7) {
  2672. c(a4, l2.sibling), d2 = e(l2, f5.props.children), d2.return = a4, a4 = d2;
  2673. break a;
  2674. }
  2675. } else if (l2.elementType === k2 || typeof k2 == "object" && k2 !== null && k2.$$typeof === Ha && Ng(k2) === l2.type) {
  2676. c(a4, l2.sibling), d2 = e(l2, f5.props), d2.ref = Lg(a4, l2, f5), d2.return = a4, a4 = d2;
  2677. break a;
  2678. }
  2679. c(a4, l2);
  2680. break;
  2681. } else b(a4, l2);
  2682. l2 = l2.sibling;
  2683. }
  2684. f5.type === ya ? (d2 = Tg(f5.props.children, a4.mode, h4, f5.key), d2.return = a4, a4 = d2) : (h4 = Rg(f5.type, f5.key, f5.props, null, a4.mode, h4), h4.ref = Lg(a4, d2, f5), h4.return = a4, a4 = h4);
  2685. }
  2686. return g2(a4);
  2687. case wa:
  2688. a: {
  2689. for (l2 = f5.key; d2 !== null; ) {
  2690. if (d2.key === l2) if (d2.tag === 4 && d2.stateNode.containerInfo === f5.containerInfo && d2.stateNode.implementation === f5.implementation) {
  2691. c(a4, d2.sibling), d2 = e(d2, f5.children || []), d2.return = a4, a4 = d2;
  2692. break a;
  2693. } else {
  2694. c(a4, d2);
  2695. break;
  2696. }
  2697. else b(a4, d2);
  2698. d2 = d2.sibling;
  2699. }
  2700. d2 = Sg(f5, a4.mode, h4), d2.return = a4, a4 = d2;
  2701. }
  2702. return g2(a4);
  2703. case Ha:
  2704. return l2 = f5._init, J(a4, d2, l2(f5._payload), h4);
  2705. }
  2706. if (eb(f5)) return n(a4, d2, f5, h4);
  2707. if (Ka(f5)) return t(a4, d2, f5, h4);
  2708. Mg(a4, f5);
  2709. }
  2710. return typeof f5 == "string" && f5 !== "" || typeof f5 == "number" ? (f5 = "" + f5, d2 !== null && d2.tag === 6 ? (c(a4, d2.sibling), d2 = e(d2, f5), d2.return = a4, a4 = d2) : (c(a4, d2), d2 = Qg(f5, a4.mode, h4), d2.return = a4, a4 = d2), g2(a4)) : c(a4, d2);
  2711. }
  2712. return J;
  2713. }
  2714. var Ug = Og(!0), Vg = Og(!1), Wg = Uf(null), Xg = null, Yg = null, Zg = null;
  2715. function $g() {
  2716. Zg = Yg = Xg = null;
  2717. }
  2718. function ah(a3) {
  2719. var b = Wg.current;
  2720. E(Wg), a3._currentValue = b;
  2721. }
  2722. function bh(a3, b, c) {
  2723. for (; a3 !== null; ) {
  2724. var d = a3.alternate;
  2725. if ((a3.childLanes & b) !== b ? (a3.childLanes |= b, d !== null && (d.childLanes |= b)) : d !== null && (d.childLanes & b) !== b && (d.childLanes |= b), a3 === c) break;
  2726. a3 = a3.return;
  2727. }
  2728. }
  2729. function ch(a3, b) {
  2730. Xg = a3, Zg = Yg = null, a3 = a3.dependencies, a3 !== null && a3.firstContext !== null && ((a3.lanes & b) !== 0 && (dh = !0), a3.firstContext = null);
  2731. }
  2732. function eh(a3) {
  2733. var b = a3._currentValue;
  2734. if (Zg !== a3) if (a3 = { context: a3, memoizedValue: b, next: null }, Yg === null) {
  2735. if (Xg === null) throw Error(p3(308));
  2736. Yg = a3, Xg.dependencies = { lanes: 0, firstContext: a3 };
  2737. } else Yg = Yg.next = a3;
  2738. return b;
  2739. }
  2740. var fh = null;
  2741. function gh(a3) {
  2742. fh === null ? fh = [a3] : fh.push(a3);
  2743. }
  2744. function hh(a3, b, c, d) {
  2745. var e = b.interleaved;
  2746. return e === null ? (c.next = c, gh(b)) : (c.next = e.next, e.next = c), b.interleaved = c, ih(a3, d);
  2747. }
  2748. function ih(a3, b) {
  2749. a3.lanes |= b;
  2750. var c = a3.alternate;
  2751. for (c !== null && (c.lanes |= b), c = a3, a3 = a3.return; a3 !== null; ) a3.childLanes |= b, c = a3.alternate, c !== null && (c.childLanes |= b), c = a3, a3 = a3.return;
  2752. return c.tag === 3 ? c.stateNode : null;
  2753. }
  2754. var jh = !1;
  2755. function kh(a3) {
  2756. a3.updateQueue = { baseState: a3.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
  2757. }
  2758. function lh(a3, b) {
  2759. a3 = a3.updateQueue, b.updateQueue === a3 && (b.updateQueue = { baseState: a3.baseState, firstBaseUpdate: a3.firstBaseUpdate, lastBaseUpdate: a3.lastBaseUpdate, shared: a3.shared, effects: a3.effects });
  2760. }
  2761. function mh(a3, b) {
  2762. return { eventTime: a3, lane: b, tag: 0, payload: null, callback: null, next: null };
  2763. }
  2764. function nh(a3, b, c) {
  2765. var d = a3.updateQueue;
  2766. if (d === null) return null;
  2767. if (d = d.shared, (K2 & 2) !== 0) {
  2768. var e = d.pending;
  2769. return e === null ? b.next = b : (b.next = e.next, e.next = b), d.pending = b, ih(a3, c);
  2770. }
  2771. return e = d.interleaved, e === null ? (b.next = b, gh(d)) : (b.next = e.next, e.next = b), d.interleaved = b, ih(a3, c);
  2772. }
  2773. function oh(a3, b, c) {
  2774. if (b = b.updateQueue, b !== null && (b = b.shared, (c & 4194240) !== 0)) {
  2775. var d = b.lanes;
  2776. d &= a3.pendingLanes, c |= d, b.lanes = c, Cc(a3, c);
  2777. }
  2778. }
  2779. function ph(a3, b) {
  2780. var c = a3.updateQueue, d = a3.alternate;
  2781. if (d !== null && (d = d.updateQueue, c === d)) {
  2782. var e = null, f4 = null;
  2783. if (c = c.firstBaseUpdate, c !== null) {
  2784. do {
  2785. var g2 = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null };
  2786. f4 === null ? e = f4 = g2 : f4 = f4.next = g2, c = c.next;
  2787. } while (c !== null);
  2788. f4 === null ? e = f4 = b : f4 = f4.next = b;
  2789. } else e = f4 = b;
  2790. c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f4, shared: d.shared, effects: d.effects }, a3.updateQueue = c;
  2791. return;
  2792. }
  2793. a3 = c.lastBaseUpdate, a3 === null ? c.firstBaseUpdate = b : a3.next = b, c.lastBaseUpdate = b;
  2794. }
  2795. function qh(a3, b, c, d) {
  2796. var e = a3.updateQueue;
  2797. jh = !1;
  2798. var f4 = e.firstBaseUpdate, g2 = e.lastBaseUpdate, h3 = e.shared.pending;
  2799. if (h3 !== null) {
  2800. e.shared.pending = null;
  2801. var k = h3, l = k.next;
  2802. k.next = null, g2 === null ? f4 = l : g2.next = l, g2 = k;
  2803. var m3 = a3.alternate;
  2804. m3 !== null && (m3 = m3.updateQueue, h3 = m3.lastBaseUpdate, h3 !== g2 && (h3 === null ? m3.firstBaseUpdate = l : h3.next = l, m3.lastBaseUpdate = k));
  2805. }
  2806. if (f4 !== null) {
  2807. var q = e.baseState;
  2808. g2 = 0, m3 = l = k = null, h3 = f4;
  2809. do {
  2810. var r2 = h3.lane, y = h3.eventTime;
  2811. if ((d & r2) === r2) {
  2812. m3 !== null && (m3 = m3.next = {
  2813. eventTime: y,
  2814. lane: 0,
  2815. tag: h3.tag,
  2816. payload: h3.payload,
  2817. callback: h3.callback,
  2818. next: null
  2819. });
  2820. a: {
  2821. var n = a3, t = h3;
  2822. switch (r2 = b, y = c, t.tag) {
  2823. case 1:
  2824. if (n = t.payload, typeof n == "function") {
  2825. q = n.call(y, q, r2);
  2826. break a;
  2827. }
  2828. q = n;
  2829. break a;
  2830. case 3:
  2831. n.flags = n.flags & -65537 | 128;
  2832. case 0:
  2833. if (n = t.payload, r2 = typeof n == "function" ? n.call(y, q, r2) : n, r2 == null) break a;
  2834. q = A3({}, q, r2);
  2835. break a;
  2836. case 2:
  2837. jh = !0;
  2838. }
  2839. }
  2840. h3.callback !== null && h3.lane !== 0 && (a3.flags |= 64, r2 = e.effects, r2 === null ? e.effects = [h3] : r2.push(h3));
  2841. } else y = { eventTime: y, lane: r2, tag: h3.tag, payload: h3.payload, callback: h3.callback, next: null }, m3 === null ? (l = m3 = y, k = q) : m3 = m3.next = y, g2 |= r2;
  2842. if (h3 = h3.next, h3 === null) {
  2843. if (h3 = e.shared.pending, h3 === null) break;
  2844. r2 = h3, h3 = r2.next, r2.next = null, e.lastBaseUpdate = r2, e.shared.pending = null;
  2845. }
  2846. } while (!0);
  2847. if (m3 === null && (k = q), e.baseState = k, e.firstBaseUpdate = l, e.lastBaseUpdate = m3, b = e.shared.interleaved, b !== null) {
  2848. e = b;
  2849. do
  2850. g2 |= e.lane, e = e.next;
  2851. while (e !== b);
  2852. } else f4 === null && (e.shared.lanes = 0);
  2853. rh |= g2, a3.lanes = g2, a3.memoizedState = q;
  2854. }
  2855. }
  2856. function sh(a3, b, c) {
  2857. if (a3 = b.effects, b.effects = null, a3 !== null) for (b = 0; b < a3.length; b++) {
  2858. var d = a3[b], e = d.callback;
  2859. if (e !== null) {
  2860. if (d.callback = null, d = c, typeof e != "function") throw Error(p3(191, e));
  2861. e.call(d);
  2862. }
  2863. }
  2864. }
  2865. var th = {}, uh = Uf(th), vh = Uf(th), wh = Uf(th);
  2866. function xh(a3) {
  2867. if (a3 === th) throw Error(p3(174));
  2868. return a3;
  2869. }
  2870. function yh(a3, b) {
  2871. switch (G(wh, b), G(vh, a3), G(uh, th), a3 = b.nodeType, a3) {
  2872. case 9:
  2873. case 11:
  2874. b = (b = b.documentElement) ? b.namespaceURI : lb(null, "");
  2875. break;
  2876. default:
  2877. a3 = a3 === 8 ? b.parentNode : b, b = a3.namespaceURI || null, a3 = a3.tagName, b = lb(b, a3);
  2878. }
  2879. E(uh), G(uh, b);
  2880. }
  2881. function zh() {
  2882. E(uh), E(vh), E(wh);
  2883. }
  2884. function Ah(a3) {
  2885. xh(wh.current);
  2886. var b = xh(uh.current), c = lb(b, a3.type);
  2887. b !== c && (G(vh, a3), G(uh, c));
  2888. }
  2889. function Bh(a3) {
  2890. vh.current === a3 && (E(uh), E(vh));
  2891. }
  2892. var L = Uf(0);
  2893. function Ch(a3) {
  2894. for (var b = a3; b !== null; ) {
  2895. if (b.tag === 13) {
  2896. var c = b.memoizedState;
  2897. if (c !== null && (c = c.dehydrated, c === null || c.data === "$?" || c.data === "$!")) return b;
  2898. } else if (b.tag === 19 && b.memoizedProps.revealOrder !== void 0) {
  2899. if ((b.flags & 128) !== 0) return b;
  2900. } else if (b.child !== null) {
  2901. b.child.return = b, b = b.child;
  2902. continue;
  2903. }
  2904. if (b === a3) break;
  2905. for (; b.sibling === null; ) {
  2906. if (b.return === null || b.return === a3) return null;
  2907. b = b.return;
  2908. }
  2909. b.sibling.return = b.return, b = b.sibling;
  2910. }
  2911. return null;
  2912. }
  2913. var Dh = [];
  2914. function Eh() {
  2915. for (var a3 = 0; a3 < Dh.length; a3++) Dh[a3]._workInProgressVersionPrimary = null;
  2916. Dh.length = 0;
  2917. }
  2918. var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M = null, N = null, O = null, Ih = !1, Jh = !1, Kh = 0, Lh = 0;
  2919. function P3() {
  2920. throw Error(p3(321));
  2921. }
  2922. function Mh(a3, b) {
  2923. if (b === null) return !1;
  2924. for (var c = 0; c < b.length && c < a3.length; c++) if (!He(a3[c], b[c])) return !1;
  2925. return !0;
  2926. }
  2927. function Nh(a3, b, c, d, e, f4) {
  2928. if (Hh = f4, M = b, b.memoizedState = null, b.updateQueue = null, b.lanes = 0, Fh.current = a3 === null || a3.memoizedState === null ? Oh : Ph, a3 = c(d, e), Jh) {
  2929. f4 = 0;
  2930. do {
  2931. if (Jh = !1, Kh = 0, 25 <= f4) throw Error(p3(301));
  2932. f4 += 1, O = N = null, b.updateQueue = null, Fh.current = Qh, a3 = c(d, e);
  2933. } while (Jh);
  2934. }
  2935. if (Fh.current = Rh, b = N !== null && N.next !== null, Hh = 0, O = N = M = null, Ih = !1, b) throw Error(p3(300));
  2936. return a3;
  2937. }
  2938. function Sh() {
  2939. var a3 = Kh !== 0;
  2940. return Kh = 0, a3;
  2941. }
  2942. function Th() {
  2943. var a3 = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
  2944. return O === null ? M.memoizedState = O = a3 : O = O.next = a3, O;
  2945. }
  2946. function Uh() {
  2947. if (N === null) {
  2948. var a3 = M.alternate;
  2949. a3 = a3 !== null ? a3.memoizedState : null;
  2950. } else a3 = N.next;
  2951. var b = O === null ? M.memoizedState : O.next;
  2952. if (b !== null) O = b, N = a3;
  2953. else {
  2954. if (a3 === null) throw Error(p3(310));
  2955. N = a3, a3 = { memoizedState: N.memoizedState, baseState: N.baseState, baseQueue: N.baseQueue, queue: N.queue, next: null }, O === null ? M.memoizedState = O = a3 : O = O.next = a3;
  2956. }
  2957. return O;
  2958. }
  2959. function Vh(a3, b) {
  2960. return typeof b == "function" ? b(a3) : b;
  2961. }
  2962. function Wh(a3) {
  2963. var b = Uh(), c = b.queue;
  2964. if (c === null) throw Error(p3(311));
  2965. c.lastRenderedReducer = a3;
  2966. var d = N, e = d.baseQueue, f4 = c.pending;
  2967. if (f4 !== null) {
  2968. if (e !== null) {
  2969. var g2 = e.next;
  2970. e.next = f4.next, f4.next = g2;
  2971. }
  2972. d.baseQueue = e = f4, c.pending = null;
  2973. }
  2974. if (e !== null) {
  2975. f4 = e.next, d = d.baseState;
  2976. var h3 = g2 = null, k = null, l = f4;
  2977. do {
  2978. var m3 = l.lane;
  2979. if ((Hh & m3) === m3) k !== null && (k = k.next = { lane: 0, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }), d = l.hasEagerState ? l.eagerState : a3(d, l.action);
  2980. else {
  2981. var q = {
  2982. lane: m3,
  2983. action: l.action,
  2984. hasEagerState: l.hasEagerState,
  2985. eagerState: l.eagerState,
  2986. next: null
  2987. };
  2988. k === null ? (h3 = k = q, g2 = d) : k = k.next = q, M.lanes |= m3, rh |= m3;
  2989. }
  2990. l = l.next;
  2991. } while (l !== null && l !== f4);
  2992. k === null ? g2 = d : k.next = h3, He(d, b.memoizedState) || (dh = !0), b.memoizedState = d, b.baseState = g2, b.baseQueue = k, c.lastRenderedState = d;
  2993. }
  2994. if (a3 = c.interleaved, a3 !== null) {
  2995. e = a3;
  2996. do
  2997. f4 = e.lane, M.lanes |= f4, rh |= f4, e = e.next;
  2998. while (e !== a3);
  2999. } else e === null && (c.lanes = 0);
  3000. return [b.memoizedState, c.dispatch];
  3001. }
  3002. function Xh(a3) {
  3003. var b = Uh(), c = b.queue;
  3004. if (c === null) throw Error(p3(311));
  3005. c.lastRenderedReducer = a3;
  3006. var d = c.dispatch, e = c.pending, f4 = b.memoizedState;
  3007. if (e !== null) {
  3008. c.pending = null;
  3009. var g2 = e = e.next;
  3010. do
  3011. f4 = a3(f4, g2.action), g2 = g2.next;
  3012. while (g2 !== e);
  3013. He(f4, b.memoizedState) || (dh = !0), b.memoizedState = f4, b.baseQueue === null && (b.baseState = f4), c.lastRenderedState = f4;
  3014. }
  3015. return [f4, d];
  3016. }
  3017. function Yh() {
  3018. }
  3019. function Zh(a3, b) {
  3020. var c = M, d = Uh(), e = b(), f4 = !He(d.memoizedState, e);
  3021. if (f4 && (d.memoizedState = e, dh = !0), d = d.queue, $h(ai.bind(null, c, d, a3), [a3]), d.getSnapshot !== b || f4 || O !== null && O.memoizedState.tag & 1) {
  3022. if (c.flags |= 2048, bi(9, ci.bind(null, c, d, e, b), void 0, null), Q === null) throw Error(p3(349));
  3023. (Hh & 30) !== 0 || di(c, b, e);
  3024. }
  3025. return e;
  3026. }
  3027. function di(a3, b, c) {
  3028. a3.flags |= 16384, a3 = { getSnapshot: b, value: c }, b = M.updateQueue, b === null ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.stores = [a3]) : (c = b.stores, c === null ? b.stores = [a3] : c.push(a3));
  3029. }
  3030. function ci(a3, b, c, d) {
  3031. b.value = c, b.getSnapshot = d, ei(b) && fi(a3);
  3032. }
  3033. function ai(a3, b, c) {
  3034. return c(function() {
  3035. ei(b) && fi(a3);
  3036. });
  3037. }
  3038. function ei(a3) {
  3039. var b = a3.getSnapshot;
  3040. a3 = a3.value;
  3041. try {
  3042. var c = b();
  3043. return !He(a3, c);
  3044. } catch {
  3045. return !0;
  3046. }
  3047. }
  3048. function fi(a3) {
  3049. var b = ih(a3, 1);
  3050. b !== null && gi(b, a3, 1, -1);
  3051. }
  3052. function hi(a3) {
  3053. var b = Th();
  3054. return typeof a3 == "function" && (a3 = a3()), b.memoizedState = b.baseState = a3, a3 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a3 }, b.queue = a3, a3 = a3.dispatch = ii.bind(null, M, a3), [b.memoizedState, a3];
  3055. }
  3056. function bi(a3, b, c, d) {
  3057. return a3 = { tag: a3, create: b, destroy: c, deps: d, next: null }, b = M.updateQueue, b === null ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.lastEffect = a3.next = a3) : (c = b.lastEffect, c === null ? b.lastEffect = a3.next = a3 : (d = c.next, c.next = a3, a3.next = d, b.lastEffect = a3)), a3;
  3058. }
  3059. function ji() {
  3060. return Uh().memoizedState;
  3061. }
  3062. function ki(a3, b, c, d) {
  3063. var e = Th();
  3064. M.flags |= a3, e.memoizedState = bi(1 | b, c, void 0, d === void 0 ? null : d);
  3065. }
  3066. function li(a3, b, c, d) {
  3067. var e = Uh();
  3068. d = d === void 0 ? null : d;
  3069. var f4 = void 0;
  3070. if (N !== null) {
  3071. var g2 = N.memoizedState;
  3072. if (f4 = g2.destroy, d !== null && Mh(d, g2.deps)) {
  3073. e.memoizedState = bi(b, c, f4, d);
  3074. return;
  3075. }
  3076. }
  3077. M.flags |= a3, e.memoizedState = bi(1 | b, c, f4, d);
  3078. }
  3079. function mi(a3, b) {
  3080. return ki(8390656, 8, a3, b);
  3081. }
  3082. function $h(a3, b) {
  3083. return li(2048, 8, a3, b);
  3084. }
  3085. function ni(a3, b) {
  3086. return li(4, 2, a3, b);
  3087. }
  3088. function oi(a3, b) {
  3089. return li(4, 4, a3, b);
  3090. }
  3091. function pi(a3, b) {
  3092. if (typeof b == "function") return a3 = a3(), b(a3), function() {
  3093. b(null);
  3094. };
  3095. if (b != null) return a3 = a3(), b.current = a3, function() {
  3096. b.current = null;
  3097. };
  3098. }
  3099. function qi(a3, b, c) {
  3100. return c = c != null ? c.concat([a3]) : null, li(4, 4, pi.bind(null, b, a3), c);
  3101. }
  3102. function ri() {
  3103. }
  3104. function si(a3, b) {
  3105. var c = Uh();
  3106. b = b === void 0 ? null : b;
  3107. var d = c.memoizedState;
  3108. return d !== null && b !== null && Mh(b, d[1]) ? d[0] : (c.memoizedState = [a3, b], a3);
  3109. }
  3110. function ti(a3, b) {
  3111. var c = Uh();
  3112. b = b === void 0 ? null : b;
  3113. var d = c.memoizedState;
  3114. return d !== null && b !== null && Mh(b, d[1]) ? d[0] : (a3 = a3(), c.memoizedState = [a3, b], a3);
  3115. }
  3116. function ui(a3, b, c) {
  3117. return (Hh & 21) === 0 ? (a3.baseState && (a3.baseState = !1, dh = !0), a3.memoizedState = c) : (He(c, b) || (c = yc(), M.lanes |= c, rh |= c, a3.baseState = !0), b);
  3118. }
  3119. function vi(a3, b) {
  3120. var c = C3;
  3121. C3 = c !== 0 && 4 > c ? c : 4, a3(!0);
  3122. var d = Gh.transition;
  3123. Gh.transition = {};
  3124. try {
  3125. a3(!1), b();
  3126. } finally {
  3127. C3 = c, Gh.transition = d;
  3128. }
  3129. }
  3130. function wi() {
  3131. return Uh().memoizedState;
  3132. }
  3133. function xi(a3, b, c) {
  3134. var d = yi(a3);
  3135. if (c = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }, zi(a3)) Ai(b, c);
  3136. else if (c = hh(a3, b, c, d), c !== null) {
  3137. var e = R();
  3138. gi(c, a3, d, e), Bi(c, b, d);
  3139. }
  3140. }
  3141. function ii(a3, b, c) {
  3142. var d = yi(a3), e = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null };
  3143. if (zi(a3)) Ai(b, e);
  3144. else {
  3145. var f4 = a3.alternate;
  3146. if (a3.lanes === 0 && (f4 === null || f4.lanes === 0) && (f4 = b.lastRenderedReducer, f4 !== null)) try {
  3147. var g2 = b.lastRenderedState, h3 = f4(g2, c);
  3148. if (e.hasEagerState = !0, e.eagerState = h3, He(h3, g2)) {
  3149. var k = b.interleaved;
  3150. k === null ? (e.next = e, gh(b)) : (e.next = k.next, k.next = e), b.interleaved = e;
  3151. return;
  3152. }
  3153. } catch {
  3154. }
  3155. c = hh(a3, b, e, d), c !== null && (e = R(), gi(c, a3, d, e), Bi(c, b, d));
  3156. }
  3157. }
  3158. function zi(a3) {
  3159. var b = a3.alternate;
  3160. return a3 === M || b !== null && b === M;
  3161. }
  3162. function Ai(a3, b) {
  3163. Jh = Ih = !0;
  3164. var c = a3.pending;
  3165. c === null ? b.next = b : (b.next = c.next, c.next = b), a3.pending = b;
  3166. }
  3167. function Bi(a3, b, c) {
  3168. if ((c & 4194240) !== 0) {
  3169. var d = b.lanes;
  3170. d &= a3.pendingLanes, c |= d, b.lanes = c, Cc(a3, c);
  3171. }
  3172. }
  3173. var Rh = { readContext: eh, useCallback: P3, useContext: P3, useEffect: P3, useImperativeHandle: P3, useInsertionEffect: P3, useLayoutEffect: P3, useMemo: P3, useReducer: P3, useRef: P3, useState: P3, useDebugValue: P3, useDeferredValue: P3, useTransition: P3, useMutableSource: P3, useSyncExternalStore: P3, useId: P3, unstable_isNewReconciler: !1 }, Oh = { readContext: eh, useCallback: function(a3, b) {
  3174. return Th().memoizedState = [a3, b === void 0 ? null : b], a3;
  3175. }, useContext: eh, useEffect: mi, useImperativeHandle: function(a3, b, c) {
  3176. return c = c != null ? c.concat([a3]) : null, ki(
  3177. 4194308,
  3178. 4,
  3179. pi.bind(null, b, a3),
  3180. c
  3181. );
  3182. }, useLayoutEffect: function(a3, b) {
  3183. return ki(4194308, 4, a3, b);
  3184. }, useInsertionEffect: function(a3, b) {
  3185. return ki(4, 2, a3, b);
  3186. }, useMemo: function(a3, b) {
  3187. var c = Th();
  3188. return b = b === void 0 ? null : b, a3 = a3(), c.memoizedState = [a3, b], a3;
  3189. }, useReducer: function(a3, b, c) {
  3190. var d = Th();
  3191. return b = c !== void 0 ? c(b) : b, d.memoizedState = d.baseState = b, a3 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a3, lastRenderedState: b }, d.queue = a3, a3 = a3.dispatch = xi.bind(null, M, a3), [d.memoizedState, a3];
  3192. }, useRef: function(a3) {
  3193. var b = Th();
  3194. return a3 = { current: a3 }, b.memoizedState = a3;
  3195. }, useState: hi, useDebugValue: ri, useDeferredValue: function(a3) {
  3196. return Th().memoizedState = a3;
  3197. }, useTransition: function() {
  3198. var a3 = hi(!1), b = a3[0];
  3199. return a3 = vi.bind(null, a3[1]), Th().memoizedState = a3, [b, a3];
  3200. }, useMutableSource: function() {
  3201. }, useSyncExternalStore: function(a3, b, c) {
  3202. var d = M, e = Th();
  3203. if (I) {
  3204. if (c === void 0) throw Error(p3(407));
  3205. c = c();
  3206. } else {
  3207. if (c = b(), Q === null) throw Error(p3(349));
  3208. (Hh & 30) !== 0 || di(d, b, c);
  3209. }
  3210. e.memoizedState = c;
  3211. var f4 = { value: c, getSnapshot: b };
  3212. return e.queue = f4, mi(ai.bind(
  3213. null,
  3214. d,
  3215. f4,
  3216. a3
  3217. ), [a3]), d.flags |= 2048, bi(9, ci.bind(null, d, f4, c, b), void 0, null), c;
  3218. }, useId: function() {
  3219. var a3 = Th(), b = Q.identifierPrefix;
  3220. if (I) {
  3221. var c = sg, d = rg;
  3222. c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c, b = ":" + b + "R" + c, c = Kh++, 0 < c && (b += "H" + c.toString(32)), b += ":";
  3223. } else c = Lh++, b = ":" + b + "r" + c.toString(32) + ":";
  3224. return a3.memoizedState = b;
  3225. }, unstable_isNewReconciler: !1 }, Ph = {
  3226. readContext: eh,
  3227. useCallback: si,
  3228. useContext: eh,
  3229. useEffect: $h,
  3230. useImperativeHandle: qi,
  3231. useInsertionEffect: ni,
  3232. useLayoutEffect: oi,
  3233. useMemo: ti,
  3234. useReducer: Wh,
  3235. useRef: ji,
  3236. useState: function() {
  3237. return Wh(Vh);
  3238. },
  3239. useDebugValue: ri,
  3240. useDeferredValue: function(a3) {
  3241. var b = Uh();
  3242. return ui(b, N.memoizedState, a3);
  3243. },
  3244. useTransition: function() {
  3245. var a3 = Wh(Vh)[0], b = Uh().memoizedState;
  3246. return [a3, b];
  3247. },
  3248. useMutableSource: Yh,
  3249. useSyncExternalStore: Zh,
  3250. useId: wi,
  3251. unstable_isNewReconciler: !1
  3252. }, Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() {
  3253. return Xh(Vh);
  3254. }, useDebugValue: ri, useDeferredValue: function(a3) {
  3255. var b = Uh();
  3256. return N === null ? b.memoizedState = a3 : ui(b, N.memoizedState, a3);
  3257. }, useTransition: function() {
  3258. var a3 = Xh(Vh)[0], b = Uh().memoizedState;
  3259. return [a3, b];
  3260. }, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: !1 };
  3261. function Ci(a3, b) {
  3262. if (a3 && a3.defaultProps) {
  3263. b = A3({}, b), a3 = a3.defaultProps;
  3264. for (var c in a3) b[c] === void 0 && (b[c] = a3[c]);
  3265. return b;
  3266. }
  3267. return b;
  3268. }
  3269. function Di(a3, b, c, d) {
  3270. b = a3.memoizedState, c = c(d, b), c = c == null ? b : A3({}, b, c), a3.memoizedState = c, a3.lanes === 0 && (a3.updateQueue.baseState = c);
  3271. }
  3272. var Ei = { isMounted: function(a3) {
  3273. return (a3 = a3._reactInternals) ? Vb(a3) === a3 : !1;
  3274. }, enqueueSetState: function(a3, b, c) {
  3275. a3 = a3._reactInternals;
  3276. var d = R(), e = yi(a3), f4 = mh(d, e);
  3277. f4.payload = b, c != null && (f4.callback = c), b = nh(a3, f4, e), b !== null && (gi(b, a3, e, d), oh(b, a3, e));
  3278. }, enqueueReplaceState: function(a3, b, c) {
  3279. a3 = a3._reactInternals;
  3280. var d = R(), e = yi(a3), f4 = mh(d, e);
  3281. f4.tag = 1, f4.payload = b, c != null && (f4.callback = c), b = nh(a3, f4, e), b !== null && (gi(b, a3, e, d), oh(b, a3, e));
  3282. }, enqueueForceUpdate: function(a3, b) {
  3283. a3 = a3._reactInternals;
  3284. var c = R(), d = yi(a3), e = mh(c, d);
  3285. e.tag = 2, b != null && (e.callback = b), b = nh(a3, e, d), b !== null && (gi(b, a3, d, c), oh(b, a3, d));
  3286. } };
  3287. function Fi(a3, b, c, d, e, f4, g2) {
  3288. return a3 = a3.stateNode, typeof a3.shouldComponentUpdate == "function" ? a3.shouldComponentUpdate(d, f4, g2) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f4) : !0;
  3289. }
  3290. function Gi(a3, b, c) {
  3291. var d = !1, e = Vf, f4 = b.contextType;
  3292. return typeof f4 == "object" && f4 !== null ? f4 = eh(f4) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f4 = (d = d != null) ? Yf(a3, e) : Vf), b = new b(c, f4), a3.memoizedState = b.state !== null && b.state !== void 0 ? b.state : null, b.updater = Ei, a3.stateNode = b, b._reactInternals = a3, d && (a3 = a3.stateNode, a3.__reactInternalMemoizedUnmaskedChildContext = e, a3.__reactInternalMemoizedMaskedChildContext = f4), b;
  3293. }
  3294. function Hi(a3, b, c, d) {
  3295. a3 = b.state, typeof b.componentWillReceiveProps == "function" && b.componentWillReceiveProps(c, d), typeof b.UNSAFE_componentWillReceiveProps == "function" && b.UNSAFE_componentWillReceiveProps(c, d), b.state !== a3 && Ei.enqueueReplaceState(b, b.state, null);
  3296. }
  3297. function Ii(a3, b, c, d) {
  3298. var e = a3.stateNode;
  3299. e.props = c, e.state = a3.memoizedState, e.refs = {}, kh(a3);
  3300. var f4 = b.contextType;
  3301. typeof f4 == "object" && f4 !== null ? e.context = eh(f4) : (f4 = Zf(b) ? Xf : H.current, e.context = Yf(a3, f4)), e.state = a3.memoizedState, f4 = b.getDerivedStateFromProps, typeof f4 == "function" && (Di(a3, b, f4, c), e.state = a3.memoizedState), typeof b.getDerivedStateFromProps == "function" || typeof e.getSnapshotBeforeUpdate == "function" || typeof e.UNSAFE_componentWillMount != "function" && typeof e.componentWillMount != "function" || (b = e.state, typeof e.componentWillMount == "function" && e.componentWillMount(), typeof e.UNSAFE_componentWillMount == "function" && e.UNSAFE_componentWillMount(), b !== e.state && Ei.enqueueReplaceState(e, e.state, null), qh(a3, c, e, d), e.state = a3.memoizedState), typeof e.componentDidMount == "function" && (a3.flags |= 4194308);
  3302. }
  3303. function Ji(a3, b) {
  3304. try {
  3305. var c = "", d = b;
  3306. do
  3307. c += Pa(d), d = d.return;
  3308. while (d);
  3309. var e = c;
  3310. } catch (f4) {
  3311. e = `
  3312. Error generating stack: ` + f4.message + `
  3313. ` + f4.stack;
  3314. }
  3315. return { value: a3, source: b, stack: e, digest: null };
  3316. }
  3317. function Ki(a3, b, c) {
  3318. return { value: a3, source: null, stack: c ?? null, digest: b ?? null };
  3319. }
  3320. function Li(a3, b) {
  3321. try {
  3322. console.error(b.value);
  3323. } catch (c) {
  3324. setTimeout(function() {
  3325. throw c;
  3326. });
  3327. }
  3328. }
  3329. var Mi = typeof WeakMap == "function" ? WeakMap : Map;
  3330. function Ni(a3, b, c) {
  3331. c = mh(-1, c), c.tag = 3, c.payload = { element: null };
  3332. var d = b.value;
  3333. return c.callback = function() {
  3334. Oi || (Oi = !0, Pi = d), Li(a3, b);
  3335. }, c;
  3336. }
  3337. function Qi(a3, b, c) {
  3338. c = mh(-1, c), c.tag = 3;
  3339. var d = a3.type.getDerivedStateFromError;
  3340. if (typeof d == "function") {
  3341. var e = b.value;
  3342. c.payload = function() {
  3343. return d(e);
  3344. }, c.callback = function() {
  3345. Li(a3, b);
  3346. };
  3347. }
  3348. var f4 = a3.stateNode;
  3349. return f4 !== null && typeof f4.componentDidCatch == "function" && (c.callback = function() {
  3350. Li(a3, b), typeof d != "function" && (Ri === null ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this));
  3351. var c2 = b.stack;
  3352. this.componentDidCatch(b.value, { componentStack: c2 !== null ? c2 : "" });
  3353. }), c;
  3354. }
  3355. function Si(a3, b, c) {
  3356. var d = a3.pingCache;
  3357. if (d === null) {
  3358. d = a3.pingCache = new Mi();
  3359. var e = /* @__PURE__ */ new Set();
  3360. d.set(b, e);
  3361. } else e = d.get(b), e === void 0 && (e = /* @__PURE__ */ new Set(), d.set(b, e));
  3362. e.has(c) || (e.add(c), a3 = Ti.bind(null, a3, b, c), b.then(a3, a3));
  3363. }
  3364. function Ui(a3) {
  3365. do {
  3366. var b;
  3367. if ((b = a3.tag === 13) && (b = a3.memoizedState, b = b !== null ? b.dehydrated !== null : !0), b) return a3;
  3368. a3 = a3.return;
  3369. } while (a3 !== null);
  3370. return null;
  3371. }
  3372. function Vi(a3, b, c, d, e) {
  3373. return (a3.mode & 1) === 0 ? (a3 === b ? a3.flags |= 65536 : (a3.flags |= 128, c.flags |= 131072, c.flags &= -52805, c.tag === 1 && (c.alternate === null ? c.tag = 17 : (b = mh(-1, 1), b.tag = 2, nh(c, b, 1))), c.lanes |= 1), a3) : (a3.flags |= 65536, a3.lanes = e, a3);
  3374. }
  3375. var Wi = ua.ReactCurrentOwner, dh = !1;
  3376. function Xi(a3, b, c, d) {
  3377. b.child = a3 === null ? Vg(b, null, c, d) : Ug(b, a3.child, c, d);
  3378. }
  3379. function Yi(a3, b, c, d, e) {
  3380. c = c.render;
  3381. var f4 = b.ref;
  3382. return ch(b, e), d = Nh(a3, b, c, d, f4, e), c = Sh(), a3 !== null && !dh ? (b.updateQueue = a3.updateQueue, b.flags &= -2053, a3.lanes &= ~e, Zi(a3, b, e)) : (I && c && vg(b), b.flags |= 1, Xi(a3, b, d, e), b.child);
  3383. }
  3384. function $i(a3, b, c, d, e) {
  3385. if (a3 === null) {
  3386. var f4 = c.type;
  3387. return typeof f4 == "function" && !aj(f4) && f4.defaultProps === void 0 && c.compare === null && c.defaultProps === void 0 ? (b.tag = 15, b.type = f4, bj(a3, b, f4, d, e)) : (a3 = Rg(c.type, null, d, b, b.mode, e), a3.ref = b.ref, a3.return = b, b.child = a3);
  3388. }
  3389. if (f4 = a3.child, (a3.lanes & e) === 0) {
  3390. var g2 = f4.memoizedProps;
  3391. if (c = c.compare, c = c !== null ? c : Ie, c(g2, d) && a3.ref === b.ref) return Zi(a3, b, e);
  3392. }
  3393. return b.flags |= 1, a3 = Pg(f4, d), a3.ref = b.ref, a3.return = b, b.child = a3;
  3394. }
  3395. function bj(a3, b, c, d, e) {
  3396. if (a3 !== null) {
  3397. var f4 = a3.memoizedProps;
  3398. if (Ie(f4, d) && a3.ref === b.ref) if (dh = !1, b.pendingProps = d = f4, (a3.lanes & e) !== 0) (a3.flags & 131072) !== 0 && (dh = !0);
  3399. else return b.lanes = a3.lanes, Zi(a3, b, e);
  3400. }
  3401. return cj(a3, b, c, d, e);
  3402. }
  3403. function dj(a3, b, c) {
  3404. var d = b.pendingProps, e = d.children, f4 = a3 !== null ? a3.memoizedState : null;
  3405. if (d.mode === "hidden") if ((b.mode & 1) === 0) b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(ej, fj), fj |= c;
  3406. else {
  3407. if ((c & 1073741824) === 0) return a3 = f4 !== null ? f4.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { baseLanes: a3, cachePool: null, transitions: null }, b.updateQueue = null, G(ej, fj), fj |= a3, null;
  3408. b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, d = f4 !== null ? f4.baseLanes : c, G(ej, fj), fj |= d;
  3409. }
  3410. else f4 !== null ? (d = f4.baseLanes | c, b.memoizedState = null) : d = c, G(ej, fj), fj |= d;
  3411. return Xi(a3, b, e, c), b.child;
  3412. }
  3413. function gj(a3, b) {
  3414. var c = b.ref;
  3415. (a3 === null && c !== null || a3 !== null && a3.ref !== c) && (b.flags |= 512, b.flags |= 2097152);
  3416. }
  3417. function cj(a3, b, c, d, e) {
  3418. var f4 = Zf(c) ? Xf : H.current;
  3419. return f4 = Yf(b, f4), ch(b, e), c = Nh(a3, b, c, d, f4, e), d = Sh(), a3 !== null && !dh ? (b.updateQueue = a3.updateQueue, b.flags &= -2053, a3.lanes &= ~e, Zi(a3, b, e)) : (I && d && vg(b), b.flags |= 1, Xi(a3, b, c, e), b.child);
  3420. }
  3421. function hj(a3, b, c, d, e) {
  3422. if (Zf(c)) {
  3423. var f4 = !0;
  3424. cg(b);
  3425. } else f4 = !1;
  3426. if (ch(b, e), b.stateNode === null) ij(a3, b), Gi(b, c, d), Ii(b, c, d, e), d = !0;
  3427. else if (a3 === null) {
  3428. var g2 = b.stateNode, h3 = b.memoizedProps;
  3429. g2.props = h3;
  3430. var k = g2.context, l = c.contextType;
  3431. typeof l == "object" && l !== null ? l = eh(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
  3432. var m3 = c.getDerivedStateFromProps, q = typeof m3 == "function" || typeof g2.getSnapshotBeforeUpdate == "function";
  3433. q || typeof g2.UNSAFE_componentWillReceiveProps != "function" && typeof g2.componentWillReceiveProps != "function" || (h3 !== d || k !== l) && Hi(b, g2, d, l), jh = !1;
  3434. var r2 = b.memoizedState;
  3435. g2.state = r2, qh(b, d, g2, e), k = b.memoizedState, h3 !== d || r2 !== k || Wf.current || jh ? (typeof m3 == "function" && (Di(b, c, m3, d), k = b.memoizedState), (h3 = jh || Fi(b, c, h3, d, r2, k, l)) ? (q || typeof g2.UNSAFE_componentWillMount != "function" && typeof g2.componentWillMount != "function" || (typeof g2.componentWillMount == "function" && g2.componentWillMount(), typeof g2.UNSAFE_componentWillMount == "function" && g2.UNSAFE_componentWillMount()), typeof g2.componentDidMount == "function" && (b.flags |= 4194308)) : (typeof g2.componentDidMount == "function" && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g2.props = d, g2.state = k, g2.context = l, d = h3) : (typeof g2.componentDidMount == "function" && (b.flags |= 4194308), d = !1);
  3436. } else {
  3437. g2 = b.stateNode, lh(a3, b), h3 = b.memoizedProps, l = b.type === b.elementType ? h3 : Ci(b.type, h3), g2.props = l, q = b.pendingProps, r2 = g2.context, k = c.contextType, typeof k == "object" && k !== null ? k = eh(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
  3438. var y = c.getDerivedStateFromProps;
  3439. (m3 = typeof y == "function" || typeof g2.getSnapshotBeforeUpdate == "function") || typeof g2.UNSAFE_componentWillReceiveProps != "function" && typeof g2.componentWillReceiveProps != "function" || (h3 !== q || r2 !== k) && Hi(b, g2, d, k), jh = !1, r2 = b.memoizedState, g2.state = r2, qh(b, d, g2, e);
  3440. var n = b.memoizedState;
  3441. h3 !== q || r2 !== n || Wf.current || jh ? (typeof y == "function" && (Di(b, c, y, d), n = b.memoizedState), (l = jh || Fi(b, c, l, d, r2, n, k) || !1) ? (m3 || typeof g2.UNSAFE_componentWillUpdate != "function" && typeof g2.componentWillUpdate != "function" || (typeof g2.componentWillUpdate == "function" && g2.componentWillUpdate(d, n, k), typeof g2.UNSAFE_componentWillUpdate == "function" && g2.UNSAFE_componentWillUpdate(d, n, k)), typeof g2.componentDidUpdate == "function" && (b.flags |= 4), typeof g2.getSnapshotBeforeUpdate == "function" && (b.flags |= 1024)) : (typeof g2.componentDidUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 4), typeof g2.getSnapshotBeforeUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n), g2.props = d, g2.state = n, g2.context = k, d = l) : (typeof g2.componentDidUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 4), typeof g2.getSnapshotBeforeUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 1024), d = !1);
  3442. }
  3443. return jj(a3, b, c, d, f4, e);
  3444. }
  3445. function jj(a3, b, c, d, e, f4) {
  3446. gj(a3, b);
  3447. var g2 = (b.flags & 128) !== 0;
  3448. if (!d && !g2) return e && dg(b, c, !1), Zi(a3, b, f4);
  3449. d = b.stateNode, Wi.current = b;
  3450. var h3 = g2 && typeof c.getDerivedStateFromError != "function" ? null : d.render();
  3451. return b.flags |= 1, a3 !== null && g2 ? (b.child = Ug(b, a3.child, null, f4), b.child = Ug(b, null, h3, f4)) : Xi(a3, b, h3, f4), b.memoizedState = d.state, e && dg(b, c, !0), b.child;
  3452. }
  3453. function kj(a3) {
  3454. var b = a3.stateNode;
  3455. b.pendingContext ? ag(a3, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a3, b.context, !1), yh(a3, b.containerInfo);
  3456. }
  3457. function lj(a3, b, c, d, e) {
  3458. return Ig(), Jg(e), b.flags |= 256, Xi(a3, b, c, d), b.child;
  3459. }
  3460. var mj = { dehydrated: null, treeContext: null, retryLane: 0 };
  3461. function nj(a3) {
  3462. return { baseLanes: a3, cachePool: null, transitions: null };
  3463. }
  3464. function oj(a3, b, c) {
  3465. var d = b.pendingProps, e = L.current, f4 = !1, g2 = (b.flags & 128) !== 0, h3;
  3466. if ((h3 = g2) || (h3 = a3 !== null && a3.memoizedState === null ? !1 : (e & 2) !== 0), h3 ? (f4 = !0, b.flags &= -129) : (a3 === null || a3.memoizedState !== null) && (e |= 1), G(L, e & 1), a3 === null)
  3467. return Eg(b), a3 = b.memoizedState, a3 !== null && (a3 = a3.dehydrated, a3 !== null) ? ((b.mode & 1) === 0 ? b.lanes = 1 : a3.data === "$!" ? b.lanes = 8 : b.lanes = 1073741824, null) : (g2 = d.children, a3 = d.fallback, f4 ? (d = b.mode, f4 = b.child, g2 = { mode: "hidden", children: g2 }, (d & 1) === 0 && f4 !== null ? (f4.childLanes = 0, f4.pendingProps = g2) : f4 = pj(g2, d, 0, null), a3 = Tg(a3, d, c, null), f4.return = b, a3.return = b, f4.sibling = a3, b.child = f4, b.child.memoizedState = nj(c), b.memoizedState = mj, a3) : qj(b, g2));
  3468. if (e = a3.memoizedState, e !== null && (h3 = e.dehydrated, h3 !== null)) return rj(a3, b, g2, d, h3, e, c);
  3469. if (f4) {
  3470. f4 = d.fallback, g2 = b.mode, e = a3.child, h3 = e.sibling;
  3471. var k = { mode: "hidden", children: d.children };
  3472. return (g2 & 1) === 0 && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = Pg(e, k), d.subtreeFlags = e.subtreeFlags & 14680064), h3 !== null ? f4 = Pg(h3, f4) : (f4 = Tg(f4, g2, c, null), f4.flags |= 2), f4.return = b, d.return = b, d.sibling = f4, b.child = d, d = f4, f4 = b.child, g2 = a3.child.memoizedState, g2 = g2 === null ? nj(c) : { baseLanes: g2.baseLanes | c, cachePool: null, transitions: g2.transitions }, f4.memoizedState = g2, f4.childLanes = a3.childLanes & ~c, b.memoizedState = mj, d;
  3473. }
  3474. return f4 = a3.child, a3 = f4.sibling, d = Pg(f4, { mode: "visible", children: d.children }), (b.mode & 1) === 0 && (d.lanes = c), d.return = b, d.sibling = null, a3 !== null && (c = b.deletions, c === null ? (b.deletions = [a3], b.flags |= 16) : c.push(a3)), b.child = d, b.memoizedState = null, d;
  3475. }
  3476. function qj(a3, b) {
  3477. return b = pj({ mode: "visible", children: b }, a3.mode, 0, null), b.return = a3, a3.child = b;
  3478. }
  3479. function sj(a3, b, c, d) {
  3480. return d !== null && Jg(d), Ug(b, a3.child, null, c), a3 = qj(b, b.pendingProps.children), a3.flags |= 2, b.memoizedState = null, a3;
  3481. }
  3482. function rj(a3, b, c, d, e, f4, g2) {
  3483. if (c)
  3484. return b.flags & 256 ? (b.flags &= -257, d = Ki(Error(p3(422))), sj(a3, b, g2, d)) : b.memoizedState !== null ? (b.child = a3.child, b.flags |= 128, null) : (f4 = d.fallback, e = b.mode, d = pj({ mode: "visible", children: d.children }, e, 0, null), f4 = Tg(f4, e, g2, null), f4.flags |= 2, d.return = b, f4.return = b, d.sibling = f4, b.child = d, (b.mode & 1) !== 0 && Ug(b, a3.child, null, g2), b.child.memoizedState = nj(g2), b.memoizedState = mj, f4);
  3485. if ((b.mode & 1) === 0) return sj(a3, b, g2, null);
  3486. if (e.data === "$!") {
  3487. if (d = e.nextSibling && e.nextSibling.dataset, d) var h3 = d.dgst;
  3488. return d = h3, f4 = Error(p3(419)), d = Ki(f4, d, void 0), sj(a3, b, g2, d);
  3489. }
  3490. if (h3 = (g2 & a3.childLanes) !== 0, dh || h3) {
  3491. if (d = Q, d !== null) {
  3492. switch (g2 & -g2) {
  3493. case 4:
  3494. e = 2;
  3495. break;
  3496. case 16:
  3497. e = 8;
  3498. break;
  3499. case 64:
  3500. case 128:
  3501. case 256:
  3502. case 512:
  3503. case 1024:
  3504. case 2048:
  3505. case 4096:
  3506. case 8192:
  3507. case 16384:
  3508. case 32768:
  3509. case 65536:
  3510. case 131072:
  3511. case 262144:
  3512. case 524288:
  3513. case 1048576:
  3514. case 2097152:
  3515. case 4194304:
  3516. case 8388608:
  3517. case 16777216:
  3518. case 33554432:
  3519. case 67108864:
  3520. e = 32;
  3521. break;
  3522. case 536870912:
  3523. e = 268435456;
  3524. break;
  3525. default:
  3526. e = 0;
  3527. }
  3528. e = (e & (d.suspendedLanes | g2)) !== 0 ? 0 : e, e !== 0 && e !== f4.retryLane && (f4.retryLane = e, ih(a3, e), gi(d, a3, e, -1));
  3529. }
  3530. return tj(), d = Ki(Error(p3(421))), sj(a3, b, g2, d);
  3531. }
  3532. return e.data === "$?" ? (b.flags |= 128, b.child = a3.child, b = uj.bind(null, a3), e._reactRetry = b, null) : (a3 = f4.treeContext, yg = Lf(e.nextSibling), xg = b, I = !0, zg = null, a3 !== null && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a3.id, sg = a3.overflow, qg = b), b = qj(b, d.children), b.flags |= 4096, b);
  3533. }
  3534. function vj(a3, b, c) {
  3535. a3.lanes |= b;
  3536. var d = a3.alternate;
  3537. d !== null && (d.lanes |= b), bh(a3.return, b, c);
  3538. }
  3539. function wj(a3, b, c, d, e) {
  3540. var f4 = a3.memoizedState;
  3541. f4 === null ? a3.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e } : (f4.isBackwards = b, f4.rendering = null, f4.renderingStartTime = 0, f4.last = d, f4.tail = c, f4.tailMode = e);
  3542. }
  3543. function xj(a3, b, c) {
  3544. var d = b.pendingProps, e = d.revealOrder, f4 = d.tail;
  3545. if (Xi(a3, b, d.children, c), d = L.current, (d & 2) !== 0) d = d & 1 | 2, b.flags |= 128;
  3546. else {
  3547. if (a3 !== null && (a3.flags & 128) !== 0) a: for (a3 = b.child; a3 !== null; ) {
  3548. if (a3.tag === 13) a3.memoizedState !== null && vj(a3, c, b);
  3549. else if (a3.tag === 19) vj(a3, c, b);
  3550. else if (a3.child !== null) {
  3551. a3.child.return = a3, a3 = a3.child;
  3552. continue;
  3553. }
  3554. if (a3 === b) break a;
  3555. for (; a3.sibling === null; ) {
  3556. if (a3.return === null || a3.return === b) break a;
  3557. a3 = a3.return;
  3558. }
  3559. a3.sibling.return = a3.return, a3 = a3.sibling;
  3560. }
  3561. d &= 1;
  3562. }
  3563. if (G(L, d), (b.mode & 1) === 0) b.memoizedState = null;
  3564. else switch (e) {
  3565. case "forwards":
  3566. for (c = b.child, e = null; c !== null; ) a3 = c.alternate, a3 !== null && Ch(a3) === null && (e = c), c = c.sibling;
  3567. c = e, c === null ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null), wj(b, !1, e, c, f4);
  3568. break;
  3569. case "backwards":
  3570. for (c = null, e = b.child, b.child = null; e !== null; ) {
  3571. if (a3 = e.alternate, a3 !== null && Ch(a3) === null) {
  3572. b.child = e;
  3573. break;
  3574. }
  3575. a3 = e.sibling, e.sibling = c, c = e, e = a3;
  3576. }
  3577. wj(b, !0, c, null, f4);
  3578. break;
  3579. case "together":
  3580. wj(b, !1, null, null, void 0);
  3581. break;
  3582. default:
  3583. b.memoizedState = null;
  3584. }
  3585. return b.child;
  3586. }
  3587. function ij(a3, b) {
  3588. (b.mode & 1) === 0 && a3 !== null && (a3.alternate = null, b.alternate = null, b.flags |= 2);
  3589. }
  3590. function Zi(a3, b, c) {
  3591. if (a3 !== null && (b.dependencies = a3.dependencies), rh |= b.lanes, (c & b.childLanes) === 0) return null;
  3592. if (a3 !== null && b.child !== a3.child) throw Error(p3(153));
  3593. if (b.child !== null) {
  3594. for (a3 = b.child, c = Pg(a3, a3.pendingProps), b.child = c, c.return = b; a3.sibling !== null; ) a3 = a3.sibling, c = c.sibling = Pg(a3, a3.pendingProps), c.return = b;
  3595. c.sibling = null;
  3596. }
  3597. return b.child;
  3598. }
  3599. function yj(a3, b, c) {
  3600. switch (b.tag) {
  3601. case 3:
  3602. kj(b), Ig();
  3603. break;
  3604. case 5:
  3605. Ah(b);
  3606. break;
  3607. case 1:
  3608. Zf(b.type) && cg(b);
  3609. break;
  3610. case 4:
  3611. yh(b, b.stateNode.containerInfo);
  3612. break;
  3613. case 10:
  3614. var d = b.type._context, e = b.memoizedProps.value;
  3615. G(Wg, d._currentValue), d._currentValue = e;
  3616. break;
  3617. case 13:
  3618. if (d = b.memoizedState, d !== null)
  3619. return d.dehydrated !== null ? (G(L, L.current & 1), b.flags |= 128, null) : (c & b.child.childLanes) !== 0 ? oj(a3, b, c) : (G(L, L.current & 1), a3 = Zi(a3, b, c), a3 !== null ? a3.sibling : null);
  3620. G(L, L.current & 1);
  3621. break;
  3622. case 19:
  3623. if (d = (c & b.childLanes) !== 0, (a3.flags & 128) !== 0) {
  3624. if (d) return xj(a3, b, c);
  3625. b.flags |= 128;
  3626. }
  3627. if (e = b.memoizedState, e !== null && (e.rendering = null, e.tail = null, e.lastEffect = null), G(L, L.current), d) break;
  3628. return null;
  3629. case 22:
  3630. case 23:
  3631. return b.lanes = 0, dj(a3, b, c);
  3632. }
  3633. return Zi(a3, b, c);
  3634. }
  3635. var zj, Aj, Bj, Cj;
  3636. zj = function(a3, b) {
  3637. for (var c = b.child; c !== null; ) {
  3638. if (c.tag === 5 || c.tag === 6) a3.appendChild(c.stateNode);
  3639. else if (c.tag !== 4 && c.child !== null) {
  3640. c.child.return = c, c = c.child;
  3641. continue;
  3642. }
  3643. if (c === b) break;
  3644. for (; c.sibling === null; ) {
  3645. if (c.return === null || c.return === b) return;
  3646. c = c.return;
  3647. }
  3648. c.sibling.return = c.return, c = c.sibling;
  3649. }
  3650. };
  3651. Aj = function() {
  3652. };
  3653. Bj = function(a3, b, c, d) {
  3654. var e = a3.memoizedProps;
  3655. if (e !== d) {
  3656. a3 = b.stateNode, xh(uh.current);
  3657. var f4 = null;
  3658. switch (c) {
  3659. case "input":
  3660. e = Ya(a3, e), d = Ya(a3, d), f4 = [];
  3661. break;
  3662. case "select":
  3663. e = A3({}, e, { value: void 0 }), d = A3({}, d, { value: void 0 }), f4 = [];
  3664. break;
  3665. case "textarea":
  3666. e = gb(a3, e), d = gb(a3, d), f4 = [];
  3667. break;
  3668. default:
  3669. typeof e.onClick != "function" && typeof d.onClick == "function" && (a3.onclick = Bf);
  3670. }
  3671. ub(c, d);
  3672. var g2;
  3673. c = null;
  3674. for (l in e) if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && e[l] != null) if (l === "style") {
  3675. var h3 = e[l];
  3676. for (g2 in h3) h3.hasOwnProperty(g2) && (c || (c = {}), c[g2] = "");
  3677. } else l !== "dangerouslySetInnerHTML" && l !== "children" && l !== "suppressContentEditableWarning" && l !== "suppressHydrationWarning" && l !== "autoFocus" && (ea.hasOwnProperty(l) ? f4 || (f4 = []) : (f4 = f4 || []).push(l, null));
  3678. for (l in d) {
  3679. var k = d[l];
  3680. if (h3 = e?.[l], d.hasOwnProperty(l) && k !== h3 && (k != null || h3 != null)) if (l === "style") if (h3) {
  3681. for (g2 in h3) !h3.hasOwnProperty(g2) || k && k.hasOwnProperty(g2) || (c || (c = {}), c[g2] = "");
  3682. for (g2 in k) k.hasOwnProperty(g2) && h3[g2] !== k[g2] && (c || (c = {}), c[g2] = k[g2]);
  3683. } else c || (f4 || (f4 = []), f4.push(
  3684. l,
  3685. c
  3686. )), c = k;
  3687. else l === "dangerouslySetInnerHTML" ? (k = k ? k.__html : void 0, h3 = h3 ? h3.__html : void 0, k != null && h3 !== k && (f4 = f4 || []).push(l, k)) : l === "children" ? typeof k != "string" && typeof k != "number" || (f4 = f4 || []).push(l, "" + k) : l !== "suppressContentEditableWarning" && l !== "suppressHydrationWarning" && (ea.hasOwnProperty(l) ? (k != null && l === "onScroll" && D("scroll", a3), f4 || h3 === k || (f4 = [])) : (f4 = f4 || []).push(l, k));
  3688. }
  3689. c && (f4 = f4 || []).push("style", c);
  3690. var l = f4;
  3691. (b.updateQueue = l) && (b.flags |= 4);
  3692. }
  3693. };
  3694. Cj = function(a3, b, c, d) {
  3695. c !== d && (b.flags |= 4);
  3696. };
  3697. function Dj(a3, b) {
  3698. if (!I) switch (a3.tailMode) {
  3699. case "hidden":
  3700. b = a3.tail;
  3701. for (var c = null; b !== null; ) b.alternate !== null && (c = b), b = b.sibling;
  3702. c === null ? a3.tail = null : c.sibling = null;
  3703. break;
  3704. case "collapsed":
  3705. c = a3.tail;
  3706. for (var d = null; c !== null; ) c.alternate !== null && (d = c), c = c.sibling;
  3707. d === null ? b || a3.tail === null ? a3.tail = null : a3.tail.sibling = null : d.sibling = null;
  3708. }
  3709. }
  3710. function S(a3) {
  3711. var b = a3.alternate !== null && a3.alternate.child === a3.child, c = 0, d = 0;
  3712. if (b) for (var e = a3.child; e !== null; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a3, e = e.sibling;
  3713. else for (e = a3.child; e !== null; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a3, e = e.sibling;
  3714. return a3.subtreeFlags |= d, a3.childLanes = c, b;
  3715. }
  3716. function Ej(a3, b, c) {
  3717. var d = b.pendingProps;
  3718. switch (wg(b), b.tag) {
  3719. case 2:
  3720. case 16:
  3721. case 15:
  3722. case 0:
  3723. case 11:
  3724. case 7:
  3725. case 8:
  3726. case 12:
  3727. case 9:
  3728. case 14:
  3729. return S(b), null;
  3730. case 1:
  3731. return Zf(b.type) && $f(), S(b), null;
  3732. case 3:
  3733. return d = b.stateNode, zh(), E(Wf), E(H), Eh(), d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null), (a3 === null || a3.child === null) && (Gg(b) ? b.flags |= 4 : a3 === null || a3.memoizedState.isDehydrated && (b.flags & 256) === 0 || (b.flags |= 1024, zg !== null && (Fj(zg), zg = null))), Aj(a3, b), S(b), null;
  3734. case 5:
  3735. Bh(b);
  3736. var e = xh(wh.current);
  3737. if (c = b.type, a3 !== null && b.stateNode != null) Bj(a3, b, c, d, e), a3.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);
  3738. else {
  3739. if (!d) {
  3740. if (b.stateNode === null) throw Error(p3(166));
  3741. return S(b), null;
  3742. }
  3743. if (a3 = xh(uh.current), Gg(b)) {
  3744. d = b.stateNode, c = b.type;
  3745. var f4 = b.memoizedProps;
  3746. switch (d[Of] = b, d[Pf] = f4, a3 = (b.mode & 1) !== 0, c) {
  3747. case "dialog":
  3748. D("cancel", d), D("close", d);
  3749. break;
  3750. case "iframe":
  3751. case "object":
  3752. case "embed":
  3753. D("load", d);
  3754. break;
  3755. case "video":
  3756. case "audio":
  3757. for (e = 0; e < lf.length; e++) D(lf[e], d);
  3758. break;
  3759. case "source":
  3760. D("error", d);
  3761. break;
  3762. case "img":
  3763. case "image":
  3764. case "link":
  3765. D(
  3766. "error",
  3767. d
  3768. ), D("load", d);
  3769. break;
  3770. case "details":
  3771. D("toggle", d);
  3772. break;
  3773. case "input":
  3774. Za(d, f4), D("invalid", d);
  3775. break;
  3776. case "select":
  3777. d._wrapperState = { wasMultiple: !!f4.multiple }, D("invalid", d);
  3778. break;
  3779. case "textarea":
  3780. hb(d, f4), D("invalid", d);
  3781. }
  3782. ub(c, f4), e = null;
  3783. for (var g2 in f4) if (f4.hasOwnProperty(g2)) {
  3784. var h3 = f4[g2];
  3785. g2 === "children" ? typeof h3 == "string" ? d.textContent !== h3 && (f4.suppressHydrationWarning !== !0 && Af(d.textContent, h3, a3), e = ["children", h3]) : typeof h3 == "number" && d.textContent !== "" + h3 && (f4.suppressHydrationWarning !== !0 && Af(
  3786. d.textContent,
  3787. h3,
  3788. a3
  3789. ), e = ["children", "" + h3]) : ea.hasOwnProperty(g2) && h3 != null && g2 === "onScroll" && D("scroll", d);
  3790. }
  3791. switch (c) {
  3792. case "input":
  3793. Va(d), db(d, f4, !0);
  3794. break;
  3795. case "textarea":
  3796. Va(d), jb(d);
  3797. break;
  3798. case "select":
  3799. case "option":
  3800. break;
  3801. default:
  3802. typeof f4.onClick == "function" && (d.onclick = Bf);
  3803. }
  3804. d = e, b.updateQueue = d, d !== null && (b.flags |= 4);
  3805. } else {
  3806. g2 = e.nodeType === 9 ? e : e.ownerDocument, a3 === "http://www.w3.org/1999/xhtml" && (a3 = kb(c)), a3 === "http://www.w3.org/1999/xhtml" ? c === "script" ? (a3 = g2.createElement("div"), a3.innerHTML = "<script><\/script>", a3 = a3.removeChild(a3.firstChild)) : typeof d.is == "string" ? a3 = g2.createElement(c, { is: d.is }) : (a3 = g2.createElement(c), c === "select" && (g2 = a3, d.multiple ? g2.multiple = !0 : d.size && (g2.size = d.size))) : a3 = g2.createElementNS(a3, c), a3[Of] = b, a3[Pf] = d, zj(a3, b, !1, !1), b.stateNode = a3;
  3807. a: {
  3808. switch (g2 = vb(c, d), c) {
  3809. case "dialog":
  3810. D("cancel", a3), D("close", a3), e = d;
  3811. break;
  3812. case "iframe":
  3813. case "object":
  3814. case "embed":
  3815. D("load", a3), e = d;
  3816. break;
  3817. case "video":
  3818. case "audio":
  3819. for (e = 0; e < lf.length; e++) D(lf[e], a3);
  3820. e = d;
  3821. break;
  3822. case "source":
  3823. D("error", a3), e = d;
  3824. break;
  3825. case "img":
  3826. case "image":
  3827. case "link":
  3828. D(
  3829. "error",
  3830. a3
  3831. ), D("load", a3), e = d;
  3832. break;
  3833. case "details":
  3834. D("toggle", a3), e = d;
  3835. break;
  3836. case "input":
  3837. Za(a3, d), e = Ya(a3, d), D("invalid", a3);
  3838. break;
  3839. case "option":
  3840. e = d;
  3841. break;
  3842. case "select":
  3843. a3._wrapperState = { wasMultiple: !!d.multiple }, e = A3({}, d, { value: void 0 }), D("invalid", a3);
  3844. break;
  3845. case "textarea":
  3846. hb(a3, d), e = gb(a3, d), D("invalid", a3);
  3847. break;
  3848. default:
  3849. e = d;
  3850. }
  3851. ub(c, e), h3 = e;
  3852. for (f4 in h3) if (h3.hasOwnProperty(f4)) {
  3853. var k = h3[f4];
  3854. f4 === "style" ? sb2(a3, k) : f4 === "dangerouslySetInnerHTML" ? (k = k ? k.__html : void 0, k != null && nb(a3, k)) : f4 === "children" ? typeof k == "string" ? (c !== "textarea" || k !== "") && ob(a3, k) : typeof k == "number" && ob(a3, "" + k) : f4 !== "suppressContentEditableWarning" && f4 !== "suppressHydrationWarning" && f4 !== "autoFocus" && (ea.hasOwnProperty(f4) ? k != null && f4 === "onScroll" && D("scroll", a3) : k != null && ta(a3, f4, k, g2));
  3855. }
  3856. switch (c) {
  3857. case "input":
  3858. Va(a3), db(a3, d, !1);
  3859. break;
  3860. case "textarea":
  3861. Va(a3), jb(a3);
  3862. break;
  3863. case "option":
  3864. d.value != null && a3.setAttribute("value", "" + Sa(d.value));
  3865. break;
  3866. case "select":
  3867. a3.multiple = !!d.multiple, f4 = d.value, f4 != null ? fb(a3, !!d.multiple, f4, !1) : d.defaultValue != null && fb(
  3868. a3,
  3869. !!d.multiple,
  3870. d.defaultValue,
  3871. !0
  3872. );
  3873. break;
  3874. default:
  3875. typeof e.onClick == "function" && (a3.onclick = Bf);
  3876. }
  3877. switch (c) {
  3878. case "button":
  3879. case "input":
  3880. case "select":
  3881. case "textarea":
  3882. d = !!d.autoFocus;
  3883. break a;
  3884. case "img":
  3885. d = !0;
  3886. break a;
  3887. default:
  3888. d = !1;
  3889. }
  3890. }
  3891. d && (b.flags |= 4);
  3892. }
  3893. b.ref !== null && (b.flags |= 512, b.flags |= 2097152);
  3894. }
  3895. return S(b), null;
  3896. case 6:
  3897. if (a3 && b.stateNode != null) Cj(a3, b, a3.memoizedProps, d);
  3898. else {
  3899. if (typeof d != "string" && b.stateNode === null) throw Error(p3(166));
  3900. if (c = xh(wh.current), xh(uh.current), Gg(b)) {
  3901. if (d = b.stateNode, c = b.memoizedProps, d[Of] = b, (f4 = d.nodeValue !== c) && (a3 = xg, a3 !== null)) switch (a3.tag) {
  3902. case 3:
  3903. Af(d.nodeValue, c, (a3.mode & 1) !== 0);
  3904. break;
  3905. case 5:
  3906. a3.memoizedProps.suppressHydrationWarning !== !0 && Af(d.nodeValue, c, (a3.mode & 1) !== 0);
  3907. }
  3908. f4 && (b.flags |= 4);
  3909. } else d = (c.nodeType === 9 ? c : c.ownerDocument).createTextNode(d), d[Of] = b, b.stateNode = d;
  3910. }
  3911. return S(b), null;
  3912. case 13:
  3913. if (E(L), d = b.memoizedState, a3 === null || a3.memoizedState !== null && a3.memoizedState.dehydrated !== null) {
  3914. if (I && yg !== null && (b.mode & 1) !== 0 && (b.flags & 128) === 0) Hg(), Ig(), b.flags |= 98560, f4 = !1;
  3915. else if (f4 = Gg(b), d !== null && d.dehydrated !== null) {
  3916. if (a3 === null) {
  3917. if (!f4) throw Error(p3(318));
  3918. if (f4 = b.memoizedState, f4 = f4 !== null ? f4.dehydrated : null, !f4) throw Error(p3(317));
  3919. f4[Of] = b;
  3920. } else Ig(), (b.flags & 128) === 0 && (b.memoizedState = null), b.flags |= 4;
  3921. S(b), f4 = !1;
  3922. } else zg !== null && (Fj(zg), zg = null), f4 = !0;
  3923. if (!f4) return b.flags & 65536 ? b : null;
  3924. }
  3925. return (b.flags & 128) !== 0 ? (b.lanes = c, b) : (d = d !== null, d !== (a3 !== null && a3.memoizedState !== null) && d && (b.child.flags |= 8192, (b.mode & 1) !== 0 && (a3 === null || (L.current & 1) !== 0 ? T2 === 0 && (T2 = 3) : tj())), b.updateQueue !== null && (b.flags |= 4), S(b), null);
  3926. case 4:
  3927. return zh(), Aj(a3, b), a3 === null && sf(b.stateNode.containerInfo), S(b), null;
  3928. case 10:
  3929. return ah(b.type._context), S(b), null;
  3930. case 17:
  3931. return Zf(b.type) && $f(), S(b), null;
  3932. case 19:
  3933. if (E(L), f4 = b.memoizedState, f4 === null) return S(b), null;
  3934. if (d = (b.flags & 128) !== 0, g2 = f4.rendering, g2 === null) if (d) Dj(f4, !1);
  3935. else {
  3936. if (T2 !== 0 || a3 !== null && (a3.flags & 128) !== 0) for (a3 = b.child; a3 !== null; ) {
  3937. if (g2 = Ch(a3), g2 !== null) {
  3938. for (b.flags |= 128, Dj(f4, !1), d = g2.updateQueue, d !== null && (b.updateQueue = d, b.flags |= 4), b.subtreeFlags = 0, d = c, c = b.child; c !== null; ) f4 = c, a3 = d, f4.flags &= 14680066, g2 = f4.alternate, g2 === null ? (f4.childLanes = 0, f4.lanes = a3, f4.child = null, f4.subtreeFlags = 0, f4.memoizedProps = null, f4.memoizedState = null, f4.updateQueue = null, f4.dependencies = null, f4.stateNode = null) : (f4.childLanes = g2.childLanes, f4.lanes = g2.lanes, f4.child = g2.child, f4.subtreeFlags = 0, f4.deletions = null, f4.memoizedProps = g2.memoizedProps, f4.memoizedState = g2.memoizedState, f4.updateQueue = g2.updateQueue, f4.type = g2.type, a3 = g2.dependencies, f4.dependencies = a3 === null ? null : { lanes: a3.lanes, firstContext: a3.firstContext }), c = c.sibling;
  3939. return G(L, L.current & 1 | 2), b.child;
  3940. }
  3941. a3 = a3.sibling;
  3942. }
  3943. f4.tail !== null && B3() > Gj && (b.flags |= 128, d = !0, Dj(f4, !1), b.lanes = 4194304);
  3944. }
  3945. else {
  3946. if (!d) if (a3 = Ch(g2), a3 !== null) {
  3947. if (b.flags |= 128, d = !0, c = a3.updateQueue, c !== null && (b.updateQueue = c, b.flags |= 4), Dj(f4, !0), f4.tail === null && f4.tailMode === "hidden" && !g2.alternate && !I) return S(b), null;
  3948. } else 2 * B3() - f4.renderingStartTime > Gj && c !== 1073741824 && (b.flags |= 128, d = !0, Dj(f4, !1), b.lanes = 4194304);
  3949. f4.isBackwards ? (g2.sibling = b.child, b.child = g2) : (c = f4.last, c !== null ? c.sibling = g2 : b.child = g2, f4.last = g2);
  3950. }
  3951. return f4.tail !== null ? (b = f4.tail, f4.rendering = b, f4.tail = b.sibling, f4.renderingStartTime = B3(), b.sibling = null, c = L.current, G(L, d ? c & 1 | 2 : c & 1), b) : (S(b), null);
  3952. case 22:
  3953. case 23:
  3954. return Hj(), d = b.memoizedState !== null, a3 !== null && a3.memoizedState !== null !== d && (b.flags |= 8192), d && (b.mode & 1) !== 0 ? (fj & 1073741824) !== 0 && (S(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : S(b), null;
  3955. case 24:
  3956. return null;
  3957. case 25:
  3958. return null;
  3959. }
  3960. throw Error(p3(156, b.tag));
  3961. }
  3962. function Ij(a3, b) {
  3963. switch (wg(b), b.tag) {
  3964. case 1:
  3965. return Zf(b.type) && $f(), a3 = b.flags, a3 & 65536 ? (b.flags = a3 & -65537 | 128, b) : null;
  3966. case 3:
  3967. return zh(), E(Wf), E(H), Eh(), a3 = b.flags, (a3 & 65536) !== 0 && (a3 & 128) === 0 ? (b.flags = a3 & -65537 | 128, b) : null;
  3968. case 5:
  3969. return Bh(b), null;
  3970. case 13:
  3971. if (E(L), a3 = b.memoizedState, a3 !== null && a3.dehydrated !== null) {
  3972. if (b.alternate === null) throw Error(p3(340));
  3973. Ig();
  3974. }
  3975. return a3 = b.flags, a3 & 65536 ? (b.flags = a3 & -65537 | 128, b) : null;
  3976. case 19:
  3977. return E(L), null;
  3978. case 4:
  3979. return zh(), null;
  3980. case 10:
  3981. return ah(b.type._context), null;
  3982. case 22:
  3983. case 23:
  3984. return Hj(), null;
  3985. case 24:
  3986. return null;
  3987. default:
  3988. return null;
  3989. }
  3990. }
  3991. var Jj = !1, U = !1, Kj = typeof WeakSet == "function" ? WeakSet : Set, V = null;
  3992. function Lj(a3, b) {
  3993. var c = a3.ref;
  3994. if (c !== null) if (typeof c == "function") try {
  3995. c(null);
  3996. } catch (d) {
  3997. W(a3, b, d);
  3998. }
  3999. else c.current = null;
  4000. }
  4001. function Mj(a3, b, c) {
  4002. try {
  4003. c();
  4004. } catch (d) {
  4005. W(a3, b, d);
  4006. }
  4007. }
  4008. var Nj = !1;
  4009. function Oj(a3, b) {
  4010. if (Cf = dd, a3 = Me(), Ne(a3)) {
  4011. if ("selectionStart" in a3) var c = { start: a3.selectionStart, end: a3.selectionEnd };
  4012. else a: {
  4013. c = (c = a3.ownerDocument) && c.defaultView || window;
  4014. var d = c.getSelection && c.getSelection();
  4015. if (d && d.rangeCount !== 0) {
  4016. c = d.anchorNode;
  4017. var e = d.anchorOffset, f4 = d.focusNode;
  4018. d = d.focusOffset;
  4019. try {
  4020. c.nodeType, f4.nodeType;
  4021. } catch {
  4022. c = null;
  4023. break a;
  4024. }
  4025. var g2 = 0, h3 = -1, k = -1, l = 0, m3 = 0, q = a3, r2 = null;
  4026. b: for (; ; ) {
  4027. for (var y; q !== c || e !== 0 && q.nodeType !== 3 || (h3 = g2 + e), q !== f4 || d !== 0 && q.nodeType !== 3 || (k = g2 + d), q.nodeType === 3 && (g2 += q.nodeValue.length), (y = q.firstChild) !== null; )
  4028. r2 = q, q = y;
  4029. for (; ; ) {
  4030. if (q === a3) break b;
  4031. if (r2 === c && ++l === e && (h3 = g2), r2 === f4 && ++m3 === d && (k = g2), (y = q.nextSibling) !== null) break;
  4032. q = r2, r2 = q.parentNode;
  4033. }
  4034. q = y;
  4035. }
  4036. c = h3 === -1 || k === -1 ? null : { start: h3, end: k };
  4037. } else c = null;
  4038. }
  4039. c = c || { start: 0, end: 0 };
  4040. } else c = null;
  4041. for (Df = { focusedElem: a3, selectionRange: c }, dd = !1, V = b; V !== null; ) if (b = V, a3 = b.child, (b.subtreeFlags & 1028) !== 0 && a3 !== null) a3.return = b, V = a3;
  4042. else for (; V !== null; ) {
  4043. b = V;
  4044. try {
  4045. var n = b.alternate;
  4046. if ((b.flags & 1024) !== 0) switch (b.tag) {
  4047. case 0:
  4048. case 11:
  4049. case 15:
  4050. break;
  4051. case 1:
  4052. if (n !== null) {
  4053. var t = n.memoizedProps, J = n.memoizedState, x = b.stateNode, w = x.getSnapshotBeforeUpdate(b.elementType === b.type ? t : Ci(b.type, t), J);
  4054. x.__reactInternalSnapshotBeforeUpdate = w;
  4055. }
  4056. break;
  4057. case 3:
  4058. var u2 = b.stateNode.containerInfo;
  4059. u2.nodeType === 1 ? u2.textContent = "" : u2.nodeType === 9 && u2.documentElement && u2.removeChild(u2.documentElement);
  4060. break;
  4061. case 5:
  4062. case 6:
  4063. case 4:
  4064. case 17:
  4065. break;
  4066. default:
  4067. throw Error(p3(163));
  4068. }
  4069. } catch (F) {
  4070. W(b, b.return, F);
  4071. }
  4072. if (a3 = b.sibling, a3 !== null) {
  4073. a3.return = b.return, V = a3;
  4074. break;
  4075. }
  4076. V = b.return;
  4077. }
  4078. return n = Nj, Nj = !1, n;
  4079. }
  4080. function Pj(a3, b, c) {
  4081. var d = b.updateQueue;
  4082. if (d = d !== null ? d.lastEffect : null, d !== null) {
  4083. var e = d = d.next;
  4084. do {
  4085. if ((e.tag & a3) === a3) {
  4086. var f4 = e.destroy;
  4087. e.destroy = void 0, f4 !== void 0 && Mj(b, c, f4);
  4088. }
  4089. e = e.next;
  4090. } while (e !== d);
  4091. }
  4092. }
  4093. function Qj(a3, b) {
  4094. if (b = b.updateQueue, b = b !== null ? b.lastEffect : null, b !== null) {
  4095. var c = b = b.next;
  4096. do {
  4097. if ((c.tag & a3) === a3) {
  4098. var d = c.create;
  4099. c.destroy = d();
  4100. }
  4101. c = c.next;
  4102. } while (c !== b);
  4103. }
  4104. }
  4105. function Rj(a3) {
  4106. var b = a3.ref;
  4107. if (b !== null) {
  4108. var c = a3.stateNode;
  4109. a3.tag, a3 = c, typeof b == "function" ? b(a3) : b.current = a3;
  4110. }
  4111. }
  4112. function Sj(a3) {
  4113. var b = a3.alternate;
  4114. b !== null && (a3.alternate = null, Sj(b)), a3.child = null, a3.deletions = null, a3.sibling = null, a3.tag === 5 && (b = a3.stateNode, b !== null && (delete b[Of], delete b[Pf], delete b[of], delete b[Qf], delete b[Rf])), a3.stateNode = null, a3.return = null, a3.dependencies = null, a3.memoizedProps = null, a3.memoizedState = null, a3.pendingProps = null, a3.stateNode = null, a3.updateQueue = null;
  4115. }
  4116. function Tj(a3) {
  4117. return a3.tag === 5 || a3.tag === 3 || a3.tag === 4;
  4118. }
  4119. function Uj(a3) {
  4120. a: for (; ; ) {
  4121. for (; a3.sibling === null; ) {
  4122. if (a3.return === null || Tj(a3.return)) return null;
  4123. a3 = a3.return;
  4124. }
  4125. for (a3.sibling.return = a3.return, a3 = a3.sibling; a3.tag !== 5 && a3.tag !== 6 && a3.tag !== 18; ) {
  4126. if (a3.flags & 2 || a3.child === null || a3.tag === 4) continue a;
  4127. a3.child.return = a3, a3 = a3.child;
  4128. }
  4129. if (!(a3.flags & 2)) return a3.stateNode;
  4130. }
  4131. }
  4132. function Vj(a3, b, c) {
  4133. var d = a3.tag;
  4134. if (d === 5 || d === 6) a3 = a3.stateNode, b ? c.nodeType === 8 ? c.parentNode.insertBefore(a3, b) : c.insertBefore(a3, b) : (c.nodeType === 8 ? (b = c.parentNode, b.insertBefore(a3, c)) : (b = c, b.appendChild(a3)), c = c._reactRootContainer, c != null || b.onclick !== null || (b.onclick = Bf));
  4135. else if (d !== 4 && (a3 = a3.child, a3 !== null)) for (Vj(a3, b, c), a3 = a3.sibling; a3 !== null; ) Vj(a3, b, c), a3 = a3.sibling;
  4136. }
  4137. function Wj(a3, b, c) {
  4138. var d = a3.tag;
  4139. if (d === 5 || d === 6) a3 = a3.stateNode, b ? c.insertBefore(a3, b) : c.appendChild(a3);
  4140. else if (d !== 4 && (a3 = a3.child, a3 !== null)) for (Wj(a3, b, c), a3 = a3.sibling; a3 !== null; ) Wj(a3, b, c), a3 = a3.sibling;
  4141. }
  4142. var X = null, Xj = !1;
  4143. function Yj(a3, b, c) {
  4144. for (c = c.child; c !== null; ) Zj(a3, b, c), c = c.sibling;
  4145. }
  4146. function Zj(a3, b, c) {
  4147. if (lc && typeof lc.onCommitFiberUnmount == "function") try {
  4148. lc.onCommitFiberUnmount(kc, c);
  4149. } catch {
  4150. }
  4151. switch (c.tag) {
  4152. case 5:
  4153. U || Lj(c, b);
  4154. case 6:
  4155. var d = X, e = Xj;
  4156. X = null, Yj(a3, b, c), X = d, Xj = e, X !== null && (Xj ? (a3 = X, c = c.stateNode, a3.nodeType === 8 ? a3.parentNode.removeChild(c) : a3.removeChild(c)) : X.removeChild(c.stateNode));
  4157. break;
  4158. case 18:
  4159. X !== null && (Xj ? (a3 = X, c = c.stateNode, a3.nodeType === 8 ? Kf(a3.parentNode, c) : a3.nodeType === 1 && Kf(a3, c), bd(a3)) : Kf(X, c.stateNode));
  4160. break;
  4161. case 4:
  4162. d = X, e = Xj, X = c.stateNode.containerInfo, Xj = !0, Yj(a3, b, c), X = d, Xj = e;
  4163. break;
  4164. case 0:
  4165. case 11:
  4166. case 14:
  4167. case 15:
  4168. if (!U && (d = c.updateQueue, d !== null && (d = d.lastEffect, d !== null))) {
  4169. e = d = d.next;
  4170. do {
  4171. var f4 = e, g2 = f4.destroy;
  4172. f4 = f4.tag, g2 !== void 0 && ((f4 & 2) !== 0 || (f4 & 4) !== 0) && Mj(c, b, g2), e = e.next;
  4173. } while (e !== d);
  4174. }
  4175. Yj(a3, b, c);
  4176. break;
  4177. case 1:
  4178. if (!U && (Lj(c, b), d = c.stateNode, typeof d.componentWillUnmount == "function")) try {
  4179. d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount();
  4180. } catch (h3) {
  4181. W(c, b, h3);
  4182. }
  4183. Yj(a3, b, c);
  4184. break;
  4185. case 21:
  4186. Yj(a3, b, c);
  4187. break;
  4188. case 22:
  4189. c.mode & 1 ? (U = (d = U) || c.memoizedState !== null, Yj(a3, b, c), U = d) : Yj(a3, b, c);
  4190. break;
  4191. default:
  4192. Yj(a3, b, c);
  4193. }
  4194. }
  4195. function ak(a3) {
  4196. var b = a3.updateQueue;
  4197. if (b !== null) {
  4198. a3.updateQueue = null;
  4199. var c = a3.stateNode;
  4200. c === null && (c = a3.stateNode = new Kj()), b.forEach(function(b2) {
  4201. var d = bk.bind(null, a3, b2);
  4202. c.has(b2) || (c.add(b2), b2.then(d, d));
  4203. });
  4204. }
  4205. }
  4206. function ck(a3, b) {
  4207. var c = b.deletions;
  4208. if (c !== null) for (var d = 0; d < c.length; d++) {
  4209. var e = c[d];
  4210. try {
  4211. var f4 = a3, g2 = b, h3 = g2;
  4212. a: for (; h3 !== null; ) {
  4213. switch (h3.tag) {
  4214. case 5:
  4215. X = h3.stateNode, Xj = !1;
  4216. break a;
  4217. case 3:
  4218. X = h3.stateNode.containerInfo, Xj = !0;
  4219. break a;
  4220. case 4:
  4221. X = h3.stateNode.containerInfo, Xj = !0;
  4222. break a;
  4223. }
  4224. h3 = h3.return;
  4225. }
  4226. if (X === null) throw Error(p3(160));
  4227. Zj(f4, g2, e), X = null, Xj = !1;
  4228. var k = e.alternate;
  4229. k !== null && (k.return = null), e.return = null;
  4230. } catch (l) {
  4231. W(e, b, l);
  4232. }
  4233. }
  4234. if (b.subtreeFlags & 12854) for (b = b.child; b !== null; ) dk(b, a3), b = b.sibling;
  4235. }
  4236. function dk(a3, b) {
  4237. var c = a3.alternate, d = a3.flags;
  4238. switch (a3.tag) {
  4239. case 0:
  4240. case 11:
  4241. case 14:
  4242. case 15:
  4243. if (ck(b, a3), ek(a3), d & 4) {
  4244. try {
  4245. Pj(3, a3, a3.return), Qj(3, a3);
  4246. } catch (t) {
  4247. W(a3, a3.return, t);
  4248. }
  4249. try {
  4250. Pj(5, a3, a3.return);
  4251. } catch (t) {
  4252. W(a3, a3.return, t);
  4253. }
  4254. }
  4255. break;
  4256. case 1:
  4257. ck(b, a3), ek(a3), d & 512 && c !== null && Lj(c, c.return);
  4258. break;
  4259. case 5:
  4260. if (ck(b, a3), ek(a3), d & 512 && c !== null && Lj(c, c.return), a3.flags & 32) {
  4261. var e = a3.stateNode;
  4262. try {
  4263. ob(e, "");
  4264. } catch (t) {
  4265. W(a3, a3.return, t);
  4266. }
  4267. }
  4268. if (d & 4 && (e = a3.stateNode, e != null)) {
  4269. var f4 = a3.memoizedProps, g2 = c !== null ? c.memoizedProps : f4, h3 = a3.type, k = a3.updateQueue;
  4270. if (a3.updateQueue = null, k !== null) try {
  4271. h3 === "input" && f4.type === "radio" && f4.name != null && ab(e, f4), vb(h3, g2);
  4272. var l = vb(h3, f4);
  4273. for (g2 = 0; g2 < k.length; g2 += 2) {
  4274. var m3 = k[g2], q = k[g2 + 1];
  4275. m3 === "style" ? sb2(e, q) : m3 === "dangerouslySetInnerHTML" ? nb(e, q) : m3 === "children" ? ob(e, q) : ta(e, m3, q, l);
  4276. }
  4277. switch (h3) {
  4278. case "input":
  4279. bb(e, f4);
  4280. break;
  4281. case "textarea":
  4282. ib(e, f4);
  4283. break;
  4284. case "select":
  4285. var r2 = e._wrapperState.wasMultiple;
  4286. e._wrapperState.wasMultiple = !!f4.multiple;
  4287. var y = f4.value;
  4288. y != null ? fb(e, !!f4.multiple, y, !1) : r2 !== !!f4.multiple && (f4.defaultValue != null ? fb(
  4289. e,
  4290. !!f4.multiple,
  4291. f4.defaultValue,
  4292. !0
  4293. ) : fb(e, !!f4.multiple, f4.multiple ? [] : "", !1));
  4294. }
  4295. e[Pf] = f4;
  4296. } catch (t) {
  4297. W(a3, a3.return, t);
  4298. }
  4299. }
  4300. break;
  4301. case 6:
  4302. if (ck(b, a3), ek(a3), d & 4) {
  4303. if (a3.stateNode === null) throw Error(p3(162));
  4304. e = a3.stateNode, f4 = a3.memoizedProps;
  4305. try {
  4306. e.nodeValue = f4;
  4307. } catch (t) {
  4308. W(a3, a3.return, t);
  4309. }
  4310. }
  4311. break;
  4312. case 3:
  4313. if (ck(b, a3), ek(a3), d & 4 && c !== null && c.memoizedState.isDehydrated) try {
  4314. bd(b.containerInfo);
  4315. } catch (t) {
  4316. W(a3, a3.return, t);
  4317. }
  4318. break;
  4319. case 4:
  4320. ck(b, a3), ek(a3);
  4321. break;
  4322. case 13:
  4323. ck(b, a3), ek(a3), e = a3.child, e.flags & 8192 && (f4 = e.memoizedState !== null, e.stateNode.isHidden = f4, !f4 || e.alternate !== null && e.alternate.memoizedState !== null || (fk = B3())), d & 4 && ak(a3);
  4324. break;
  4325. case 22:
  4326. if (m3 = c !== null && c.memoizedState !== null, a3.mode & 1 ? (U = (l = U) || m3, ck(b, a3), U = l) : ck(b, a3), ek(a3), d & 8192) {
  4327. if (l = a3.memoizedState !== null, (a3.stateNode.isHidden = l) && !m3 && (a3.mode & 1) !== 0) for (V = a3, m3 = a3.child; m3 !== null; ) {
  4328. for (q = V = m3; V !== null; ) {
  4329. switch (r2 = V, y = r2.child, r2.tag) {
  4330. case 0:
  4331. case 11:
  4332. case 14:
  4333. case 15:
  4334. Pj(4, r2, r2.return);
  4335. break;
  4336. case 1:
  4337. Lj(r2, r2.return);
  4338. var n = r2.stateNode;
  4339. if (typeof n.componentWillUnmount == "function") {
  4340. d = r2, c = r2.return;
  4341. try {
  4342. b = d, n.props = b.memoizedProps, n.state = b.memoizedState, n.componentWillUnmount();
  4343. } catch (t) {
  4344. W(d, c, t);
  4345. }
  4346. }
  4347. break;
  4348. case 5:
  4349. Lj(r2, r2.return);
  4350. break;
  4351. case 22:
  4352. if (r2.memoizedState !== null) {
  4353. gk(q);
  4354. continue;
  4355. }
  4356. }
  4357. y !== null ? (y.return = r2, V = y) : gk(q);
  4358. }
  4359. m3 = m3.sibling;
  4360. }
  4361. a: for (m3 = null, q = a3; ; ) {
  4362. if (q.tag === 5) {
  4363. if (m3 === null) {
  4364. m3 = q;
  4365. try {
  4366. e = q.stateNode, l ? (f4 = e.style, typeof f4.setProperty == "function" ? f4.setProperty("display", "none", "important") : f4.display = "none") : (h3 = q.stateNode, k = q.memoizedProps.style, g2 = k != null && k.hasOwnProperty("display") ? k.display : null, h3.style.display = rb("display", g2));
  4367. } catch (t) {
  4368. W(a3, a3.return, t);
  4369. }
  4370. }
  4371. } else if (q.tag === 6) {
  4372. if (m3 === null) try {
  4373. q.stateNode.nodeValue = l ? "" : q.memoizedProps;
  4374. } catch (t) {
  4375. W(a3, a3.return, t);
  4376. }
  4377. } else if ((q.tag !== 22 && q.tag !== 23 || q.memoizedState === null || q === a3) && q.child !== null) {
  4378. q.child.return = q, q = q.child;
  4379. continue;
  4380. }
  4381. if (q === a3) break a;
  4382. for (; q.sibling === null; ) {
  4383. if (q.return === null || q.return === a3) break a;
  4384. m3 === q && (m3 = null), q = q.return;
  4385. }
  4386. m3 === q && (m3 = null), q.sibling.return = q.return, q = q.sibling;
  4387. }
  4388. }
  4389. break;
  4390. case 19:
  4391. ck(b, a3), ek(a3), d & 4 && ak(a3);
  4392. break;
  4393. case 21:
  4394. break;
  4395. default:
  4396. ck(
  4397. b,
  4398. a3
  4399. ), ek(a3);
  4400. }
  4401. }
  4402. function ek(a3) {
  4403. var b = a3.flags;
  4404. if (b & 2) {
  4405. try {
  4406. a: {
  4407. for (var c = a3.return; c !== null; ) {
  4408. if (Tj(c)) {
  4409. var d = c;
  4410. break a;
  4411. }
  4412. c = c.return;
  4413. }
  4414. throw Error(p3(160));
  4415. }
  4416. switch (d.tag) {
  4417. case 5:
  4418. var e = d.stateNode;
  4419. d.flags & 32 && (ob(e, ""), d.flags &= -33);
  4420. var f4 = Uj(a3);
  4421. Wj(a3, f4, e);
  4422. break;
  4423. case 3:
  4424. case 4:
  4425. var g2 = d.stateNode.containerInfo, h3 = Uj(a3);
  4426. Vj(a3, h3, g2);
  4427. break;
  4428. default:
  4429. throw Error(p3(161));
  4430. }
  4431. } catch (k) {
  4432. W(a3, a3.return, k);
  4433. }
  4434. a3.flags &= -3;
  4435. }
  4436. b & 4096 && (a3.flags &= -4097);
  4437. }
  4438. function hk(a3, b, c) {
  4439. V = a3, ik(a3, b, c);
  4440. }
  4441. function ik(a3, b, c) {
  4442. for (var d = (a3.mode & 1) !== 0; V !== null; ) {
  4443. var e = V, f4 = e.child;
  4444. if (e.tag === 22 && d) {
  4445. var g2 = e.memoizedState !== null || Jj;
  4446. if (!g2) {
  4447. var h3 = e.alternate, k = h3 !== null && h3.memoizedState !== null || U;
  4448. h3 = Jj;
  4449. var l = U;
  4450. if (Jj = g2, (U = k) && !l) for (V = e; V !== null; ) g2 = V, k = g2.child, g2.tag === 22 && g2.memoizedState !== null ? jk(e) : k !== null ? (k.return = g2, V = k) : jk(e);
  4451. for (; f4 !== null; ) V = f4, ik(f4, b, c), f4 = f4.sibling;
  4452. V = e, Jj = h3, U = l;
  4453. }
  4454. kk(a3, b, c);
  4455. } else (e.subtreeFlags & 8772) !== 0 && f4 !== null ? (f4.return = e, V = f4) : kk(a3, b, c);
  4456. }
  4457. }
  4458. function kk(a3) {
  4459. for (; V !== null; ) {
  4460. var b = V;
  4461. if ((b.flags & 8772) !== 0) {
  4462. var c = b.alternate;
  4463. try {
  4464. if ((b.flags & 8772) !== 0) switch (b.tag) {
  4465. case 0:
  4466. case 11:
  4467. case 15:
  4468. U || Qj(5, b);
  4469. break;
  4470. case 1:
  4471. var d = b.stateNode;
  4472. if (b.flags & 4 && !U) if (c === null) d.componentDidMount();
  4473. else {
  4474. var e = b.elementType === b.type ? c.memoizedProps : Ci(b.type, c.memoizedProps);
  4475. d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate);
  4476. }
  4477. var f4 = b.updateQueue;
  4478. f4 !== null && sh(b, f4, d);
  4479. break;
  4480. case 3:
  4481. var g2 = b.updateQueue;
  4482. if (g2 !== null) {
  4483. if (c = null, b.child !== null) switch (b.child.tag) {
  4484. case 5:
  4485. c = b.child.stateNode;
  4486. break;
  4487. case 1:
  4488. c = b.child.stateNode;
  4489. }
  4490. sh(b, g2, c);
  4491. }
  4492. break;
  4493. case 5:
  4494. var h3 = b.stateNode;
  4495. if (c === null && b.flags & 4) {
  4496. c = h3;
  4497. var k = b.memoizedProps;
  4498. switch (b.type) {
  4499. case "button":
  4500. case "input":
  4501. case "select":
  4502. case "textarea":
  4503. k.autoFocus && c.focus();
  4504. break;
  4505. case "img":
  4506. k.src && (c.src = k.src);
  4507. }
  4508. }
  4509. break;
  4510. case 6:
  4511. break;
  4512. case 4:
  4513. break;
  4514. case 12:
  4515. break;
  4516. case 13:
  4517. if (b.memoizedState === null) {
  4518. var l = b.alternate;
  4519. if (l !== null) {
  4520. var m3 = l.memoizedState;
  4521. if (m3 !== null) {
  4522. var q = m3.dehydrated;
  4523. q !== null && bd(q);
  4524. }
  4525. }
  4526. }
  4527. break;
  4528. case 19:
  4529. case 17:
  4530. case 21:
  4531. case 22:
  4532. case 23:
  4533. case 25:
  4534. break;
  4535. default:
  4536. throw Error(p3(163));
  4537. }
  4538. U || b.flags & 512 && Rj(b);
  4539. } catch (r2) {
  4540. W(b, b.return, r2);
  4541. }
  4542. }
  4543. if (b === a3) {
  4544. V = null;
  4545. break;
  4546. }
  4547. if (c = b.sibling, c !== null) {
  4548. c.return = b.return, V = c;
  4549. break;
  4550. }
  4551. V = b.return;
  4552. }
  4553. }
  4554. function gk(a3) {
  4555. for (; V !== null; ) {
  4556. var b = V;
  4557. if (b === a3) {
  4558. V = null;
  4559. break;
  4560. }
  4561. var c = b.sibling;
  4562. if (c !== null) {
  4563. c.return = b.return, V = c;
  4564. break;
  4565. }
  4566. V = b.return;
  4567. }
  4568. }
  4569. function jk(a3) {
  4570. for (; V !== null; ) {
  4571. var b = V;
  4572. try {
  4573. switch (b.tag) {
  4574. case 0:
  4575. case 11:
  4576. case 15:
  4577. var c = b.return;
  4578. try {
  4579. Qj(4, b);
  4580. } catch (k) {
  4581. W(b, c, k);
  4582. }
  4583. break;
  4584. case 1:
  4585. var d = b.stateNode;
  4586. if (typeof d.componentDidMount == "function") {
  4587. var e = b.return;
  4588. try {
  4589. d.componentDidMount();
  4590. } catch (k) {
  4591. W(b, e, k);
  4592. }
  4593. }
  4594. var f4 = b.return;
  4595. try {
  4596. Rj(b);
  4597. } catch (k) {
  4598. W(b, f4, k);
  4599. }
  4600. break;
  4601. case 5:
  4602. var g2 = b.return;
  4603. try {
  4604. Rj(b);
  4605. } catch (k) {
  4606. W(b, g2, k);
  4607. }
  4608. }
  4609. } catch (k) {
  4610. W(b, b.return, k);
  4611. }
  4612. if (b === a3) {
  4613. V = null;
  4614. break;
  4615. }
  4616. var h3 = b.sibling;
  4617. if (h3 !== null) {
  4618. h3.return = b.return, V = h3;
  4619. break;
  4620. }
  4621. V = b.return;
  4622. }
  4623. }
  4624. var lk = Math.ceil, mk = ua.ReactCurrentDispatcher, nk = ua.ReactCurrentOwner, ok = ua.ReactCurrentBatchConfig, K2 = 0, Q = null, Y = null, Z = 0, fj = 0, ej = Uf(0), T2 = 0, pk = null, rh = 0, qk = 0, rk = 0, sk = null, tk = null, fk = 0, Gj = 1 / 0, uk = null, Oi = !1, Pi = null, Ri = null, vk = !1, wk = null, xk = 0, yk = 0, zk = null, Ak = -1, Bk = 0;
  4625. function R() {
  4626. return (K2 & 6) !== 0 ? B3() : Ak !== -1 ? Ak : Ak = B3();
  4627. }
  4628. function yi(a3) {
  4629. return (a3.mode & 1) === 0 ? 1 : (K2 & 2) !== 0 && Z !== 0 ? Z & -Z : Kg.transition !== null ? (Bk === 0 && (Bk = yc()), Bk) : (a3 = C3, a3 !== 0 || (a3 = window.event, a3 = a3 === void 0 ? 16 : jd(a3.type)), a3);
  4630. }
  4631. function gi(a3, b, c, d) {
  4632. if (50 < yk) throw yk = 0, zk = null, Error(p3(185));
  4633. Ac(a3, c, d), ((K2 & 2) === 0 || a3 !== Q) && (a3 === Q && ((K2 & 2) === 0 && (qk |= c), T2 === 4 && Ck(a3, Z)), Dk(a3, d), c === 1 && K2 === 0 && (b.mode & 1) === 0 && (Gj = B3() + 500, fg && jg()));
  4634. }
  4635. function Dk(a3, b) {
  4636. var c = a3.callbackNode;
  4637. wc(a3, b);
  4638. var d = uc(a3, a3 === Q ? Z : 0);
  4639. if (d === 0) c !== null && bc(c), a3.callbackNode = null, a3.callbackPriority = 0;
  4640. else if (b = d & -d, a3.callbackPriority !== b) {
  4641. if (c != null && bc(c), b === 1) a3.tag === 0 ? ig(Ek.bind(null, a3)) : hg(Ek.bind(null, a3)), Jf(function() {
  4642. (K2 & 6) === 0 && jg();
  4643. }), c = null;
  4644. else {
  4645. switch (Dc(d)) {
  4646. case 1:
  4647. c = fc;
  4648. break;
  4649. case 4:
  4650. c = gc;
  4651. break;
  4652. case 16:
  4653. c = hc;
  4654. break;
  4655. case 536870912:
  4656. c = jc;
  4657. break;
  4658. default:
  4659. c = hc;
  4660. }
  4661. c = Fk(c, Gk.bind(null, a3));
  4662. }
  4663. a3.callbackPriority = b, a3.callbackNode = c;
  4664. }
  4665. }
  4666. function Gk(a3, b) {
  4667. if (Ak = -1, Bk = 0, (K2 & 6) !== 0) throw Error(p3(327));
  4668. var c = a3.callbackNode;
  4669. if (Hk() && a3.callbackNode !== c) return null;
  4670. var d = uc(a3, a3 === Q ? Z : 0);
  4671. if (d === 0) return null;
  4672. if ((d & 30) !== 0 || (d & a3.expiredLanes) !== 0 || b) b = Ik(a3, d);
  4673. else {
  4674. b = d;
  4675. var e = K2;
  4676. K2 |= 2;
  4677. var f4 = Jk();
  4678. (Q !== a3 || Z !== b) && (uk = null, Gj = B3() + 500, Kk(a3, b));
  4679. do
  4680. try {
  4681. Lk();
  4682. break;
  4683. } catch (h3) {
  4684. Mk(a3, h3);
  4685. }
  4686. while (!0);
  4687. $g(), mk.current = f4, K2 = e, Y !== null ? b = 0 : (Q = null, Z = 0, b = T2);
  4688. }
  4689. if (b !== 0) {
  4690. if (b === 2 && (e = xc(a3), e !== 0 && (d = e, b = Nk(a3, e))), b === 1) throw c = pk, Kk(a3, 0), Ck(a3, d), Dk(a3, B3()), c;
  4691. if (b === 6) Ck(a3, d);
  4692. else {
  4693. if (e = a3.current.alternate, (d & 30) === 0 && !Ok(e) && (b = Ik(a3, d), b === 2 && (f4 = xc(a3), f4 !== 0 && (d = f4, b = Nk(a3, f4))), b === 1)) throw c = pk, Kk(a3, 0), Ck(a3, d), Dk(a3, B3()), c;
  4694. switch (a3.finishedWork = e, a3.finishedLanes = d, b) {
  4695. case 0:
  4696. case 1:
  4697. throw Error(p3(345));
  4698. case 2:
  4699. Pk(a3, tk, uk);
  4700. break;
  4701. case 3:
  4702. if (Ck(a3, d), (d & 130023424) === d && (b = fk + 500 - B3(), 10 < b)) {
  4703. if (uc(a3, 0) !== 0) break;
  4704. if (e = a3.suspendedLanes, (e & d) !== d) {
  4705. R(), a3.pingedLanes |= a3.suspendedLanes & e;
  4706. break;
  4707. }
  4708. a3.timeoutHandle = Ff(Pk.bind(null, a3, tk, uk), b);
  4709. break;
  4710. }
  4711. Pk(a3, tk, uk);
  4712. break;
  4713. case 4:
  4714. if (Ck(a3, d), (d & 4194240) === d) break;
  4715. for (b = a3.eventTimes, e = -1; 0 < d; ) {
  4716. var g2 = 31 - oc(d);
  4717. f4 = 1 << g2, g2 = b[g2], g2 > e && (e = g2), d &= ~f4;
  4718. }
  4719. if (d = e, d = B3() - d, d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3e3 > d ? 3e3 : 4320 > d ? 4320 : 1960 * lk(d / 1960)) - d, 10 < d) {
  4720. a3.timeoutHandle = Ff(Pk.bind(null, a3, tk, uk), d);
  4721. break;
  4722. }
  4723. Pk(a3, tk, uk);
  4724. break;
  4725. case 5:
  4726. Pk(a3, tk, uk);
  4727. break;
  4728. default:
  4729. throw Error(p3(329));
  4730. }
  4731. }
  4732. }
  4733. return Dk(a3, B3()), a3.callbackNode === c ? Gk.bind(null, a3) : null;
  4734. }
  4735. function Nk(a3, b) {
  4736. var c = sk;
  4737. return a3.current.memoizedState.isDehydrated && (Kk(a3, b).flags |= 256), a3 = Ik(a3, b), a3 !== 2 && (b = tk, tk = c, b !== null && Fj(b)), a3;
  4738. }
  4739. function Fj(a3) {
  4740. tk === null ? tk = a3 : tk.push.apply(tk, a3);
  4741. }
  4742. function Ok(a3) {
  4743. for (var b = a3; ; ) {
  4744. if (b.flags & 16384) {
  4745. var c = b.updateQueue;
  4746. if (c !== null && (c = c.stores, c !== null)) for (var d = 0; d < c.length; d++) {
  4747. var e = c[d], f4 = e.getSnapshot;
  4748. e = e.value;
  4749. try {
  4750. if (!He(f4(), e)) return !1;
  4751. } catch {
  4752. return !1;
  4753. }
  4754. }
  4755. }
  4756. if (c = b.child, b.subtreeFlags & 16384 && c !== null) c.return = b, b = c;
  4757. else {
  4758. if (b === a3) break;
  4759. for (; b.sibling === null; ) {
  4760. if (b.return === null || b.return === a3) return !0;
  4761. b = b.return;
  4762. }
  4763. b.sibling.return = b.return, b = b.sibling;
  4764. }
  4765. }
  4766. return !0;
  4767. }
  4768. function Ck(a3, b) {
  4769. for (b &= ~rk, b &= ~qk, a3.suspendedLanes |= b, a3.pingedLanes &= ~b, a3 = a3.expirationTimes; 0 < b; ) {
  4770. var c = 31 - oc(b), d = 1 << c;
  4771. a3[c] = -1, b &= ~d;
  4772. }
  4773. }
  4774. function Ek(a3) {
  4775. if ((K2 & 6) !== 0) throw Error(p3(327));
  4776. Hk();
  4777. var b = uc(a3, 0);
  4778. if ((b & 1) === 0) return Dk(a3, B3()), null;
  4779. var c = Ik(a3, b);
  4780. if (a3.tag !== 0 && c === 2) {
  4781. var d = xc(a3);
  4782. d !== 0 && (b = d, c = Nk(a3, d));
  4783. }
  4784. if (c === 1) throw c = pk, Kk(a3, 0), Ck(a3, b), Dk(a3, B3()), c;
  4785. if (c === 6) throw Error(p3(345));
  4786. return a3.finishedWork = a3.current.alternate, a3.finishedLanes = b, Pk(a3, tk, uk), Dk(a3, B3()), null;
  4787. }
  4788. function Qk(a3, b) {
  4789. var c = K2;
  4790. K2 |= 1;
  4791. try {
  4792. return a3(b);
  4793. } finally {
  4794. K2 = c, K2 === 0 && (Gj = B3() + 500, fg && jg());
  4795. }
  4796. }
  4797. function Rk(a3) {
  4798. wk !== null && wk.tag === 0 && (K2 & 6) === 0 && Hk();
  4799. var b = K2;
  4800. K2 |= 1;
  4801. var c = ok.transition, d = C3;
  4802. try {
  4803. if (ok.transition = null, C3 = 1, a3) return a3();
  4804. } finally {
  4805. C3 = d, ok.transition = c, K2 = b, (K2 & 6) === 0 && jg();
  4806. }
  4807. }
  4808. function Hj() {
  4809. fj = ej.current, E(ej);
  4810. }
  4811. function Kk(a3, b) {
  4812. a3.finishedWork = null, a3.finishedLanes = 0;
  4813. var c = a3.timeoutHandle;
  4814. if (c !== -1 && (a3.timeoutHandle = -1, Gf(c)), Y !== null) for (c = Y.return; c !== null; ) {
  4815. var d = c;
  4816. switch (wg(d), d.tag) {
  4817. case 1:
  4818. d = d.type.childContextTypes, d != null && $f();
  4819. break;
  4820. case 3:
  4821. zh(), E(Wf), E(H), Eh();
  4822. break;
  4823. case 5:
  4824. Bh(d);
  4825. break;
  4826. case 4:
  4827. zh();
  4828. break;
  4829. case 13:
  4830. E(L);
  4831. break;
  4832. case 19:
  4833. E(L);
  4834. break;
  4835. case 10:
  4836. ah(d.type._context);
  4837. break;
  4838. case 22:
  4839. case 23:
  4840. Hj();
  4841. }
  4842. c = c.return;
  4843. }
  4844. if (Q = a3, Y = a3 = Pg(a3.current, null), Z = fj = b, T2 = 0, pk = null, rk = qk = rh = 0, tk = sk = null, fh !== null) {
  4845. for (b = 0; b < fh.length; b++) if (c = fh[b], d = c.interleaved, d !== null) {
  4846. c.interleaved = null;
  4847. var e = d.next, f4 = c.pending;
  4848. if (f4 !== null) {
  4849. var g2 = f4.next;
  4850. f4.next = e, d.next = g2;
  4851. }
  4852. c.pending = d;
  4853. }
  4854. fh = null;
  4855. }
  4856. return a3;
  4857. }
  4858. function Mk(a3, b) {
  4859. do {
  4860. var c = Y;
  4861. try {
  4862. if ($g(), Fh.current = Rh, Ih) {
  4863. for (var d = M.memoizedState; d !== null; ) {
  4864. var e = d.queue;
  4865. e !== null && (e.pending = null), d = d.next;
  4866. }
  4867. Ih = !1;
  4868. }
  4869. if (Hh = 0, O = N = M = null, Jh = !1, Kh = 0, nk.current = null, c === null || c.return === null) {
  4870. T2 = 1, pk = b, Y = null;
  4871. break;
  4872. }
  4873. a: {
  4874. var f4 = a3, g2 = c.return, h3 = c, k = b;
  4875. if (b = Z, h3.flags |= 32768, k !== null && typeof k == "object" && typeof k.then == "function") {
  4876. var l = k, m3 = h3, q = m3.tag;
  4877. if ((m3.mode & 1) === 0 && (q === 0 || q === 11 || q === 15)) {
  4878. var r2 = m3.alternate;
  4879. r2 ? (m3.updateQueue = r2.updateQueue, m3.memoizedState = r2.memoizedState, m3.lanes = r2.lanes) : (m3.updateQueue = null, m3.memoizedState = null);
  4880. }
  4881. var y = Ui(g2);
  4882. if (y !== null) {
  4883. y.flags &= -257, Vi(y, g2, h3, f4, b), y.mode & 1 && Si(f4, l, b), b = y, k = l;
  4884. var n = b.updateQueue;
  4885. if (n === null) {
  4886. var t = /* @__PURE__ */ new Set();
  4887. t.add(k), b.updateQueue = t;
  4888. } else n.add(k);
  4889. break a;
  4890. } else {
  4891. if ((b & 1) === 0) {
  4892. Si(f4, l, b), tj();
  4893. break a;
  4894. }
  4895. k = Error(p3(426));
  4896. }
  4897. } else if (I && h3.mode & 1) {
  4898. var J = Ui(g2);
  4899. if (J !== null) {
  4900. (J.flags & 65536) === 0 && (J.flags |= 256), Vi(J, g2, h3, f4, b), Jg(Ji(k, h3));
  4901. break a;
  4902. }
  4903. }
  4904. f4 = k = Ji(k, h3), T2 !== 4 && (T2 = 2), sk === null ? sk = [f4] : sk.push(f4), f4 = g2;
  4905. do {
  4906. switch (f4.tag) {
  4907. case 3:
  4908. f4.flags |= 65536, b &= -b, f4.lanes |= b;
  4909. var x = Ni(f4, k, b);
  4910. ph(f4, x);
  4911. break a;
  4912. case 1:
  4913. h3 = k;
  4914. var w = f4.type, u2 = f4.stateNode;
  4915. if ((f4.flags & 128) === 0 && (typeof w.getDerivedStateFromError == "function" || u2 !== null && typeof u2.componentDidCatch == "function" && (Ri === null || !Ri.has(u2)))) {
  4916. f4.flags |= 65536, b &= -b, f4.lanes |= b;
  4917. var F = Qi(f4, h3, b);
  4918. ph(f4, F);
  4919. break a;
  4920. }
  4921. }
  4922. f4 = f4.return;
  4923. } while (f4 !== null);
  4924. }
  4925. Sk(c);
  4926. } catch (na) {
  4927. b = na, Y === c && c !== null && (Y = c = c.return);
  4928. continue;
  4929. }
  4930. break;
  4931. } while (!0);
  4932. }
  4933. function Jk() {
  4934. var a3 = mk.current;
  4935. return mk.current = Rh, a3 === null ? Rh : a3;
  4936. }
  4937. function tj() {
  4938. (T2 === 0 || T2 === 3 || T2 === 2) && (T2 = 4), Q === null || (rh & 268435455) === 0 && (qk & 268435455) === 0 || Ck(Q, Z);
  4939. }
  4940. function Ik(a3, b) {
  4941. var c = K2;
  4942. K2 |= 2;
  4943. var d = Jk();
  4944. (Q !== a3 || Z !== b) && (uk = null, Kk(a3, b));
  4945. do
  4946. try {
  4947. Tk();
  4948. break;
  4949. } catch (e) {
  4950. Mk(a3, e);
  4951. }
  4952. while (!0);
  4953. if ($g(), K2 = c, mk.current = d, Y !== null) throw Error(p3(261));
  4954. return Q = null, Z = 0, T2;
  4955. }
  4956. function Tk() {
  4957. for (; Y !== null; ) Uk(Y);
  4958. }
  4959. function Lk() {
  4960. for (; Y !== null && !cc(); ) Uk(Y);
  4961. }
  4962. function Uk(a3) {
  4963. var b = Vk(a3.alternate, a3, fj);
  4964. a3.memoizedProps = a3.pendingProps, b === null ? Sk(a3) : Y = b, nk.current = null;
  4965. }
  4966. function Sk(a3) {
  4967. var b = a3;
  4968. do {
  4969. var c = b.alternate;
  4970. if (a3 = b.return, (b.flags & 32768) === 0) {
  4971. if (c = Ej(c, b, fj), c !== null) {
  4972. Y = c;
  4973. return;
  4974. }
  4975. } else {
  4976. if (c = Ij(c, b), c !== null) {
  4977. c.flags &= 32767, Y = c;
  4978. return;
  4979. }
  4980. if (a3 !== null) a3.flags |= 32768, a3.subtreeFlags = 0, a3.deletions = null;
  4981. else {
  4982. T2 = 6, Y = null;
  4983. return;
  4984. }
  4985. }
  4986. if (b = b.sibling, b !== null) {
  4987. Y = b;
  4988. return;
  4989. }
  4990. Y = b = a3;
  4991. } while (b !== null);
  4992. T2 === 0 && (T2 = 5);
  4993. }
  4994. function Pk(a3, b, c) {
  4995. var d = C3, e = ok.transition;
  4996. try {
  4997. ok.transition = null, C3 = 1, Wk(a3, b, c, d);
  4998. } finally {
  4999. ok.transition = e, C3 = d;
  5000. }
  5001. return null;
  5002. }
  5003. function Wk(a3, b, c, d) {
  5004. do
  5005. Hk();
  5006. while (wk !== null);
  5007. if ((K2 & 6) !== 0) throw Error(p3(327));
  5008. c = a3.finishedWork;
  5009. var e = a3.finishedLanes;
  5010. if (c === null) return null;
  5011. if (a3.finishedWork = null, a3.finishedLanes = 0, c === a3.current) throw Error(p3(177));
  5012. a3.callbackNode = null, a3.callbackPriority = 0;
  5013. var f4 = c.lanes | c.childLanes;
  5014. if (Bc(a3, f4), a3 === Q && (Y = Q = null, Z = 0), (c.subtreeFlags & 2064) === 0 && (c.flags & 2064) === 0 || vk || (vk = !0, Fk(hc, function() {
  5015. return Hk(), null;
  5016. })), f4 = (c.flags & 15990) !== 0, (c.subtreeFlags & 15990) !== 0 || f4) {
  5017. f4 = ok.transition, ok.transition = null;
  5018. var g2 = C3;
  5019. C3 = 1;
  5020. var h3 = K2;
  5021. K2 |= 4, nk.current = null, Oj(a3, c), dk(c, a3), Oe(Df), dd = !!Cf, Df = Cf = null, a3.current = c, hk(c, a3, e), dc(), K2 = h3, C3 = g2, ok.transition = f4;
  5022. } else a3.current = c;
  5023. if (vk && (vk = !1, wk = a3, xk = e), f4 = a3.pendingLanes, f4 === 0 && (Ri = null), mc(c.stateNode, d), Dk(a3, B3()), b !== null) for (d = a3.onRecoverableError, c = 0; c < b.length; c++) e = b[c], d(e.value, { componentStack: e.stack, digest: e.digest });
  5024. if (Oi) throw Oi = !1, a3 = Pi, Pi = null, a3;
  5025. return (xk & 1) !== 0 && a3.tag !== 0 && Hk(), f4 = a3.pendingLanes, (f4 & 1) !== 0 ? a3 === zk ? yk++ : (yk = 0, zk = a3) : yk = 0, jg(), null;
  5026. }
  5027. function Hk() {
  5028. if (wk !== null) {
  5029. var a3 = Dc(xk), b = ok.transition, c = C3;
  5030. try {
  5031. if (ok.transition = null, C3 = 16 > a3 ? 16 : a3, wk === null) var d = !1;
  5032. else {
  5033. if (a3 = wk, wk = null, xk = 0, (K2 & 6) !== 0) throw Error(p3(331));
  5034. var e = K2;
  5035. for (K2 |= 4, V = a3.current; V !== null; ) {
  5036. var f4 = V, g2 = f4.child;
  5037. if ((V.flags & 16) !== 0) {
  5038. var h3 = f4.deletions;
  5039. if (h3 !== null) {
  5040. for (var k = 0; k < h3.length; k++) {
  5041. var l = h3[k];
  5042. for (V = l; V !== null; ) {
  5043. var m3 = V;
  5044. switch (m3.tag) {
  5045. case 0:
  5046. case 11:
  5047. case 15:
  5048. Pj(8, m3, f4);
  5049. }
  5050. var q = m3.child;
  5051. if (q !== null) q.return = m3, V = q;
  5052. else for (; V !== null; ) {
  5053. m3 = V;
  5054. var r2 = m3.sibling, y = m3.return;
  5055. if (Sj(m3), m3 === l) {
  5056. V = null;
  5057. break;
  5058. }
  5059. if (r2 !== null) {
  5060. r2.return = y, V = r2;
  5061. break;
  5062. }
  5063. V = y;
  5064. }
  5065. }
  5066. }
  5067. var n = f4.alternate;
  5068. if (n !== null) {
  5069. var t = n.child;
  5070. if (t !== null) {
  5071. n.child = null;
  5072. do {
  5073. var J = t.sibling;
  5074. t.sibling = null, t = J;
  5075. } while (t !== null);
  5076. }
  5077. }
  5078. V = f4;
  5079. }
  5080. }
  5081. if ((f4.subtreeFlags & 2064) !== 0 && g2 !== null) g2.return = f4, V = g2;
  5082. else b: for (; V !== null; ) {
  5083. if (f4 = V, (f4.flags & 2048) !== 0) switch (f4.tag) {
  5084. case 0:
  5085. case 11:
  5086. case 15:
  5087. Pj(9, f4, f4.return);
  5088. }
  5089. var x = f4.sibling;
  5090. if (x !== null) {
  5091. x.return = f4.return, V = x;
  5092. break b;
  5093. }
  5094. V = f4.return;
  5095. }
  5096. }
  5097. var w = a3.current;
  5098. for (V = w; V !== null; ) {
  5099. g2 = V;
  5100. var u2 = g2.child;
  5101. if ((g2.subtreeFlags & 2064) !== 0 && u2 !== null) u2.return = g2, V = u2;
  5102. else b: for (g2 = w; V !== null; ) {
  5103. if (h3 = V, (h3.flags & 2048) !== 0) try {
  5104. switch (h3.tag) {
  5105. case 0:
  5106. case 11:
  5107. case 15:
  5108. Qj(9, h3);
  5109. }
  5110. } catch (na) {
  5111. W(h3, h3.return, na);
  5112. }
  5113. if (h3 === g2) {
  5114. V = null;
  5115. break b;
  5116. }
  5117. var F = h3.sibling;
  5118. if (F !== null) {
  5119. F.return = h3.return, V = F;
  5120. break b;
  5121. }
  5122. V = h3.return;
  5123. }
  5124. }
  5125. if (K2 = e, jg(), lc && typeof lc.onPostCommitFiberRoot == "function") try {
  5126. lc.onPostCommitFiberRoot(kc, a3);
  5127. } catch {
  5128. }
  5129. d = !0;
  5130. }
  5131. return d;
  5132. } finally {
  5133. C3 = c, ok.transition = b;
  5134. }
  5135. }
  5136. return !1;
  5137. }
  5138. function Xk(a3, b, c) {
  5139. b = Ji(c, b), b = Ni(a3, b, 1), a3 = nh(a3, b, 1), b = R(), a3 !== null && (Ac(a3, 1, b), Dk(a3, b));
  5140. }
  5141. function W(a3, b, c) {
  5142. if (a3.tag === 3) Xk(a3, a3, c);
  5143. else for (; b !== null; ) {
  5144. if (b.tag === 3) {
  5145. Xk(b, a3, c);
  5146. break;
  5147. } else if (b.tag === 1) {
  5148. var d = b.stateNode;
  5149. if (typeof b.type.getDerivedStateFromError == "function" || typeof d.componentDidCatch == "function" && (Ri === null || !Ri.has(d))) {
  5150. a3 = Ji(c, a3), a3 = Qi(b, a3, 1), b = nh(b, a3, 1), a3 = R(), b !== null && (Ac(b, 1, a3), Dk(b, a3));
  5151. break;
  5152. }
  5153. }
  5154. b = b.return;
  5155. }
  5156. }
  5157. function Ti(a3, b, c) {
  5158. var d = a3.pingCache;
  5159. d !== null && d.delete(b), b = R(), a3.pingedLanes |= a3.suspendedLanes & c, Q === a3 && (Z & c) === c && (T2 === 4 || T2 === 3 && (Z & 130023424) === Z && 500 > B3() - fk ? Kk(a3, 0) : rk |= c), Dk(a3, b);
  5160. }
  5161. function Yk(a3, b) {
  5162. b === 0 && ((a3.mode & 1) === 0 ? b = 1 : (b = sc, sc <<= 1, (sc & 130023424) === 0 && (sc = 4194304)));
  5163. var c = R();
  5164. a3 = ih(a3, b), a3 !== null && (Ac(a3, b, c), Dk(a3, c));
  5165. }
  5166. function uj(a3) {
  5167. var b = a3.memoizedState, c = 0;
  5168. b !== null && (c = b.retryLane), Yk(a3, c);
  5169. }
  5170. function bk(a3, b) {
  5171. var c = 0;
  5172. switch (a3.tag) {
  5173. case 13:
  5174. var d = a3.stateNode, e = a3.memoizedState;
  5175. e !== null && (c = e.retryLane);
  5176. break;
  5177. case 19:
  5178. d = a3.stateNode;
  5179. break;
  5180. default:
  5181. throw Error(p3(314));
  5182. }
  5183. d !== null && d.delete(b), Yk(a3, c);
  5184. }
  5185. var Vk;
  5186. Vk = function(a3, b, c) {
  5187. if (a3 !== null) if (a3.memoizedProps !== b.pendingProps || Wf.current) dh = !0;
  5188. else {
  5189. if ((a3.lanes & c) === 0 && (b.flags & 128) === 0) return dh = !1, yj(a3, b, c);
  5190. dh = (a3.flags & 131072) !== 0;
  5191. }
  5192. else dh = !1, I && (b.flags & 1048576) !== 0 && ug(b, ng, b.index);
  5193. switch (b.lanes = 0, b.tag) {
  5194. case 2:
  5195. var d = b.type;
  5196. ij(a3, b), a3 = b.pendingProps;
  5197. var e = Yf(b, H.current);
  5198. ch(b, c), e = Nh(null, b, d, a3, e, c);
  5199. var f4 = Sh();
  5200. return b.flags |= 1, typeof e == "object" && e !== null && typeof e.render == "function" && e.$$typeof === void 0 ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f4 = !0, cg(b)) : f4 = !1, b.memoizedState = e.state !== null && e.state !== void 0 ? e.state : null, kh(b), e.updater = Ei, b.stateNode = e, e._reactInternals = b, Ii(b, d, a3, c), b = jj(null, b, d, !0, f4, c)) : (b.tag = 0, I && f4 && vg(b), Xi(null, b, e, c), b = b.child), b;
  5201. case 16:
  5202. d = b.elementType;
  5203. a: {
  5204. switch (ij(a3, b), a3 = b.pendingProps, e = d._init, d = e(d._payload), b.type = d, e = b.tag = Zk(d), a3 = Ci(d, a3), e) {
  5205. case 0:
  5206. b = cj(null, b, d, a3, c);
  5207. break a;
  5208. case 1:
  5209. b = hj(null, b, d, a3, c);
  5210. break a;
  5211. case 11:
  5212. b = Yi(null, b, d, a3, c);
  5213. break a;
  5214. case 14:
  5215. b = $i(null, b, d, Ci(d.type, a3), c);
  5216. break a;
  5217. }
  5218. throw Error(p3(
  5219. 306,
  5220. d,
  5221. ""
  5222. ));
  5223. }
  5224. return b;
  5225. case 0:
  5226. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), cj(a3, b, d, e, c);
  5227. case 1:
  5228. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), hj(a3, b, d, e, c);
  5229. case 3:
  5230. a: {
  5231. if (kj(b), a3 === null) throw Error(p3(387));
  5232. d = b.pendingProps, f4 = b.memoizedState, e = f4.element, lh(a3, b), qh(b, d, null, c);
  5233. var g2 = b.memoizedState;
  5234. if (d = g2.element, f4.isDehydrated) if (f4 = { element: d, isDehydrated: !1, cache: g2.cache, pendingSuspenseBoundaries: g2.pendingSuspenseBoundaries, transitions: g2.transitions }, b.updateQueue.baseState = f4, b.memoizedState = f4, b.flags & 256) {
  5235. e = Ji(Error(p3(423)), b), b = lj(a3, b, d, c, e);
  5236. break a;
  5237. } else if (d !== e) {
  5238. e = Ji(Error(p3(424)), b), b = lj(a3, b, d, c, e);
  5239. break a;
  5240. } else for (yg = Lf(b.stateNode.containerInfo.firstChild), xg = b, I = !0, zg = null, c = Vg(b, null, d, c), b.child = c; c; ) c.flags = c.flags & -3 | 4096, c = c.sibling;
  5241. else {
  5242. if (Ig(), d === e) {
  5243. b = Zi(a3, b, c);
  5244. break a;
  5245. }
  5246. Xi(a3, b, d, c);
  5247. }
  5248. b = b.child;
  5249. }
  5250. return b;
  5251. case 5:
  5252. return Ah(b), a3 === null && Eg(b), d = b.type, e = b.pendingProps, f4 = a3 !== null ? a3.memoizedProps : null, g2 = e.children, Ef(d, e) ? g2 = null : f4 !== null && Ef(d, f4) && (b.flags |= 32), gj(a3, b), Xi(a3, b, g2, c), b.child;
  5253. case 6:
  5254. return a3 === null && Eg(b), null;
  5255. case 13:
  5256. return oj(a3, b, c);
  5257. case 4:
  5258. return yh(b, b.stateNode.containerInfo), d = b.pendingProps, a3 === null ? b.child = Ug(b, null, d, c) : Xi(a3, b, d, c), b.child;
  5259. case 11:
  5260. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), Yi(a3, b, d, e, c);
  5261. case 7:
  5262. return Xi(a3, b, b.pendingProps, c), b.child;
  5263. case 8:
  5264. return Xi(a3, b, b.pendingProps.children, c), b.child;
  5265. case 12:
  5266. return Xi(a3, b, b.pendingProps.children, c), b.child;
  5267. case 10:
  5268. a: {
  5269. if (d = b.type._context, e = b.pendingProps, f4 = b.memoizedProps, g2 = e.value, G(Wg, d._currentValue), d._currentValue = g2, f4 !== null) if (He(f4.value, g2)) {
  5270. if (f4.children === e.children && !Wf.current) {
  5271. b = Zi(a3, b, c);
  5272. break a;
  5273. }
  5274. } else for (f4 = b.child, f4 !== null && (f4.return = b); f4 !== null; ) {
  5275. var h3 = f4.dependencies;
  5276. if (h3 !== null) {
  5277. g2 = f4.child;
  5278. for (var k = h3.firstContext; k !== null; ) {
  5279. if (k.context === d) {
  5280. if (f4.tag === 1) {
  5281. k = mh(-1, c & -c), k.tag = 2;
  5282. var l = f4.updateQueue;
  5283. if (l !== null) {
  5284. l = l.shared;
  5285. var m3 = l.pending;
  5286. m3 === null ? k.next = k : (k.next = m3.next, m3.next = k), l.pending = k;
  5287. }
  5288. }
  5289. f4.lanes |= c, k = f4.alternate, k !== null && (k.lanes |= c), bh(
  5290. f4.return,
  5291. c,
  5292. b
  5293. ), h3.lanes |= c;
  5294. break;
  5295. }
  5296. k = k.next;
  5297. }
  5298. } else if (f4.tag === 10) g2 = f4.type === b.type ? null : f4.child;
  5299. else if (f4.tag === 18) {
  5300. if (g2 = f4.return, g2 === null) throw Error(p3(341));
  5301. g2.lanes |= c, h3 = g2.alternate, h3 !== null && (h3.lanes |= c), bh(g2, c, b), g2 = f4.sibling;
  5302. } else g2 = f4.child;
  5303. if (g2 !== null) g2.return = f4;
  5304. else for (g2 = f4; g2 !== null; ) {
  5305. if (g2 === b) {
  5306. g2 = null;
  5307. break;
  5308. }
  5309. if (f4 = g2.sibling, f4 !== null) {
  5310. f4.return = g2.return, g2 = f4;
  5311. break;
  5312. }
  5313. g2 = g2.return;
  5314. }
  5315. f4 = g2;
  5316. }
  5317. Xi(a3, b, e.children, c), b = b.child;
  5318. }
  5319. return b;
  5320. case 9:
  5321. return e = b.type, d = b.pendingProps.children, ch(b, c), e = eh(e), d = d(e), b.flags |= 1, Xi(a3, b, d, c), b.child;
  5322. case 14:
  5323. return d = b.type, e = Ci(d, b.pendingProps), e = Ci(d.type, e), $i(a3, b, d, e, c);
  5324. case 15:
  5325. return bj(a3, b, b.type, b.pendingProps, c);
  5326. case 17:
  5327. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), ij(a3, b), b.tag = 1, Zf(d) ? (a3 = !0, cg(b)) : a3 = !1, ch(b, c), Gi(b, d, e), Ii(b, d, e, c), jj(null, b, d, !0, a3, c);
  5328. case 19:
  5329. return xj(a3, b, c);
  5330. case 22:
  5331. return dj(a3, b, c);
  5332. }
  5333. throw Error(p3(156, b.tag));
  5334. };
  5335. function Fk(a3, b) {
  5336. return ac(a3, b);
  5337. }
  5338. function $k(a3, b, c, d) {
  5339. this.tag = a3, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = b, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = d, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
  5340. }
  5341. function Bg(a3, b, c, d) {
  5342. return new $k(a3, b, c, d);
  5343. }
  5344. function aj(a3) {
  5345. return a3 = a3.prototype, !(!a3 || !a3.isReactComponent);
  5346. }
  5347. function Zk(a3) {
  5348. if (typeof a3 == "function") return aj(a3) ? 1 : 0;
  5349. if (a3 != null) {
  5350. if (a3 = a3.$$typeof, a3 === Da) return 11;
  5351. if (a3 === Ga) return 14;
  5352. }
  5353. return 2;
  5354. }
  5355. function Pg(a3, b) {
  5356. var c = a3.alternate;
  5357. return c === null ? (c = Bg(a3.tag, b, a3.key, a3.mode), c.elementType = a3.elementType, c.type = a3.type, c.stateNode = a3.stateNode, c.alternate = a3, a3.alternate = c) : (c.pendingProps = b, c.type = a3.type, c.flags = 0, c.subtreeFlags = 0, c.deletions = null), c.flags = a3.flags & 14680064, c.childLanes = a3.childLanes, c.lanes = a3.lanes, c.child = a3.child, c.memoizedProps = a3.memoizedProps, c.memoizedState = a3.memoizedState, c.updateQueue = a3.updateQueue, b = a3.dependencies, c.dependencies = b === null ? null : { lanes: b.lanes, firstContext: b.firstContext }, c.sibling = a3.sibling, c.index = a3.index, c.ref = a3.ref, c;
  5358. }
  5359. function Rg(a3, b, c, d, e, f4) {
  5360. var g2 = 2;
  5361. if (d = a3, typeof a3 == "function") aj(a3) && (g2 = 1);
  5362. else if (typeof a3 == "string") g2 = 5;
  5363. else a: switch (a3) {
  5364. case ya:
  5365. return Tg(c.children, e, f4, b);
  5366. case za:
  5367. g2 = 8, e |= 8;
  5368. break;
  5369. case Aa:
  5370. return a3 = Bg(12, c, b, e | 2), a3.elementType = Aa, a3.lanes = f4, a3;
  5371. case Ea:
  5372. return a3 = Bg(13, c, b, e), a3.elementType = Ea, a3.lanes = f4, a3;
  5373. case Fa:
  5374. return a3 = Bg(19, c, b, e), a3.elementType = Fa, a3.lanes = f4, a3;
  5375. case Ia:
  5376. return pj(c, e, f4, b);
  5377. default:
  5378. if (typeof a3 == "object" && a3 !== null) switch (a3.$$typeof) {
  5379. case Ba:
  5380. g2 = 10;
  5381. break a;
  5382. case Ca:
  5383. g2 = 9;
  5384. break a;
  5385. case Da:
  5386. g2 = 11;
  5387. break a;
  5388. case Ga:
  5389. g2 = 14;
  5390. break a;
  5391. case Ha:
  5392. g2 = 16, d = null;
  5393. break a;
  5394. }
  5395. throw Error(p3(130, a3 == null ? a3 : typeof a3, ""));
  5396. }
  5397. return b = Bg(g2, c, b, e), b.elementType = a3, b.type = d, b.lanes = f4, b;
  5398. }
  5399. function Tg(a3, b, c, d) {
  5400. return a3 = Bg(7, a3, d, b), a3.lanes = c, a3;
  5401. }
  5402. function pj(a3, b, c, d) {
  5403. return a3 = Bg(22, a3, d, b), a3.elementType = Ia, a3.lanes = c, a3.stateNode = { isHidden: !1 }, a3;
  5404. }
  5405. function Qg(a3, b, c) {
  5406. return a3 = Bg(6, a3, null, b), a3.lanes = c, a3;
  5407. }
  5408. function Sg(a3, b, c) {
  5409. return b = Bg(4, a3.children !== null ? a3.children : [], a3.key, b), b.lanes = c, b.stateNode = { containerInfo: a3.containerInfo, pendingChildren: null, implementation: a3.implementation }, b;
  5410. }
  5411. function al(a3, b, c, d, e) {
  5412. this.tag = b, this.containerInfo = a3, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = zc(0), this.expirationTimes = zc(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = zc(0), this.identifierPrefix = d, this.onRecoverableError = e, this.mutableSourceEagerHydrationData = null;
  5413. }
  5414. function bl(a3, b, c, d, e, f4, g2, h3, k) {
  5415. return a3 = new al(a3, b, c, h3, k), b === 1 ? (b = 1, f4 === !0 && (b |= 8)) : b = 0, f4 = Bg(3, null, null, b), a3.current = f4, f4.stateNode = a3, f4.memoizedState = { element: d, isDehydrated: c, cache: null, transitions: null, pendingSuspenseBoundaries: null }, kh(f4), a3;
  5416. }
  5417. function cl(a3, b, c) {
  5418. var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
  5419. return { $$typeof: wa, key: d == null ? null : "" + d, children: a3, containerInfo: b, implementation: c };
  5420. }
  5421. function dl(a3) {
  5422. if (!a3) return Vf;
  5423. a3 = a3._reactInternals;
  5424. a: {
  5425. if (Vb(a3) !== a3 || a3.tag !== 1) throw Error(p3(170));
  5426. var b = a3;
  5427. do {
  5428. switch (b.tag) {
  5429. case 3:
  5430. b = b.stateNode.context;
  5431. break a;
  5432. case 1:
  5433. if (Zf(b.type)) {
  5434. b = b.stateNode.__reactInternalMemoizedMergedChildContext;
  5435. break a;
  5436. }
  5437. }
  5438. b = b.return;
  5439. } while (b !== null);
  5440. throw Error(p3(171));
  5441. }
  5442. if (a3.tag === 1) {
  5443. var c = a3.type;
  5444. if (Zf(c)) return bg(a3, c, b);
  5445. }
  5446. return b;
  5447. }
  5448. function el(a3, b, c, d, e, f4, g2, h3, k) {
  5449. return a3 = bl(c, d, !0, a3, e, f4, g2, h3, k), a3.context = dl(null), c = a3.current, d = R(), e = yi(c), f4 = mh(d, e), f4.callback = b ?? null, nh(c, f4, e), a3.current.lanes = e, Ac(a3, e, d), Dk(a3, d), a3;
  5450. }
  5451. function fl(a3, b, c, d) {
  5452. var e = b.current, f4 = R(), g2 = yi(e);
  5453. return c = dl(c), b.context === null ? b.context = c : b.pendingContext = c, b = mh(f4, g2), b.payload = { element: a3 }, d = d === void 0 ? null : d, d !== null && (b.callback = d), a3 = nh(e, b, g2), a3 !== null && (gi(a3, e, g2, f4), oh(a3, e, g2)), g2;
  5454. }
  5455. function gl(a3) {
  5456. return a3 = a3.current, a3.child ? (a3.child.tag === 5, a3.child.stateNode) : null;
  5457. }
  5458. function hl(a3, b) {
  5459. if (a3 = a3.memoizedState, a3 !== null && a3.dehydrated !== null) {
  5460. var c = a3.retryLane;
  5461. a3.retryLane = c !== 0 && c < b ? c : b;
  5462. }
  5463. }
  5464. function il(a3, b) {
  5465. hl(a3, b), (a3 = a3.alternate) && hl(a3, b);
  5466. }
  5467. function jl() {
  5468. return null;
  5469. }
  5470. var kl = typeof reportError == "function" ? reportError : function(a3) {
  5471. console.error(a3);
  5472. };
  5473. function ll(a3) {
  5474. this._internalRoot = a3;
  5475. }
  5476. ml.prototype.render = ll.prototype.render = function(a3) {
  5477. var b = this._internalRoot;
  5478. if (b === null) throw Error(p3(409));
  5479. fl(a3, b, null, null);
  5480. };
  5481. ml.prototype.unmount = ll.prototype.unmount = function() {
  5482. var a3 = this._internalRoot;
  5483. if (a3 !== null) {
  5484. this._internalRoot = null;
  5485. var b = a3.containerInfo;
  5486. Rk(function() {
  5487. fl(null, a3, null, null);
  5488. }), b[uf] = null;
  5489. }
  5490. };
  5491. function ml(a3) {
  5492. this._internalRoot = a3;
  5493. }
  5494. ml.prototype.unstable_scheduleHydration = function(a3) {
  5495. if (a3) {
  5496. var b = Hc();
  5497. a3 = { blockedOn: null, target: a3, priority: b };
  5498. for (var c = 0; c < Qc.length && b !== 0 && b < Qc[c].priority; c++) ;
  5499. Qc.splice(c, 0, a3), c === 0 && Vc(a3);
  5500. }
  5501. };
  5502. function nl(a3) {
  5503. return !(!a3 || a3.nodeType !== 1 && a3.nodeType !== 9 && a3.nodeType !== 11);
  5504. }
  5505. function ol(a3) {
  5506. return !(!a3 || a3.nodeType !== 1 && a3.nodeType !== 9 && a3.nodeType !== 11 && (a3.nodeType !== 8 || a3.nodeValue !== " react-mount-point-unstable "));
  5507. }
  5508. function pl() {
  5509. }
  5510. function ql(a3, b, c, d, e) {
  5511. if (e) {
  5512. if (typeof d == "function") {
  5513. var f4 = d;
  5514. d = function() {
  5515. var a4 = gl(g2);
  5516. f4.call(a4);
  5517. };
  5518. }
  5519. var g2 = el(b, d, a3, 0, null, !1, !1, "", pl);
  5520. return a3._reactRootContainer = g2, a3[uf] = g2.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), Rk(), g2;
  5521. }
  5522. for (; e = a3.lastChild; ) a3.removeChild(e);
  5523. if (typeof d == "function") {
  5524. var h3 = d;
  5525. d = function() {
  5526. var a4 = gl(k);
  5527. h3.call(a4);
  5528. };
  5529. }
  5530. var k = bl(a3, 0, !1, null, null, !1, !1, "", pl);
  5531. return a3._reactRootContainer = k, a3[uf] = k.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), Rk(function() {
  5532. fl(b, k, c, d);
  5533. }), k;
  5534. }
  5535. function rl(a3, b, c, d, e) {
  5536. var f4 = c._reactRootContainer;
  5537. if (f4) {
  5538. var g2 = f4;
  5539. if (typeof e == "function") {
  5540. var h3 = e;
  5541. e = function() {
  5542. var a4 = gl(g2);
  5543. h3.call(a4);
  5544. };
  5545. }
  5546. fl(b, g2, a3, e);
  5547. } else g2 = ql(c, b, a3, e, d);
  5548. return gl(g2);
  5549. }
  5550. Ec = function(a3) {
  5551. switch (a3.tag) {
  5552. case 3:
  5553. var b = a3.stateNode;
  5554. if (b.current.memoizedState.isDehydrated) {
  5555. var c = tc(b.pendingLanes);
  5556. c !== 0 && (Cc(b, c | 1), Dk(b, B3()), (K2 & 6) === 0 && (Gj = B3() + 500, jg()));
  5557. }
  5558. break;
  5559. case 13:
  5560. Rk(function() {
  5561. var b2 = ih(a3, 1);
  5562. if (b2 !== null) {
  5563. var c2 = R();
  5564. gi(b2, a3, 1, c2);
  5565. }
  5566. }), il(a3, 1);
  5567. }
  5568. };
  5569. Fc = function(a3) {
  5570. if (a3.tag === 13) {
  5571. var b = ih(a3, 134217728);
  5572. if (b !== null) {
  5573. var c = R();
  5574. gi(b, a3, 134217728, c);
  5575. }
  5576. il(a3, 134217728);
  5577. }
  5578. };
  5579. Gc = function(a3) {
  5580. if (a3.tag === 13) {
  5581. var b = yi(a3), c = ih(a3, b);
  5582. if (c !== null) {
  5583. var d = R();
  5584. gi(c, a3, b, d);
  5585. }
  5586. il(a3, b);
  5587. }
  5588. };
  5589. Hc = function() {
  5590. return C3;
  5591. };
  5592. Ic = function(a3, b) {
  5593. var c = C3;
  5594. try {
  5595. return C3 = a3, b();
  5596. } finally {
  5597. C3 = c;
  5598. }
  5599. };
  5600. yb = function(a3, b, c) {
  5601. switch (b) {
  5602. case "input":
  5603. if (bb(a3, c), b = c.name, c.type === "radio" && b != null) {
  5604. for (c = a3; c.parentNode; ) c = c.parentNode;
  5605. for (c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), b = 0; b < c.length; b++) {
  5606. var d = c[b];
  5607. if (d !== a3 && d.form === a3.form) {
  5608. var e = Db(d);
  5609. if (!e) throw Error(p3(90));
  5610. Wa(d), bb(d, e);
  5611. }
  5612. }
  5613. }
  5614. break;
  5615. case "textarea":
  5616. ib(a3, c);
  5617. break;
  5618. case "select":
  5619. b = c.value, b != null && fb(a3, !!c.multiple, b, !1);
  5620. }
  5621. };
  5622. Gb = Qk;
  5623. Hb = Rk;
  5624. var sl = { usingClientEntryPoint: !1, Events: [Cb, ue, Db, Eb, Fb, Qk] }, tl = { findFiberByHostInstance: Wc, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, ul = { bundleType: tl.bundleType, version: tl.version, rendererPackageName: tl.rendererPackageName, rendererConfig: tl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ua.ReactCurrentDispatcher, findHostInstanceByFiber: function(a3) {
  5625. return a3 = Zb(a3), a3 === null ? null : a3.stateNode;
  5626. }, findFiberByHostInstance: tl.findFiberByHostInstance || jl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
  5627. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && (vl = __REACT_DEVTOOLS_GLOBAL_HOOK__, !vl.isDisabled && vl.supportsFiber))
  5628. try {
  5629. kc = vl.inject(ul), lc = vl;
  5630. } catch {
  5631. }
  5632. var vl;
  5633. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl;
  5634. exports.createPortal = function(a3, b) {
  5635. var c = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
  5636. if (!nl(b)) throw Error(p3(200));
  5637. return cl(a3, b, null, c);
  5638. };
  5639. exports.createRoot = function(a3, b) {
  5640. if (!nl(a3)) throw Error(p3(299));
  5641. var c = !1, d = "", e = kl;
  5642. return b != null && (b.unstable_strictMode === !0 && (c = !0), b.identifierPrefix !== void 0 && (d = b.identifierPrefix), b.onRecoverableError !== void 0 && (e = b.onRecoverableError)), b = bl(a3, 1, !1, null, null, c, !1, d, e), a3[uf] = b.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), new ll(b);
  5643. };
  5644. exports.findDOMNode = function(a3) {
  5645. if (a3 == null) return null;
  5646. if (a3.nodeType === 1) return a3;
  5647. var b = a3._reactInternals;
  5648. if (b === void 0)
  5649. throw typeof a3.render == "function" ? Error(p3(188)) : (a3 = Object.keys(a3).join(","), Error(p3(268, a3)));
  5650. return a3 = Zb(b), a3 = a3 === null ? null : a3.stateNode, a3;
  5651. };
  5652. exports.flushSync = function(a3) {
  5653. return Rk(a3);
  5654. };
  5655. exports.hydrate = function(a3, b, c) {
  5656. if (!ol(b)) throw Error(p3(200));
  5657. return rl(null, a3, b, !0, c);
  5658. };
  5659. exports.hydrateRoot = function(a3, b, c) {
  5660. if (!nl(a3)) throw Error(p3(405));
  5661. var d = c != null && c.hydratedSources || null, e = !1, f4 = "", g2 = kl;
  5662. if (c != null && (c.unstable_strictMode === !0 && (e = !0), c.identifierPrefix !== void 0 && (f4 = c.identifierPrefix), c.onRecoverableError !== void 0 && (g2 = c.onRecoverableError)), b = el(b, null, a3, 1, c ?? null, e, !1, f4, g2), a3[uf] = b.current, sf(a3), d) for (a3 = 0; a3 < d.length; a3++) c = d[a3], e = c._getVersion, e = e(c._source), b.mutableSourceEagerHydrationData == null ? b.mutableSourceEagerHydrationData = [c, e] : b.mutableSourceEagerHydrationData.push(
  5663. c,
  5664. e
  5665. );
  5666. return new ml(b);
  5667. };
  5668. exports.render = function(a3, b, c) {
  5669. if (!ol(b)) throw Error(p3(200));
  5670. return rl(null, a3, b, !1, c);
  5671. };
  5672. exports.unmountComponentAtNode = function(a3) {
  5673. if (!ol(a3)) throw Error(p3(40));
  5674. return a3._reactRootContainer ? (Rk(function() {
  5675. rl(null, null, a3, !1, function() {
  5676. a3._reactRootContainer = null, a3[uf] = null;
  5677. });
  5678. }), !0) : !1;
  5679. };
  5680. exports.unstable_batchedUpdates = Qk;
  5681. exports.unstable_renderSubtreeIntoContainer = function(a3, b, c, d) {
  5682. if (!ol(c)) throw Error(p3(200));
  5683. if (a3 == null || a3._reactInternals === void 0) throw Error(p3(38));
  5684. return rl(a3, b, c, !1, d);
  5685. };
  5686. exports.version = "18.3.1-next-f1338f8080-20240426";
  5687. }
  5688. });
  5689. // ../../node_modules/react-dom/index.js
  5690. var require_react_dom = __commonJS({
  5691. "../../node_modules/react-dom/index.js"(exports, module2) {
  5692. "use strict";
  5693. function checkDCE() {
  5694. if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"))
  5695. try {
  5696. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  5697. } catch (err) {
  5698. console.error(err);
  5699. }
  5700. }
  5701. checkDCE(), module2.exports = require_react_dom_production_min();
  5702. }
  5703. });
  5704. // ../../node_modules/react-dom/client.js
  5705. var require_client = __commonJS({
  5706. "../../node_modules/react-dom/client.js"(exports) {
  5707. "use strict";
  5708. var m3 = require_react_dom();
  5709. exports.createRoot = m3.createRoot, exports.hydrateRoot = m3.hydrateRoot;
  5710. var i;
  5711. }
  5712. });
  5713. // ../../node_modules/@storybook/global/dist/index.mjs
  5714. var scope, init_dist = __esm({
  5715. "../../node_modules/@storybook/global/dist/index.mjs"() {
  5716. scope = (() => {
  5717. let win;
  5718. return typeof window < "u" ? win = window : typeof globalThis < "u" ? win = globalThis : typeof global < "u" ? win = global : typeof self < "u" ? win = self : win = {}, win;
  5719. })();
  5720. }
  5721. });
  5722. // ../../node_modules/ts-dedent/esm/index.js
  5723. function dedent(templ) {
  5724. for (var values = [], _i = 1; _i < arguments.length; _i++)
  5725. values[_i - 1] = arguments[_i];
  5726. var strings = Array.from(typeof templ == "string" ? [templ] : templ);
  5727. strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
  5728. var indentLengths = strings.reduce(function(arr, str2) {
  5729. var matches4 = str2.match(/\n([\t ]+|(?!\s).)/g);
  5730. return matches4 ? arr.concat(matches4.map(function(match3) {
  5731. var _a4, _b;
  5732. return (_b = (_a4 = match3.match(/[\t ]/g)) === null || _a4 === void 0 ? void 0 : _a4.length) !== null && _b !== void 0 ? _b : 0;
  5733. })) : arr;
  5734. }, []);
  5735. if (indentLengths.length) {
  5736. var pattern_1 = new RegExp(`
  5737. [ ]{` + Math.min.apply(Math, indentLengths) + "}", "g");
  5738. strings = strings.map(function(str2) {
  5739. return str2.replace(pattern_1, `
  5740. `);
  5741. });
  5742. }
  5743. strings[0] = strings[0].replace(/^\r?\n/, "");
  5744. var string = strings[0];
  5745. return values.forEach(function(value, i) {
  5746. var endentations = string.match(/(?:^|\n)( *)$/), endentation = endentations ? endentations[1] : "", indentedValue = value;
  5747. typeof value == "string" && value.includes(`
  5748. `) && (indentedValue = String(value).split(`
  5749. `).map(function(str2, i2) {
  5750. return i2 === 0 ? str2 : "" + endentation + str2;
  5751. }).join(`
  5752. `)), string += indentedValue + strings[i + 1];
  5753. }), string;
  5754. }
  5755. var init_esm = __esm({
  5756. "../../node_modules/ts-dedent/esm/index.js"() {
  5757. }
  5758. });
  5759. // src/client-logger/index.ts
  5760. var client_logger_exports = {};
  5761. __export(client_logger_exports, {
  5762. deprecate: () => deprecate,
  5763. logger: () => logger,
  5764. once: () => once,
  5765. pretty: () => pretty
  5766. });
  5767. var LOGLEVEL, levels, currentLogLevelString, currentLogLevelNumber, logger, logged, once, deprecate, pretty, init_client_logger = __esm({
  5768. "src/client-logger/index.ts"() {
  5769. "use strict";
  5770. init_dist();
  5771. ({ LOGLEVEL } = scope), levels = {
  5772. trace: 1,
  5773. debug: 2,
  5774. info: 3,
  5775. warn: 4,
  5776. error: 5,
  5777. silent: 10
  5778. }, currentLogLevelString = LOGLEVEL, currentLogLevelNumber = levels[currentLogLevelString] || levels.info, logger = {
  5779. trace: (message, ...rest) => {
  5780. currentLogLevelNumber <= levels.trace && console.trace(message, ...rest);
  5781. },
  5782. debug: (message, ...rest) => {
  5783. currentLogLevelNumber <= levels.debug && console.debug(message, ...rest);
  5784. },
  5785. info: (message, ...rest) => {
  5786. currentLogLevelNumber <= levels.info && console.info(message, ...rest);
  5787. },
  5788. warn: (message, ...rest) => {
  5789. currentLogLevelNumber <= levels.warn && console.warn(message, ...rest);
  5790. },
  5791. error: (message, ...rest) => {
  5792. currentLogLevelNumber <= levels.error && console.error(message, ...rest);
  5793. },
  5794. log: (message, ...rest) => {
  5795. currentLogLevelNumber < levels.silent && console.log(message, ...rest);
  5796. }
  5797. }, logged = /* @__PURE__ */ new Set(), once = (type5) => (message, ...rest) => {
  5798. if (!logged.has(message))
  5799. return logged.add(message), logger[type5](message, ...rest);
  5800. };
  5801. once.clear = () => logged.clear();
  5802. once.trace = once("trace");
  5803. once.debug = once("debug");
  5804. once.info = once("info");
  5805. once.warn = once("warn");
  5806. once.error = once("error");
  5807. once.log = once("log");
  5808. deprecate = once("warn"), pretty = (type5) => (...args) => {
  5809. let argArray = [];
  5810. if (args.length) {
  5811. let startTagRe = /<span\s+style=(['"])([^'"]*)\1\s*>/gi, endTagRe = /<\/span>/gi, reResultArray;
  5812. for (argArray.push(args[0].replace(startTagRe, "%c").replace(endTagRe, "%c")); reResultArray = startTagRe.exec(args[0]); )
  5813. argArray.push(reResultArray[2]), argArray.push("");
  5814. for (let j = 1; j < args.length; j++)
  5815. argArray.push(args[j]);
  5816. }
  5817. logger[type5].apply(logger, argArray);
  5818. };
  5819. pretty.trace = pretty("trace");
  5820. pretty.debug = pretty("debug");
  5821. pretty.info = pretty("info");
  5822. pretty.warn = pretty("warn");
  5823. pretty.error = pretty("error");
  5824. }
  5825. });
  5826. // ../../node_modules/@babel/runtime/helpers/esm/extends.js
  5827. function _extends() {
  5828. return _extends = Object.assign ? Object.assign.bind() : function(n) {
  5829. for (var e = 1; e < arguments.length; e++) {
  5830. var t = arguments[e];
  5831. for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
  5832. }
  5833. return n;
  5834. }, _extends.apply(null, arguments);
  5835. }
  5836. var init_extends = __esm({
  5837. "../../node_modules/@babel/runtime/helpers/esm/extends.js"() {
  5838. }
  5839. });
  5840. // ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
  5841. function sheetForTag(tag) {
  5842. if (tag.sheet)
  5843. return tag.sheet;
  5844. for (var i = 0; i < document.styleSheets.length; i++)
  5845. if (document.styleSheets[i].ownerNode === tag)
  5846. return document.styleSheets[i];
  5847. }
  5848. function createStyleElement(options) {
  5849. var tag = document.createElement("style");
  5850. return tag.setAttribute("data-emotion", options.key), options.nonce !== void 0 && tag.setAttribute("nonce", options.nonce), tag.appendChild(document.createTextNode("")), tag.setAttribute("data-s", ""), tag;
  5851. }
  5852. var isDevelopment, StyleSheet, init_emotion_sheet_esm = __esm({
  5853. "../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js"() {
  5854. isDevelopment = !1;
  5855. StyleSheet = (function() {
  5856. function StyleSheet2(options) {
  5857. var _this = this;
  5858. this._insertTag = function(tag) {
  5859. var before;
  5860. _this.tags.length === 0 ? _this.insertionPoint ? before = _this.insertionPoint.nextSibling : _this.prepend ? before = _this.container.firstChild : before = _this.before : before = _this.tags[_this.tags.length - 1].nextSibling, _this.container.insertBefore(tag, before), _this.tags.push(tag);
  5861. }, this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy, this.tags = [], this.ctr = 0, this.nonce = options.nonce, this.key = options.key, this.container = options.container, this.prepend = options.prepend, this.insertionPoint = options.insertionPoint, this.before = null;
  5862. }
  5863. var _proto = StyleSheet2.prototype;
  5864. return _proto.hydrate = function(nodes) {
  5865. nodes.forEach(this._insertTag);
  5866. }, _proto.insert = function(rule) {
  5867. this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this));
  5868. var tag = this.tags[this.tags.length - 1];
  5869. if (this.isSpeedy) {
  5870. var sheet = sheetForTag(tag);
  5871. try {
  5872. sheet.insertRule(rule, sheet.cssRules.length);
  5873. } catch {
  5874. }
  5875. } else
  5876. tag.appendChild(document.createTextNode(rule));
  5877. this.ctr++;
  5878. }, _proto.flush = function() {
  5879. this.tags.forEach(function(tag) {
  5880. var _tag$parentNode;
  5881. return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
  5882. }), this.tags = [], this.ctr = 0;
  5883. }, StyleSheet2;
  5884. })();
  5885. }
  5886. });
  5887. // ../../node_modules/stylis/src/Enum.js
  5888. var MS, MOZ, WEBKIT, COMMENT, RULESET, DECLARATION, IMPORT, KEYFRAMES, LAYER, init_Enum = __esm({
  5889. "../../node_modules/stylis/src/Enum.js"() {
  5890. MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl", IMPORT = "@import", KEYFRAMES = "@keyframes", LAYER = "@layer";
  5891. }
  5892. });
  5893. // ../../node_modules/stylis/src/Utility.js
  5894. function hash(value, length2) {
  5895. return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
  5896. }
  5897. function trim(value) {
  5898. return value.trim();
  5899. }
  5900. function match(value, pattern) {
  5901. return (value = pattern.exec(value)) ? value[0] : value;
  5902. }
  5903. function replace(value, pattern, replacement) {
  5904. return value.replace(pattern, replacement);
  5905. }
  5906. function indexof(value, search) {
  5907. return value.indexOf(search);
  5908. }
  5909. function charat(value, index4) {
  5910. return value.charCodeAt(index4) | 0;
  5911. }
  5912. function substr(value, begin, end2) {
  5913. return value.slice(begin, end2);
  5914. }
  5915. function strlen(value) {
  5916. return value.length;
  5917. }
  5918. function sizeof(value) {
  5919. return value.length;
  5920. }
  5921. function append(value, array) {
  5922. return array.push(value), value;
  5923. }
  5924. function combine(array, callback) {
  5925. return array.map(callback).join("");
  5926. }
  5927. var abs, from, assign, init_Utility = __esm({
  5928. "../../node_modules/stylis/src/Utility.js"() {
  5929. abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
  5930. }
  5931. });
  5932. // ../../node_modules/stylis/src/Tokenizer.js
  5933. function node(value, root2, parent, type5, props, children, length2) {
  5934. return { value, root: root2, parent, type: type5, props, children, line, column, length: length2, return: "" };
  5935. }
  5936. function copy(root2, props) {
  5937. return assign(node("", null, null, "", null, null, 0), root2, { length: -root2.length }, props);
  5938. }
  5939. function char() {
  5940. return character;
  5941. }
  5942. function prev() {
  5943. return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
  5944. }
  5945. function next() {
  5946. return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
  5947. }
  5948. function peek() {
  5949. return charat(characters, position);
  5950. }
  5951. function caret() {
  5952. return position;
  5953. }
  5954. function slice(begin, end2) {
  5955. return substr(characters, begin, end2);
  5956. }
  5957. function token(type5) {
  5958. switch (type5) {
  5959. // \0 \t \n \r \s whitespace token
  5960. case 0:
  5961. case 9:
  5962. case 10:
  5963. case 13:
  5964. case 32:
  5965. return 5;
  5966. // ! + , / > @ ~ isolate token
  5967. case 33:
  5968. case 43:
  5969. case 44:
  5970. case 47:
  5971. case 62:
  5972. case 64:
  5973. case 126:
  5974. // ; { } breakpoint token
  5975. case 59:
  5976. case 123:
  5977. case 125:
  5978. return 4;
  5979. // : accompanied token
  5980. case 58:
  5981. return 3;
  5982. // " ' ( [ opening delimit token
  5983. case 34:
  5984. case 39:
  5985. case 40:
  5986. case 91:
  5987. return 2;
  5988. // ) ] closing delimit token
  5989. case 41:
  5990. case 93:
  5991. return 1;
  5992. }
  5993. return 0;
  5994. }
  5995. function alloc(value) {
  5996. return line = column = 1, length = strlen(characters = value), position = 0, [];
  5997. }
  5998. function dealloc(value) {
  5999. return characters = "", value;
  6000. }
  6001. function delimit(type5) {
  6002. return trim(slice(position - 1, delimiter(type5 === 91 ? type5 + 2 : type5 === 40 ? type5 + 1 : type5)));
  6003. }
  6004. function whitespace(type5) {
  6005. for (; (character = peek()) && character < 33; )
  6006. next();
  6007. return token(type5) > 2 || token(character) > 3 ? "" : " ";
  6008. }
  6009. function escaping(index4, count) {
  6010. for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); )
  6011. ;
  6012. return slice(index4, caret() + (count < 6 && peek() == 32 && next() == 32));
  6013. }
  6014. function delimiter(type5) {
  6015. for (; next(); )
  6016. switch (character) {
  6017. // ] ) " '
  6018. case type5:
  6019. return position;
  6020. // " '
  6021. case 34:
  6022. case 39:
  6023. type5 !== 34 && type5 !== 39 && delimiter(character);
  6024. break;
  6025. // (
  6026. case 40:
  6027. type5 === 41 && delimiter(type5);
  6028. break;
  6029. // \
  6030. case 92:
  6031. next();
  6032. break;
  6033. }
  6034. return position;
  6035. }
  6036. function commenter(type5, index4) {
  6037. for (; next() && type5 + character !== 57; )
  6038. if (type5 + character === 84 && peek() === 47)
  6039. break;
  6040. return "/*" + slice(index4, position - 1) + "*" + from(type5 === 47 ? type5 : next());
  6041. }
  6042. function identifier(index4) {
  6043. for (; !token(peek()); )
  6044. next();
  6045. return slice(index4, position);
  6046. }
  6047. var line, column, length, position, character, characters, init_Tokenizer = __esm({
  6048. "../../node_modules/stylis/src/Tokenizer.js"() {
  6049. init_Utility();
  6050. line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
  6051. }
  6052. });
  6053. // ../../node_modules/stylis/src/Parser.js
  6054. function compile(value) {
  6055. return dealloc(parse2("", null, null, null, [""], value = alloc(value), 0, [0], value));
  6056. }
  6057. function parse2(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) {
  6058. for (var index4 = 0, offset3 = 0, length2 = pseudo, atrule = 0, property = 0, previous = 0, variable = 1, scanning = 1, ampersand = 1, character2 = 0, type5 = "", props = rules, children = rulesets, reference2 = rule, characters2 = type5; scanning; )
  6059. switch (previous = character2, character2 = next()) {
  6060. // (
  6061. case 40:
  6062. if (previous != 108 && charat(characters2, length2 - 1) == 58) {
  6063. indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1);
  6064. break;
  6065. }
  6066. // " ' [
  6067. case 34:
  6068. case 39:
  6069. case 91:
  6070. characters2 += delimit(character2);
  6071. break;
  6072. // \t \n \r \s
  6073. case 9:
  6074. case 10:
  6075. case 13:
  6076. case 32:
  6077. characters2 += whitespace(previous);
  6078. break;
  6079. // \
  6080. case 92:
  6081. characters2 += escaping(caret() - 1, 7);
  6082. continue;
  6083. // /
  6084. case 47:
  6085. switch (peek()) {
  6086. case 42:
  6087. case 47:
  6088. append(comment(commenter(next(), caret()), root2, parent), declarations);
  6089. break;
  6090. default:
  6091. characters2 += "/";
  6092. }
  6093. break;
  6094. // {
  6095. case 123 * variable:
  6096. points[index4++] = strlen(characters2) * ampersand;
  6097. // } ; \0
  6098. case 125 * variable:
  6099. case 59:
  6100. case 0:
  6101. switch (character2) {
  6102. // \0 }
  6103. case 0:
  6104. case 125:
  6105. scanning = 0;
  6106. // ;
  6107. case 59 + offset3:
  6108. ampersand == -1 && (characters2 = replace(characters2, /\f/g, "")), property > 0 && strlen(characters2) - length2 && append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
  6109. break;
  6110. // @ ;
  6111. case 59:
  6112. characters2 += ";";
  6113. // { rule/at-rule
  6114. default:
  6115. if (append(reference2 = ruleset(characters2, root2, parent, index4, offset3, rules, points, type5, props = [], children = [], length2), rulesets), character2 === 123)
  6116. if (offset3 === 0)
  6117. parse2(characters2, root2, reference2, reference2, props, rulesets, length2, points, children);
  6118. else
  6119. switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
  6120. // d l m s
  6121. case 100:
  6122. case 108:
  6123. case 109:
  6124. case 115:
  6125. parse2(value, reference2, reference2, rule && append(ruleset(value, reference2, reference2, 0, 0, rules, points, type5, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
  6126. break;
  6127. default:
  6128. parse2(characters2, reference2, reference2, reference2, [""], children, 0, points, children);
  6129. }
  6130. }
  6131. index4 = offset3 = property = 0, variable = ampersand = 1, type5 = characters2 = "", length2 = pseudo;
  6132. break;
  6133. // :
  6134. case 58:
  6135. length2 = 1 + strlen(characters2), property = previous;
  6136. default:
  6137. if (variable < 1) {
  6138. if (character2 == 123)
  6139. --variable;
  6140. else if (character2 == 125 && variable++ == 0 && prev() == 125)
  6141. continue;
  6142. }
  6143. switch (characters2 += from(character2), character2 * variable) {
  6144. // &
  6145. case 38:
  6146. ampersand = offset3 > 0 ? 1 : (characters2 += "\f", -1);
  6147. break;
  6148. // ,
  6149. case 44:
  6150. points[index4++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
  6151. break;
  6152. // @
  6153. case 64:
  6154. peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset3 = length2 = strlen(type5 = characters2 += identifier(caret())), character2++;
  6155. break;
  6156. // -
  6157. case 45:
  6158. previous === 45 && strlen(characters2) == 2 && (variable = 0);
  6159. }
  6160. }
  6161. return rulesets;
  6162. }
  6163. function ruleset(value, root2, parent, index4, offset3, rules, points, type5, props, children, length2) {
  6164. for (var post = offset3 - 1, rule = offset3 === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index4; ++i)
  6165. for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
  6166. (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
  6167. return node(value, root2, parent, offset3 === 0 ? RULESET : type5, props, children, length2);
  6168. }
  6169. function comment(value, root2, parent) {
  6170. return node(value, root2, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
  6171. }
  6172. function declaration(value, root2, parent, length2) {
  6173. return node(value, root2, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
  6174. }
  6175. var init_Parser = __esm({
  6176. "../../node_modules/stylis/src/Parser.js"() {
  6177. init_Enum();
  6178. init_Utility();
  6179. init_Tokenizer();
  6180. }
  6181. });
  6182. // ../../node_modules/stylis/src/Prefixer.js
  6183. var init_Prefixer = __esm({
  6184. "../../node_modules/stylis/src/Prefixer.js"() {
  6185. init_Enum();
  6186. init_Utility();
  6187. }
  6188. });
  6189. // ../../node_modules/stylis/src/Serializer.js
  6190. function serialize(children, callback) {
  6191. for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
  6192. output += callback(children[i], i, children, callback) || "";
  6193. return output;
  6194. }
  6195. function stringify2(element, index4, children, callback) {
  6196. switch (element.type) {
  6197. case LAYER:
  6198. if (element.children.length) break;
  6199. case IMPORT:
  6200. case DECLARATION:
  6201. return element.return = element.return || element.value;
  6202. case COMMENT:
  6203. return "";
  6204. case KEYFRAMES:
  6205. return element.return = element.value + "{" + serialize(element.children, callback) + "}";
  6206. case RULESET:
  6207. element.value = element.props.join(",");
  6208. }
  6209. return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
  6210. }
  6211. var init_Serializer = __esm({
  6212. "../../node_modules/stylis/src/Serializer.js"() {
  6213. init_Enum();
  6214. init_Utility();
  6215. }
  6216. });
  6217. // ../../node_modules/stylis/src/Middleware.js
  6218. function middleware(collection) {
  6219. var length2 = sizeof(collection);
  6220. return function(element, index4, children, callback) {
  6221. for (var output = "", i = 0; i < length2; i++)
  6222. output += collection[i](element, index4, children, callback) || "";
  6223. return output;
  6224. };
  6225. }
  6226. function rulesheet(callback) {
  6227. return function(element) {
  6228. element.root || (element = element.return) && callback(element);
  6229. };
  6230. }
  6231. var init_Middleware = __esm({
  6232. "../../node_modules/stylis/src/Middleware.js"() {
  6233. init_Enum();
  6234. init_Utility();
  6235. init_Tokenizer();
  6236. init_Serializer();
  6237. init_Prefixer();
  6238. }
  6239. });
  6240. // ../../node_modules/stylis/index.js
  6241. var init_stylis = __esm({
  6242. "../../node_modules/stylis/index.js"() {
  6243. init_Enum();
  6244. init_Utility();
  6245. init_Parser();
  6246. init_Prefixer();
  6247. init_Tokenizer();
  6248. init_Serializer();
  6249. init_Middleware();
  6250. }
  6251. });
  6252. // ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
  6253. var weakMemoize, init_emotion_weak_memoize_esm = __esm({
  6254. "../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"() {
  6255. weakMemoize = function(func) {
  6256. var cache = /* @__PURE__ */ new WeakMap();
  6257. return function(arg) {
  6258. if (cache.has(arg))
  6259. return cache.get(arg);
  6260. var ret = func(arg);
  6261. return cache.set(arg, ret), ret;
  6262. };
  6263. };
  6264. }
  6265. });
  6266. // ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
  6267. function memoize2(fn4) {
  6268. var cache = /* @__PURE__ */ Object.create(null);
  6269. return function(arg) {
  6270. return cache[arg] === void 0 && (cache[arg] = fn4(arg)), cache[arg];
  6271. };
  6272. }
  6273. var init_emotion_memoize_esm = __esm({
  6274. "../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"() {
  6275. }
  6276. });
  6277. // ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
  6278. function prefix3(value, length2) {
  6279. switch (hash(value, length2)) {
  6280. // color-adjust
  6281. case 5103:
  6282. return WEBKIT + "print-" + value + value;
  6283. // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
  6284. case 5737:
  6285. case 4201:
  6286. case 3177:
  6287. case 3433:
  6288. case 1641:
  6289. case 4457:
  6290. case 2921:
  6291. // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
  6292. case 5572:
  6293. case 6356:
  6294. case 5844:
  6295. case 3191:
  6296. case 6645:
  6297. case 3005:
  6298. // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
  6299. case 6391:
  6300. case 5879:
  6301. case 5623:
  6302. case 6135:
  6303. case 4599:
  6304. case 4855:
  6305. // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
  6306. case 4215:
  6307. case 6389:
  6308. case 5109:
  6309. case 5365:
  6310. case 5621:
  6311. case 3829:
  6312. return WEBKIT + value + value;
  6313. // appearance, user-select, transform, hyphens, text-size-adjust
  6314. case 5349:
  6315. case 4246:
  6316. case 4810:
  6317. case 6968:
  6318. case 2756:
  6319. return WEBKIT + value + MOZ + value + MS + value + value;
  6320. // flex, flex-direction
  6321. case 6828:
  6322. case 4268:
  6323. return WEBKIT + value + MS + value + value;
  6324. // order
  6325. case 6165:
  6326. return WEBKIT + value + MS + "flex-" + value + value;
  6327. // align-items
  6328. case 5187:
  6329. return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
  6330. // align-self
  6331. case 5443:
  6332. return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
  6333. // align-content
  6334. case 4675:
  6335. return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
  6336. // flex-shrink
  6337. case 5548:
  6338. return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
  6339. // flex-basis
  6340. case 5292:
  6341. return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
  6342. // flex-grow
  6343. case 6060:
  6344. return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
  6345. // transition
  6346. case 4554:
  6347. return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
  6348. // cursor
  6349. case 6187:
  6350. return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
  6351. // background, background-image
  6352. case 5495:
  6353. case 3959:
  6354. return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
  6355. // justify-content
  6356. case 4968:
  6357. return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
  6358. // (margin|padding)-inline-(start|end)
  6359. case 4095:
  6360. case 3583:
  6361. case 4068:
  6362. case 2532:
  6363. return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
  6364. // (min|max)?(width|height|inline-size|block-size)
  6365. case 8116:
  6366. case 7059:
  6367. case 5753:
  6368. case 5535:
  6369. case 5445:
  6370. case 5701:
  6371. case 4933:
  6372. case 4677:
  6373. case 5533:
  6374. case 5789:
  6375. case 5021:
  6376. case 4765:
  6377. if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
  6378. // (m)ax-content, (m)in-content
  6379. case 109:
  6380. if (charat(value, length2 + 4) !== 45) break;
  6381. // (f)ill-available, (f)it-content
  6382. case 102:
  6383. return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
  6384. // (s)tretch
  6385. case 115:
  6386. return ~indexof(value, "stretch") ? prefix3(replace(value, "stretch", "fill-available"), length2) + value : value;
  6387. }
  6388. break;
  6389. // position: sticky
  6390. case 4949:
  6391. if (charat(value, length2 + 1) !== 115) break;
  6392. // display: (flex|inline-flex)
  6393. case 6444:
  6394. switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
  6395. // stic(k)y
  6396. case 107:
  6397. return replace(value, ":", ":" + WEBKIT) + value;
  6398. // (inline-)?fl(e)x
  6399. case 101:
  6400. return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
  6401. }
  6402. break;
  6403. // writing-mode
  6404. case 5936:
  6405. switch (charat(value, length2 + 11)) {
  6406. // vertical-l(r)
  6407. case 114:
  6408. return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
  6409. // vertical-r(l)
  6410. case 108:
  6411. return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
  6412. // horizontal(-)tb
  6413. case 45:
  6414. return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
  6415. }
  6416. return WEBKIT + value + MS + value + value;
  6417. }
  6418. return value;
  6419. }
  6420. var identifierWithPointTracking, toRules, getRules, fixedElements, compat, removeLabel, prefixer, defaultStylisPlugins, createCache, init_emotion_cache_browser_esm = __esm({
  6421. "../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"() {
  6422. init_emotion_sheet_esm();
  6423. init_stylis();
  6424. init_emotion_weak_memoize_esm();
  6425. init_emotion_memoize_esm();
  6426. identifierWithPointTracking = function(begin, points, index4) {
  6427. for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index4] = 1), !token(character2); )
  6428. next();
  6429. return slice(begin, position);
  6430. }, toRules = function(parsed, points) {
  6431. var index4 = -1, character2 = 44;
  6432. do
  6433. switch (token(character2)) {
  6434. case 0:
  6435. character2 === 38 && peek() === 12 && (points[index4] = 1), parsed[index4] += identifierWithPointTracking(position - 1, points, index4);
  6436. break;
  6437. case 2:
  6438. parsed[index4] += delimit(character2);
  6439. break;
  6440. case 4:
  6441. if (character2 === 44) {
  6442. parsed[++index4] = peek() === 58 ? "&\f" : "", points[index4] = parsed[index4].length;
  6443. break;
  6444. }
  6445. // fallthrough
  6446. default:
  6447. parsed[index4] += from(character2);
  6448. }
  6449. while (character2 = next());
  6450. return parsed;
  6451. }, getRules = function(value, points) {
  6452. return dealloc(toRules(alloc(value), points));
  6453. }, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) {
  6454. if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
  6455. // negative .length indicates that this rule has been already prefixed
  6456. element.length < 1)) {
  6457. for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; )
  6458. if (parent = parent.parent, !parent) return;
  6459. if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) {
  6460. fixedElements.set(element, !0);
  6461. for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)
  6462. for (var j = 0; j < parentRules.length; j++, k++)
  6463. element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
  6464. }
  6465. }
  6466. }, removeLabel = function(element) {
  6467. if (element.type === "decl") {
  6468. var value = element.value;
  6469. // charcode for l
  6470. value.charCodeAt(0) === 108 && // charcode for b
  6471. value.charCodeAt(2) === 98 && (element.return = "", element.value = "");
  6472. }
  6473. };
  6474. prefixer = function(element, index4, children, callback) {
  6475. if (element.length > -1 && !element.return) switch (element.type) {
  6476. case DECLARATION:
  6477. element.return = prefix3(element.value, element.length);
  6478. break;
  6479. case KEYFRAMES:
  6480. return serialize([copy(element, {
  6481. value: replace(element.value, "@", "@" + WEBKIT)
  6482. })], callback);
  6483. case RULESET:
  6484. if (element.length) return combine(element.props, function(value) {
  6485. switch (match(value, /(::plac\w+|:read-\w+)/)) {
  6486. // :read-(only|write)
  6487. case ":read-only":
  6488. case ":read-write":
  6489. return serialize([copy(element, {
  6490. props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
  6491. })], callback);
  6492. // :placeholder
  6493. case "::placeholder":
  6494. return serialize([copy(element, {
  6495. props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
  6496. }), copy(element, {
  6497. props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
  6498. }), copy(element, {
  6499. props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
  6500. })], callback);
  6501. }
  6502. return "";
  6503. });
  6504. }
  6505. }, defaultStylisPlugins = [prefixer], createCache = function(options) {
  6506. var key = options.key;
  6507. if (key === "css") {
  6508. var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
  6509. Array.prototype.forEach.call(ssrStyles, function(node2) {
  6510. var dataEmotionAttribute = node2.getAttribute("data-emotion");
  6511. dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", ""));
  6512. });
  6513. }
  6514. var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = [];
  6515. container = options.container || document.head, Array.prototype.forEach.call(
  6516. // this means we will ignore elements which don't have a space in them which
  6517. // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
  6518. document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
  6519. function(node2) {
  6520. for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)
  6521. inserted[attrib[i]] = !0;
  6522. nodesToHydrate.push(node2);
  6523. }
  6524. );
  6525. var _insert, omnipresentPlugins = [compat, removeLabel];
  6526. {
  6527. var currentSheet, finalizingPlugins = [stringify2, rulesheet(function(rule) {
  6528. currentSheet.insert(rule);
  6529. })], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles4) {
  6530. return serialize(compile(styles4), serializer);
  6531. };
  6532. _insert = function(selector, serialized, sheet, shouldCache) {
  6533. currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = !0);
  6534. };
  6535. }
  6536. var cache = {
  6537. key,
  6538. sheet: new StyleSheet({
  6539. key,
  6540. container,
  6541. nonce: options.nonce,
  6542. speedy: options.speedy,
  6543. prepend: options.prepend,
  6544. insertionPoint: options.insertionPoint
  6545. }),
  6546. nonce: options.nonce,
  6547. inserted,
  6548. registered: {},
  6549. insert: _insert
  6550. };
  6551. return cache.sheet.hydrate(nodesToHydrate), cache;
  6552. };
  6553. }
  6554. });
  6555. // ../../node_modules/react-is/cjs/react-is.production.min.js
  6556. var require_react_is_production_min = __commonJS({
  6557. "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
  6558. "use strict";
  6559. var b = typeof Symbol == "function" && Symbol.for, c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f4 = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g2 = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h3 = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m3 = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p3 = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r2 = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
  6560. function z(a3) {
  6561. if (typeof a3 == "object" && a3 !== null) {
  6562. var u2 = a3.$$typeof;
  6563. switch (u2) {
  6564. case c:
  6565. switch (a3 = a3.type, a3) {
  6566. case l:
  6567. case m3:
  6568. case e:
  6569. case g2:
  6570. case f4:
  6571. case p3:
  6572. return a3;
  6573. default:
  6574. switch (a3 = a3 && a3.$$typeof, a3) {
  6575. case k:
  6576. case n:
  6577. case t:
  6578. case r2:
  6579. case h3:
  6580. return a3;
  6581. default:
  6582. return u2;
  6583. }
  6584. }
  6585. case d:
  6586. return u2;
  6587. }
  6588. }
  6589. }
  6590. function A3(a3) {
  6591. return z(a3) === m3;
  6592. }
  6593. exports.AsyncMode = l;
  6594. exports.ConcurrentMode = m3;
  6595. exports.ContextConsumer = k;
  6596. exports.ContextProvider = h3;
  6597. exports.Element = c;
  6598. exports.ForwardRef = n;
  6599. exports.Fragment = e;
  6600. exports.Lazy = t;
  6601. exports.Memo = r2;
  6602. exports.Portal = d;
  6603. exports.Profiler = g2;
  6604. exports.StrictMode = f4;
  6605. exports.Suspense = p3;
  6606. exports.isAsyncMode = function(a3) {
  6607. return A3(a3) || z(a3) === l;
  6608. };
  6609. exports.isConcurrentMode = A3;
  6610. exports.isContextConsumer = function(a3) {
  6611. return z(a3) === k;
  6612. };
  6613. exports.isContextProvider = function(a3) {
  6614. return z(a3) === h3;
  6615. };
  6616. exports.isElement = function(a3) {
  6617. return typeof a3 == "object" && a3 !== null && a3.$$typeof === c;
  6618. };
  6619. exports.isForwardRef = function(a3) {
  6620. return z(a3) === n;
  6621. };
  6622. exports.isFragment = function(a3) {
  6623. return z(a3) === e;
  6624. };
  6625. exports.isLazy = function(a3) {
  6626. return z(a3) === t;
  6627. };
  6628. exports.isMemo = function(a3) {
  6629. return z(a3) === r2;
  6630. };
  6631. exports.isPortal = function(a3) {
  6632. return z(a3) === d;
  6633. };
  6634. exports.isProfiler = function(a3) {
  6635. return z(a3) === g2;
  6636. };
  6637. exports.isStrictMode = function(a3) {
  6638. return z(a3) === f4;
  6639. };
  6640. exports.isSuspense = function(a3) {
  6641. return z(a3) === p3;
  6642. };
  6643. exports.isValidElementType = function(a3) {
  6644. return typeof a3 == "string" || typeof a3 == "function" || a3 === e || a3 === m3 || a3 === g2 || a3 === f4 || a3 === p3 || a3 === q || typeof a3 == "object" && a3 !== null && (a3.$$typeof === t || a3.$$typeof === r2 || a3.$$typeof === h3 || a3.$$typeof === k || a3.$$typeof === n || a3.$$typeof === w || a3.$$typeof === x || a3.$$typeof === y || a3.$$typeof === v);
  6645. };
  6646. exports.typeOf = z;
  6647. }
  6648. });
  6649. // ../../node_modules/react-is/index.js
  6650. var require_react_is = __commonJS({
  6651. "../../node_modules/react-is/index.js"(exports, module2) {
  6652. "use strict";
  6653. module2.exports = require_react_is_production_min();
  6654. }
  6655. });
  6656. // ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
  6657. var require_hoist_non_react_statics_cjs = __commonJS({
  6658. "../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module2) {
  6659. "use strict";
  6660. var reactIs2 = require_react_is(), REACT_STATICS = {
  6661. childContextTypes: !0,
  6662. contextType: !0,
  6663. contextTypes: !0,
  6664. defaultProps: !0,
  6665. displayName: !0,
  6666. getDefaultProps: !0,
  6667. getDerivedStateFromError: !0,
  6668. getDerivedStateFromProps: !0,
  6669. mixins: !0,
  6670. propTypes: !0,
  6671. type: !0
  6672. }, KNOWN_STATICS = {
  6673. name: !0,
  6674. length: !0,
  6675. prototype: !0,
  6676. caller: !0,
  6677. callee: !0,
  6678. arguments: !0,
  6679. arity: !0
  6680. }, FORWARD_REF_STATICS = {
  6681. $$typeof: !0,
  6682. render: !0,
  6683. defaultProps: !0,
  6684. displayName: !0,
  6685. propTypes: !0
  6686. }, MEMO_STATICS = {
  6687. $$typeof: !0,
  6688. compare: !0,
  6689. defaultProps: !0,
  6690. displayName: !0,
  6691. propTypes: !0,
  6692. type: !0
  6693. }, TYPE_STATICS = {};
  6694. TYPE_STATICS[reactIs2.ForwardRef] = FORWARD_REF_STATICS;
  6695. TYPE_STATICS[reactIs2.Memo] = MEMO_STATICS;
  6696. function getStatics(component) {
  6697. return reactIs2.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS;
  6698. }
  6699. var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype;
  6700. function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
  6701. if (typeof sourceComponent != "string") {
  6702. if (objectPrototype) {
  6703. var inheritedComponent = getPrototypeOf(sourceComponent);
  6704. inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
  6705. }
  6706. var keys3 = getOwnPropertyNames(sourceComponent);
  6707. getOwnPropertySymbols && (keys3 = keys3.concat(getOwnPropertySymbols(sourceComponent)));
  6708. for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys3.length; ++i) {
  6709. var key = keys3[i];
  6710. if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
  6711. var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
  6712. try {
  6713. defineProperty(targetComponent, key, descriptor);
  6714. } catch {
  6715. }
  6716. }
  6717. }
  6718. }
  6719. return targetComponent;
  6720. }
  6721. module2.exports = hoistNonReactStatics2;
  6722. }
  6723. });
  6724. // ../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
  6725. var import_hoist_non_react_statics, hoistNonReactStatics, init_emotion_react_isolated_hnrs_browser_esm = __esm({
  6726. "../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js"() {
  6727. import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) {
  6728. return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
  6729. });
  6730. }
  6731. });
  6732. // ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
  6733. function getRegisteredStyles(registered, registeredStyles, classNames) {
  6734. var rawClassName = "";
  6735. return classNames.split(" ").forEach(function(className) {
  6736. registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " ");
  6737. }), rawClassName;
  6738. }
  6739. var isBrowser, registerStyles, insertStyles, init_emotion_utils_browser_esm = __esm({
  6740. "../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"() {
  6741. isBrowser = !0;
  6742. registerStyles = function(cache, serialized, isStringTag) {
  6743. var className = cache.key + "-" + serialized.name;
  6744. // we only need to add the styles to the registered cache if the
  6745. // class name could be used further down
  6746. // the tree but if it's a string tag, we know it won't
  6747. // so we don't have to add it to registered cache.
  6748. // this improves memory usage since we can avoid storing the whole style string
  6749. (isStringTag === !1 || // we need to always store it if we're in compat mode and
  6750. // in node since emotion-server relies on whether a style is in
  6751. // the registered cache to know whether a style is global or not
  6752. // also, note that this check will be dead code eliminated in the browser
  6753. isBrowser === !1) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles);
  6754. }, insertStyles = function(cache, serialized, isStringTag) {
  6755. registerStyles(cache, serialized, isStringTag);
  6756. var className = cache.key + "-" + serialized.name;
  6757. if (cache.inserted[serialized.name] === void 0) {
  6758. var current = serialized;
  6759. do
  6760. cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next;
  6761. while (current !== void 0);
  6762. }
  6763. };
  6764. }
  6765. });
  6766. // ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
  6767. function murmur2(str2) {
  6768. for (var h3 = 0, k, i = 0, len = str2.length; len >= 4; ++i, len -= 4)
  6769. k = str2.charCodeAt(i) & 255 | (str2.charCodeAt(++i) & 255) << 8 | (str2.charCodeAt(++i) & 255) << 16 | (str2.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
  6770. (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */
  6771. k >>> 24, h3 = /* Math.imul(k, m): */
  6772. (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
  6773. (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16);
  6774. switch (len) {
  6775. case 3:
  6776. h3 ^= (str2.charCodeAt(i + 2) & 255) << 16;
  6777. case 2:
  6778. h3 ^= (str2.charCodeAt(i + 1) & 255) << 8;
  6779. case 1:
  6780. h3 ^= str2.charCodeAt(i) & 255, h3 = /* Math.imul(h, m): */
  6781. (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16);
  6782. }
  6783. return h3 ^= h3 >>> 13, h3 = /* Math.imul(h, m): */
  6784. (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16), ((h3 ^ h3 >>> 15) >>> 0).toString(36);
  6785. }
  6786. var init_emotion_hash_esm = __esm({
  6787. "../../node_modules/@emotion/hash/dist/emotion-hash.esm.js"() {
  6788. }
  6789. });
  6790. // ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
  6791. var unitlessKeys, init_emotion_unitless_esm = __esm({
  6792. "../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"() {
  6793. unitlessKeys = {
  6794. animationIterationCount: 1,
  6795. aspectRatio: 1,
  6796. borderImageOutset: 1,
  6797. borderImageSlice: 1,
  6798. borderImageWidth: 1,
  6799. boxFlex: 1,
  6800. boxFlexGroup: 1,
  6801. boxOrdinalGroup: 1,
  6802. columnCount: 1,
  6803. columns: 1,
  6804. flex: 1,
  6805. flexGrow: 1,
  6806. flexPositive: 1,
  6807. flexShrink: 1,
  6808. flexNegative: 1,
  6809. flexOrder: 1,
  6810. gridRow: 1,
  6811. gridRowEnd: 1,
  6812. gridRowSpan: 1,
  6813. gridRowStart: 1,
  6814. gridColumn: 1,
  6815. gridColumnEnd: 1,
  6816. gridColumnSpan: 1,
  6817. gridColumnStart: 1,
  6818. msGridRow: 1,
  6819. msGridRowSpan: 1,
  6820. msGridColumn: 1,
  6821. msGridColumnSpan: 1,
  6822. fontWeight: 1,
  6823. lineHeight: 1,
  6824. opacity: 1,
  6825. order: 1,
  6826. orphans: 1,
  6827. scale: 1,
  6828. tabSize: 1,
  6829. widows: 1,
  6830. zIndex: 1,
  6831. zoom: 1,
  6832. WebkitLineClamp: 1,
  6833. // SVG-related properties
  6834. fillOpacity: 1,
  6835. floodOpacity: 1,
  6836. stopOpacity: 1,
  6837. strokeDasharray: 1,
  6838. strokeDashoffset: 1,
  6839. strokeMiterlimit: 1,
  6840. strokeOpacity: 1,
  6841. strokeWidth: 1
  6842. };
  6843. }
  6844. });
  6845. // ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
  6846. function handleInterpolation(mergedProps, registered, interpolation) {
  6847. if (interpolation == null)
  6848. return "";
  6849. var componentSelector = interpolation;
  6850. if (componentSelector.__emotion_styles !== void 0)
  6851. return componentSelector;
  6852. switch (typeof interpolation) {
  6853. case "boolean":
  6854. return "";
  6855. case "object": {
  6856. var keyframes2 = interpolation;
  6857. if (keyframes2.anim === 1)
  6858. return cursor = {
  6859. name: keyframes2.name,
  6860. styles: keyframes2.styles,
  6861. next: cursor
  6862. }, keyframes2.name;
  6863. var serializedStyles = interpolation;
  6864. if (serializedStyles.styles !== void 0) {
  6865. var next2 = serializedStyles.next;
  6866. if (next2 !== void 0)
  6867. for (; next2 !== void 0; )
  6868. cursor = {
  6869. name: next2.name,
  6870. styles: next2.styles,
  6871. next: cursor
  6872. }, next2 = next2.next;
  6873. var styles4 = serializedStyles.styles + ";";
  6874. return styles4;
  6875. }
  6876. return createStringFromObject(mergedProps, registered, interpolation);
  6877. }
  6878. case "function": {
  6879. if (mergedProps !== void 0) {
  6880. var previousCursor = cursor, result = interpolation(mergedProps);
  6881. return cursor = previousCursor, handleInterpolation(mergedProps, registered, result);
  6882. }
  6883. break;
  6884. }
  6885. }
  6886. var asString = interpolation;
  6887. if (registered == null)
  6888. return asString;
  6889. var cached = registered[asString];
  6890. return cached !== void 0 ? cached : asString;
  6891. }
  6892. function createStringFromObject(mergedProps, registered, obj) {
  6893. var string = "";
  6894. if (Array.isArray(obj))
  6895. for (var i = 0; i < obj.length; i++)
  6896. string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
  6897. else
  6898. for (var key in obj) {
  6899. var value = obj[key];
  6900. if (typeof value != "object") {
  6901. var asString = value;
  6902. registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";");
  6903. } else {
  6904. if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2)
  6905. throw new Error(noComponentSelectorMessage);
  6906. if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0))
  6907. for (var _i = 0; _i < value.length; _i++)
  6908. isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";");
  6909. else {
  6910. var interpolated = handleInterpolation(mergedProps, registered, value);
  6911. switch (key) {
  6912. case "animation":
  6913. case "animationName": {
  6914. string += processStyleName(key) + ":" + interpolated + ";";
  6915. break;
  6916. }
  6917. default:
  6918. string += key + "{" + interpolated + "}";
  6919. }
  6920. }
  6921. }
  6922. }
  6923. return string;
  6924. }
  6925. function serializeStyles(args, registered, mergedProps) {
  6926. if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0)
  6927. return args[0];
  6928. var stringMode = !0, styles4 = "";
  6929. cursor = void 0;
  6930. var strings = args[0];
  6931. if (strings == null || strings.raw === void 0)
  6932. stringMode = !1, styles4 += handleInterpolation(mergedProps, registered, strings);
  6933. else {
  6934. var asTemplateStringsArr = strings;
  6935. styles4 += asTemplateStringsArr[0];
  6936. }
  6937. for (var i = 1; i < args.length; i++)
  6938. if (styles4 += handleInterpolation(mergedProps, registered, args[i]), stringMode) {
  6939. var templateStringsArr = strings;
  6940. styles4 += templateStringsArr[i];
  6941. }
  6942. labelPattern.lastIndex = 0;
  6943. for (var identifierName = "", match3; (match3 = labelPattern.exec(styles4)) !== null; )
  6944. identifierName += "-" + match3[1];
  6945. var name = murmur2(styles4) + identifierName;
  6946. return {
  6947. name,
  6948. styles: styles4,
  6949. next: cursor
  6950. };
  6951. }
  6952. var isDevelopment2, hyphenateRegex, animationRegex, isCustomProperty, isProcessableValue, processStyleName, processStyleValue, noComponentSelectorMessage, labelPattern, cursor, init_emotion_serialize_esm = __esm({
  6953. "../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js"() {
  6954. init_emotion_hash_esm();
  6955. init_emotion_unitless_esm();
  6956. init_emotion_memoize_esm();
  6957. isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
  6958. return property.charCodeAt(1) === 45;
  6959. }, isProcessableValue = function(value) {
  6960. return value != null && typeof value != "boolean";
  6961. }, processStyleName = memoize2(function(styleName) {
  6962. return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
  6963. }), processStyleValue = function(key, value) {
  6964. switch (key) {
  6965. case "animation":
  6966. case "animationName":
  6967. if (typeof value == "string")
  6968. return value.replace(animationRegex, function(match3, p1, p22) {
  6969. return cursor = {
  6970. name: p1,
  6971. styles: p22,
  6972. next: cursor
  6973. }, p1;
  6974. });
  6975. }
  6976. return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value;
  6977. }, noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
  6978. labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
  6979. }
  6980. });
  6981. // ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
  6982. var React, syncFallback, useInsertionEffect2, useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback, init_emotion_use_insertion_effect_with_fallbacks_browser_esm = __esm({
  6983. "../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"() {
  6984. React = __toESM(require_react()), syncFallback = function(create4) {
  6985. return create4();
  6986. }, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
  6987. }
  6988. });
  6989. // ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
  6990. function withTheme(Component5) {
  6991. var componentName = Component5.displayName || Component5.name || "Component", WithTheme = React2.forwardRef(function(props, ref) {
  6992. var theme3 = React2.useContext(ThemeContext);
  6993. return React2.createElement(Component5, _extends({
  6994. theme: theme3,
  6995. ref
  6996. }, props));
  6997. });
  6998. return WithTheme.displayName = "WithTheme(" + componentName + ")", hoistNonReactStatics(WithTheme, Component5);
  6999. }
  7000. var React2, import_react, isDevelopment3, EmotionCacheContext, CacheProvider, withEmotionCache, ThemeContext, useTheme, getTheme, createCacheWithTheme, ThemeProvider, hasOwn, typePropName, createEmotionProps, Insertion, Emotion, Emotion$1, init_emotion_element_f0de968e_browser_esm = __esm({
  7001. "../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js"() {
  7002. React2 = __toESM(require_react()), import_react = __toESM(require_react());
  7003. init_emotion_cache_browser_esm();
  7004. init_extends();
  7005. init_emotion_weak_memoize_esm();
  7006. init_emotion_react_isolated_hnrs_browser_esm();
  7007. init_emotion_utils_browser_esm();
  7008. init_emotion_serialize_esm();
  7009. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7010. isDevelopment3 = !1, EmotionCacheContext = React2.createContext(
  7011. // we're doing this to avoid preconstruct's dead code elimination in this one case
  7012. // because this module is primarily intended for the browser and node
  7013. // but it's also required in react native and similar environments sometimes
  7014. // and we could have a special build just for that
  7015. // but this is much easier and the native packages
  7016. // might use a different theme context in the future anyway
  7017. typeof HTMLElement < "u" ? createCache({
  7018. key: "css"
  7019. }) : null
  7020. ), CacheProvider = EmotionCacheContext.Provider, withEmotionCache = function(func) {
  7021. return (0, import_react.forwardRef)(function(props, ref) {
  7022. var cache = (0, import_react.useContext)(EmotionCacheContext);
  7023. return func(props, cache, ref);
  7024. });
  7025. }, ThemeContext = React2.createContext({}), useTheme = function() {
  7026. return React2.useContext(ThemeContext);
  7027. }, getTheme = function(outerTheme, theme3) {
  7028. if (typeof theme3 == "function") {
  7029. var mergedTheme = theme3(outerTheme);
  7030. return mergedTheme;
  7031. }
  7032. return _extends({}, outerTheme, theme3);
  7033. }, createCacheWithTheme = weakMemoize(function(outerTheme) {
  7034. return weakMemoize(function(theme3) {
  7035. return getTheme(outerTheme, theme3);
  7036. });
  7037. }), ThemeProvider = function(props) {
  7038. var theme3 = React2.useContext(ThemeContext);
  7039. return props.theme !== theme3 && (theme3 = createCacheWithTheme(theme3)(props.theme)), React2.createElement(ThemeContext.Provider, {
  7040. value: theme3
  7041. }, props.children);
  7042. };
  7043. hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type5, props) {
  7044. var newProps = {};
  7045. for (var _key in props)
  7046. hasOwn.call(props, _key) && (newProps[_key] = props[_key]);
  7047. return newProps[typePropName] = type5, newProps;
  7048. }, Insertion = function(_ref) {
  7049. var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
  7050. return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
  7051. return insertStyles(cache, serialized, isStringTag);
  7052. }), null;
  7053. }, Emotion = withEmotionCache(function(props, cache, ref) {
  7054. var cssProp = props.css;
  7055. typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]);
  7056. var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = "";
  7057. typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " ");
  7058. var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
  7059. className += cache.key + "-" + serialized.name;
  7060. var newProps = {};
  7061. for (var _key2 in props)
  7062. hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment3 && (newProps[_key2] = props[_key2]);
  7063. return newProps.className = className, ref && (newProps.ref = ref), React2.createElement(React2.Fragment, null, React2.createElement(Insertion, {
  7064. cache,
  7065. serialized,
  7066. isStringTag: typeof WrappedComponent == "string"
  7067. }), React2.createElement(WrappedComponent, newProps));
  7068. }), Emotion$1 = Emotion;
  7069. }
  7070. });
  7071. // ../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
  7072. function css() {
  7073. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  7074. args[_key] = arguments[_key];
  7075. return serializeStyles(args);
  7076. }
  7077. function keyframes() {
  7078. var insertable = css.apply(void 0, arguments), name = "animation-" + insertable.name;
  7079. return {
  7080. name,
  7081. styles: "@keyframes " + name + "{" + insertable.styles + "}",
  7082. anim: 1,
  7083. toString: function() {
  7084. return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
  7085. }
  7086. };
  7087. }
  7088. function merge(registered, css3, className) {
  7089. var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className);
  7090. return registeredStyles.length < 2 ? className : rawClassName + css3(registeredStyles);
  7091. }
  7092. var React3, import_hoist_non_react_statics2, jsx, Global, classnames, Insertion3, ClassNames, init_emotion_react_browser_esm = __esm({
  7093. "../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js"() {
  7094. init_emotion_element_f0de968e_browser_esm();
  7095. init_emotion_element_f0de968e_browser_esm();
  7096. React3 = __toESM(require_react());
  7097. init_emotion_utils_browser_esm();
  7098. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7099. init_emotion_serialize_esm();
  7100. init_emotion_cache_browser_esm();
  7101. init_extends();
  7102. init_emotion_weak_memoize_esm();
  7103. init_emotion_react_isolated_hnrs_browser_esm();
  7104. import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type5, props) {
  7105. var args = arguments;
  7106. if (props == null || !hasOwn.call(props, "css"))
  7107. return React3.createElement.apply(void 0, args);
  7108. var argsLength = args.length, createElementArgArray = new Array(argsLength);
  7109. createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type5, props);
  7110. for (var i = 2; i < argsLength; i++)
  7111. createElementArgArray[i] = args[i];
  7112. return React3.createElement.apply(null, createElementArgArray);
  7113. };
  7114. (function(_jsx) {
  7115. var JSX;
  7116. JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
  7117. })(jsx || (jsx = {}));
  7118. Global = withEmotionCache(function(props, cache) {
  7119. var styles4 = props.styles, serialized = serializeStyles([styles4], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef();
  7120. return useInsertionEffectWithLayoutFallback(function() {
  7121. var key = cache.key + "-global", sheet = new cache.sheet.constructor({
  7122. key,
  7123. nonce: cache.sheet.nonce,
  7124. container: cache.sheet.container,
  7125. speedy: cache.sheet.isSpeedy
  7126. }), rehydrating = !1, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
  7127. return cache.sheet.tags.length && (sheet.before = cache.sheet.tags[0]), node2 !== null && (rehydrating = !0, node2.setAttribute("data-emotion", key), sheet.hydrate([node2])), sheetRef.current = [sheet, rehydrating], function() {
  7128. sheet.flush();
  7129. };
  7130. }, [cache]), useInsertionEffectWithLayoutFallback(function() {
  7131. var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
  7132. if (rehydrating) {
  7133. sheetRefCurrent[1] = !1;
  7134. return;
  7135. }
  7136. if (serialized.next !== void 0 && insertStyles(cache, serialized.next, !0), sheet.tags.length) {
  7137. var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
  7138. sheet.before = element, sheet.flush();
  7139. }
  7140. cache.insert("", serialized, sheet, !1);
  7141. }, [cache, serialized.name]), null;
  7142. });
  7143. classnames = function classnames2(args) {
  7144. for (var len = args.length, i = 0, cls = ""; i < len; i++) {
  7145. var arg = args[i];
  7146. if (arg != null) {
  7147. var toAdd = void 0;
  7148. switch (typeof arg) {
  7149. case "boolean":
  7150. break;
  7151. case "object": {
  7152. if (Array.isArray(arg))
  7153. toAdd = classnames2(arg);
  7154. else {
  7155. toAdd = "";
  7156. for (var k in arg)
  7157. arg[k] && k && (toAdd && (toAdd += " "), toAdd += k);
  7158. }
  7159. break;
  7160. }
  7161. default:
  7162. toAdd = arg;
  7163. }
  7164. toAdd && (cls && (cls += " "), cls += toAdd);
  7165. }
  7166. }
  7167. return cls;
  7168. };
  7169. Insertion3 = function(_ref) {
  7170. var cache = _ref.cache, serializedArr = _ref.serializedArr;
  7171. return useInsertionEffectAlwaysWithSyncFallback(function() {
  7172. for (var i = 0; i < serializedArr.length; i++)
  7173. insertStyles(cache, serializedArr[i], !1);
  7174. }), null;
  7175. }, ClassNames = withEmotionCache(function(props, cache) {
  7176. var hasRendered = !1, serializedArr = [], css3 = function() {
  7177. if (hasRendered && isDevelopment3)
  7178. throw new Error("css can only be used during render");
  7179. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  7180. args[_key] = arguments[_key];
  7181. var serialized = serializeStyles(args, cache.registered);
  7182. return serializedArr.push(serialized), registerStyles(cache, serialized, !1), cache.key + "-" + serialized.name;
  7183. }, cx = function() {
  7184. if (hasRendered && isDevelopment3)
  7185. throw new Error("cx can only be used during render");
  7186. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
  7187. args[_key2] = arguments[_key2];
  7188. return merge(cache.registered, css3, classnames(args));
  7189. }, content = {
  7190. css: css3,
  7191. cx,
  7192. theme: React3.useContext(ThemeContext)
  7193. }, ele = props.children(content);
  7194. return hasRendered = !0, React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
  7195. cache,
  7196. serializedArr
  7197. }), ele);
  7198. });
  7199. }
  7200. });
  7201. // ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
  7202. var reactPropsRegex, isPropValid, init_emotion_is_prop_valid_esm = __esm({
  7203. "../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"() {
  7204. init_emotion_memoize_esm();
  7205. reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, isPropValid = memoize2(
  7206. function(prop) {
  7207. return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
  7208. }
  7209. /* Z+1 */
  7210. );
  7211. }
  7212. });
  7213. // ../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
  7214. var React4, isDevelopment4, testOmitPropsOnStringTag, testOmitPropsOnComponent, getDefaultShouldForwardProp, composeShouldForwardProps, Insertion5, createStyled, init_emotion_styled_base_browser_esm = __esm({
  7215. "../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"() {
  7216. init_extends();
  7217. init_emotion_react_browser_esm();
  7218. init_emotion_serialize_esm();
  7219. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7220. init_emotion_utils_browser_esm();
  7221. React4 = __toESM(require_react());
  7222. init_emotion_is_prop_valid_esm();
  7223. isDevelopment4 = !1, testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) {
  7224. return key !== "theme";
  7225. }, getDefaultShouldForwardProp = function(tag) {
  7226. return typeof tag == "string" && // 96 is one less than the char code
  7227. // for "a" so this is checking that
  7228. // it's a lowercase character
  7229. tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
  7230. }, composeShouldForwardProps = function(tag, options, isReal) {
  7231. var shouldForwardProp;
  7232. if (options) {
  7233. var optionsShouldForwardProp = options.shouldForwardProp;
  7234. shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
  7235. return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
  7236. } : optionsShouldForwardProp;
  7237. }
  7238. return typeof shouldForwardProp != "function" && isReal && (shouldForwardProp = tag.__emotion_forwardProp), shouldForwardProp;
  7239. }, Insertion5 = function(_ref) {
  7240. var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
  7241. return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
  7242. return insertStyles(cache, serialized, isStringTag);
  7243. }), null;
  7244. }, createStyled = function createStyled2(tag, options) {
  7245. var isReal = tag.__emotion_real === tag, baseTag = isReal && tag.__emotion_base || tag, identifierName, targetClassName;
  7246. options !== void 0 && (identifierName = options.label, targetClassName = options.target);
  7247. var shouldForwardProp = composeShouldForwardProps(tag, options, isReal), defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), shouldUseAs = !defaultShouldForwardProp("as");
  7248. return function() {
  7249. var args = arguments, styles4 = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
  7250. if (identifierName !== void 0 && styles4.push("label:" + identifierName + ";"), args[0] == null || args[0].raw === void 0)
  7251. styles4.push.apply(styles4, args);
  7252. else {
  7253. var templateStringsArr = args[0];
  7254. styles4.push(templateStringsArr[0]);
  7255. for (var len = args.length, i = 1; i < len; i++)
  7256. styles4.push(args[i], templateStringsArr[i]);
  7257. }
  7258. var Styled = withEmotionCache(function(props, cache, ref) {
  7259. var FinalTag = shouldUseAs && props.as || baseTag, className = "", classInterpolations = [], mergedProps = props;
  7260. if (props.theme == null) {
  7261. mergedProps = {};
  7262. for (var key in props)
  7263. mergedProps[key] = props[key];
  7264. mergedProps.theme = React4.useContext(ThemeContext);
  7265. }
  7266. typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, classInterpolations, props.className) : props.className != null && (className = props.className + " ");
  7267. var serialized = serializeStyles(styles4.concat(classInterpolations), cache.registered, mergedProps);
  7268. className += cache.key + "-" + serialized.name, targetClassName !== void 0 && (className += " " + targetClassName);
  7269. var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp, newProps = {};
  7270. for (var _key in props)
  7271. shouldUseAs && _key === "as" || finalShouldForwardProp(_key) && (newProps[_key] = props[_key]);
  7272. return newProps.className = className, ref && (newProps.ref = ref), React4.createElement(React4.Fragment, null, React4.createElement(Insertion5, {
  7273. cache,
  7274. serialized,
  7275. isStringTag: typeof FinalTag == "string"
  7276. }), React4.createElement(FinalTag, newProps));
  7277. });
  7278. return Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag == "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")", Styled.defaultProps = tag.defaultProps, Styled.__emotion_real = Styled, Styled.__emotion_base = baseTag, Styled.__emotion_styles = styles4, Styled.__emotion_forwardProp = shouldForwardProp, Object.defineProperty(Styled, "toString", {
  7279. value: function() {
  7280. return targetClassName === void 0 && isDevelopment4 ? "NO_COMPONENT_SELECTOR" : "." + targetClassName;
  7281. }
  7282. }), Styled.withComponent = function(nextTag, nextOptions) {
  7283. var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
  7284. shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, !0)
  7285. }));
  7286. return newStyled.apply(void 0, styles4);
  7287. }, Styled;
  7288. };
  7289. };
  7290. }
  7291. });
  7292. // ../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
  7293. var import_react4, tags, styled, init_emotion_styled_browser_esm = __esm({
  7294. "../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"() {
  7295. init_emotion_styled_base_browser_esm();
  7296. init_extends();
  7297. init_emotion_react_browser_esm();
  7298. init_emotion_serialize_esm();
  7299. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7300. init_emotion_utils_browser_esm();
  7301. import_react4 = __toESM(require_react());
  7302. init_emotion_is_prop_valid_esm();
  7303. tags = [
  7304. "a",
  7305. "abbr",
  7306. "address",
  7307. "area",
  7308. "article",
  7309. "aside",
  7310. "audio",
  7311. "b",
  7312. "base",
  7313. "bdi",
  7314. "bdo",
  7315. "big",
  7316. "blockquote",
  7317. "body",
  7318. "br",
  7319. "button",
  7320. "canvas",
  7321. "caption",
  7322. "cite",
  7323. "code",
  7324. "col",
  7325. "colgroup",
  7326. "data",
  7327. "datalist",
  7328. "dd",
  7329. "del",
  7330. "details",
  7331. "dfn",
  7332. "dialog",
  7333. "div",
  7334. "dl",
  7335. "dt",
  7336. "em",
  7337. "embed",
  7338. "fieldset",
  7339. "figcaption",
  7340. "figure",
  7341. "footer",
  7342. "form",
  7343. "h1",
  7344. "h2",
  7345. "h3",
  7346. "h4",
  7347. "h5",
  7348. "h6",
  7349. "head",
  7350. "header",
  7351. "hgroup",
  7352. "hr",
  7353. "html",
  7354. "i",
  7355. "iframe",
  7356. "img",
  7357. "input",
  7358. "ins",
  7359. "kbd",
  7360. "keygen",
  7361. "label",
  7362. "legend",
  7363. "li",
  7364. "link",
  7365. "main",
  7366. "map",
  7367. "mark",
  7368. "marquee",
  7369. "menu",
  7370. "menuitem",
  7371. "meta",
  7372. "meter",
  7373. "nav",
  7374. "noscript",
  7375. "object",
  7376. "ol",
  7377. "optgroup",
  7378. "option",
  7379. "output",
  7380. "p",
  7381. "param",
  7382. "picture",
  7383. "pre",
  7384. "progress",
  7385. "q",
  7386. "rp",
  7387. "rt",
  7388. "ruby",
  7389. "s",
  7390. "samp",
  7391. "script",
  7392. "section",
  7393. "select",
  7394. "small",
  7395. "source",
  7396. "span",
  7397. "strong",
  7398. "style",
  7399. "sub",
  7400. "summary",
  7401. "sup",
  7402. "table",
  7403. "tbody",
  7404. "td",
  7405. "textarea",
  7406. "tfoot",
  7407. "th",
  7408. "thead",
  7409. "time",
  7410. "title",
  7411. "tr",
  7412. "track",
  7413. "u",
  7414. "ul",
  7415. "var",
  7416. "video",
  7417. "wbr",
  7418. // SVG
  7419. "circle",
  7420. "clipPath",
  7421. "defs",
  7422. "ellipse",
  7423. "foreignObject",
  7424. "g",
  7425. "image",
  7426. "line",
  7427. "linearGradient",
  7428. "mask",
  7429. "path",
  7430. "pattern",
  7431. "polygon",
  7432. "polyline",
  7433. "radialGradient",
  7434. "rect",
  7435. "stop",
  7436. "svg",
  7437. "text",
  7438. "tspan"
  7439. ], styled = createStyled.bind(null);
  7440. tags.forEach(function(tagName) {
  7441. styled[tagName] = styled(tagName);
  7442. });
  7443. }
  7444. });
  7445. // src/theming/base.ts
  7446. var color, background, typography, tokens, init_base = __esm({
  7447. "src/theming/base.ts"() {
  7448. "use strict";
  7449. color = {
  7450. // Official color palette
  7451. primary: "#FF4785",
  7452. // coral
  7453. secondary: "#006DEB",
  7454. // ocean
  7455. tertiary: "#FAFBFC",
  7456. ancillary: "#22a699",
  7457. // Complimentary
  7458. orange: "#FC521F",
  7459. gold: "#FFAE00",
  7460. green: "#66BF3C",
  7461. seafoam: "#37D5D3",
  7462. purple: "#6F2CAC",
  7463. ultraviolet: "#2A0481",
  7464. // Monochrome
  7465. lightest: "#FFFFFF",
  7466. lighter: "#F6F9FC",
  7467. light: "#EEF2F6",
  7468. mediumlight: "#ECF2F9",
  7469. medium: "#D9E5F2",
  7470. mediumdark: "#737F8C",
  7471. dark: "#5C6570",
  7472. darker: "#454C54",
  7473. darkest: "#2E3338",
  7474. // For borders
  7475. border: "hsl(212 50% 30% / 0.15)",
  7476. // Status
  7477. positive: "#66BF3C",
  7478. warning: "#E69D00",
  7479. negative: "#FF4400",
  7480. critical: "#FFFFFF",
  7481. // Text
  7482. defaultText: "#2E3338",
  7483. inverseText: "#FFFFFF",
  7484. positiveText: "#427C27",
  7485. warningText: "#955B1E",
  7486. negativeText: "#C23400"
  7487. }, background = {
  7488. app: "#F6F9FC",
  7489. bar: color.lightest,
  7490. content: color.lightest,
  7491. preview: color.lightest,
  7492. gridCellSize: 10,
  7493. hoverable: "#DBECFF",
  7494. // Notification, error, and warning backgrounds
  7495. positive: "#F1FFEB",
  7496. warning: "#FFF9EB",
  7497. negative: "#FFF0EB",
  7498. critical: "#D13800"
  7499. }, typography = {
  7500. fonts: {
  7501. base: [
  7502. '"Nunito Sans"',
  7503. "-apple-system",
  7504. '".SFNSText-Regular"',
  7505. '"San Francisco"',
  7506. "BlinkMacSystemFont",
  7507. '"Segoe UI"',
  7508. '"Helvetica Neue"',
  7509. "Helvetica",
  7510. "Arial",
  7511. "sans-serif"
  7512. ].join(", "),
  7513. mono: [
  7514. "ui-monospace",
  7515. "Menlo",
  7516. "Monaco",
  7517. '"Roboto Mono"',
  7518. '"Oxygen Mono"',
  7519. '"Ubuntu Monospace"',
  7520. '"Source Code Pro"',
  7521. '"Droid Sans Mono"',
  7522. '"Courier New"',
  7523. "monospace"
  7524. ].join(", ")
  7525. },
  7526. weight: {
  7527. regular: 400,
  7528. bold: 700
  7529. },
  7530. size: {
  7531. s1: 12,
  7532. s2: 14,
  7533. s3: 16,
  7534. m1: 20,
  7535. m2: 24,
  7536. m3: 28,
  7537. l1: 32,
  7538. l2: 40,
  7539. l3: 48,
  7540. code: 90
  7541. }
  7542. }, tokens = {
  7543. light: {
  7544. fgColor: {
  7545. default: color.darkest,
  7546. muted: color.dark,
  7547. accent: color.secondary,
  7548. inverse: color.lightest,
  7549. // TODO: add 'disabled'
  7550. positive: "#427C27",
  7551. warning: "#7A4100",
  7552. negative: "#C23400",
  7553. critical: "#FFFFFF"
  7554. },
  7555. bgColor: {
  7556. default: color.lightest,
  7557. muted: background.app,
  7558. // TODO: add 'accent'? white or blue?
  7559. positive: "#F1FFEB",
  7560. warning: "#FFF7EB",
  7561. negative: "#FFF0EB",
  7562. critical: "#D13800"
  7563. },
  7564. borderColor: {
  7565. default: color.border,
  7566. muted: "hsl(0 0% 0% / 0.1)",
  7567. inverse: "hsl(0 0% 100% / 0.1)",
  7568. positive: "#BFE7AC",
  7569. warning: "#FFCE85",
  7570. negative: "#FFC3AD",
  7571. critical: "hsl(16 100% 100% / 0)"
  7572. }
  7573. },
  7574. dark: {
  7575. fgColor: {
  7576. default: "#C9CCCF",
  7577. muted: "#95999D",
  7578. accent: "#479DFF",
  7579. inverse: "#1B1C1D",
  7580. // TODO: add 'disabled'
  7581. positive: "#86CE64",
  7582. warning: "#FFAD33",
  7583. negative: "#FF6933",
  7584. critical: "#FF6933"
  7585. },
  7586. bgColor: {
  7587. default: "#222325",
  7588. muted: "#1B1C1D",
  7589. // TODO: add 'accent'? white or blue?
  7590. positive: "hsl(101 100% 100% / 0)",
  7591. warning: "hsl(101 100% 100% / 0)",
  7592. negative: "hsl(101 100% 100% / 0)",
  7593. critical: "hsl(101 100% 100% / 0)"
  7594. },
  7595. borderColor: {
  7596. default: "hsl(0 0% 100% / 0.1)",
  7597. muted: "hsl(0 0% 100% / 0.5)",
  7598. inverse: "hsl(0 0% 0% / 0.1)",
  7599. positive: "hsl(101 52% 64% / 0.15)",
  7600. warning: "hsl(36 100% 64% / 0.15)",
  7601. negative: "hsl(16 100% 64% / 0.15)",
  7602. critical: "#FF6933"
  7603. }
  7604. }
  7605. };
  7606. }
  7607. });
  7608. // src/theming/types.ts
  7609. var init_types = __esm({
  7610. "src/theming/types.ts"() {
  7611. "use strict";
  7612. }
  7613. });
  7614. // ../../node_modules/memoizerific/memoizerific.js
  7615. var require_memoizerific = __commonJS({
  7616. "../../node_modules/memoizerific/memoizerific.js"(exports, module2) {
  7617. (function(f4) {
  7618. if (typeof exports == "object" && typeof module2 < "u")
  7619. module2.exports = f4();
  7620. else if (typeof define == "function" && define.amd)
  7621. define([], f4);
  7622. else {
  7623. var g2;
  7624. typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f4();
  7625. }
  7626. })(function() {
  7627. var define3, module3, exports2;
  7628. return (function e(t, n, r2) {
  7629. function s3(o2, u2) {
  7630. if (!n[o2]) {
  7631. if (!t[o2]) {
  7632. var a3 = typeof __require == "function" && __require;
  7633. if (!u2 && a3) return a3(o2, !0);
  7634. if (i) return i(o2, !0);
  7635. var f4 = new Error("Cannot find module '" + o2 + "'");
  7636. throw f4.code = "MODULE_NOT_FOUND", f4;
  7637. }
  7638. var l = n[o2] = { exports: {} };
  7639. t[o2][0].call(l.exports, function(e2) {
  7640. var n2 = t[o2][1][e2];
  7641. return s3(n2 || e2);
  7642. }, l, l.exports, e, t, n, r2);
  7643. }
  7644. return n[o2].exports;
  7645. }
  7646. for (var i = typeof __require == "function" && __require, o = 0; o < r2.length; o++) s3(r2[o]);
  7647. return s3;
  7648. })({ 1: [function(_dereq_, module4, exports3) {
  7649. module4.exports = function(forceSimilar) {
  7650. if (typeof Map != "function" || forceSimilar) {
  7651. var Similar = _dereq_("./similar");
  7652. return new Similar();
  7653. } else
  7654. return /* @__PURE__ */ new Map();
  7655. };
  7656. }, { "./similar": 2 }], 2: [function(_dereq_, module4, exports3) {
  7657. function Similar() {
  7658. return this.list = [], this.lastItem = void 0, this.size = 0, this;
  7659. }
  7660. Similar.prototype.get = function(key) {
  7661. var index4;
  7662. if (this.lastItem && this.isEqual(this.lastItem.key, key))
  7663. return this.lastItem.val;
  7664. if (index4 = this.indexOf(key), index4 >= 0)
  7665. return this.lastItem = this.list[index4], this.list[index4].val;
  7666. }, Similar.prototype.set = function(key, val) {
  7667. var index4;
  7668. return this.lastItem && this.isEqual(this.lastItem.key, key) ? (this.lastItem.val = val, this) : (index4 = this.indexOf(key), index4 >= 0 ? (this.lastItem = this.list[index4], this.list[index4].val = val, this) : (this.lastItem = { key, val }, this.list.push(this.lastItem), this.size++, this));
  7669. }, Similar.prototype.delete = function(key) {
  7670. var index4;
  7671. if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index4 = this.indexOf(key), index4 >= 0)
  7672. return this.size--, this.list.splice(index4, 1)[0];
  7673. }, Similar.prototype.has = function(key) {
  7674. var index4;
  7675. return this.lastItem && this.isEqual(this.lastItem.key, key) ? !0 : (index4 = this.indexOf(key), index4 >= 0 ? (this.lastItem = this.list[index4], !0) : !1);
  7676. }, Similar.prototype.forEach = function(callback, thisArg) {
  7677. var i;
  7678. for (i = 0; i < this.size; i++)
  7679. callback.call(thisArg || this, this.list[i].val, this.list[i].key, this);
  7680. }, Similar.prototype.indexOf = function(key) {
  7681. var i;
  7682. for (i = 0; i < this.size; i++)
  7683. if (this.isEqual(this.list[i].key, key))
  7684. return i;
  7685. return -1;
  7686. }, Similar.prototype.isEqual = function(val1, val2) {
  7687. return val1 === val2 || val1 !== val1 && val2 !== val2;
  7688. }, module4.exports = Similar;
  7689. }, {}], 3: [function(_dereq_, module4, exports3) {
  7690. var MapOrSimilar = _dereq_("map-or-similar");
  7691. module4.exports = function(limit) {
  7692. var cache = new MapOrSimilar(!1), lru = [];
  7693. return function(fn4) {
  7694. var memoizerific = function() {
  7695. var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = !0, i;
  7696. if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1)
  7697. throw new Error("Memoizerific functions should always be called with the same number of arguments");
  7698. for (i = 0; i < argsLengthMinusOne; i++) {
  7699. if (lruPath[i] = {
  7700. cacheItem: currentCache,
  7701. arg: arguments[i]
  7702. }, currentCache.has(arguments[i])) {
  7703. currentCache = currentCache.get(arguments[i]);
  7704. continue;
  7705. }
  7706. isMemoized = !1, newMap = new MapOrSimilar(!1), currentCache.set(arguments[i], newMap), currentCache = newMap;
  7707. }
  7708. return isMemoized && (currentCache.has(arguments[argsLengthMinusOne]) ? fnResult = currentCache.get(arguments[argsLengthMinusOne]) : isMemoized = !1), isMemoized || (fnResult = fn4.apply(null, arguments), currentCache.set(arguments[argsLengthMinusOne], fnResult)), limit > 0 && (lruPath[argsLengthMinusOne] = {
  7709. cacheItem: currentCache,
  7710. arg: arguments[argsLengthMinusOne]
  7711. }, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific.wasMemoized = isMemoized, memoizerific.numArgs = argsLengthMinusOne + 1, fnResult;
  7712. };
  7713. return memoizerific.limit = limit, memoizerific.wasMemoized = !1, memoizerific.cache = cache, memoizerific.lru = lru, memoizerific;
  7714. };
  7715. };
  7716. function moveToMostRecentLru(lru, lruPath) {
  7717. var lruLen = lru.length, lruPathLen = lruPath.length, isMatch, i, ii;
  7718. for (i = 0; i < lruLen; i++) {
  7719. for (isMatch = !0, ii = 0; ii < lruPathLen; ii++)
  7720. if (!isEqual4(lru[i][ii].arg, lruPath[ii].arg)) {
  7721. isMatch = !1;
  7722. break;
  7723. }
  7724. if (isMatch)
  7725. break;
  7726. }
  7727. lru.push(lru.splice(i, 1)[0]);
  7728. }
  7729. function removeCachedResult(removedLru) {
  7730. var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i;
  7731. for (currentLru.cacheItem.delete(currentLru.arg), i = removedLruLen - 2; i >= 0 && (currentLru = removedLru[i], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i--)
  7732. currentLru.cacheItem.delete(currentLru.arg);
  7733. }
  7734. function isEqual4(val1, val2) {
  7735. return val1 === val2 || val1 !== val1 && val2 !== val2;
  7736. }
  7737. }, { "map-or-similar": 1 }] }, {}, [3])(3);
  7738. });
  7739. }
  7740. });
  7741. // src/theming/global.ts
  7742. var import_memoizerific, srOnlyStyles, createReset, createGlobal, init_global = __esm({
  7743. "src/theming/global.ts"() {
  7744. "use strict";
  7745. import_memoizerific = __toESM(require_memoizerific(), 1), srOnlyStyles = {
  7746. position: "absolute",
  7747. width: 1,
  7748. height: 1,
  7749. padding: 0,
  7750. margin: -1,
  7751. overflow: "hidden",
  7752. whiteSpace: "nowrap",
  7753. clip: "rect(0, 0, 0, 0)",
  7754. clipPath: "inset(50%)",
  7755. border: 0
  7756. }, createReset = (0, import_memoizerific.default)(1)(
  7757. ({ typography: typography2 }) => ({
  7758. body: {
  7759. fontFamily: typography2.fonts.base,
  7760. fontSize: typography2.size.s3,
  7761. margin: 0,
  7762. WebkitFontSmoothing: "antialiased",
  7763. MozOsxFontSmoothing: "grayscale",
  7764. WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
  7765. WebkitOverflowScrolling: "touch"
  7766. },
  7767. "*": {
  7768. boxSizing: "border-box"
  7769. },
  7770. "h1, h2, h3, h4, h5, h6": {
  7771. fontWeight: typography2.weight.regular,
  7772. margin: 0,
  7773. padding: 0
  7774. },
  7775. "button, input, textarea, select": {
  7776. fontFamily: "inherit",
  7777. fontSize: "inherit",
  7778. boxSizing: "border-box"
  7779. },
  7780. sub: {
  7781. fontSize: "0.8em",
  7782. bottom: "-0.2em"
  7783. },
  7784. sup: {
  7785. fontSize: "0.8em",
  7786. top: "-0.2em"
  7787. },
  7788. "b, strong": {
  7789. fontWeight: typography2.weight.bold
  7790. },
  7791. hr: {
  7792. border: "none",
  7793. borderTop: "1px solid silver",
  7794. clear: "both",
  7795. marginBottom: "1.25rem"
  7796. },
  7797. code: {
  7798. fontFamily: typography2.fonts.mono,
  7799. WebkitFontSmoothing: "antialiased",
  7800. MozOsxFontSmoothing: "grayscale",
  7801. display: "inline-block",
  7802. paddingLeft: 2,
  7803. paddingRight: 2,
  7804. verticalAlign: "baseline",
  7805. color: "inherit"
  7806. },
  7807. pre: {
  7808. fontFamily: typography2.fonts.mono,
  7809. WebkitFontSmoothing: "antialiased",
  7810. MozOsxFontSmoothing: "grayscale",
  7811. lineHeight: "18px",
  7812. padding: "11px 1rem",
  7813. whiteSpace: "pre-wrap",
  7814. color: "inherit",
  7815. borderRadius: 3,
  7816. margin: "1rem 0"
  7817. }
  7818. })
  7819. ), createGlobal = (0, import_memoizerific.default)(1)(({
  7820. color: color2,
  7821. background: background2,
  7822. typography: typography2
  7823. }) => {
  7824. let resetStyles = createReset({ typography: typography2 });
  7825. return {
  7826. ...resetStyles,
  7827. body: {
  7828. ...resetStyles.body,
  7829. position: "fixed",
  7830. width: "100vw",
  7831. height: "100vh",
  7832. overflow: "hidden",
  7833. color: color2.defaultText,
  7834. background: background2.app
  7835. },
  7836. hr: {
  7837. ...resetStyles.hr,
  7838. borderTop: `1px solid ${color2.border}`
  7839. },
  7840. ".sb-sr-only, .sb-hidden-until-focus:not(:focus)": srOnlyStyles,
  7841. ".sb-hidden-until-focus": {
  7842. opacity: 0,
  7843. transition: "opacity 150ms ease-out"
  7844. },
  7845. ".sb-hidden-until-focus:focus": {
  7846. opacity: 1
  7847. },
  7848. "[data-sb-landmark]": {
  7849. position: "relative"
  7850. },
  7851. "[data-sb-landmark]:focus-visible": {
  7852. outline: "none"
  7853. },
  7854. "[data-sb-landmark]:focus-visible::after": {
  7855. outline: `2px solid ${color2.primary}`,
  7856. outlineOffset: "-2px"
  7857. },
  7858. "[data-sb-landmark]::after": {
  7859. content: "''",
  7860. position: "absolute",
  7861. inset: 0,
  7862. pointerEvents: "none"
  7863. },
  7864. ".react-aria-Popover:focus-visible": {
  7865. outline: "none"
  7866. }
  7867. };
  7868. });
  7869. }
  7870. });
  7871. // src/theming/themes/dark.ts
  7872. var theme, dark_default, init_dark = __esm({
  7873. "src/theming/themes/dark.ts"() {
  7874. "use strict";
  7875. init_base();
  7876. theme = {
  7877. base: "dark",
  7878. // Storybook-specific color palette
  7879. colorPrimary: "#FF4785",
  7880. // coral
  7881. colorSecondary: "#479DFF",
  7882. // UI
  7883. appBg: "#1B1C1D",
  7884. appContentBg: "#222325",
  7885. appHoverBg: "#233952",
  7886. appPreviewBg: color.lightest,
  7887. appBorderColor: "hsl(0 0% 100% / 0.1)",
  7888. appBorderRadius: 4,
  7889. // Fonts
  7890. fontBase: typography.fonts.base,
  7891. fontCode: typography.fonts.mono,
  7892. // Text colors
  7893. textColor: "#C9CCCF",
  7894. textInverseColor: "#1B1C1D",
  7895. textMutedColor: "#95999D",
  7896. // Toolbar default and active colors
  7897. barTextColor: "#95999D",
  7898. barHoverColor: "#70B3FF",
  7899. barSelectedColor: "#479DFF",
  7900. barBg: "#222325",
  7901. // Form colors
  7902. buttonBg: "#1B1C1D",
  7903. buttonBorder: "hsl(0 0% 100% / 0.1)",
  7904. booleanBg: "#1B1C1D",
  7905. booleanSelectedBg: "#292B2E",
  7906. inputBg: "#1B1C1D",
  7907. inputBorder: "hsl(0 0% 100% / 0.1)",
  7908. inputTextColor: "#C9CCCF",
  7909. inputBorderRadius: 4
  7910. }, dark_default = theme;
  7911. }
  7912. });
  7913. // src/theming/themes/light.ts
  7914. var theme2, light_default, init_light = __esm({
  7915. "src/theming/themes/light.ts"() {
  7916. "use strict";
  7917. init_base();
  7918. theme2 = {
  7919. base: "light",
  7920. // Storybook-specific color palette
  7921. colorPrimary: color.primary,
  7922. colorSecondary: color.secondary,
  7923. // UI
  7924. appBg: background.app,
  7925. appContentBg: color.lightest,
  7926. appHoverBg: "#DBECFF",
  7927. appPreviewBg: color.lightest,
  7928. appBorderColor: color.border,
  7929. appBorderRadius: 4,
  7930. // Fonts
  7931. fontBase: typography.fonts.base,
  7932. fontCode: typography.fonts.mono,
  7933. // Text colors
  7934. textColor: color.darkest,
  7935. textInverseColor: color.lightest,
  7936. textMutedColor: color.dark,
  7937. // Toolbar default and active colors
  7938. barTextColor: color.dark,
  7939. barHoverColor: "#005CC7",
  7940. barSelectedColor: "#0063D6",
  7941. barBg: color.lightest,
  7942. // Form colors
  7943. buttonBg: background.app,
  7944. buttonBorder: color.medium,
  7945. booleanBg: color.mediumlight,
  7946. booleanSelectedBg: color.lightest,
  7947. inputBg: color.lightest,
  7948. inputBorder: color.border,
  7949. inputTextColor: color.darkest,
  7950. inputBorderRadius: 4
  7951. }, light_default = theme2;
  7952. }
  7953. });
  7954. // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
  7955. function _assertThisInitialized(e) {
  7956. if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  7957. return e;
  7958. }
  7959. var init_assertThisInitialized = __esm({
  7960. "../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"() {
  7961. }
  7962. });
  7963. // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
  7964. function _setPrototypeOf(t, e) {
  7965. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
  7966. return t2.__proto__ = e2, t2;
  7967. }, _setPrototypeOf(t, e);
  7968. }
  7969. var init_setPrototypeOf = __esm({
  7970. "../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"() {
  7971. }
  7972. });
  7973. // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
  7974. function _inheritsLoose(t, o) {
  7975. t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
  7976. }
  7977. var init_inheritsLoose = __esm({
  7978. "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"() {
  7979. init_setPrototypeOf();
  7980. }
  7981. });
  7982. // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
  7983. function _getPrototypeOf(t) {
  7984. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
  7985. return t2.__proto__ || Object.getPrototypeOf(t2);
  7986. }, _getPrototypeOf(t);
  7987. }
  7988. var init_getPrototypeOf = __esm({
  7989. "../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"() {
  7990. }
  7991. });
  7992. // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
  7993. function _isNativeFunction(t) {
  7994. try {
  7995. return Function.toString.call(t).indexOf("[native code]") !== -1;
  7996. } catch {
  7997. return typeof t == "function";
  7998. }
  7999. }
  8000. var init_isNativeFunction = __esm({
  8001. "../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js"() {
  8002. }
  8003. });
  8004. // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
  8005. function _isNativeReflectConstruct() {
  8006. try {
  8007. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
  8008. }));
  8009. } catch {
  8010. }
  8011. return (_isNativeReflectConstruct = function() {
  8012. return !!t;
  8013. })();
  8014. }
  8015. var init_isNativeReflectConstruct = __esm({
  8016. "../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"() {
  8017. }
  8018. });
  8019. // ../../node_modules/@babel/runtime/helpers/esm/construct.js
  8020. function _construct(t, e, r2) {
  8021. if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  8022. var o = [null];
  8023. o.push.apply(o, e);
  8024. var p3 = new (t.bind.apply(t, o))();
  8025. return r2 && _setPrototypeOf(p3, r2.prototype), p3;
  8026. }
  8027. var init_construct = __esm({
  8028. "../../node_modules/@babel/runtime/helpers/esm/construct.js"() {
  8029. init_isNativeReflectConstruct();
  8030. init_setPrototypeOf();
  8031. }
  8032. });
  8033. // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
  8034. function _wrapNativeSuper(t) {
  8035. var r2 = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
  8036. return _wrapNativeSuper = function(t2) {
  8037. if (t2 === null || !_isNativeFunction(t2)) return t2;
  8038. if (typeof t2 != "function") throw new TypeError("Super expression must either be null or a function");
  8039. if (r2 !== void 0) {
  8040. if (r2.has(t2)) return r2.get(t2);
  8041. r2.set(t2, Wrapper9);
  8042. }
  8043. function Wrapper9() {
  8044. return _construct(t2, arguments, _getPrototypeOf(this).constructor);
  8045. }
  8046. return Wrapper9.prototype = Object.create(t2.prototype, {
  8047. constructor: {
  8048. value: Wrapper9,
  8049. enumerable: !1,
  8050. writable: !0,
  8051. configurable: !0
  8052. }
  8053. }), _setPrototypeOf(Wrapper9, t2);
  8054. }, _wrapNativeSuper(t);
  8055. }
  8056. var init_wrapNativeSuper = __esm({
  8057. "../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js"() {
  8058. init_getPrototypeOf();
  8059. init_setPrototypeOf();
  8060. init_isNativeFunction();
  8061. init_construct();
  8062. }
  8063. });
  8064. // ../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js
  8065. var init_taggedTemplateLiteralLoose = __esm({
  8066. "../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js"() {
  8067. }
  8068. });
  8069. // ../../node_modules/polished/dist/polished.esm.js
  8070. function endsWith(string, suffix) {
  8071. return string.substr(-suffix.length) === suffix;
  8072. }
  8073. function stripUnit(value) {
  8074. if (typeof value != "string") return value;
  8075. var matchedValue = value.match(cssRegex$1);
  8076. return matchedValue ? parseFloat(value) : value;
  8077. }
  8078. function colorToInt(color2) {
  8079. return Math.round(color2 * 255);
  8080. }
  8081. function convertToInt(red, green, blue) {
  8082. return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
  8083. }
  8084. function hslToRgb(hue, saturation, lightness, convert6) {
  8085. if (convert6 === void 0 && (convert6 = convertToInt), saturation === 0)
  8086. return convert6(lightness, lightness, lightness);
  8087. var huePrime = (hue % 360 + 360) % 360 / 60, chroma = (1 - Math.abs(2 * lightness - 1)) * saturation, secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1)), red = 0, green = 0, blue = 0;
  8088. huePrime >= 0 && huePrime < 1 ? (red = chroma, green = secondComponent) : huePrime >= 1 && huePrime < 2 ? (red = secondComponent, green = chroma) : huePrime >= 2 && huePrime < 3 ? (green = chroma, blue = secondComponent) : huePrime >= 3 && huePrime < 4 ? (green = secondComponent, blue = chroma) : huePrime >= 4 && huePrime < 5 ? (red = secondComponent, blue = chroma) : huePrime >= 5 && huePrime < 6 && (red = chroma, blue = secondComponent);
  8089. var lightnessModification = lightness - chroma / 2, finalRed = red + lightnessModification, finalGreen = green + lightnessModification, finalBlue = blue + lightnessModification;
  8090. return convert6(finalRed, finalGreen, finalBlue);
  8091. }
  8092. function nameToHex(color2) {
  8093. if (typeof color2 != "string") return color2;
  8094. var normalizedColorName = color2.toLowerCase();
  8095. return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
  8096. }
  8097. function parseToRgb(color2) {
  8098. if (typeof color2 != "string")
  8099. throw new PolishedError(3);
  8100. var normalizedColor = nameToHex(color2);
  8101. if (normalizedColor.match(hexRegex))
  8102. return {
  8103. red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
  8104. green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
  8105. blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
  8106. };
  8107. if (normalizedColor.match(hexRgbaRegex)) {
  8108. var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
  8109. return {
  8110. red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
  8111. green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
  8112. blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
  8113. alpha
  8114. };
  8115. }
  8116. if (normalizedColor.match(reducedHexRegex))
  8117. return {
  8118. red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
  8119. green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
  8120. blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
  8121. };
  8122. if (normalizedColor.match(reducedRgbaHexRegex)) {
  8123. var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
  8124. return {
  8125. red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
  8126. green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
  8127. blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
  8128. alpha: _alpha
  8129. };
  8130. }
  8131. var rgbMatched = rgbRegex.exec(normalizedColor);
  8132. if (rgbMatched)
  8133. return {
  8134. red: parseInt("" + rgbMatched[1], 10),
  8135. green: parseInt("" + rgbMatched[2], 10),
  8136. blue: parseInt("" + rgbMatched[3], 10)
  8137. };
  8138. var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
  8139. if (rgbaMatched)
  8140. return {
  8141. red: parseInt("" + rgbaMatched[1], 10),
  8142. green: parseInt("" + rgbaMatched[2], 10),
  8143. blue: parseInt("" + rgbaMatched[3], 10),
  8144. alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
  8145. };
  8146. var hslMatched = hslRegex.exec(normalizedColor);
  8147. if (hslMatched) {
  8148. var hue = parseInt("" + hslMatched[1], 10), saturation = parseInt("" + hslMatched[2], 10) / 100, lightness = parseInt("" + hslMatched[3], 10) / 100, rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")", hslRgbMatched = rgbRegex.exec(rgbColorString);
  8149. if (!hslRgbMatched)
  8150. throw new PolishedError(4, normalizedColor, rgbColorString);
  8151. return {
  8152. red: parseInt("" + hslRgbMatched[1], 10),
  8153. green: parseInt("" + hslRgbMatched[2], 10),
  8154. blue: parseInt("" + hslRgbMatched[3], 10)
  8155. };
  8156. }
  8157. var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
  8158. if (hslaMatched) {
  8159. var _hue = parseInt("" + hslaMatched[1], 10), _saturation = parseInt("" + hslaMatched[2], 10) / 100, _lightness = parseInt("" + hslaMatched[3], 10) / 100, _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")", _hslRgbMatched = rgbRegex.exec(_rgbColorString);
  8160. if (!_hslRgbMatched)
  8161. throw new PolishedError(4, normalizedColor, _rgbColorString);
  8162. return {
  8163. red: parseInt("" + _hslRgbMatched[1], 10),
  8164. green: parseInt("" + _hslRgbMatched[2], 10),
  8165. blue: parseInt("" + _hslRgbMatched[3], 10),
  8166. alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
  8167. };
  8168. }
  8169. throw new PolishedError(5);
  8170. }
  8171. function rgbToHsl(color2) {
  8172. var red = color2.red / 255, green = color2.green / 255, blue = color2.blue / 255, max2 = Math.max(red, green, blue), min2 = Math.min(red, green, blue), lightness = (max2 + min2) / 2;
  8173. if (max2 === min2)
  8174. return color2.alpha !== void 0 ? {
  8175. hue: 0,
  8176. saturation: 0,
  8177. lightness,
  8178. alpha: color2.alpha
  8179. } : {
  8180. hue: 0,
  8181. saturation: 0,
  8182. lightness
  8183. };
  8184. var hue, delta = max2 - min2, saturation = lightness > 0.5 ? delta / (2 - max2 - min2) : delta / (max2 + min2);
  8185. switch (max2) {
  8186. case red:
  8187. hue = (green - blue) / delta + (green < blue ? 6 : 0);
  8188. break;
  8189. case green:
  8190. hue = (blue - red) / delta + 2;
  8191. break;
  8192. default:
  8193. hue = (red - green) / delta + 4;
  8194. break;
  8195. }
  8196. return hue *= 60, color2.alpha !== void 0 ? {
  8197. hue,
  8198. saturation,
  8199. lightness,
  8200. alpha: color2.alpha
  8201. } : {
  8202. hue,
  8203. saturation,
  8204. lightness
  8205. };
  8206. }
  8207. function parseToHsl(color2) {
  8208. return rgbToHsl(parseToRgb(color2));
  8209. }
  8210. function numberToHex(value) {
  8211. var hex3 = value.toString(16);
  8212. return hex3.length === 1 ? "0" + hex3 : hex3;
  8213. }
  8214. function colorToHex(color2) {
  8215. return numberToHex(Math.round(color2 * 255));
  8216. }
  8217. function convertToHex(red, green, blue) {
  8218. return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
  8219. }
  8220. function hslToHex(hue, saturation, lightness) {
  8221. return hslToRgb(hue, saturation, lightness, convertToHex);
  8222. }
  8223. function hsl(value, saturation, lightness) {
  8224. if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number")
  8225. return hslToHex(value, saturation, lightness);
  8226. if (typeof value == "object" && saturation === void 0 && lightness === void 0)
  8227. return hslToHex(value.hue, value.saturation, value.lightness);
  8228. throw new PolishedError(1);
  8229. }
  8230. function hsla(value, saturation, lightness, alpha) {
  8231. if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number" && typeof alpha == "number")
  8232. return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
  8233. if (typeof value == "object" && saturation === void 0 && lightness === void 0 && alpha === void 0)
  8234. return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
  8235. throw new PolishedError(2);
  8236. }
  8237. function rgb(value, green, blue) {
  8238. if (typeof value == "number" && typeof green == "number" && typeof blue == "number")
  8239. return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
  8240. if (typeof value == "object" && green === void 0 && blue === void 0)
  8241. return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
  8242. throw new PolishedError(6);
  8243. }
  8244. function rgba(firstValue, secondValue, thirdValue, fourthValue) {
  8245. if (typeof firstValue == "string" && typeof secondValue == "number") {
  8246. var rgbValue = parseToRgb(firstValue);
  8247. return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
  8248. } else {
  8249. if (typeof firstValue == "number" && typeof secondValue == "number" && typeof thirdValue == "number" && typeof fourthValue == "number")
  8250. return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
  8251. if (typeof firstValue == "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0)
  8252. return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
  8253. }
  8254. throw new PolishedError(7);
  8255. }
  8256. function toColorString(color2) {
  8257. if (typeof color2 != "object") throw new PolishedError(8);
  8258. if (isRgba(color2)) return rgba(color2);
  8259. if (isRgb(color2)) return rgb(color2);
  8260. if (isHsla(color2)) return hsla(color2);
  8261. if (isHsl(color2)) return hsl(color2);
  8262. throw new PolishedError(8);
  8263. }
  8264. function curried(f4, length2, acc) {
  8265. return function() {
  8266. var combined = acc.concat(Array.prototype.slice.call(arguments));
  8267. return combined.length >= length2 ? f4.apply(this, combined) : curried(f4, length2, combined);
  8268. };
  8269. }
  8270. function curry(f4) {
  8271. return curried(f4, f4.length, []);
  8272. }
  8273. function adjustHue(degree, color2) {
  8274. if (color2 === "transparent") return color2;
  8275. var hslColor = parseToHsl(color2);
  8276. return toColorString(_extends({}, hslColor, {
  8277. hue: hslColor.hue + parseFloat(degree)
  8278. }));
  8279. }
  8280. function guard(lowerBoundary, upperBoundary, value) {
  8281. return Math.max(lowerBoundary, Math.min(upperBoundary, value));
  8282. }
  8283. function darken(amount, color2) {
  8284. if (color2 === "transparent") return color2;
  8285. var hslColor = parseToHsl(color2);
  8286. return toColorString(_extends({}, hslColor, {
  8287. lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
  8288. }));
  8289. }
  8290. function desaturate(amount, color2) {
  8291. if (color2 === "transparent") return color2;
  8292. var hslColor = parseToHsl(color2);
  8293. return toColorString(_extends({}, hslColor, {
  8294. saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
  8295. }));
  8296. }
  8297. function lighten(amount, color2) {
  8298. if (color2 === "transparent") return color2;
  8299. var hslColor = parseToHsl(color2);
  8300. return toColorString(_extends({}, hslColor, {
  8301. lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
  8302. }));
  8303. }
  8304. function mix(weight, color2, otherColor) {
  8305. if (color2 === "transparent") return otherColor;
  8306. if (otherColor === "transparent") return color2;
  8307. if (weight === 0) return otherColor;
  8308. var parsedColor1 = parseToRgb(color2), color1 = _extends({}, parsedColor1, {
  8309. alpha: typeof parsedColor1.alpha == "number" ? parsedColor1.alpha : 1
  8310. }), parsedColor2 = parseToRgb(otherColor), color22 = _extends({}, parsedColor2, {
  8311. alpha: typeof parsedColor2.alpha == "number" ? parsedColor2.alpha : 1
  8312. }), alphaDelta = color1.alpha - color22.alpha, x = parseFloat(weight) * 2 - 1, y = x * alphaDelta === -1 ? x : x + alphaDelta, z = 1 + x * alphaDelta, weight1 = (y / z + 1) / 2, weight2 = 1 - weight1, mixedColor = {
  8313. red: Math.floor(color1.red * weight1 + color22.red * weight2),
  8314. green: Math.floor(color1.green * weight1 + color22.green * weight2),
  8315. blue: Math.floor(color1.blue * weight1 + color22.blue * weight2),
  8316. alpha: color1.alpha * parseFloat(weight) + color22.alpha * (1 - parseFloat(weight))
  8317. };
  8318. return rgba(mixedColor);
  8319. }
  8320. function opacify(amount, color2) {
  8321. if (color2 === "transparent") return color2;
  8322. var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, {
  8323. alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
  8324. });
  8325. return rgba(colorWithAlpha);
  8326. }
  8327. function saturate(amount, color2) {
  8328. if (color2 === "transparent") return color2;
  8329. var hslColor = parseToHsl(color2);
  8330. return toColorString(_extends({}, hslColor, {
  8331. saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
  8332. }));
  8333. }
  8334. function setHue(hue, color2) {
  8335. return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), {
  8336. hue: parseFloat(hue)
  8337. }));
  8338. }
  8339. function setLightness(lightness, color2) {
  8340. return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), {
  8341. lightness: parseFloat(lightness)
  8342. }));
  8343. }
  8344. function setSaturation(saturation, color2) {
  8345. return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), {
  8346. saturation: parseFloat(saturation)
  8347. }));
  8348. }
  8349. function shade(percentage, color2) {
  8350. return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color2);
  8351. }
  8352. function tint(percentage, color2) {
  8353. return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color2);
  8354. }
  8355. function transparentize(amount, color2) {
  8356. if (color2 === "transparent") return color2;
  8357. var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, {
  8358. alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
  8359. });
  8360. return rgba(colorWithAlpha);
  8361. }
  8362. var PolishedError, cssRegex$1, pxtoFactory, pixelsto, em, rem, namedColorMap, hexRegex, hexRgbaRegex, reducedHexRegex, reducedRgbaHexRegex, rgbRegex, rgbaRegex, hslRegex, hslaRegex, reduceHexValue, reduceHexValue$1, isRgb, isRgba, isHsl, isHsla, curriedAdjustHue, curriedDarken, curriedDarken$1, curriedDesaturate, curriedLighten, curriedLighten$1, curriedMix, mix$1, curriedOpacify, curriedOpacify$1, curriedSaturate, curriedSetHue, curriedSetLightness, curriedSetSaturation, curriedShade, curriedTint, curriedTransparentize, curriedTransparentize$1, init_polished_esm = __esm({
  8363. "../../node_modules/polished/dist/polished.esm.js"() {
  8364. init_extends();
  8365. init_assertThisInitialized();
  8366. init_inheritsLoose();
  8367. init_wrapNativeSuper();
  8368. init_taggedTemplateLiteralLoose();
  8369. PolishedError = (function(_Error) {
  8370. _inheritsLoose(PolishedError2, _Error);
  8371. function PolishedError2(code) {
  8372. var _this;
  8373. if (1)
  8374. _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
  8375. else
  8376. for (var _len2, args, _key2; _key2 < _len2; _key2++)
  8377. ;
  8378. return _assertThisInitialized(_this);
  8379. }
  8380. return PolishedError2;
  8381. })(_wrapNativeSuper(Error));
  8382. cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
  8383. pxtoFactory = function(to) {
  8384. return function(pxval, base) {
  8385. base === void 0 && (base = "16px");
  8386. var newPxval = pxval, newBase = base;
  8387. if (typeof pxval == "string") {
  8388. if (!endsWith(pxval, "px"))
  8389. throw new PolishedError(69, to, pxval);
  8390. newPxval = stripUnit(pxval);
  8391. }
  8392. if (typeof base == "string") {
  8393. if (!endsWith(base, "px"))
  8394. throw new PolishedError(70, to, base);
  8395. newBase = stripUnit(base);
  8396. }
  8397. if (typeof newPxval == "string")
  8398. throw new PolishedError(71, pxval, to);
  8399. if (typeof newBase == "string")
  8400. throw new PolishedError(72, base, to);
  8401. return "" + newPxval / newBase + to;
  8402. };
  8403. }, pixelsto = pxtoFactory, em = pixelsto("em"), rem = pixelsto("rem");
  8404. namedColorMap = {
  8405. aliceblue: "f0f8ff",
  8406. antiquewhite: "faebd7",
  8407. aqua: "00ffff",
  8408. aquamarine: "7fffd4",
  8409. azure: "f0ffff",
  8410. beige: "f5f5dc",
  8411. bisque: "ffe4c4",
  8412. black: "000",
  8413. blanchedalmond: "ffebcd",
  8414. blue: "0000ff",
  8415. blueviolet: "8a2be2",
  8416. brown: "a52a2a",
  8417. burlywood: "deb887",
  8418. cadetblue: "5f9ea0",
  8419. chartreuse: "7fff00",
  8420. chocolate: "d2691e",
  8421. coral: "ff7f50",
  8422. cornflowerblue: "6495ed",
  8423. cornsilk: "fff8dc",
  8424. crimson: "dc143c",
  8425. cyan: "00ffff",
  8426. darkblue: "00008b",
  8427. darkcyan: "008b8b",
  8428. darkgoldenrod: "b8860b",
  8429. darkgray: "a9a9a9",
  8430. darkgreen: "006400",
  8431. darkgrey: "a9a9a9",
  8432. darkkhaki: "bdb76b",
  8433. darkmagenta: "8b008b",
  8434. darkolivegreen: "556b2f",
  8435. darkorange: "ff8c00",
  8436. darkorchid: "9932cc",
  8437. darkred: "8b0000",
  8438. darksalmon: "e9967a",
  8439. darkseagreen: "8fbc8f",
  8440. darkslateblue: "483d8b",
  8441. darkslategray: "2f4f4f",
  8442. darkslategrey: "2f4f4f",
  8443. darkturquoise: "00ced1",
  8444. darkviolet: "9400d3",
  8445. deeppink: "ff1493",
  8446. deepskyblue: "00bfff",
  8447. dimgray: "696969",
  8448. dimgrey: "696969",
  8449. dodgerblue: "1e90ff",
  8450. firebrick: "b22222",
  8451. floralwhite: "fffaf0",
  8452. forestgreen: "228b22",
  8453. fuchsia: "ff00ff",
  8454. gainsboro: "dcdcdc",
  8455. ghostwhite: "f8f8ff",
  8456. gold: "ffd700",
  8457. goldenrod: "daa520",
  8458. gray: "808080",
  8459. green: "008000",
  8460. greenyellow: "adff2f",
  8461. grey: "808080",
  8462. honeydew: "f0fff0",
  8463. hotpink: "ff69b4",
  8464. indianred: "cd5c5c",
  8465. indigo: "4b0082",
  8466. ivory: "fffff0",
  8467. khaki: "f0e68c",
  8468. lavender: "e6e6fa",
  8469. lavenderblush: "fff0f5",
  8470. lawngreen: "7cfc00",
  8471. lemonchiffon: "fffacd",
  8472. lightblue: "add8e6",
  8473. lightcoral: "f08080",
  8474. lightcyan: "e0ffff",
  8475. lightgoldenrodyellow: "fafad2",
  8476. lightgray: "d3d3d3",
  8477. lightgreen: "90ee90",
  8478. lightgrey: "d3d3d3",
  8479. lightpink: "ffb6c1",
  8480. lightsalmon: "ffa07a",
  8481. lightseagreen: "20b2aa",
  8482. lightskyblue: "87cefa",
  8483. lightslategray: "789",
  8484. lightslategrey: "789",
  8485. lightsteelblue: "b0c4de",
  8486. lightyellow: "ffffe0",
  8487. lime: "0f0",
  8488. limegreen: "32cd32",
  8489. linen: "faf0e6",
  8490. magenta: "f0f",
  8491. maroon: "800000",
  8492. mediumaquamarine: "66cdaa",
  8493. mediumblue: "0000cd",
  8494. mediumorchid: "ba55d3",
  8495. mediumpurple: "9370db",
  8496. mediumseagreen: "3cb371",
  8497. mediumslateblue: "7b68ee",
  8498. mediumspringgreen: "00fa9a",
  8499. mediumturquoise: "48d1cc",
  8500. mediumvioletred: "c71585",
  8501. midnightblue: "191970",
  8502. mintcream: "f5fffa",
  8503. mistyrose: "ffe4e1",
  8504. moccasin: "ffe4b5",
  8505. navajowhite: "ffdead",
  8506. navy: "000080",
  8507. oldlace: "fdf5e6",
  8508. olive: "808000",
  8509. olivedrab: "6b8e23",
  8510. orange: "ffa500",
  8511. orangered: "ff4500",
  8512. orchid: "da70d6",
  8513. palegoldenrod: "eee8aa",
  8514. palegreen: "98fb98",
  8515. paleturquoise: "afeeee",
  8516. palevioletred: "db7093",
  8517. papayawhip: "ffefd5",
  8518. peachpuff: "ffdab9",
  8519. peru: "cd853f",
  8520. pink: "ffc0cb",
  8521. plum: "dda0dd",
  8522. powderblue: "b0e0e6",
  8523. purple: "800080",
  8524. rebeccapurple: "639",
  8525. red: "f00",
  8526. rosybrown: "bc8f8f",
  8527. royalblue: "4169e1",
  8528. saddlebrown: "8b4513",
  8529. salmon: "fa8072",
  8530. sandybrown: "f4a460",
  8531. seagreen: "2e8b57",
  8532. seashell: "fff5ee",
  8533. sienna: "a0522d",
  8534. silver: "c0c0c0",
  8535. skyblue: "87ceeb",
  8536. slateblue: "6a5acd",
  8537. slategray: "708090",
  8538. slategrey: "708090",
  8539. snow: "fffafa",
  8540. springgreen: "00ff7f",
  8541. steelblue: "4682b4",
  8542. tan: "d2b48c",
  8543. teal: "008080",
  8544. thistle: "d8bfd8",
  8545. tomato: "ff6347",
  8546. turquoise: "40e0d0",
  8547. violet: "ee82ee",
  8548. wheat: "f5deb3",
  8549. white: "fff",
  8550. whitesmoke: "f5f5f5",
  8551. yellow: "ff0",
  8552. yellowgreen: "9acd32"
  8553. };
  8554. hexRegex = /^#[a-fA-F0-9]{6}$/, hexRgbaRegex = /^#[a-fA-F0-9]{8}$/, reducedHexRegex = /^#[a-fA-F0-9]{3}$/, reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/, rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
  8555. reduceHexValue = function(value) {
  8556. return value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6] ? "#" + value[1] + value[3] + value[5] : value;
  8557. }, reduceHexValue$1 = reduceHexValue;
  8558. isRgb = function(color2) {
  8559. return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u");
  8560. }, isRgba = function(color2) {
  8561. return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && typeof color2.alpha == "number";
  8562. }, isHsl = function(color2) {
  8563. return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u");
  8564. }, isHsla = function(color2) {
  8565. return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && typeof color2.alpha == "number";
  8566. };
  8567. curriedAdjustHue = curry(adjustHue);
  8568. curriedDarken = curry(darken), curriedDarken$1 = curriedDarken;
  8569. curriedDesaturate = curry(desaturate);
  8570. curriedLighten = curry(lighten), curriedLighten$1 = curriedLighten;
  8571. curriedMix = curry(mix), mix$1 = curriedMix;
  8572. curriedOpacify = curry(opacify), curriedOpacify$1 = curriedOpacify;
  8573. curriedSaturate = curry(saturate);
  8574. curriedSetHue = curry(setHue);
  8575. curriedSetLightness = curry(setLightness);
  8576. curriedSetSaturation = curry(setSaturation);
  8577. curriedShade = curry(shade);
  8578. curriedTint = curry(tint);
  8579. curriedTransparentize = curry(transparentize), curriedTransparentize$1 = curriedTransparentize;
  8580. }
  8581. });
  8582. // src/theming/utils.ts
  8583. var globalWindow, mkColor, isColorString, isValidColorForPolished, applyPolished, colorFactory, lightenColor, darkenColor, getPreferredColorScheme, init_utils = __esm({
  8584. "src/theming/utils.ts"() {
  8585. "use strict";
  8586. init_client_logger();
  8587. init_dist();
  8588. init_polished_esm();
  8589. ({ window: globalWindow } = scope), mkColor = (color2) => ({ color: color2 }), isColorString = (color2) => typeof color2 != "string" ? (logger.warn(
  8590. `Color passed to theme object should be a string. Instead ${color2}(${typeof color2}) was passed.`
  8591. ), !1) : !0, isValidColorForPolished = (color2) => !/(gradient|var|calc)/.test(color2), applyPolished = (type5, color2) => type5 === "darken" ? rgba(`${curriedDarken$1(1, color2)}`, 0.95) : type5 === "lighten" ? rgba(`${curriedLighten$1(1, color2)}`, 0.95) : color2, colorFactory = (type5) => (color2) => {
  8592. if (!isColorString(color2) || !isValidColorForPolished(color2))
  8593. return color2;
  8594. try {
  8595. return applyPolished(type5, color2);
  8596. } catch {
  8597. return color2;
  8598. }
  8599. }, lightenColor = colorFactory("lighten"), darkenColor = colorFactory("darken"), getPreferredColorScheme = () => !globalWindow || !globalWindow.matchMedia ? "light" : globalWindow.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
  8600. }
  8601. });
  8602. // src/theming/create.ts
  8603. var create_exports = {};
  8604. __export(create_exports, {
  8605. create: () => create,
  8606. themes: () => themes
  8607. });
  8608. var themesBase, preferredColorScheme, themes, create, init_create = __esm({
  8609. "src/theming/create.ts"() {
  8610. "use strict";
  8611. init_dark();
  8612. init_light();
  8613. init_utils();
  8614. themesBase = {
  8615. light: light_default,
  8616. dark: dark_default
  8617. }, preferredColorScheme = getPreferredColorScheme(), themes = {
  8618. ...themesBase,
  8619. normal: themesBase[preferredColorScheme]
  8620. }, create = (vars = {
  8621. base: preferredColorScheme
  8622. }, rest) => {
  8623. let inherit = {
  8624. // We always inherit the preferred color scheme.
  8625. ...themes[preferredColorScheme],
  8626. // And then the declared theme base if it exists.
  8627. ...themes[vars.base] || {},
  8628. // And then the actual theme content.
  8629. ...vars,
  8630. // If no theme base was declared, we declare the preferred color scheme as the base.
  8631. base: themes[vars.base] ? vars.base : preferredColorScheme
  8632. };
  8633. return {
  8634. ...rest,
  8635. ...inherit,
  8636. barSelectedColor: vars.barSelectedColor || inherit.colorSecondary
  8637. };
  8638. };
  8639. }
  8640. });
  8641. // src/theming/animation.ts
  8642. var easing, rotate360, glow, float, jiggle, inlineGlow, hoverable, animation, init_animation = __esm({
  8643. "src/theming/animation.ts"() {
  8644. "use strict";
  8645. init_emotion_react_browser_esm();
  8646. easing = {
  8647. rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)"
  8648. }, rotate360 = keyframes`
  8649. from {
  8650. transform: rotate(0deg);
  8651. }
  8652. to {
  8653. transform: rotate(360deg);
  8654. }
  8655. `, glow = keyframes`
  8656. 0%, 100% { opacity: 1; }
  8657. 50% { opacity: .4; }
  8658. `, float = keyframes`
  8659. 0% { transform: translateY(1px); }
  8660. 25% { transform: translateY(0px); }
  8661. 50% { transform: translateY(-3px); }
  8662. 100% { transform: translateY(1px); }
  8663. `, jiggle = keyframes`
  8664. 0%, 100% { transform:translate3d(0,0,0); }
  8665. 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
  8666. 37.5%, 87.5% { transform: translate3d(4px,0,0); }
  8667. `, inlineGlow = css`
  8668. animation: ${glow} 1.5s ease-in-out infinite;
  8669. color: transparent;
  8670. cursor: progress;
  8671. `, hoverable = css`
  8672. transition: all 150ms ease-out;
  8673. transform: translate3d(0, 0, 0);
  8674. &:hover {
  8675. transform: translate3d(0, -2px, 0);
  8676. }
  8677. &:active {
  8678. transform: translate3d(0, 0, 0);
  8679. }
  8680. `, animation = {
  8681. rotate360,
  8682. glow,
  8683. float,
  8684. jiggle,
  8685. inlineGlow,
  8686. hoverable
  8687. };
  8688. }
  8689. });
  8690. // src/theming/modules/syntax.ts
  8691. var chromeDark, chromeLight, convertColors, create2, init_syntax = __esm({
  8692. "src/theming/modules/syntax.ts"() {
  8693. "use strict";
  8694. init_utils();
  8695. chromeDark = {
  8696. BASE_FONT_FAMILY: "Menlo, monospace",
  8697. BASE_FONT_SIZE: "11px",
  8698. BASE_LINE_HEIGHT: 1.2,
  8699. BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)",
  8700. BASE_COLOR: "rgb(213, 213, 213)",
  8701. OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,
  8702. OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,
  8703. OBJECT_NAME_COLOR: "rgb(227, 110, 236)",
  8704. OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)",
  8705. OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)",
  8706. OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)",
  8707. OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)",
  8708. OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)",
  8709. OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)",
  8710. OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)",
  8711. OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)",
  8712. HTML_TAG_COLOR: "rgb(93, 176, 215)",
  8713. HTML_TAGNAME_COLOR: "rgb(93, 176, 215)",
  8714. HTML_TAGNAME_TEXT_TRANSFORM: "lowercase",
  8715. HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)",
  8716. HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)",
  8717. HTML_COMMENT_COLOR: "rgb(137, 137, 137)",
  8718. HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)",
  8719. ARROW_COLOR: "rgb(145, 145, 145)",
  8720. ARROW_MARGIN_RIGHT: 3,
  8721. ARROW_FONT_SIZE: 12,
  8722. ARROW_ANIMATION_DURATION: "0",
  8723. TREENODE_FONT_FAMILY: "Menlo, monospace",
  8724. TREENODE_FONT_SIZE: "11px",
  8725. TREENODE_LINE_HEIGHT: 1.2,
  8726. TREENODE_PADDING_LEFT: 12,
  8727. TABLE_BORDER_COLOR: "rgb(85, 85, 85)",
  8728. TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)",
  8729. TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)",
  8730. TABLE_SORT_ICON_COLOR: "black",
  8731. // 'rgb(48, 57, 66)',
  8732. TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",
  8733. TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
  8734. }, chromeLight = {
  8735. BASE_FONT_FAMILY: "Menlo, monospace",
  8736. BASE_FONT_SIZE: "11px",
  8737. BASE_LINE_HEIGHT: 1.2,
  8738. BASE_BACKGROUND_COLOR: "white",
  8739. BASE_COLOR: "black",
  8740. OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,
  8741. OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,
  8742. OBJECT_NAME_COLOR: "rgb(136, 19, 145)",
  8743. OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)",
  8744. OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)",
  8745. OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)",
  8746. OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)",
  8747. OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)",
  8748. OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)",
  8749. OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)",
  8750. OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)",
  8751. HTML_TAG_COLOR: "rgb(168, 148, 166)",
  8752. HTML_TAGNAME_COLOR: "rgb(136, 18, 128)",
  8753. HTML_TAGNAME_TEXT_TRANSFORM: "lowercase",
  8754. HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)",
  8755. HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)",
  8756. HTML_COMMENT_COLOR: "rgb(35, 110, 37)",
  8757. HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)",
  8758. ARROW_COLOR: "#6e6e6e",
  8759. ARROW_MARGIN_RIGHT: 3,
  8760. ARROW_FONT_SIZE: 12,
  8761. ARROW_ANIMATION_DURATION: "0",
  8762. TREENODE_FONT_FAMILY: "Menlo, monospace",
  8763. TREENODE_FONT_SIZE: "11px",
  8764. TREENODE_LINE_HEIGHT: 1.2,
  8765. TREENODE_PADDING_LEFT: 12,
  8766. TABLE_BORDER_COLOR: "#aaa",
  8767. TABLE_TH_BACKGROUND_COLOR: "#eee",
  8768. TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)",
  8769. TABLE_SORT_ICON_COLOR: "#6e6e6e",
  8770. TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",
  8771. TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
  8772. }, convertColors = (colors3) => Object.entries(colors3).reduce((acc, [k, v]) => ({ ...acc, [k]: mkColor(v) }), {}), create2 = ({ colors: colors3, mono }) => {
  8773. let colorsObjs = convertColors(colors3);
  8774. return {
  8775. token: {
  8776. fontFamily: mono,
  8777. WebkitFontSmoothing: "antialiased",
  8778. "&.tag": colorsObjs.red3,
  8779. "&.comment": { ...colorsObjs.green1, fontStyle: "italic" },
  8780. "&.prolog": { ...colorsObjs.green1, fontStyle: "italic" },
  8781. "&.doctype": { ...colorsObjs.green1, fontStyle: "italic" },
  8782. "&.cdata": { ...colorsObjs.green1, fontStyle: "italic" },
  8783. "&.string": colorsObjs.red1,
  8784. "&.url": colorsObjs.cyan1,
  8785. "&.symbol": colorsObjs.cyan1,
  8786. "&.number": colorsObjs.cyan1,
  8787. "&.boolean": colorsObjs.cyan1,
  8788. "&.variable": colorsObjs.cyan1,
  8789. "&.constant": colorsObjs.cyan1,
  8790. "&.inserted": colorsObjs.cyan1,
  8791. "&.atrule": colorsObjs.blue1,
  8792. "&.keyword": colorsObjs.blue1,
  8793. "&.attr-value": colorsObjs.blue1,
  8794. "&.punctuation": colorsObjs.gray1,
  8795. "&.operator": colorsObjs.gray1,
  8796. "&.function": colorsObjs.gray1,
  8797. "&.deleted": colorsObjs.red2,
  8798. "&.important": {
  8799. fontWeight: "bold"
  8800. },
  8801. "&.bold": {
  8802. fontWeight: "bold"
  8803. },
  8804. "&.italic": {
  8805. fontStyle: "italic"
  8806. },
  8807. "&.class-name": colorsObjs.cyan2,
  8808. "&.selector": colorsObjs.red3,
  8809. "&.attr-name": colorsObjs.red4,
  8810. "&.property": colorsObjs.red4,
  8811. "&.regex": colorsObjs.red4,
  8812. "&.entity": colorsObjs.red4,
  8813. "&.directive.tag .tag": {
  8814. background: "#ffff00",
  8815. ...colorsObjs.gray1
  8816. }
  8817. },
  8818. "language-json .token.boolean": colorsObjs.blue1,
  8819. "language-json .token.number": colorsObjs.blue1,
  8820. "language-json .token.property": colorsObjs.cyan2,
  8821. namespace: {
  8822. opacity: 0.7
  8823. }
  8824. };
  8825. };
  8826. }
  8827. });
  8828. // src/theming/convert.ts
  8829. var lightSyntaxColors, darkSyntaxColors, createColors, convert, init_convert = __esm({
  8830. "src/theming/convert.ts"() {
  8831. "use strict";
  8832. init_polished_esm();
  8833. init_animation();
  8834. init_base();
  8835. init_create();
  8836. init_syntax();
  8837. init_utils();
  8838. lightSyntaxColors = {
  8839. green1: "#008000",
  8840. red1: "#A31515",
  8841. red2: "#9a050f",
  8842. red3: "#800000",
  8843. red4: "#eb0000",
  8844. gray1: "#393A34",
  8845. cyan1: "#008380",
  8846. cyan2: "#007ca0",
  8847. blue1: "#0000ff",
  8848. blue2: "#00009f"
  8849. }, darkSyntaxColors = {
  8850. green1: "#95999D",
  8851. red1: "#92C379",
  8852. red2: "#9a050f",
  8853. red3: "#A8FF60",
  8854. red4: "#96CBFE",
  8855. gray1: "#EDEDED",
  8856. cyan1: "#C6C5FE",
  8857. cyan2: "#FFFFB6",
  8858. blue1: "#B474DD",
  8859. blue2: "#00009f"
  8860. }, createColors = (vars) => ({
  8861. // Changeable colors
  8862. primary: vars.colorPrimary,
  8863. secondary: vars.colorSecondary,
  8864. tertiary: color.tertiary,
  8865. ancillary: color.ancillary,
  8866. // Complimentary
  8867. orange: color.orange,
  8868. gold: color.gold,
  8869. green: color.green,
  8870. seafoam: color.seafoam,
  8871. purple: color.purple,
  8872. ultraviolet: color.ultraviolet,
  8873. // Monochrome
  8874. lightest: color.lightest,
  8875. lighter: color.lighter,
  8876. light: color.light,
  8877. mediumlight: color.mediumlight,
  8878. medium: color.medium,
  8879. mediumdark: color.mediumdark,
  8880. dark: color.dark,
  8881. darker: color.darker,
  8882. darkest: color.darkest,
  8883. // For borders
  8884. border: color.border,
  8885. // Status
  8886. positive: color.positive,
  8887. negative: color.negative,
  8888. warning: color.warning,
  8889. critical: color.critical,
  8890. defaultText: vars.textColor || color.darkest,
  8891. inverseText: vars.textInverseColor || color.lightest,
  8892. positiveText: color.positiveText,
  8893. negativeText: color.negativeText,
  8894. warningText: color.warningText
  8895. }), convert = (inherit = themes[getPreferredColorScheme()]) => {
  8896. let {
  8897. base,
  8898. colorPrimary,
  8899. colorSecondary,
  8900. appBg,
  8901. appContentBg,
  8902. appHoverBg,
  8903. appPreviewBg,
  8904. appBorderColor,
  8905. appBorderRadius,
  8906. fontBase,
  8907. fontCode,
  8908. textColor,
  8909. textInverseColor,
  8910. barTextColor,
  8911. barHoverColor,
  8912. barSelectedColor,
  8913. barBg,
  8914. buttonBg,
  8915. buttonBorder,
  8916. booleanBg,
  8917. booleanSelectedBg,
  8918. inputBg,
  8919. inputBorder,
  8920. inputTextColor,
  8921. inputBorderRadius,
  8922. brandTitle,
  8923. brandUrl,
  8924. brandImage,
  8925. brandTarget,
  8926. gridCellSize,
  8927. ...rest
  8928. } = inherit;
  8929. return {
  8930. ...rest,
  8931. base,
  8932. ...base === "dark" ? tokens.dark : tokens.light,
  8933. color: createColors(inherit),
  8934. background: {
  8935. app: appBg,
  8936. bar: barBg,
  8937. content: appContentBg,
  8938. preview: appPreviewBg,
  8939. gridCellSize: gridCellSize || background.gridCellSize,
  8940. hoverable: appHoverBg,
  8941. positive: background.positive,
  8942. negative: background.negative,
  8943. warning: background.warning,
  8944. critical: background.critical
  8945. },
  8946. typography: {
  8947. fonts: {
  8948. base: fontBase,
  8949. mono: fontCode
  8950. },
  8951. weight: typography.weight,
  8952. size: typography.size
  8953. },
  8954. animation,
  8955. easing,
  8956. input: {
  8957. background: inputBg,
  8958. border: inputBorder,
  8959. borderRadius: inputBorderRadius,
  8960. color: inputTextColor
  8961. },
  8962. button: {
  8963. background: buttonBg || inputBg,
  8964. border: buttonBorder || inputBorder
  8965. },
  8966. boolean: {
  8967. background: booleanBg || inputBorder,
  8968. selectedBackground: booleanSelectedBg || inputBg
  8969. },
  8970. // UI
  8971. layoutMargin: 10,
  8972. appBorderColor,
  8973. appBorderRadius,
  8974. // Toolbar default/active colors
  8975. barTextColor,
  8976. barHoverColor: barHoverColor || colorSecondary,
  8977. barSelectedColor: barSelectedColor || colorSecondary,
  8978. barBg,
  8979. // Brand logo/text
  8980. brand: {
  8981. title: brandTitle,
  8982. url: brandUrl,
  8983. image: brandImage || (brandTitle ? null : void 0),
  8984. target: brandTarget
  8985. },
  8986. code: create2({
  8987. colors: base === "dark" ? darkSyntaxColors : lightSyntaxColors,
  8988. mono: fontCode
  8989. }),
  8990. // Addon actions theme
  8991. // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx
  8992. addonActionsTheme: {
  8993. ...base === "dark" ? chromeDark : chromeLight,
  8994. BASE_FONT_FAMILY: fontCode,
  8995. BASE_FONT_SIZE: typography.size.s2 - 1,
  8996. BASE_LINE_HEIGHT: "18px",
  8997. BASE_BACKGROUND_COLOR: "transparent",
  8998. BASE_COLOR: textColor,
  8999. ARROW_COLOR: curriedOpacify$1(0.2, appBorderColor),
  9000. ARROW_MARGIN_RIGHT: 4,
  9001. ARROW_FONT_SIZE: 8,
  9002. TREENODE_FONT_FAMILY: fontCode,
  9003. TREENODE_FONT_SIZE: typography.size.s2 - 1,
  9004. TREENODE_LINE_HEIGHT: "18px",
  9005. TREENODE_PADDING_LEFT: 12
  9006. }
  9007. };
  9008. };
  9009. }
  9010. });
  9011. // ../../node_modules/deep-object-diff/mjs/utils.js
  9012. var isEmpty, isObject4, hasOwnProperty5, makeObjectWithoutPrototype, init_utils2 = __esm({
  9013. "../../node_modules/deep-object-diff/mjs/utils.js"() {
  9014. isEmpty = (o) => Object.keys(o).length === 0, isObject4 = (o) => o != null && typeof o == "object", hasOwnProperty5 = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args), makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
  9015. }
  9016. });
  9017. // ../../node_modules/deep-object-diff/mjs/diff.js
  9018. var init_diff = __esm({
  9019. "../../node_modules/deep-object-diff/mjs/diff.js"() {
  9020. init_utils2();
  9021. }
  9022. });
  9023. // ../../node_modules/deep-object-diff/mjs/added.js
  9024. var init_added = __esm({
  9025. "../../node_modules/deep-object-diff/mjs/added.js"() {
  9026. init_utils2();
  9027. }
  9028. });
  9029. // ../../node_modules/deep-object-diff/mjs/deleted.js
  9030. var deletedDiff, deleted_default, init_deleted = __esm({
  9031. "../../node_modules/deep-object-diff/mjs/deleted.js"() {
  9032. init_utils2();
  9033. deletedDiff = (lhs, rhs) => lhs === rhs || !isObject4(lhs) || !isObject4(rhs) ? {} : Object.keys(lhs).reduce((acc, key) => {
  9034. if (hasOwnProperty5(rhs, key)) {
  9035. let difference2 = deletedDiff(lhs[key], rhs[key]);
  9036. return isObject4(difference2) && isEmpty(difference2) || (acc[key] = difference2), acc;
  9037. }
  9038. return acc[key] = void 0, acc;
  9039. }, makeObjectWithoutPrototype()), deleted_default = deletedDiff;
  9040. }
  9041. });
  9042. // ../../node_modules/deep-object-diff/mjs/updated.js
  9043. var init_updated = __esm({
  9044. "../../node_modules/deep-object-diff/mjs/updated.js"() {
  9045. init_utils2();
  9046. }
  9047. });
  9048. // ../../node_modules/deep-object-diff/mjs/detailed.js
  9049. var init_detailed = __esm({
  9050. "../../node_modules/deep-object-diff/mjs/detailed.js"() {
  9051. init_added();
  9052. init_deleted();
  9053. init_updated();
  9054. }
  9055. });
  9056. // ../../node_modules/deep-object-diff/mjs/index.js
  9057. var init_mjs = __esm({
  9058. "../../node_modules/deep-object-diff/mjs/index.js"() {
  9059. init_diff();
  9060. init_added();
  9061. init_deleted();
  9062. init_updated();
  9063. init_detailed();
  9064. }
  9065. });
  9066. // src/theming/ensure.ts
  9067. var ensure, init_ensure = __esm({
  9068. "src/theming/ensure.ts"() {
  9069. "use strict";
  9070. init_client_logger();
  9071. init_mjs();
  9072. init_esm();
  9073. init_convert();
  9074. init_light();
  9075. ensure = (input2) => {
  9076. if (!input2)
  9077. return convert(light_default);
  9078. let missing = deleted_default(light_default, input2);
  9079. return Object.keys(missing).length && logger.warn(
  9080. dedent`
  9081. Your theme is missing properties, you should update your theme!
  9082. theme-data missing:
  9083. `,
  9084. missing
  9085. ), convert(input2);
  9086. };
  9087. }
  9088. });
  9089. // src/theming/index.ts
  9090. var theming_exports = {};
  9091. __export(theming_exports, {
  9092. CacheProvider: () => CacheProvider,
  9093. ClassNames: () => ClassNames,
  9094. Global: () => Global,
  9095. ThemeProvider: () => ThemeProvider,
  9096. background: () => background,
  9097. color: () => color,
  9098. convert: () => convert,
  9099. create: () => create,
  9100. createCache: () => createCache,
  9101. createGlobal: () => createGlobal,
  9102. createReset: () => createReset,
  9103. css: () => css,
  9104. darken: () => darkenColor,
  9105. ensure: () => ensure,
  9106. getPreferredColorScheme: () => getPreferredColorScheme,
  9107. ignoreSsrWarning: () => ignoreSsrWarning,
  9108. isPropValid: () => isPropValid,
  9109. jsx: () => jsx,
  9110. keyframes: () => keyframes,
  9111. lighten: () => lightenColor,
  9112. srOnlyStyles: () => srOnlyStyles,
  9113. styled: () => styled,
  9114. themes: () => themes,
  9115. tokens: () => tokens,
  9116. typography: () => typography,
  9117. useTheme: () => useTheme,
  9118. withTheme: () => withTheme
  9119. });
  9120. var ignoreSsrWarning, init_theming = __esm({
  9121. "src/theming/index.ts"() {
  9122. "use strict";
  9123. init_emotion_styled_browser_esm();
  9124. init_emotion_react_browser_esm();
  9125. init_base();
  9126. init_types();
  9127. init_emotion_cache_browser_esm();
  9128. init_emotion_is_prop_valid_esm();
  9129. init_global();
  9130. init_create();
  9131. init_convert();
  9132. init_ensure();
  9133. init_utils();
  9134. ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
  9135. }
  9136. });
  9137. // ../../node_modules/@babel/runtime/helpers/esm/typeof.js
  9138. function _typeof(o) {
  9139. "@babel/helpers - typeof";
  9140. return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  9141. return typeof o2;
  9142. } : function(o2) {
  9143. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  9144. }, _typeof(o);
  9145. }
  9146. var init_typeof = __esm({
  9147. "../../node_modules/@babel/runtime/helpers/esm/typeof.js"() {
  9148. }
  9149. });
  9150. // ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
  9151. function toPrimitive(t, r2) {
  9152. if (_typeof(t) != "object" || !t) return t;
  9153. var e = t[Symbol.toPrimitive];
  9154. if (e !== void 0) {
  9155. var i = e.call(t, r2 || "default");
  9156. if (_typeof(i) != "object") return i;
  9157. throw new TypeError("@@toPrimitive must return a primitive value.");
  9158. }
  9159. return (r2 === "string" ? String : Number)(t);
  9160. }
  9161. var init_toPrimitive = __esm({
  9162. "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"() {
  9163. init_typeof();
  9164. }
  9165. });
  9166. // ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
  9167. function toPropertyKey(t) {
  9168. var i = toPrimitive(t, "string");
  9169. return _typeof(i) == "symbol" ? i : i + "";
  9170. }
  9171. var init_toPropertyKey = __esm({
  9172. "../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"() {
  9173. init_typeof();
  9174. init_toPrimitive();
  9175. }
  9176. });
  9177. // ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
  9178. function _defineProperty(e, r2, t) {
  9179. return (r2 = toPropertyKey(r2)) in e ? Object.defineProperty(e, r2, {
  9180. value: t,
  9181. enumerable: !0,
  9182. configurable: !0,
  9183. writable: !0
  9184. }) : e[r2] = t, e;
  9185. }
  9186. var init_defineProperty = __esm({
  9187. "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() {
  9188. init_toPropertyKey();
  9189. }
  9190. });
  9191. // ../../node_modules/react-syntax-highlighter/dist/esm/create-element.js
  9192. function ownKeys(e, r2) {
  9193. var t = Object.keys(e);
  9194. if (Object.getOwnPropertySymbols) {
  9195. var o = Object.getOwnPropertySymbols(e);
  9196. r2 && (o = o.filter(function(r3) {
  9197. return Object.getOwnPropertyDescriptor(e, r3).enumerable;
  9198. })), t.push.apply(t, o);
  9199. }
  9200. return t;
  9201. }
  9202. function _objectSpread(e) {
  9203. for (var r2 = 1; r2 < arguments.length; r2++) {
  9204. var t = arguments[r2] != null ? arguments[r2] : {};
  9205. r2 % 2 ? ownKeys(Object(t), !0).forEach(function(r3) {
  9206. _defineProperty(e, r3, t[r3]);
  9207. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
  9208. Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
  9209. });
  9210. }
  9211. return e;
  9212. }
  9213. function powerSetPermutations(arr) {
  9214. var arrLength = arr.length;
  9215. if (arrLength === 0 || arrLength === 1) return arr;
  9216. if (arrLength === 2)
  9217. return [arr[0], arr[1], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0])];
  9218. if (arrLength === 3)
  9219. return [arr[0], arr[1], arr[2], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[2]), "".concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[0])];
  9220. if (arrLength >= 4)
  9221. return [arr[0], arr[1], arr[2], arr[3], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[3]), "".concat(arr[3], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[1], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[1], ".").concat(arr[0])];
  9222. }
  9223. function getClassNameCombinations(classNames) {
  9224. if (classNames.length === 0 || classNames.length === 1) return classNames;
  9225. var key = classNames.join(".");
  9226. return classNameCombinations[key] || (classNameCombinations[key] = powerSetPermutations(classNames)), classNameCombinations[key];
  9227. }
  9228. function createStyleObject(classNames) {
  9229. var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, stylesheet = arguments.length > 2 ? arguments[2] : void 0, nonTokenClassNames = classNames.filter(function(className) {
  9230. return className !== "token";
  9231. }), classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
  9232. return classNamesCombinations.reduce(function(styleObject, className) {
  9233. return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
  9234. }, elementStyle);
  9235. }
  9236. function createClassNameString(classNames) {
  9237. return classNames.join(" ");
  9238. }
  9239. function createChildren(stylesheet, useInlineStyles) {
  9240. var childrenCount = 0;
  9241. return function(children) {
  9242. return childrenCount += 1, children.map(function(child, i) {
  9243. return createElement4({
  9244. node: child,
  9245. stylesheet,
  9246. useInlineStyles,
  9247. key: "code-segment-".concat(childrenCount, "-").concat(i)
  9248. });
  9249. });
  9250. };
  9251. }
  9252. function createElement4(_ref) {
  9253. var node2 = _ref.node, stylesheet = _ref.stylesheet, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, useInlineStyles = _ref.useInlineStyles, key = _ref.key, properties = node2.properties, type5 = node2.type, TagName = node2.tagName, value = node2.value;
  9254. if (type5 === "text")
  9255. return value;
  9256. if (TagName) {
  9257. var childrenCreator = createChildren(stylesheet, useInlineStyles), props;
  9258. if (!useInlineStyles)
  9259. props = _objectSpread(_objectSpread({}, properties), {}, {
  9260. className: createClassNameString(properties.className)
  9261. });
  9262. else {
  9263. var allStylesheetSelectors = Object.keys(stylesheet).reduce(function(classes, selector) {
  9264. return selector.split(".").forEach(function(className2) {
  9265. classes.includes(className2) || classes.push(className2);
  9266. }), classes;
  9267. }, []), startingClassName = properties.className && properties.className.includes("token") ? ["token"] : [], className = properties.className && startingClassName.concat(properties.className.filter(function(className2) {
  9268. return !allStylesheetSelectors.includes(className2);
  9269. }));
  9270. props = _objectSpread(_objectSpread({}, properties), {}, {
  9271. className: createClassNameString(className) || void 0,
  9272. style: createStyleObject(properties.className, Object.assign({}, properties.style, style), stylesheet)
  9273. });
  9274. }
  9275. var children = childrenCreator(node2.children);
  9276. return import_react8.default.createElement(TagName, _extends({
  9277. key
  9278. }, props), children);
  9279. }
  9280. }
  9281. var import_react8, classNameCombinations, init_create_element = __esm({
  9282. "../../node_modules/react-syntax-highlighter/dist/esm/create-element.js"() {
  9283. init_extends();
  9284. init_defineProperty();
  9285. import_react8 = __toESM(require_react());
  9286. classNameCombinations = {};
  9287. }
  9288. });
  9289. // ../../node_modules/refractor/lang/bash.js
  9290. var require_bash = __commonJS({
  9291. "../../node_modules/refractor/lang/bash.js"(exports, module2) {
  9292. "use strict";
  9293. module2.exports = bash2;
  9294. bash2.displayName = "bash";
  9295. bash2.aliases = ["shell"];
  9296. function bash2(Prism) {
  9297. (function(Prism2) {
  9298. var envVars = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", commandAfterHeredoc = {
  9299. pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
  9300. lookbehind: !0,
  9301. alias: "punctuation",
  9302. // this looks reasonably well in all themes
  9303. inside: null
  9304. // see below
  9305. }, insideString = {
  9306. bash: commandAfterHeredoc,
  9307. environment: {
  9308. pattern: RegExp("\\$" + envVars),
  9309. alias: "constant"
  9310. },
  9311. variable: [
  9312. // [0]: Arithmetic Environment
  9313. {
  9314. pattern: /\$?\(\([\s\S]+?\)\)/,
  9315. greedy: !0,
  9316. inside: {
  9317. // If there is a $ sign at the beginning highlight $(( and )) as variable
  9318. variable: [
  9319. {
  9320. pattern: /(^\$\(\([\s\S]+)\)\)/,
  9321. lookbehind: !0
  9322. },
  9323. /^\$\(\(/
  9324. ],
  9325. number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
  9326. // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
  9327. operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
  9328. // If there is no $ sign at the beginning highlight (( and )) as punctuation
  9329. punctuation: /\(\(?|\)\)?|,|;/
  9330. }
  9331. },
  9332. // [1]: Command Substitution
  9333. {
  9334. pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
  9335. greedy: !0,
  9336. inside: {
  9337. variable: /^\$\(|^`|\)$|`$/
  9338. }
  9339. },
  9340. // [2]: Brace expansion
  9341. {
  9342. pattern: /\$\{[^}]+\}/,
  9343. greedy: !0,
  9344. inside: {
  9345. operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
  9346. punctuation: /[\[\]]/,
  9347. environment: {
  9348. pattern: RegExp("(\\{)" + envVars),
  9349. lookbehind: !0,
  9350. alias: "constant"
  9351. }
  9352. }
  9353. },
  9354. /\$(?:\w+|[#?*!@$])/
  9355. ],
  9356. // Escape sequences from echo and printf's manuals, and escaped quotes.
  9357. entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
  9358. };
  9359. Prism2.languages.bash = {
  9360. shebang: {
  9361. pattern: /^#!\s*\/.*/,
  9362. alias: "important"
  9363. },
  9364. comment: {
  9365. pattern: /(^|[^"{\\$])#.*/,
  9366. lookbehind: !0
  9367. },
  9368. "function-name": [
  9369. // a) function foo {
  9370. // b) foo() {
  9371. // c) function foo() {
  9372. // but not “foo {”
  9373. {
  9374. // a) and c)
  9375. pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
  9376. lookbehind: !0,
  9377. alias: "function"
  9378. },
  9379. {
  9380. // b)
  9381. pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
  9382. alias: "function"
  9383. }
  9384. ],
  9385. // Highlight variable names as variables in for and select beginnings.
  9386. "for-or-select": {
  9387. pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
  9388. alias: "variable",
  9389. lookbehind: !0
  9390. },
  9391. // Highlight variable names as variables in the left-hand part
  9392. // of assignments (“=” and “+=”).
  9393. "assign-left": {
  9394. pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
  9395. inside: {
  9396. environment: {
  9397. pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + envVars),
  9398. lookbehind: !0,
  9399. alias: "constant"
  9400. }
  9401. },
  9402. alias: "variable",
  9403. lookbehind: !0
  9404. },
  9405. string: [
  9406. // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
  9407. {
  9408. pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
  9409. lookbehind: !0,
  9410. greedy: !0,
  9411. inside: insideString
  9412. },
  9413. // Here-document with quotes around the tag
  9414. // → No expansion (so no “inside”).
  9415. {
  9416. pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
  9417. lookbehind: !0,
  9418. greedy: !0,
  9419. inside: {
  9420. bash: commandAfterHeredoc
  9421. }
  9422. },
  9423. // “Normal” string
  9424. {
  9425. // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
  9426. pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
  9427. lookbehind: !0,
  9428. greedy: !0,
  9429. inside: insideString
  9430. },
  9431. {
  9432. // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
  9433. pattern: /(^|[^$\\])'[^']*'/,
  9434. lookbehind: !0,
  9435. greedy: !0
  9436. },
  9437. {
  9438. // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
  9439. pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
  9440. greedy: !0,
  9441. inside: {
  9442. entity: insideString.entity
  9443. }
  9444. }
  9445. ],
  9446. environment: {
  9447. pattern: RegExp("\\$?" + envVars),
  9448. alias: "constant"
  9449. },
  9450. variable: insideString.variable,
  9451. function: {
  9452. pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
  9453. lookbehind: !0
  9454. },
  9455. keyword: {
  9456. pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
  9457. lookbehind: !0
  9458. },
  9459. // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
  9460. builtin: {
  9461. pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
  9462. lookbehind: !0,
  9463. // Alias added to make those easier to distinguish from strings.
  9464. alias: "class-name"
  9465. },
  9466. boolean: {
  9467. pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
  9468. lookbehind: !0
  9469. },
  9470. "file-descriptor": {
  9471. pattern: /\B&\d\b/,
  9472. alias: "important"
  9473. },
  9474. operator: {
  9475. // Lots of redirections here, but not just that.
  9476. pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
  9477. inside: {
  9478. "file-descriptor": {
  9479. pattern: /^\d/,
  9480. alias: "important"
  9481. }
  9482. }
  9483. },
  9484. punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
  9485. number: {
  9486. pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
  9487. lookbehind: !0
  9488. }
  9489. }, commandAfterHeredoc.inside = Prism2.languages.bash;
  9490. for (var toBeCopied = [
  9491. "comment",
  9492. "function-name",
  9493. "for-or-select",
  9494. "assign-left",
  9495. "string",
  9496. "environment",
  9497. "function",
  9498. "keyword",
  9499. "builtin",
  9500. "boolean",
  9501. "file-descriptor",
  9502. "operator",
  9503. "punctuation",
  9504. "number"
  9505. ], inside = insideString.variable[1].inside, i = 0; i < toBeCopied.length; i++)
  9506. inside[toBeCopied[i]] = Prism2.languages.bash[toBeCopied[i]];
  9507. Prism2.languages.shell = Prism2.languages.bash;
  9508. })(Prism);
  9509. }
  9510. }
  9511. });
  9512. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js
  9513. var import_bash, bash_default, init_bash = __esm({
  9514. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js"() {
  9515. import_bash = __toESM(require_bash()), bash_default = import_bash.default;
  9516. }
  9517. });
  9518. // ../../node_modules/refractor/lang/css.js
  9519. var require_css = __commonJS({
  9520. "../../node_modules/refractor/lang/css.js"(exports, module2) {
  9521. "use strict";
  9522. module2.exports = css3;
  9523. css3.displayName = "css";
  9524. css3.aliases = [];
  9525. function css3(Prism) {
  9526. (function(Prism2) {
  9527. var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
  9528. Prism2.languages.css = {
  9529. comment: /\/\*[\s\S]*?\*\//,
  9530. atrule: {
  9531. pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
  9532. inside: {
  9533. rule: /^@[\w-]+/,
  9534. "selector-function-argument": {
  9535. pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
  9536. lookbehind: !0,
  9537. alias: "selector"
  9538. },
  9539. keyword: {
  9540. pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
  9541. lookbehind: !0
  9542. }
  9543. // See rest below
  9544. }
  9545. },
  9546. url: {
  9547. // https://drafts.csswg.org/css-values-3/#urls
  9548. pattern: RegExp(
  9549. "\\burl\\((?:" + string.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)",
  9550. "i"
  9551. ),
  9552. greedy: !0,
  9553. inside: {
  9554. function: /^url/i,
  9555. punctuation: /^\(|\)$/,
  9556. string: {
  9557. pattern: RegExp("^" + string.source + "$"),
  9558. alias: "url"
  9559. }
  9560. }
  9561. },
  9562. selector: {
  9563. pattern: RegExp(
  9564. `(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + string.source + ")*(?=\\s*\\{)"
  9565. ),
  9566. lookbehind: !0
  9567. },
  9568. string: {
  9569. pattern: string,
  9570. greedy: !0
  9571. },
  9572. property: {
  9573. pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
  9574. lookbehind: !0
  9575. },
  9576. important: /!important\b/i,
  9577. function: {
  9578. pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
  9579. lookbehind: !0
  9580. },
  9581. punctuation: /[(){};:,]/
  9582. }, Prism2.languages.css.atrule.inside.rest = Prism2.languages.css;
  9583. var markup2 = Prism2.languages.markup;
  9584. markup2 && (markup2.tag.addInlined("style", "css"), markup2.tag.addAttribute("style", "css"));
  9585. })(Prism);
  9586. }
  9587. }
  9588. });
  9589. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js
  9590. var import_css, css_default, init_css = __esm({
  9591. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js"() {
  9592. import_css = __toESM(require_css()), css_default = import_css.default;
  9593. }
  9594. });
  9595. // ../../node_modules/refractor/lang/graphql.js
  9596. var require_graphql = __commonJS({
  9597. "../../node_modules/refractor/lang/graphql.js"(exports, module2) {
  9598. "use strict";
  9599. module2.exports = graphql2;
  9600. graphql2.displayName = "graphql";
  9601. graphql2.aliases = [];
  9602. function graphql2(Prism) {
  9603. Prism.languages.graphql = {
  9604. comment: /#.*/,
  9605. description: {
  9606. pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,
  9607. greedy: !0,
  9608. alias: "string",
  9609. inside: {
  9610. "language-markdown": {
  9611. pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,
  9612. lookbehind: !0,
  9613. inside: Prism.languages.markdown
  9614. }
  9615. }
  9616. },
  9617. string: {
  9618. pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,
  9619. greedy: !0
  9620. },
  9621. number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
  9622. boolean: /\b(?:false|true)\b/,
  9623. variable: /\$[a-z_]\w*/i,
  9624. directive: {
  9625. pattern: /@[a-z_]\w*/i,
  9626. alias: "function"
  9627. },
  9628. "attr-name": {
  9629. pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,
  9630. greedy: !0
  9631. },
  9632. "atom-input": {
  9633. pattern: /\b[A-Z]\w*Input\b/,
  9634. alias: "class-name"
  9635. },
  9636. scalar: /\b(?:Boolean|Float|ID|Int|String)\b/,
  9637. constant: /\b[A-Z][A-Z_\d]*\b/,
  9638. "class-name": {
  9639. pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,
  9640. lookbehind: !0
  9641. },
  9642. fragment: {
  9643. pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,
  9644. lookbehind: !0,
  9645. alias: "function"
  9646. },
  9647. "definition-mutation": {
  9648. pattern: /(\bmutation\s+)[a-zA-Z_]\w*/,
  9649. lookbehind: !0,
  9650. alias: "function"
  9651. },
  9652. "definition-query": {
  9653. pattern: /(\bquery\s+)[a-zA-Z_]\w*/,
  9654. lookbehind: !0,
  9655. alias: "function"
  9656. },
  9657. keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,
  9658. operator: /[!=|&]|\.{3}/,
  9659. "property-query": /\w+(?=\s*\()/,
  9660. object: /\w+(?=\s*\{)/,
  9661. punctuation: /[!(){}\[\]:=,]/,
  9662. property: /\w+/
  9663. }, Prism.hooks.add("after-tokenize", function(env) {
  9664. if (env.language !== "graphql")
  9665. return;
  9666. var validTokens = env.tokens.filter(function(token2) {
  9667. return typeof token2 != "string" && token2.type !== "comment" && token2.type !== "scalar";
  9668. }), currentIndex = 0;
  9669. function getToken(offset3) {
  9670. return validTokens[currentIndex + offset3];
  9671. }
  9672. function isTokenType(types, offset3) {
  9673. offset3 = offset3 || 0;
  9674. for (var i2 = 0; i2 < types.length; i2++) {
  9675. var token2 = getToken(i2 + offset3);
  9676. if (!token2 || token2.type !== types[i2])
  9677. return !1;
  9678. }
  9679. return !0;
  9680. }
  9681. function findClosingBracket(open, close) {
  9682. for (var stackHeight = 1, i2 = currentIndex; i2 < validTokens.length; i2++) {
  9683. var token2 = validTokens[i2], content = token2.content;
  9684. if (token2.type === "punctuation" && typeof content == "string") {
  9685. if (open.test(content))
  9686. stackHeight++;
  9687. else if (close.test(content) && (stackHeight--, stackHeight === 0))
  9688. return i2;
  9689. }
  9690. }
  9691. return -1;
  9692. }
  9693. function addAlias(token2, alias) {
  9694. var aliases2 = token2.alias;
  9695. aliases2 ? Array.isArray(aliases2) || (token2.alias = aliases2 = [aliases2]) : token2.alias = aliases2 = [], aliases2.push(alias);
  9696. }
  9697. for (; currentIndex < validTokens.length; ) {
  9698. var startToken = validTokens[currentIndex++];
  9699. if (startToken.type === "keyword" && startToken.content === "mutation") {
  9700. var inputVariables = [];
  9701. if (isTokenType(["definition-mutation", "punctuation"]) && getToken(1).content === "(") {
  9702. currentIndex += 2;
  9703. var definitionEnd = findClosingBracket(/^\($/, /^\)$/);
  9704. if (definitionEnd === -1)
  9705. continue;
  9706. for (; currentIndex < definitionEnd; currentIndex++) {
  9707. var t = getToken(0);
  9708. t.type === "variable" && (addAlias(t, "variable-input"), inputVariables.push(t.content));
  9709. }
  9710. currentIndex = definitionEnd + 1;
  9711. }
  9712. if (isTokenType(["punctuation", "property-query"]) && getToken(0).content === "{" && (currentIndex++, addAlias(getToken(0), "property-mutation"), inputVariables.length > 0)) {
  9713. var mutationEnd = findClosingBracket(/^\{$/, /^\}$/);
  9714. if (mutationEnd === -1)
  9715. continue;
  9716. for (var i = currentIndex; i < mutationEnd; i++) {
  9717. var varToken = validTokens[i];
  9718. varToken.type === "variable" && inputVariables.indexOf(varToken.content) >= 0 && addAlias(varToken, "variable-input");
  9719. }
  9720. }
  9721. }
  9722. }
  9723. });
  9724. }
  9725. }
  9726. });
  9727. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js
  9728. var import_graphql, graphql_default, init_graphql = __esm({
  9729. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js"() {
  9730. import_graphql = __toESM(require_graphql()), graphql_default = import_graphql.default;
  9731. }
  9732. });
  9733. // ../../node_modules/refractor/lang/js-extras.js
  9734. var require_js_extras = __commonJS({
  9735. "../../node_modules/refractor/lang/js-extras.js"(exports, module2) {
  9736. "use strict";
  9737. module2.exports = jsExtras2;
  9738. jsExtras2.displayName = "jsExtras";
  9739. jsExtras2.aliases = [];
  9740. function jsExtras2(Prism) {
  9741. (function(Prism2) {
  9742. Prism2.languages.insertBefore("javascript", "function-variable", {
  9743. "method-variable": {
  9744. pattern: RegExp(
  9745. "(\\.\\s*)" + Prism2.languages.javascript["function-variable"].pattern.source
  9746. ),
  9747. lookbehind: !0,
  9748. alias: ["function-variable", "method", "function", "property-access"]
  9749. }
  9750. }), Prism2.languages.insertBefore("javascript", "function", {
  9751. method: {
  9752. pattern: RegExp(
  9753. "(\\.\\s*)" + Prism2.languages.javascript.function.source
  9754. ),
  9755. lookbehind: !0,
  9756. alias: ["function", "property-access"]
  9757. }
  9758. }), Prism2.languages.insertBefore("javascript", "constant", {
  9759. "known-class-name": [
  9760. {
  9761. // standard built-ins
  9762. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
  9763. pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,
  9764. alias: "class-name"
  9765. },
  9766. {
  9767. // errors
  9768. pattern: /\b(?:[A-Z]\w*)Error\b/,
  9769. alias: "class-name"
  9770. }
  9771. ]
  9772. });
  9773. function withId(source, flags) {
  9774. return RegExp(
  9775. source.replace(/<ID>/g, function() {
  9776. return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
  9777. }),
  9778. flags
  9779. );
  9780. }
  9781. Prism2.languages.insertBefore("javascript", "keyword", {
  9782. imports: {
  9783. // https://tc39.es/ecma262/#sec-imports
  9784. pattern: withId(
  9785. /(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source
  9786. ),
  9787. lookbehind: !0,
  9788. inside: Prism2.languages.javascript
  9789. },
  9790. exports: {
  9791. // https://tc39.es/ecma262/#sec-exports
  9792. pattern: withId(
  9793. /(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source
  9794. ),
  9795. lookbehind: !0,
  9796. inside: Prism2.languages.javascript
  9797. }
  9798. }), Prism2.languages.javascript.keyword.unshift(
  9799. {
  9800. pattern: /\b(?:as|default|export|from|import)\b/,
  9801. alias: "module"
  9802. },
  9803. {
  9804. pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,
  9805. alias: "control-flow"
  9806. },
  9807. {
  9808. pattern: /\bnull\b/,
  9809. alias: ["null", "nil"]
  9810. },
  9811. {
  9812. pattern: /\bundefined\b/,
  9813. alias: "nil"
  9814. }
  9815. ), Prism2.languages.insertBefore("javascript", "operator", {
  9816. spread: {
  9817. pattern: /\.{3}/,
  9818. alias: "operator"
  9819. },
  9820. arrow: {
  9821. pattern: /=>/,
  9822. alias: "operator"
  9823. }
  9824. }), Prism2.languages.insertBefore("javascript", "punctuation", {
  9825. "property-access": {
  9826. pattern: withId(/(\.\s*)#?<ID>/.source),
  9827. lookbehind: !0
  9828. },
  9829. "maybe-class-name": {
  9830. pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,
  9831. lookbehind: !0
  9832. },
  9833. dom: {
  9834. // this contains only a few commonly used DOM variables
  9835. pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,
  9836. alias: "variable"
  9837. },
  9838. console: {
  9839. pattern: /\bconsole(?=\s*\.)/,
  9840. alias: "class-name"
  9841. }
  9842. });
  9843. for (var maybeClassNameTokens = [
  9844. "function",
  9845. "function-variable",
  9846. "method",
  9847. "method-variable",
  9848. "property-access"
  9849. ], i = 0; i < maybeClassNameTokens.length; i++) {
  9850. var token2 = maybeClassNameTokens[i], value = Prism2.languages.javascript[token2];
  9851. Prism2.util.type(value) === "RegExp" && (value = Prism2.languages.javascript[token2] = {
  9852. pattern: value
  9853. });
  9854. var inside = value.inside || {};
  9855. value.inside = inside, inside["maybe-class-name"] = /^[A-Z][\s\S]*/;
  9856. }
  9857. })(Prism);
  9858. }
  9859. }
  9860. });
  9861. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js
  9862. var import_js_extras, js_extras_default, init_js_extras = __esm({
  9863. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js"() {
  9864. import_js_extras = __toESM(require_js_extras()), js_extras_default = import_js_extras.default;
  9865. }
  9866. });
  9867. // ../../node_modules/refractor/lang/json.js
  9868. var require_json = __commonJS({
  9869. "../../node_modules/refractor/lang/json.js"(exports, module2) {
  9870. "use strict";
  9871. module2.exports = json3;
  9872. json3.displayName = "json";
  9873. json3.aliases = ["webmanifest"];
  9874. function json3(Prism) {
  9875. Prism.languages.json = {
  9876. property: {
  9877. pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
  9878. lookbehind: !0,
  9879. greedy: !0
  9880. },
  9881. string: {
  9882. pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
  9883. lookbehind: !0,
  9884. greedy: !0
  9885. },
  9886. comment: {
  9887. pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
  9888. greedy: !0
  9889. },
  9890. number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
  9891. punctuation: /[{}[\],]/,
  9892. operator: /:/,
  9893. boolean: /\b(?:false|true)\b/,
  9894. null: {
  9895. pattern: /\bnull\b/,
  9896. alias: "keyword"
  9897. }
  9898. }, Prism.languages.webmanifest = Prism.languages.json;
  9899. }
  9900. }
  9901. });
  9902. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js
  9903. var import_json, json_default, init_json = __esm({
  9904. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js"() {
  9905. import_json = __toESM(require_json()), json_default = import_json.default;
  9906. }
  9907. });
  9908. // ../../node_modules/refractor/lang/jsx.js
  9909. var require_jsx = __commonJS({
  9910. "../../node_modules/refractor/lang/jsx.js"(exports, module2) {
  9911. "use strict";
  9912. module2.exports = jsx10;
  9913. jsx10.displayName = "jsx";
  9914. jsx10.aliases = [];
  9915. function jsx10(Prism) {
  9916. (function(Prism2) {
  9917. var javascript = Prism2.util.clone(Prism2.languages.javascript), space = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, braces = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, spread = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
  9918. function re2(source, flags) {
  9919. return source = source.replace(/<S>/g, function() {
  9920. return space;
  9921. }).replace(/<BRACES>/g, function() {
  9922. return braces;
  9923. }).replace(/<SPREAD>/g, function() {
  9924. return spread;
  9925. }), RegExp(source, flags);
  9926. }
  9927. spread = re2(spread).source, Prism2.languages.jsx = Prism2.languages.extend("markup", javascript), Prism2.languages.jsx.tag.pattern = re2(
  9928. /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
  9929. ), Prism2.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, Prism2.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, Prism2.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, Prism2.languages.jsx.tag.inside.comment = javascript.comment, Prism2.languages.insertBefore(
  9930. "inside",
  9931. "attr-name",
  9932. {
  9933. spread: {
  9934. pattern: re2(/<SPREAD>/.source),
  9935. inside: Prism2.languages.jsx
  9936. }
  9937. },
  9938. Prism2.languages.jsx.tag
  9939. ), Prism2.languages.insertBefore(
  9940. "inside",
  9941. "special-attr",
  9942. {
  9943. script: {
  9944. // Allow for two levels of nesting
  9945. pattern: re2(/=<BRACES>/.source),
  9946. alias: "language-javascript",
  9947. inside: {
  9948. "script-punctuation": {
  9949. pattern: /^=(?=\{)/,
  9950. alias: "punctuation"
  9951. },
  9952. rest: Prism2.languages.jsx
  9953. }
  9954. }
  9955. },
  9956. Prism2.languages.jsx.tag
  9957. );
  9958. var stringifyToken = function(token2) {
  9959. return token2 ? typeof token2 == "string" ? token2 : typeof token2.content == "string" ? token2.content : token2.content.map(stringifyToken).join("") : "";
  9960. }, walkTokens = function(tokens2) {
  9961. for (var openedTags = [], i = 0; i < tokens2.length; i++) {
  9962. var token2 = tokens2[i], notTagNorBrace = !1;
  9963. if (typeof token2 != "string" && (token2.type === "tag" && token2.content[0] && token2.content[0].type === "tag" ? token2.content[0].content[0].content === "</" ? openedTags.length > 0 && openedTags[openedTags.length - 1].tagName === stringifyToken(token2.content[0].content[1]) && openedTags.pop() : token2.content[token2.content.length - 1].content === "/>" || openedTags.push({
  9964. tagName: stringifyToken(token2.content[0].content[1]),
  9965. openedBraces: 0
  9966. }) : openedTags.length > 0 && token2.type === "punctuation" && token2.content === "{" ? openedTags[openedTags.length - 1].openedBraces++ : openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces > 0 && token2.type === "punctuation" && token2.content === "}" ? openedTags[openedTags.length - 1].openedBraces-- : notTagNorBrace = !0), (notTagNorBrace || typeof token2 == "string") && openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces === 0) {
  9967. var plainText = stringifyToken(token2);
  9968. i < tokens2.length - 1 && (typeof tokens2[i + 1] == "string" || tokens2[i + 1].type === "plain-text") && (plainText += stringifyToken(tokens2[i + 1]), tokens2.splice(i + 1, 1)), i > 0 && (typeof tokens2[i - 1] == "string" || tokens2[i - 1].type === "plain-text") && (plainText = stringifyToken(tokens2[i - 1]) + plainText, tokens2.splice(i - 1, 1), i--), tokens2[i] = new Prism2.Token(
  9969. "plain-text",
  9970. plainText,
  9971. null,
  9972. plainText
  9973. );
  9974. }
  9975. token2.content && typeof token2.content != "string" && walkTokens(token2.content);
  9976. }
  9977. };
  9978. Prism2.hooks.add("after-tokenize", function(env) {
  9979. env.language !== "jsx" && env.language !== "tsx" || walkTokens(env.tokens);
  9980. });
  9981. })(Prism);
  9982. }
  9983. }
  9984. });
  9985. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
  9986. var import_jsx, jsx_default, init_jsx = __esm({
  9987. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js"() {
  9988. import_jsx = __toESM(require_jsx()), jsx_default = import_jsx.default;
  9989. }
  9990. });
  9991. // ../../node_modules/refractor/lang/markdown.js
  9992. var require_markdown = __commonJS({
  9993. "../../node_modules/refractor/lang/markdown.js"(exports, module2) {
  9994. "use strict";
  9995. module2.exports = markdown2;
  9996. markdown2.displayName = "markdown";
  9997. markdown2.aliases = ["md"];
  9998. function markdown2(Prism) {
  9999. (function(Prism2) {
  10000. var inner = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
  10001. function createInline(pattern) {
  10002. return pattern = pattern.replace(/<inner>/g, function() {
  10003. return inner;
  10004. }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")");
  10005. }
  10006. var tableCell = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, tableRow = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
  10007. /__/g,
  10008. function() {
  10009. return tableCell;
  10010. }
  10011. ), tableLine = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
  10012. Prism2.languages.markdown = Prism2.languages.extend("markup", {}), Prism2.languages.insertBefore("markdown", "prolog", {
  10013. "front-matter-block": {
  10014. pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
  10015. lookbehind: !0,
  10016. greedy: !0,
  10017. inside: {
  10018. punctuation: /^---|---$/,
  10019. "front-matter": {
  10020. pattern: /\S+(?:\s+\S+)*/,
  10021. alias: ["yaml", "language-yaml"],
  10022. inside: Prism2.languages.yaml
  10023. }
  10024. }
  10025. },
  10026. blockquote: {
  10027. // > ...
  10028. pattern: /^>(?:[\t ]*>)*/m,
  10029. alias: "punctuation"
  10030. },
  10031. table: {
  10032. pattern: RegExp(
  10033. "^" + tableRow + tableLine + "(?:" + tableRow + ")*",
  10034. "m"
  10035. ),
  10036. inside: {
  10037. "table-data-rows": {
  10038. pattern: RegExp(
  10039. "^(" + tableRow + tableLine + ")(?:" + tableRow + ")*$"
  10040. ),
  10041. lookbehind: !0,
  10042. inside: {
  10043. "table-data": {
  10044. pattern: RegExp(tableCell),
  10045. inside: Prism2.languages.markdown
  10046. },
  10047. punctuation: /\|/
  10048. }
  10049. },
  10050. "table-line": {
  10051. pattern: RegExp("^(" + tableRow + ")" + tableLine + "$"),
  10052. lookbehind: !0,
  10053. inside: {
  10054. punctuation: /\||:?-{3,}:?/
  10055. }
  10056. },
  10057. "table-header-row": {
  10058. pattern: RegExp("^" + tableRow + "$"),
  10059. inside: {
  10060. "table-header": {
  10061. pattern: RegExp(tableCell),
  10062. alias: "important",
  10063. inside: Prism2.languages.markdown
  10064. },
  10065. punctuation: /\|/
  10066. }
  10067. }
  10068. }
  10069. },
  10070. code: [
  10071. {
  10072. // Prefixed by 4 spaces or 1 tab and preceded by an empty line
  10073. pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
  10074. lookbehind: !0,
  10075. alias: "keyword"
  10076. },
  10077. {
  10078. // ```optional language
  10079. // code block
  10080. // ```
  10081. pattern: /^```[\s\S]*?^```$/m,
  10082. greedy: !0,
  10083. inside: {
  10084. "code-block": {
  10085. pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
  10086. lookbehind: !0
  10087. },
  10088. "code-language": {
  10089. pattern: /^(```).+/,
  10090. lookbehind: !0
  10091. },
  10092. punctuation: /```/
  10093. }
  10094. }
  10095. ],
  10096. title: [
  10097. {
  10098. // title 1
  10099. // =======
  10100. // title 2
  10101. // -------
  10102. pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
  10103. alias: "important",
  10104. inside: {
  10105. punctuation: /==+$|--+$/
  10106. }
  10107. },
  10108. {
  10109. // # title 1
  10110. // ###### title 6
  10111. pattern: /(^\s*)#.+/m,
  10112. lookbehind: !0,
  10113. alias: "important",
  10114. inside: {
  10115. punctuation: /^#+|#+$/
  10116. }
  10117. }
  10118. ],
  10119. hr: {
  10120. // ***
  10121. // ---
  10122. // * * *
  10123. // -----------
  10124. pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
  10125. lookbehind: !0,
  10126. alias: "punctuation"
  10127. },
  10128. list: {
  10129. // * item
  10130. // + item
  10131. // - item
  10132. // 1. item
  10133. pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
  10134. lookbehind: !0,
  10135. alias: "punctuation"
  10136. },
  10137. "url-reference": {
  10138. // [id]: http://example.com "Optional title"
  10139. // [id]: http://example.com 'Optional title'
  10140. // [id]: http://example.com (Optional title)
  10141. // [id]: <http://example.com> "Optional title"
  10142. pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
  10143. inside: {
  10144. variable: {
  10145. pattern: /^(!?\[)[^\]]+/,
  10146. lookbehind: !0
  10147. },
  10148. string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
  10149. punctuation: /^[\[\]!:]|[<>]/
  10150. },
  10151. alias: "url"
  10152. },
  10153. bold: {
  10154. // **strong**
  10155. // __strong__
  10156. // allow one nested instance of italic text using the same delimiter
  10157. pattern: createInline(
  10158. /\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source
  10159. ),
  10160. lookbehind: !0,
  10161. greedy: !0,
  10162. inside: {
  10163. content: {
  10164. pattern: /(^..)[\s\S]+(?=..$)/,
  10165. lookbehind: !0,
  10166. inside: {}
  10167. // see below
  10168. },
  10169. punctuation: /\*\*|__/
  10170. }
  10171. },
  10172. italic: {
  10173. // *em*
  10174. // _em_
  10175. // allow one nested instance of bold text using the same delimiter
  10176. pattern: createInline(
  10177. /\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source
  10178. ),
  10179. lookbehind: !0,
  10180. greedy: !0,
  10181. inside: {
  10182. content: {
  10183. pattern: /(^.)[\s\S]+(?=.$)/,
  10184. lookbehind: !0,
  10185. inside: {}
  10186. // see below
  10187. },
  10188. punctuation: /[*_]/
  10189. }
  10190. },
  10191. strike: {
  10192. // ~~strike through~~
  10193. // ~strike~
  10194. // eslint-disable-next-line regexp/strict
  10195. pattern: createInline(/(~~?)(?:(?!~)<inner>)+\2/.source),
  10196. lookbehind: !0,
  10197. greedy: !0,
  10198. inside: {
  10199. content: {
  10200. pattern: /(^~~?)[\s\S]+(?=\1$)/,
  10201. lookbehind: !0,
  10202. inside: {}
  10203. // see below
  10204. },
  10205. punctuation: /~~?/
  10206. }
  10207. },
  10208. "code-snippet": {
  10209. // `code`
  10210. // ``code``
  10211. pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
  10212. lookbehind: !0,
  10213. greedy: !0,
  10214. alias: ["code", "keyword"]
  10215. },
  10216. url: {
  10217. // [example](http://example.com "Optional title")
  10218. // [example][id]
  10219. // [example] [id]
  10220. pattern: createInline(
  10221. /!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source
  10222. ),
  10223. lookbehind: !0,
  10224. greedy: !0,
  10225. inside: {
  10226. operator: /^!/,
  10227. content: {
  10228. pattern: /(^\[)[^\]]+(?=\])/,
  10229. lookbehind: !0,
  10230. inside: {}
  10231. // see below
  10232. },
  10233. variable: {
  10234. pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
  10235. lookbehind: !0
  10236. },
  10237. url: {
  10238. pattern: /(^\]\()[^\s)]+/,
  10239. lookbehind: !0
  10240. },
  10241. string: {
  10242. pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
  10243. lookbehind: !0
  10244. }
  10245. }
  10246. }
  10247. }), ["url", "bold", "italic", "strike"].forEach(function(token2) {
  10248. ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(inside) {
  10249. token2 !== inside && (Prism2.languages.markdown[token2].inside.content.inside[inside] = Prism2.languages.markdown[inside]);
  10250. });
  10251. }), Prism2.hooks.add("after-tokenize", function(env) {
  10252. if (env.language !== "markdown" && env.language !== "md")
  10253. return;
  10254. function walkTokens(tokens2) {
  10255. if (!(!tokens2 || typeof tokens2 == "string"))
  10256. for (var i = 0, l = tokens2.length; i < l; i++) {
  10257. var token2 = tokens2[i];
  10258. if (token2.type !== "code") {
  10259. walkTokens(token2.content);
  10260. continue;
  10261. }
  10262. var codeLang = token2.content[1], codeBlock = token2.content[3];
  10263. if (codeLang && codeBlock && codeLang.type === "code-language" && codeBlock.type === "code-block" && typeof codeLang.content == "string") {
  10264. var lang = codeLang.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
  10265. lang = (/[a-z][\w-]*/i.exec(lang) || [""])[0].toLowerCase();
  10266. var alias = "language-" + lang;
  10267. codeBlock.alias ? typeof codeBlock.alias == "string" ? codeBlock.alias = [codeBlock.alias, alias] : codeBlock.alias.push(alias) : codeBlock.alias = [alias];
  10268. }
  10269. }
  10270. }
  10271. walkTokens(env.tokens);
  10272. }), Prism2.hooks.add("wrap", function(env) {
  10273. if (env.type === "code-block") {
  10274. for (var codeLang = "", i = 0, l = env.classes.length; i < l; i++) {
  10275. var cls = env.classes[i], match3 = /language-(.+)/.exec(cls);
  10276. if (match3) {
  10277. codeLang = match3[1];
  10278. break;
  10279. }
  10280. }
  10281. var grammar = Prism2.languages[codeLang];
  10282. if (grammar)
  10283. env.content = Prism2.highlight(
  10284. textContent(env.content.value),
  10285. grammar,
  10286. codeLang
  10287. );
  10288. else if (codeLang && codeLang !== "none" && Prism2.plugins.autoloader) {
  10289. var id = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
  10290. env.attributes.id = id, Prism2.plugins.autoloader.loadLanguages(codeLang, function() {
  10291. var ele = document.getElementById(id);
  10292. ele && (ele.innerHTML = Prism2.highlight(
  10293. ele.textContent,
  10294. Prism2.languages[codeLang],
  10295. codeLang
  10296. ));
  10297. });
  10298. }
  10299. }
  10300. });
  10301. var tagPattern = RegExp(Prism2.languages.markup.tag.pattern.source, "gi"), KNOWN_ENTITY_NAMES = {
  10302. amp: "&",
  10303. lt: "<",
  10304. gt: ">",
  10305. quot: '"'
  10306. }, fromCodePoint3 = String.fromCodePoint || String.fromCharCode;
  10307. function textContent(html) {
  10308. var text = html.replace(tagPattern, "");
  10309. return text = text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(m3, code) {
  10310. if (code = code.toLowerCase(), code[0] === "#") {
  10311. var value;
  10312. return code[1] === "x" ? value = parseInt(code.slice(2), 16) : value = Number(code.slice(1)), fromCodePoint3(value);
  10313. } else {
  10314. var known = KNOWN_ENTITY_NAMES[code];
  10315. return known || m3;
  10316. }
  10317. }), text;
  10318. }
  10319. Prism2.languages.md = Prism2.languages.markdown;
  10320. })(Prism);
  10321. }
  10322. }
  10323. });
  10324. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js
  10325. var import_markdown, markdown_default, init_markdown = __esm({
  10326. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js"() {
  10327. import_markdown = __toESM(require_markdown()), markdown_default = import_markdown.default;
  10328. }
  10329. });
  10330. // ../../node_modules/refractor/lang/markup.js
  10331. var require_markup = __commonJS({
  10332. "../../node_modules/refractor/lang/markup.js"(exports, module2) {
  10333. "use strict";
  10334. module2.exports = markup2;
  10335. markup2.displayName = "markup";
  10336. markup2.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
  10337. function markup2(Prism) {
  10338. Prism.languages.markup = {
  10339. comment: {
  10340. pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
  10341. greedy: !0
  10342. },
  10343. prolog: {
  10344. pattern: /<\?[\s\S]+?\?>/,
  10345. greedy: !0
  10346. },
  10347. doctype: {
  10348. // https://www.w3.org/TR/xml/#NT-doctypedecl
  10349. pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
  10350. greedy: !0,
  10351. inside: {
  10352. "internal-subset": {
  10353. pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
  10354. lookbehind: !0,
  10355. greedy: !0,
  10356. inside: null
  10357. // see below
  10358. },
  10359. string: {
  10360. pattern: /"[^"]*"|'[^']*'/,
  10361. greedy: !0
  10362. },
  10363. punctuation: /^<!|>$|[[\]]/,
  10364. "doctype-tag": /^DOCTYPE/i,
  10365. name: /[^\s<>'"]+/
  10366. }
  10367. },
  10368. cdata: {
  10369. pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
  10370. greedy: !0
  10371. },
  10372. tag: {
  10373. pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
  10374. greedy: !0,
  10375. inside: {
  10376. tag: {
  10377. pattern: /^<\/?[^\s>\/]+/,
  10378. inside: {
  10379. punctuation: /^<\/?/,
  10380. namespace: /^[^\s>\/:]+:/
  10381. }
  10382. },
  10383. "special-attr": [],
  10384. "attr-value": {
  10385. pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
  10386. inside: {
  10387. punctuation: [
  10388. {
  10389. pattern: /^=/,
  10390. alias: "attr-equals"
  10391. },
  10392. /"|'/
  10393. ]
  10394. }
  10395. },
  10396. punctuation: /\/?>/,
  10397. "attr-name": {
  10398. pattern: /[^\s>\/]+/,
  10399. inside: {
  10400. namespace: /^[^\s>\/:]+:/
  10401. }
  10402. }
  10403. }
  10404. },
  10405. entity: [
  10406. {
  10407. pattern: /&[\da-z]{1,8};/i,
  10408. alias: "named-entity"
  10409. },
  10410. /&#x?[\da-f]{1,8};/i
  10411. ]
  10412. }, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", function(env) {
  10413. env.type === "entity" && (env.attributes.title = env.content.value.replace(/&amp;/, "&"));
  10414. }), Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
  10415. /**
  10416. * Adds an inlined language to markup.
  10417. *
  10418. * An example of an inlined language is CSS with `<style>` tags.
  10419. *
  10420. * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
  10421. * case insensitive.
  10422. * @param {string} lang The language key.
  10423. * @example
  10424. * addInlined('style', 'css');
  10425. */
  10426. value: function(tagName, lang) {
  10427. var includedCdataInside = {};
  10428. includedCdataInside["language-" + lang] = {
  10429. pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
  10430. lookbehind: !0,
  10431. inside: Prism.languages[lang]
  10432. }, includedCdataInside.cdata = /^<!\[CDATA\[|\]\]>$/i;
  10433. var inside = {
  10434. "included-cdata": {
  10435. pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
  10436. inside: includedCdataInside
  10437. }
  10438. };
  10439. inside["language-" + lang] = {
  10440. pattern: /[\s\S]+/,
  10441. inside: Prism.languages[lang]
  10442. };
  10443. var def = {};
  10444. def[tagName] = {
  10445. pattern: RegExp(
  10446. /(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(
  10447. /__/g,
  10448. function() {
  10449. return tagName;
  10450. }
  10451. ),
  10452. "i"
  10453. ),
  10454. lookbehind: !0,
  10455. greedy: !0,
  10456. inside
  10457. }, Prism.languages.insertBefore("markup", "cdata", def);
  10458. }
  10459. }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
  10460. /**
  10461. * Adds an pattern to highlight languages embedded in HTML attributes.
  10462. *
  10463. * An example of an inlined language is CSS with `style` attributes.
  10464. *
  10465. * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
  10466. * case insensitive.
  10467. * @param {string} lang The language key.
  10468. * @example
  10469. * addAttribute('style', 'css');
  10470. */
  10471. value: function(attrName, lang) {
  10472. Prism.languages.markup.tag.inside["special-attr"].push({
  10473. pattern: RegExp(
  10474. /(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
  10475. "i"
  10476. ),
  10477. lookbehind: !0,
  10478. inside: {
  10479. "attr-name": /^[^\s=]+/,
  10480. "attr-value": {
  10481. pattern: /=[\s\S]+/,
  10482. inside: {
  10483. value: {
  10484. pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
  10485. lookbehind: !0,
  10486. alias: [lang, "language-" + lang],
  10487. inside: Prism.languages[lang]
  10488. },
  10489. punctuation: [
  10490. {
  10491. pattern: /^=/,
  10492. alias: "attr-equals"
  10493. },
  10494. /"|'/
  10495. ]
  10496. }
  10497. }
  10498. }
  10499. });
  10500. }
  10501. }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml;
  10502. }
  10503. }
  10504. });
  10505. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
  10506. var import_markup, markup_default, init_markup = __esm({
  10507. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js"() {
  10508. import_markup = __toESM(require_markup()), markup_default = import_markup.default;
  10509. }
  10510. });
  10511. // ../../node_modules/refractor/lang/typescript.js
  10512. var require_typescript = __commonJS({
  10513. "../../node_modules/refractor/lang/typescript.js"(exports, module2) {
  10514. "use strict";
  10515. module2.exports = typescript2;
  10516. typescript2.displayName = "typescript";
  10517. typescript2.aliases = ["ts"];
  10518. function typescript2(Prism) {
  10519. (function(Prism2) {
  10520. Prism2.languages.typescript = Prism2.languages.extend("javascript", {
  10521. "class-name": {
  10522. pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
  10523. lookbehind: !0,
  10524. greedy: !0,
  10525. inside: null
  10526. // see below
  10527. },
  10528. builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
  10529. }), Prism2.languages.typescript.keyword.push(
  10530. /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
  10531. // keywords that have to be followed by an identifier
  10532. /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
  10533. // This is for `import type *, {}`
  10534. /\btype\b(?=\s*(?:[\{*]|$))/
  10535. ), delete Prism2.languages.typescript.parameter, delete Prism2.languages.typescript["literal-property"];
  10536. var typeInside = Prism2.languages.extend("typescript", {});
  10537. delete typeInside["class-name"], Prism2.languages.typescript["class-name"].inside = typeInside, Prism2.languages.insertBefore("typescript", "function", {
  10538. decorator: {
  10539. pattern: /@[$\w\xA0-\uFFFF]+/,
  10540. inside: {
  10541. at: {
  10542. pattern: /^@/,
  10543. alias: "operator"
  10544. },
  10545. function: /^[\s\S]+/
  10546. }
  10547. },
  10548. "generic-function": {
  10549. // e.g. foo<T extends "bar" | "baz">( ...
  10550. pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
  10551. greedy: !0,
  10552. inside: {
  10553. function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
  10554. generic: {
  10555. pattern: /<[\s\S]+/,
  10556. // everything after the first <
  10557. alias: "class-name",
  10558. inside: typeInside
  10559. }
  10560. }
  10561. }
  10562. }), Prism2.languages.ts = Prism2.languages.typescript;
  10563. })(Prism);
  10564. }
  10565. }
  10566. });
  10567. // ../../node_modules/refractor/lang/tsx.js
  10568. var require_tsx = __commonJS({
  10569. "../../node_modules/refractor/lang/tsx.js"(exports, module2) {
  10570. "use strict";
  10571. var refractorJsx = require_jsx(), refractorTypescript = require_typescript();
  10572. module2.exports = tsx2;
  10573. tsx2.displayName = "tsx";
  10574. tsx2.aliases = [];
  10575. function tsx2(Prism) {
  10576. Prism.register(refractorJsx), Prism.register(refractorTypescript), (function(Prism2) {
  10577. var typescript2 = Prism2.util.clone(Prism2.languages.typescript);
  10578. Prism2.languages.tsx = Prism2.languages.extend("jsx", typescript2), delete Prism2.languages.tsx.parameter, delete Prism2.languages.tsx["literal-property"];
  10579. var tag = Prism2.languages.tsx.tag;
  10580. tag.pattern = RegExp(
  10581. /(^|[^\w$]|(?=<\/))/.source + "(?:" + tag.pattern.source + ")",
  10582. tag.pattern.flags
  10583. ), tag.lookbehind = !0;
  10584. })(Prism);
  10585. }
  10586. }
  10587. });
  10588. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js
  10589. var import_tsx, tsx_default, init_tsx = __esm({
  10590. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js"() {
  10591. import_tsx = __toESM(require_tsx()), tsx_default = import_tsx.default;
  10592. }
  10593. });
  10594. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js
  10595. var import_typescript, typescript_default, init_typescript = __esm({
  10596. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js"() {
  10597. import_typescript = __toESM(require_typescript()), typescript_default = import_typescript.default;
  10598. }
  10599. });
  10600. // ../../node_modules/refractor/lang/yaml.js
  10601. var require_yaml = __commonJS({
  10602. "../../node_modules/refractor/lang/yaml.js"(exports, module2) {
  10603. "use strict";
  10604. module2.exports = yaml2;
  10605. yaml2.displayName = "yaml";
  10606. yaml2.aliases = ["yml"];
  10607. function yaml2(Prism) {
  10608. (function(Prism2) {
  10609. var anchorOrAlias = /[*&][^\s[\]{},]+/, tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, properties = "(?:" + tag.source + "(?:[ ]+" + anchorOrAlias.source + ")?|" + anchorOrAlias.source + "(?:[ ]+" + tag.source + ")?)", plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
  10610. /<PLAIN>/g,
  10611. function() {
  10612. return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
  10613. }
  10614. ), string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
  10615. function createValuePattern(value, flags) {
  10616. flags = (flags || "").replace(/m/g, "") + "m";
  10617. var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
  10618. return properties;
  10619. }).replace(/<<value>>/g, function() {
  10620. return value;
  10621. });
  10622. return RegExp(pattern, flags);
  10623. }
  10624. Prism2.languages.yaml = {
  10625. scalar: {
  10626. pattern: RegExp(
  10627. /([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(
  10628. /<<prop>>/g,
  10629. function() {
  10630. return properties;
  10631. }
  10632. )
  10633. ),
  10634. lookbehind: !0,
  10635. alias: "string"
  10636. },
  10637. comment: /#.*/,
  10638. key: {
  10639. pattern: RegExp(
  10640. /((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
  10641. return properties;
  10642. }).replace(/<<key>>/g, function() {
  10643. return "(?:" + plainKey + "|" + string + ")";
  10644. })
  10645. ),
  10646. lookbehind: !0,
  10647. greedy: !0,
  10648. alias: "atrule"
  10649. },
  10650. directive: {
  10651. pattern: /(^[ \t]*)%.+/m,
  10652. lookbehind: !0,
  10653. alias: "important"
  10654. },
  10655. datetime: {
  10656. pattern: createValuePattern(
  10657. /\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source
  10658. ),
  10659. lookbehind: !0,
  10660. alias: "number"
  10661. },
  10662. boolean: {
  10663. pattern: createValuePattern(/false|true/.source, "i"),
  10664. lookbehind: !0,
  10665. alias: "important"
  10666. },
  10667. null: {
  10668. pattern: createValuePattern(/null|~/.source, "i"),
  10669. lookbehind: !0,
  10670. alias: "important"
  10671. },
  10672. string: {
  10673. pattern: createValuePattern(string),
  10674. lookbehind: !0,
  10675. greedy: !0
  10676. },
  10677. number: {
  10678. pattern: createValuePattern(
  10679. /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,
  10680. "i"
  10681. ),
  10682. lookbehind: !0
  10683. },
  10684. tag,
  10685. important: anchorOrAlias,
  10686. punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
  10687. }, Prism2.languages.yml = Prism2.languages.yaml;
  10688. })(Prism);
  10689. }
  10690. }
  10691. });
  10692. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js
  10693. var import_yaml, yaml_default, init_yaml = __esm({
  10694. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js"() {
  10695. import_yaml = __toESM(require_yaml()), yaml_default = import_yaml.default;
  10696. }
  10697. });
  10698. // ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
  10699. function _objectWithoutPropertiesLoose(r2, e) {
  10700. if (r2 == null) return {};
  10701. var t = {};
  10702. for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
  10703. if (e.indexOf(n) !== -1) continue;
  10704. t[n] = r2[n];
  10705. }
  10706. return t;
  10707. }
  10708. var init_objectWithoutPropertiesLoose = __esm({
  10709. "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"() {
  10710. }
  10711. });
  10712. // ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
  10713. function _objectWithoutProperties(e, t) {
  10714. if (e == null) return {};
  10715. var o, r2, i = _objectWithoutPropertiesLoose(e, t);
  10716. if (Object.getOwnPropertySymbols) {
  10717. var n = Object.getOwnPropertySymbols(e);
  10718. for (r2 = 0; r2 < n.length; r2++) o = n[r2], t.indexOf(o) === -1 && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
  10719. }
  10720. return i;
  10721. }
  10722. var init_objectWithoutProperties = __esm({
  10723. "../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"() {
  10724. init_objectWithoutPropertiesLoose();
  10725. }
  10726. });
  10727. // ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
  10728. function _arrayLikeToArray(r2, a3) {
  10729. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  10730. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  10731. return n;
  10732. }
  10733. var init_arrayLikeToArray = __esm({
  10734. "../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"() {
  10735. }
  10736. });
  10737. // ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
  10738. function _arrayWithoutHoles(r2) {
  10739. if (Array.isArray(r2)) return _arrayLikeToArray(r2);
  10740. }
  10741. var init_arrayWithoutHoles = __esm({
  10742. "../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"() {
  10743. init_arrayLikeToArray();
  10744. }
  10745. });
  10746. // ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
  10747. function _iterableToArray(r2) {
  10748. if (typeof Symbol < "u" && r2[Symbol.iterator] != null || r2["@@iterator"] != null) return Array.from(r2);
  10749. }
  10750. var init_iterableToArray = __esm({
  10751. "../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js"() {
  10752. }
  10753. });
  10754. // ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
  10755. function _unsupportedIterableToArray(r2, a3) {
  10756. if (r2) {
  10757. if (typeof r2 == "string") return _arrayLikeToArray(r2, a3);
  10758. var t = {}.toString.call(r2).slice(8, -1);
  10759. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r2, a3) : void 0;
  10760. }
  10761. }
  10762. var init_unsupportedIterableToArray = __esm({
  10763. "../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"() {
  10764. init_arrayLikeToArray();
  10765. }
  10766. });
  10767. // ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
  10768. function _nonIterableSpread() {
  10769. throw new TypeError(`Invalid attempt to spread non-iterable instance.
  10770. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  10771. }
  10772. var init_nonIterableSpread = __esm({
  10773. "../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"() {
  10774. }
  10775. });
  10776. // ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
  10777. function _toConsumableArray(r2) {
  10778. return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
  10779. }
  10780. var init_toConsumableArray = __esm({
  10781. "../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"() {
  10782. init_arrayWithoutHoles();
  10783. init_iterableToArray();
  10784. init_unsupportedIterableToArray();
  10785. init_nonIterableSpread();
  10786. }
  10787. });
  10788. // ../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js
  10789. var checkForListedLanguage_default, init_checkForListedLanguage = __esm({
  10790. "../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js"() {
  10791. checkForListedLanguage_default = (function(astGenerator, language) {
  10792. var langs = astGenerator.listLanguages();
  10793. return langs.indexOf(language) !== -1;
  10794. });
  10795. }
  10796. });
  10797. // ../../node_modules/react-syntax-highlighter/dist/esm/highlight.js
  10798. function ownKeys2(e, r2) {
  10799. var t = Object.keys(e);
  10800. if (Object.getOwnPropertySymbols) {
  10801. var o = Object.getOwnPropertySymbols(e);
  10802. r2 && (o = o.filter(function(r3) {
  10803. return Object.getOwnPropertyDescriptor(e, r3).enumerable;
  10804. })), t.push.apply(t, o);
  10805. }
  10806. return t;
  10807. }
  10808. function _objectSpread2(e) {
  10809. for (var r2 = 1; r2 < arguments.length; r2++) {
  10810. var t = arguments[r2] != null ? arguments[r2] : {};
  10811. r2 % 2 ? ownKeys2(Object(t), !0).forEach(function(r3) {
  10812. _defineProperty(e, r3, t[r3]);
  10813. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r3) {
  10814. Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
  10815. });
  10816. }
  10817. return e;
  10818. }
  10819. function getNewLines(str2) {
  10820. return str2.match(newLineRegex);
  10821. }
  10822. function getAllLineNumbers(_ref) {
  10823. var lines = _ref.lines, startingLineNumber = _ref.startingLineNumber, style = _ref.style;
  10824. return lines.map(function(_, i) {
  10825. var number = i + startingLineNumber;
  10826. return import_react9.default.createElement("span", {
  10827. key: "line-".concat(i),
  10828. className: "react-syntax-highlighter-line-number",
  10829. style: typeof style == "function" ? style(number) : style
  10830. }, "".concat(number, `
  10831. `));
  10832. });
  10833. }
  10834. function AllLineNumbers(_ref2) {
  10835. var codeString = _ref2.codeString, codeStyle = _ref2.codeStyle, _ref2$containerStyle = _ref2.containerStyle, containerStyle = _ref2$containerStyle === void 0 ? {
  10836. float: "left",
  10837. paddingRight: "10px"
  10838. } : _ref2$containerStyle, _ref2$numberStyle = _ref2.numberStyle, numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle, startingLineNumber = _ref2.startingLineNumber;
  10839. return import_react9.default.createElement("code", {
  10840. style: Object.assign({}, codeStyle, containerStyle)
  10841. }, getAllLineNumbers({
  10842. lines: codeString.replace(/\n$/, "").split(`
  10843. `),
  10844. style: numberStyle,
  10845. startingLineNumber
  10846. }));
  10847. }
  10848. function getEmWidthOfNumber(num) {
  10849. return "".concat(num.toString().length, ".25em");
  10850. }
  10851. function getInlineLineNumber(lineNumber, inlineLineNumberStyle) {
  10852. return {
  10853. type: "element",
  10854. tagName: "span",
  10855. properties: {
  10856. key: "line-number--".concat(lineNumber),
  10857. className: ["comment", "linenumber", "react-syntax-highlighter-line-number"],
  10858. style: inlineLineNumberStyle
  10859. },
  10860. children: [{
  10861. type: "text",
  10862. value: lineNumber
  10863. }]
  10864. };
  10865. }
  10866. function assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber) {
  10867. var defaultLineNumberStyle = {
  10868. display: "inline-block",
  10869. minWidth: getEmWidthOfNumber(largestLineNumber),
  10870. paddingRight: "1em",
  10871. textAlign: "right",
  10872. userSelect: "none"
  10873. }, customLineNumberStyle = typeof lineNumberStyle == "function" ? lineNumberStyle(lineNumber) : lineNumberStyle, assembledStyle = _objectSpread2(_objectSpread2({}, defaultLineNumberStyle), customLineNumberStyle);
  10874. return assembledStyle;
  10875. }
  10876. function createLineElement(_ref3) {
  10877. var children = _ref3.children, lineNumber = _ref3.lineNumber, lineNumberStyle = _ref3.lineNumberStyle, largestLineNumber = _ref3.largestLineNumber, showInlineLineNumbers = _ref3.showInlineLineNumbers, _ref3$lineProps = _ref3.lineProps, lineProps = _ref3$lineProps === void 0 ? {} : _ref3$lineProps, _ref3$className = _ref3.className, className = _ref3$className === void 0 ? [] : _ref3$className, showLineNumbers = _ref3.showLineNumbers, wrapLongLines = _ref3.wrapLongLines, _ref3$wrapLines = _ref3.wrapLines, wrapLines = _ref3$wrapLines === void 0 ? !1 : _ref3$wrapLines, properties = wrapLines ? _objectSpread2({}, typeof lineProps == "function" ? lineProps(lineNumber) : lineProps) : {};
  10878. if (properties.className = properties.className ? [].concat(_toConsumableArray(properties.className.trim().split(/\s+/)), _toConsumableArray(className)) : className, lineNumber && showInlineLineNumbers) {
  10879. var inlineLineNumberStyle = assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber);
  10880. children.unshift(getInlineLineNumber(lineNumber, inlineLineNumberStyle));
  10881. }
  10882. return wrapLongLines & showLineNumbers && (properties.style = _objectSpread2({
  10883. display: "flex"
  10884. }, properties.style)), {
  10885. type: "element",
  10886. tagName: "span",
  10887. properties,
  10888. children
  10889. };
  10890. }
  10891. function flattenCodeTree(tree) {
  10892. for (var className = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], newTree = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], i = 0; i < tree.length; i++) {
  10893. var node2 = tree[i];
  10894. if (node2.type === "text")
  10895. newTree.push(createLineElement({
  10896. children: [node2],
  10897. className: _toConsumableArray(new Set(className))
  10898. }));
  10899. else if (node2.children) {
  10900. var classNames = className.concat(node2.properties.className);
  10901. flattenCodeTree(node2.children, classNames).forEach(function(i2) {
  10902. return newTree.push(i2);
  10903. });
  10904. }
  10905. }
  10906. return newTree;
  10907. }
  10908. function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines) {
  10909. var _ref4, tree = flattenCodeTree(codeTree.value), newTree = [], lastLineBreakIndex = -1, index4 = 0;
  10910. function createWrappedLine(children2, lineNumber2) {
  10911. var className = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
  10912. return createLineElement({
  10913. children: children2,
  10914. lineNumber: lineNumber2,
  10915. lineNumberStyle,
  10916. largestLineNumber,
  10917. showInlineLineNumbers,
  10918. lineProps,
  10919. className,
  10920. showLineNumbers,
  10921. wrapLongLines,
  10922. wrapLines
  10923. });
  10924. }
  10925. function createUnwrappedLine(children2, lineNumber2) {
  10926. if (showLineNumbers && lineNumber2 && showInlineLineNumbers) {
  10927. var inlineLineNumberStyle = assembleLineNumberStyles(lineNumberStyle, lineNumber2, largestLineNumber);
  10928. children2.unshift(getInlineLineNumber(lineNumber2, inlineLineNumberStyle));
  10929. }
  10930. return children2;
  10931. }
  10932. function createLine(children2, lineNumber2) {
  10933. var className = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
  10934. return wrapLines || className.length > 0 ? createWrappedLine(children2, lineNumber2, className) : createUnwrappedLine(children2, lineNumber2);
  10935. }
  10936. for (var _loop = function() {
  10937. var node2 = tree[index4], value = node2.children[0].value, newLines = getNewLines(value);
  10938. if (newLines) {
  10939. var splitValue = value.split(`
  10940. `);
  10941. splitValue.forEach(function(text, i) {
  10942. var lineNumber2 = showLineNumbers && newTree.length + startingLineNumber, newChild = {
  10943. type: "text",
  10944. value: "".concat(text, `
  10945. `)
  10946. };
  10947. if (i === 0) {
  10948. var _children = tree.slice(lastLineBreakIndex + 1, index4).concat(createLineElement({
  10949. children: [newChild],
  10950. className: node2.properties.className
  10951. })), _line = createLine(_children, lineNumber2);
  10952. newTree.push(_line);
  10953. } else if (i === splitValue.length - 1) {
  10954. var stringChild = tree[index4 + 1] && tree[index4 + 1].children && tree[index4 + 1].children[0], lastLineInPreviousSpan = {
  10955. type: "text",
  10956. value: "".concat(text)
  10957. };
  10958. if (stringChild) {
  10959. var newElem = createLineElement({
  10960. children: [lastLineInPreviousSpan],
  10961. className: node2.properties.className
  10962. });
  10963. tree.splice(index4 + 1, 0, newElem);
  10964. } else {
  10965. var _children2 = [lastLineInPreviousSpan], _line2 = createLine(_children2, lineNumber2, node2.properties.className);
  10966. newTree.push(_line2);
  10967. }
  10968. } else {
  10969. var _children3 = [newChild], _line3 = createLine(_children3, lineNumber2, node2.properties.className);
  10970. newTree.push(_line3);
  10971. }
  10972. }), lastLineBreakIndex = index4;
  10973. }
  10974. index4++;
  10975. }; index4 < tree.length; )
  10976. _loop();
  10977. if (lastLineBreakIndex !== tree.length - 1) {
  10978. var children = tree.slice(lastLineBreakIndex + 1, tree.length);
  10979. if (children && children.length) {
  10980. var lineNumber = showLineNumbers && newTree.length + startingLineNumber, line2 = createLine(children, lineNumber);
  10981. newTree.push(line2);
  10982. }
  10983. }
  10984. return wrapLines ? newTree : (_ref4 = []).concat.apply(_ref4, newTree);
  10985. }
  10986. function defaultRenderer(_ref5) {
  10987. var rows = _ref5.rows, stylesheet = _ref5.stylesheet, useInlineStyles = _ref5.useInlineStyles;
  10988. return rows.map(function(node2, i) {
  10989. return createElement4({
  10990. node: node2,
  10991. stylesheet,
  10992. useInlineStyles,
  10993. key: "code-segment-".concat(i)
  10994. });
  10995. });
  10996. }
  10997. function isHighlightJs(astGenerator) {
  10998. return astGenerator && typeof astGenerator.highlightAuto < "u";
  10999. }
  11000. function getCodeTree(_ref6) {
  11001. var astGenerator = _ref6.astGenerator, language = _ref6.language, code = _ref6.code, defaultCodeValue = _ref6.defaultCodeValue;
  11002. if (isHighlightJs(astGenerator)) {
  11003. var hasLanguage = checkForListedLanguage_default(astGenerator, language);
  11004. return language === "text" ? {
  11005. value: defaultCodeValue,
  11006. language: "text"
  11007. } : hasLanguage ? astGenerator.highlight(language, code) : astGenerator.highlightAuto(code);
  11008. }
  11009. try {
  11010. return language && language !== "text" ? {
  11011. value: astGenerator.highlight(code, language)
  11012. } : {
  11013. value: defaultCodeValue
  11014. };
  11015. } catch {
  11016. return {
  11017. value: defaultCodeValue
  11018. };
  11019. }
  11020. }
  11021. function highlight_default(defaultAstGenerator, defaultStyle) {
  11022. return function(_ref7) {
  11023. var _code$match$length, _code$match, language = _ref7.language, children = _ref7.children, _ref7$style = _ref7.style, style = _ref7$style === void 0 ? defaultStyle : _ref7$style, _ref7$customStyle = _ref7.customStyle, customStyle = _ref7$customStyle === void 0 ? {} : _ref7$customStyle, _ref7$codeTagProps = _ref7.codeTagProps, codeTagProps = _ref7$codeTagProps === void 0 ? {
  11024. className: language ? "language-".concat(language) : void 0,
  11025. style: _objectSpread2(_objectSpread2({}, style['code[class*="language-"]']), style['code[class*="language-'.concat(language, '"]')])
  11026. } : _ref7$codeTagProps, _ref7$useInlineStyles = _ref7.useInlineStyles, useInlineStyles = _ref7$useInlineStyles === void 0 ? !0 : _ref7$useInlineStyles, _ref7$showLineNumbers = _ref7.showLineNumbers, showLineNumbers = _ref7$showLineNumbers === void 0 ? !1 : _ref7$showLineNumbers, _ref7$showInlineLineN = _ref7.showInlineLineNumbers, showInlineLineNumbers = _ref7$showInlineLineN === void 0 ? !0 : _ref7$showInlineLineN, _ref7$startingLineNum = _ref7.startingLineNumber, startingLineNumber = _ref7$startingLineNum === void 0 ? 1 : _ref7$startingLineNum, lineNumberContainerStyle = _ref7.lineNumberContainerStyle, _ref7$lineNumberStyle = _ref7.lineNumberStyle, lineNumberStyle = _ref7$lineNumberStyle === void 0 ? {} : _ref7$lineNumberStyle, wrapLines = _ref7.wrapLines, _ref7$wrapLongLines = _ref7.wrapLongLines, wrapLongLines = _ref7$wrapLongLines === void 0 ? !1 : _ref7$wrapLongLines, _ref7$lineProps = _ref7.lineProps, lineProps = _ref7$lineProps === void 0 ? {} : _ref7$lineProps, renderer = _ref7.renderer, _ref7$PreTag = _ref7.PreTag, PreTag = _ref7$PreTag === void 0 ? "pre" : _ref7$PreTag, _ref7$CodeTag = _ref7.CodeTag, CodeTag = _ref7$CodeTag === void 0 ? "code" : _ref7$CodeTag, _ref7$code = _ref7.code, code = _ref7$code === void 0 ? (Array.isArray(children) ? children[0] : children) || "" : _ref7$code, astGenerator = _ref7.astGenerator, rest = _objectWithoutProperties(_ref7, _excluded);
  11027. astGenerator = astGenerator || defaultAstGenerator;
  11028. var allLineNumbers = showLineNumbers ? import_react9.default.createElement(AllLineNumbers, {
  11029. containerStyle: lineNumberContainerStyle,
  11030. codeStyle: codeTagProps.style || {},
  11031. numberStyle: lineNumberStyle,
  11032. startingLineNumber,
  11033. codeString: code
  11034. }) : null, defaultPreStyle = style.hljs || style['pre[class*="language-"]'] || {
  11035. backgroundColor: "#fff"
  11036. }, generatorClassName = isHighlightJs(astGenerator) ? "hljs" : "prismjs", preProps = useInlineStyles ? Object.assign({}, rest, {
  11037. style: Object.assign({}, defaultPreStyle, customStyle)
  11038. }) : Object.assign({}, rest, {
  11039. className: rest.className ? "".concat(generatorClassName, " ").concat(rest.className) : generatorClassName,
  11040. style: Object.assign({}, customStyle)
  11041. });
  11042. if (wrapLongLines ? codeTagProps.style = _objectSpread2({
  11043. whiteSpace: "pre-wrap"
  11044. }, codeTagProps.style) : codeTagProps.style = _objectSpread2({
  11045. whiteSpace: "pre"
  11046. }, codeTagProps.style), !astGenerator)
  11047. return import_react9.default.createElement(PreTag, preProps, allLineNumbers, import_react9.default.createElement(CodeTag, codeTagProps, code));
  11048. (wrapLines === void 0 && renderer || wrapLongLines) && (wrapLines = !0), renderer = renderer || defaultRenderer;
  11049. var defaultCodeValue = [{
  11050. type: "text",
  11051. value: code
  11052. }], codeTree = getCodeTree({
  11053. astGenerator,
  11054. language,
  11055. code,
  11056. defaultCodeValue
  11057. });
  11058. codeTree.language === null && (codeTree.value = defaultCodeValue);
  11059. var lineBreakCount = (_code$match$length = (_code$match = code.match(/\n/g)) === null || _code$match === void 0 ? void 0 : _code$match.length) !== null && _code$match$length !== void 0 ? _code$match$length : 0, largestLineNumber = startingLineNumber + lineBreakCount, rows = processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines);
  11060. return import_react9.default.createElement(PreTag, preProps, import_react9.default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
  11061. rows,
  11062. stylesheet: style,
  11063. useInlineStyles
  11064. })));
  11065. };
  11066. }
  11067. var import_react9, _excluded, newLineRegex, init_highlight = __esm({
  11068. "../../node_modules/react-syntax-highlighter/dist/esm/highlight.js"() {
  11069. init_objectWithoutProperties();
  11070. init_toConsumableArray();
  11071. init_defineProperty();
  11072. import_react9 = __toESM(require_react());
  11073. init_create_element();
  11074. init_checkForListedLanguage();
  11075. _excluded = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
  11076. newLineRegex = /\n/g;
  11077. }
  11078. });
  11079. // ../../node_modules/xtend/immutable.js
  11080. var require_immutable = __commonJS({
  11081. "../../node_modules/xtend/immutable.js"(exports, module2) {
  11082. module2.exports = extend;
  11083. var hasOwnProperty6 = Object.prototype.hasOwnProperty;
  11084. function extend() {
  11085. for (var target = {}, i = 0; i < arguments.length; i++) {
  11086. var source = arguments[i];
  11087. for (var key in source)
  11088. hasOwnProperty6.call(source, key) && (target[key] = source[key]);
  11089. }
  11090. return target;
  11091. }
  11092. }
  11093. });
  11094. // ../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js
  11095. var require_schema = __commonJS({
  11096. "../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(exports, module2) {
  11097. "use strict";
  11098. module2.exports = Schema;
  11099. var proto = Schema.prototype;
  11100. proto.space = null;
  11101. proto.normal = {};
  11102. proto.property = {};
  11103. function Schema(property, normal, space) {
  11104. this.property = property, this.normal = normal, space && (this.space = space);
  11105. }
  11106. }
  11107. });
  11108. // ../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js
  11109. var require_merge = __commonJS({
  11110. "../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(exports, module2) {
  11111. "use strict";
  11112. var xtend = require_immutable(), Schema = require_schema();
  11113. module2.exports = merge3;
  11114. function merge3(definitions) {
  11115. for (var length2 = definitions.length, property = [], normal = [], index4 = -1, info, space; ++index4 < length2; )
  11116. info = definitions[index4], property.push(info.property), normal.push(info.normal), space = info.space;
  11117. return new Schema(
  11118. xtend.apply(null, property),
  11119. xtend.apply(null, normal),
  11120. space
  11121. );
  11122. }
  11123. }
  11124. });
  11125. // ../../node_modules/hastscript/node_modules/property-information/normalize.js
  11126. var require_normalize = __commonJS({
  11127. "../../node_modules/hastscript/node_modules/property-information/normalize.js"(exports, module2) {
  11128. "use strict";
  11129. module2.exports = normalize4;
  11130. function normalize4(value) {
  11131. return value.toLowerCase();
  11132. }
  11133. }
  11134. });
  11135. // ../../node_modules/hastscript/node_modules/property-information/lib/util/info.js
  11136. var require_info = __commonJS({
  11137. "../../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(exports, module2) {
  11138. "use strict";
  11139. module2.exports = Info;
  11140. var proto = Info.prototype;
  11141. proto.space = null;
  11142. proto.attribute = null;
  11143. proto.property = null;
  11144. proto.boolean = !1;
  11145. proto.booleanish = !1;
  11146. proto.overloadedBoolean = !1;
  11147. proto.number = !1;
  11148. proto.commaSeparated = !1;
  11149. proto.spaceSeparated = !1;
  11150. proto.commaOrSpaceSeparated = !1;
  11151. proto.mustUseProperty = !1;
  11152. proto.defined = !1;
  11153. function Info(property, attribute) {
  11154. this.property = property, this.attribute = attribute;
  11155. }
  11156. }
  11157. });
  11158. // ../../node_modules/hastscript/node_modules/property-information/lib/util/types.js
  11159. var require_types = __commonJS({
  11160. "../../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(exports) {
  11161. "use strict";
  11162. var powers = 0;
  11163. exports.boolean = increment();
  11164. exports.booleanish = increment();
  11165. exports.overloadedBoolean = increment();
  11166. exports.number = increment();
  11167. exports.spaceSeparated = increment();
  11168. exports.commaSeparated = increment();
  11169. exports.commaOrSpaceSeparated = increment();
  11170. function increment() {
  11171. return Math.pow(2, ++powers);
  11172. }
  11173. }
  11174. });
  11175. // ../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js
  11176. var require_defined_info = __commonJS({
  11177. "../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(exports, module2) {
  11178. "use strict";
  11179. var Info = require_info(), types = require_types();
  11180. module2.exports = DefinedInfo;
  11181. DefinedInfo.prototype = new Info();
  11182. DefinedInfo.prototype.defined = !0;
  11183. var checks = [
  11184. "boolean",
  11185. "booleanish",
  11186. "overloadedBoolean",
  11187. "number",
  11188. "commaSeparated",
  11189. "spaceSeparated",
  11190. "commaOrSpaceSeparated"
  11191. ], checksLength = checks.length;
  11192. function DefinedInfo(property, attribute, mask, space) {
  11193. var index4 = -1, check;
  11194. for (mark(this, "space", space), Info.call(this, property, attribute); ++index4 < checksLength; )
  11195. check = checks[index4], mark(this, check, (mask & types[check]) === types[check]);
  11196. }
  11197. function mark(values, key, value) {
  11198. value && (values[key] = value);
  11199. }
  11200. }
  11201. });
  11202. // ../../node_modules/hastscript/node_modules/property-information/lib/util/create.js
  11203. var require_create = __commonJS({
  11204. "../../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(exports, module2) {
  11205. "use strict";
  11206. var normalize4 = require_normalize(), Schema = require_schema(), DefinedInfo = require_defined_info();
  11207. module2.exports = create4;
  11208. function create4(definition) {
  11209. var space = definition.space, mustUseProperty = definition.mustUseProperty || [], attributes = definition.attributes || {}, props = definition.properties, transform = definition.transform, property = {}, normal = {}, prop, info;
  11210. for (prop in props)
  11211. info = new DefinedInfo(
  11212. prop,
  11213. transform(attributes, prop),
  11214. props[prop],
  11215. space
  11216. ), mustUseProperty.indexOf(prop) !== -1 && (info.mustUseProperty = !0), property[prop] = info, normal[normalize4(prop)] = prop, normal[normalize4(info.attribute)] = prop;
  11217. return new Schema(property, normal, space);
  11218. }
  11219. }
  11220. });
  11221. // ../../node_modules/hastscript/node_modules/property-information/lib/xlink.js
  11222. var require_xlink = __commonJS({
  11223. "../../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(exports, module2) {
  11224. "use strict";
  11225. var create4 = require_create();
  11226. module2.exports = create4({
  11227. space: "xlink",
  11228. transform: xlinkTransform,
  11229. properties: {
  11230. xLinkActuate: null,
  11231. xLinkArcRole: null,
  11232. xLinkHref: null,
  11233. xLinkRole: null,
  11234. xLinkShow: null,
  11235. xLinkTitle: null,
  11236. xLinkType: null
  11237. }
  11238. });
  11239. function xlinkTransform(_, prop) {
  11240. return "xlink:" + prop.slice(5).toLowerCase();
  11241. }
  11242. }
  11243. });
  11244. // ../../node_modules/hastscript/node_modules/property-information/lib/xml.js
  11245. var require_xml = __commonJS({
  11246. "../../node_modules/hastscript/node_modules/property-information/lib/xml.js"(exports, module2) {
  11247. "use strict";
  11248. var create4 = require_create();
  11249. module2.exports = create4({
  11250. space: "xml",
  11251. transform: xmlTransform,
  11252. properties: {
  11253. xmlLang: null,
  11254. xmlBase: null,
  11255. xmlSpace: null
  11256. }
  11257. });
  11258. function xmlTransform(_, prop) {
  11259. return "xml:" + prop.slice(3).toLowerCase();
  11260. }
  11261. }
  11262. });
  11263. // ../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js
  11264. var require_case_sensitive_transform = __commonJS({
  11265. "../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(exports, module2) {
  11266. "use strict";
  11267. module2.exports = caseSensitiveTransform;
  11268. function caseSensitiveTransform(attributes, attribute) {
  11269. return attribute in attributes ? attributes[attribute] : attribute;
  11270. }
  11271. }
  11272. });
  11273. // ../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js
  11274. var require_case_insensitive_transform = __commonJS({
  11275. "../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(exports, module2) {
  11276. "use strict";
  11277. var caseSensitiveTransform = require_case_sensitive_transform();
  11278. module2.exports = caseInsensitiveTransform;
  11279. function caseInsensitiveTransform(attributes, property) {
  11280. return caseSensitiveTransform(attributes, property.toLowerCase());
  11281. }
  11282. }
  11283. });
  11284. // ../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js
  11285. var require_xmlns = __commonJS({
  11286. "../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(exports, module2) {
  11287. "use strict";
  11288. var create4 = require_create(), caseInsensitiveTransform = require_case_insensitive_transform();
  11289. module2.exports = create4({
  11290. space: "xmlns",
  11291. attributes: {
  11292. xmlnsxlink: "xmlns:xlink"
  11293. },
  11294. transform: caseInsensitiveTransform,
  11295. properties: {
  11296. xmlns: null,
  11297. xmlnsXLink: null
  11298. }
  11299. });
  11300. }
  11301. });
  11302. // ../../node_modules/hastscript/node_modules/property-information/lib/aria.js
  11303. var require_aria = __commonJS({
  11304. "../../node_modules/hastscript/node_modules/property-information/lib/aria.js"(exports, module2) {
  11305. "use strict";
  11306. var types = require_types(), create4 = require_create(), booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated;
  11307. module2.exports = create4({
  11308. transform: ariaTransform,
  11309. properties: {
  11310. ariaActiveDescendant: null,
  11311. ariaAtomic: booleanish,
  11312. ariaAutoComplete: null,
  11313. ariaBusy: booleanish,
  11314. ariaChecked: booleanish,
  11315. ariaColCount: number,
  11316. ariaColIndex: number,
  11317. ariaColSpan: number,
  11318. ariaControls: spaceSeparated,
  11319. ariaCurrent: null,
  11320. ariaDescribedBy: spaceSeparated,
  11321. ariaDetails: null,
  11322. ariaDisabled: booleanish,
  11323. ariaDropEffect: spaceSeparated,
  11324. ariaErrorMessage: null,
  11325. ariaExpanded: booleanish,
  11326. ariaFlowTo: spaceSeparated,
  11327. ariaGrabbed: booleanish,
  11328. ariaHasPopup: null,
  11329. ariaHidden: booleanish,
  11330. ariaInvalid: null,
  11331. ariaKeyShortcuts: null,
  11332. ariaLabel: null,
  11333. ariaLabelledBy: spaceSeparated,
  11334. ariaLevel: number,
  11335. ariaLive: null,
  11336. ariaModal: booleanish,
  11337. ariaMultiLine: booleanish,
  11338. ariaMultiSelectable: booleanish,
  11339. ariaOrientation: null,
  11340. ariaOwns: spaceSeparated,
  11341. ariaPlaceholder: null,
  11342. ariaPosInSet: number,
  11343. ariaPressed: booleanish,
  11344. ariaReadOnly: booleanish,
  11345. ariaRelevant: null,
  11346. ariaRequired: booleanish,
  11347. ariaRoleDescription: spaceSeparated,
  11348. ariaRowCount: number,
  11349. ariaRowIndex: number,
  11350. ariaRowSpan: number,
  11351. ariaSelected: booleanish,
  11352. ariaSetSize: number,
  11353. ariaSort: null,
  11354. ariaValueMax: number,
  11355. ariaValueMin: number,
  11356. ariaValueNow: number,
  11357. ariaValueText: null,
  11358. role: null
  11359. }
  11360. });
  11361. function ariaTransform(_, prop) {
  11362. return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase();
  11363. }
  11364. }
  11365. });
  11366. // ../../node_modules/hastscript/node_modules/property-information/lib/html.js
  11367. var require_html = __commonJS({
  11368. "../../node_modules/hastscript/node_modules/property-information/lib/html.js"(exports, module2) {
  11369. "use strict";
  11370. var types = require_types(), create4 = require_create(), caseInsensitiveTransform = require_case_insensitive_transform(), boolean = types.boolean, overloadedBoolean = types.overloadedBoolean, booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated, commaSeparated = types.commaSeparated;
  11371. module2.exports = create4({
  11372. space: "html",
  11373. attributes: {
  11374. acceptcharset: "accept-charset",
  11375. classname: "class",
  11376. htmlfor: "for",
  11377. httpequiv: "http-equiv"
  11378. },
  11379. transform: caseInsensitiveTransform,
  11380. mustUseProperty: ["checked", "multiple", "muted", "selected"],
  11381. properties: {
  11382. // Standard Properties.
  11383. abbr: null,
  11384. accept: commaSeparated,
  11385. acceptCharset: spaceSeparated,
  11386. accessKey: spaceSeparated,
  11387. action: null,
  11388. allow: null,
  11389. allowFullScreen: boolean,
  11390. allowPaymentRequest: boolean,
  11391. allowUserMedia: boolean,
  11392. alt: null,
  11393. as: null,
  11394. async: boolean,
  11395. autoCapitalize: null,
  11396. autoComplete: spaceSeparated,
  11397. autoFocus: boolean,
  11398. autoPlay: boolean,
  11399. capture: boolean,
  11400. charSet: null,
  11401. checked: boolean,
  11402. cite: null,
  11403. className: spaceSeparated,
  11404. cols: number,
  11405. colSpan: null,
  11406. content: null,
  11407. contentEditable: booleanish,
  11408. controls: boolean,
  11409. controlsList: spaceSeparated,
  11410. coords: number | commaSeparated,
  11411. crossOrigin: null,
  11412. data: null,
  11413. dateTime: null,
  11414. decoding: null,
  11415. default: boolean,
  11416. defer: boolean,
  11417. dir: null,
  11418. dirName: null,
  11419. disabled: boolean,
  11420. download: overloadedBoolean,
  11421. draggable: booleanish,
  11422. encType: null,
  11423. enterKeyHint: null,
  11424. form: null,
  11425. formAction: null,
  11426. formEncType: null,
  11427. formMethod: null,
  11428. formNoValidate: boolean,
  11429. formTarget: null,
  11430. headers: spaceSeparated,
  11431. height: number,
  11432. hidden: boolean,
  11433. high: number,
  11434. href: null,
  11435. hrefLang: null,
  11436. htmlFor: spaceSeparated,
  11437. httpEquiv: spaceSeparated,
  11438. id: null,
  11439. imageSizes: null,
  11440. imageSrcSet: commaSeparated,
  11441. inputMode: null,
  11442. integrity: null,
  11443. is: null,
  11444. isMap: boolean,
  11445. itemId: null,
  11446. itemProp: spaceSeparated,
  11447. itemRef: spaceSeparated,
  11448. itemScope: boolean,
  11449. itemType: spaceSeparated,
  11450. kind: null,
  11451. label: null,
  11452. lang: null,
  11453. language: null,
  11454. list: null,
  11455. loading: null,
  11456. loop: boolean,
  11457. low: number,
  11458. manifest: null,
  11459. max: null,
  11460. maxLength: number,
  11461. media: null,
  11462. method: null,
  11463. min: null,
  11464. minLength: number,
  11465. multiple: boolean,
  11466. muted: boolean,
  11467. name: null,
  11468. nonce: null,
  11469. noModule: boolean,
  11470. noValidate: boolean,
  11471. onAbort: null,
  11472. onAfterPrint: null,
  11473. onAuxClick: null,
  11474. onBeforePrint: null,
  11475. onBeforeUnload: null,
  11476. onBlur: null,
  11477. onCancel: null,
  11478. onCanPlay: null,
  11479. onCanPlayThrough: null,
  11480. onChange: null,
  11481. onClick: null,
  11482. onClose: null,
  11483. onContextMenu: null,
  11484. onCopy: null,
  11485. onCueChange: null,
  11486. onCut: null,
  11487. onDblClick: null,
  11488. onDrag: null,
  11489. onDragEnd: null,
  11490. onDragEnter: null,
  11491. onDragExit: null,
  11492. onDragLeave: null,
  11493. onDragOver: null,
  11494. onDragStart: null,
  11495. onDrop: null,
  11496. onDurationChange: null,
  11497. onEmptied: null,
  11498. onEnded: null,
  11499. onError: null,
  11500. onFocus: null,
  11501. onFormData: null,
  11502. onHashChange: null,
  11503. onInput: null,
  11504. onInvalid: null,
  11505. onKeyDown: null,
  11506. onKeyPress: null,
  11507. onKeyUp: null,
  11508. onLanguageChange: null,
  11509. onLoad: null,
  11510. onLoadedData: null,
  11511. onLoadedMetadata: null,
  11512. onLoadEnd: null,
  11513. onLoadStart: null,
  11514. onMessage: null,
  11515. onMessageError: null,
  11516. onMouseDown: null,
  11517. onMouseEnter: null,
  11518. onMouseLeave: null,
  11519. onMouseMove: null,
  11520. onMouseOut: null,
  11521. onMouseOver: null,
  11522. onMouseUp: null,
  11523. onOffline: null,
  11524. onOnline: null,
  11525. onPageHide: null,
  11526. onPageShow: null,
  11527. onPaste: null,
  11528. onPause: null,
  11529. onPlay: null,
  11530. onPlaying: null,
  11531. onPopState: null,
  11532. onProgress: null,
  11533. onRateChange: null,
  11534. onRejectionHandled: null,
  11535. onReset: null,
  11536. onResize: null,
  11537. onScroll: null,
  11538. onSecurityPolicyViolation: null,
  11539. onSeeked: null,
  11540. onSeeking: null,
  11541. onSelect: null,
  11542. onSlotChange: null,
  11543. onStalled: null,
  11544. onStorage: null,
  11545. onSubmit: null,
  11546. onSuspend: null,
  11547. onTimeUpdate: null,
  11548. onToggle: null,
  11549. onUnhandledRejection: null,
  11550. onUnload: null,
  11551. onVolumeChange: null,
  11552. onWaiting: null,
  11553. onWheel: null,
  11554. open: boolean,
  11555. optimum: number,
  11556. pattern: null,
  11557. ping: spaceSeparated,
  11558. placeholder: null,
  11559. playsInline: boolean,
  11560. poster: null,
  11561. preload: null,
  11562. readOnly: boolean,
  11563. referrerPolicy: null,
  11564. rel: spaceSeparated,
  11565. required: boolean,
  11566. reversed: boolean,
  11567. rows: number,
  11568. rowSpan: number,
  11569. sandbox: spaceSeparated,
  11570. scope: null,
  11571. scoped: boolean,
  11572. seamless: boolean,
  11573. selected: boolean,
  11574. shape: null,
  11575. size: number,
  11576. sizes: null,
  11577. slot: null,
  11578. span: number,
  11579. spellCheck: booleanish,
  11580. src: null,
  11581. srcDoc: null,
  11582. srcLang: null,
  11583. srcSet: commaSeparated,
  11584. start: number,
  11585. step: null,
  11586. style: null,
  11587. tabIndex: number,
  11588. target: null,
  11589. title: null,
  11590. translate: null,
  11591. type: null,
  11592. typeMustMatch: boolean,
  11593. useMap: null,
  11594. value: booleanish,
  11595. width: number,
  11596. wrap: null,
  11597. // Legacy.
  11598. // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
  11599. align: null,
  11600. // Several. Use CSS `text-align` instead,
  11601. aLink: null,
  11602. // `<body>`. Use CSS `a:active {color}` instead
  11603. archive: spaceSeparated,
  11604. // `<object>`. List of URIs to archives
  11605. axis: null,
  11606. // `<td>` and `<th>`. Use `scope` on `<th>`
  11607. background: null,
  11608. // `<body>`. Use CSS `background-image` instead
  11609. bgColor: null,
  11610. // `<body>` and table elements. Use CSS `background-color` instead
  11611. border: number,
  11612. // `<table>`. Use CSS `border-width` instead,
  11613. borderColor: null,
  11614. // `<table>`. Use CSS `border-color` instead,
  11615. bottomMargin: number,
  11616. // `<body>`
  11617. cellPadding: null,
  11618. // `<table>`
  11619. cellSpacing: null,
  11620. // `<table>`
  11621. char: null,
  11622. // Several table elements. When `align=char`, sets the character to align on
  11623. charOff: null,
  11624. // Several table elements. When `char`, offsets the alignment
  11625. classId: null,
  11626. // `<object>`
  11627. clear: null,
  11628. // `<br>`. Use CSS `clear` instead
  11629. code: null,
  11630. // `<object>`
  11631. codeBase: null,
  11632. // `<object>`
  11633. codeType: null,
  11634. // `<object>`
  11635. color: null,
  11636. // `<font>` and `<hr>`. Use CSS instead
  11637. compact: boolean,
  11638. // Lists. Use CSS to reduce space between items instead
  11639. declare: boolean,
  11640. // `<object>`
  11641. event: null,
  11642. // `<script>`
  11643. face: null,
  11644. // `<font>`. Use CSS instead
  11645. frame: null,
  11646. // `<table>`
  11647. frameBorder: null,
  11648. // `<iframe>`. Use CSS `border` instead
  11649. hSpace: number,
  11650. // `<img>` and `<object>`
  11651. leftMargin: number,
  11652. // `<body>`
  11653. link: null,
  11654. // `<body>`. Use CSS `a:link {color: *}` instead
  11655. longDesc: null,
  11656. // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
  11657. lowSrc: null,
  11658. // `<img>`. Use a `<picture>`
  11659. marginHeight: number,
  11660. // `<body>`
  11661. marginWidth: number,
  11662. // `<body>`
  11663. noResize: boolean,
  11664. // `<frame>`
  11665. noHref: boolean,
  11666. // `<area>`. Use no href instead of an explicit `nohref`
  11667. noShade: boolean,
  11668. // `<hr>`. Use background-color and height instead of borders
  11669. noWrap: boolean,
  11670. // `<td>` and `<th>`
  11671. object: null,
  11672. // `<applet>`
  11673. profile: null,
  11674. // `<head>`
  11675. prompt: null,
  11676. // `<isindex>`
  11677. rev: null,
  11678. // `<link>`
  11679. rightMargin: number,
  11680. // `<body>`
  11681. rules: null,
  11682. // `<table>`
  11683. scheme: null,
  11684. // `<meta>`
  11685. scrolling: booleanish,
  11686. // `<frame>`. Use overflow in the child context
  11687. standby: null,
  11688. // `<object>`
  11689. summary: null,
  11690. // `<table>`
  11691. text: null,
  11692. // `<body>`. Use CSS `color` instead
  11693. topMargin: number,
  11694. // `<body>`
  11695. valueType: null,
  11696. // `<param>`
  11697. version: null,
  11698. // `<html>`. Use a doctype.
  11699. vAlign: null,
  11700. // Several. Use CSS `vertical-align` instead
  11701. vLink: null,
  11702. // `<body>`. Use CSS `a:visited {color}` instead
  11703. vSpace: number,
  11704. // `<img>` and `<object>`
  11705. // Non-standard Properties.
  11706. allowTransparency: null,
  11707. autoCorrect: null,
  11708. autoSave: null,
  11709. disablePictureInPicture: boolean,
  11710. disableRemotePlayback: boolean,
  11711. prefix: null,
  11712. property: null,
  11713. results: number,
  11714. security: null,
  11715. unselectable: null
  11716. }
  11717. });
  11718. }
  11719. });
  11720. // ../../node_modules/hastscript/node_modules/property-information/html.js
  11721. var require_html2 = __commonJS({
  11722. "../../node_modules/hastscript/node_modules/property-information/html.js"(exports, module2) {
  11723. "use strict";
  11724. var merge3 = require_merge(), xlink = require_xlink(), xml = require_xml(), xmlns = require_xmlns(), aria = require_aria(), html = require_html();
  11725. module2.exports = merge3([xml, xlink, xmlns, aria, html]);
  11726. }
  11727. });
  11728. // ../../node_modules/hastscript/node_modules/property-information/find.js
  11729. var require_find = __commonJS({
  11730. "../../node_modules/hastscript/node_modules/property-information/find.js"(exports, module2) {
  11731. "use strict";
  11732. var normalize4 = require_normalize(), DefinedInfo = require_defined_info(), Info = require_info(), data = "data";
  11733. module2.exports = find2;
  11734. var valid = /^data[-\w.:]+$/i, dash = /-[a-z]/g, cap = /[A-Z]/g;
  11735. function find2(schema, value) {
  11736. var normal = normalize4(value), prop = value, Type = Info;
  11737. return normal in schema.normal ? schema.property[schema.normal[normal]] : (normal.length > 4 && normal.slice(0, 4) === data && valid.test(value) && (value.charAt(4) === "-" ? prop = datasetToProperty(value) : value = datasetToAttribute(value), Type = DefinedInfo), new Type(prop, value));
  11738. }
  11739. function datasetToProperty(attribute) {
  11740. var value = attribute.slice(5).replace(dash, camelcase);
  11741. return data + value.charAt(0).toUpperCase() + value.slice(1);
  11742. }
  11743. function datasetToAttribute(property) {
  11744. var value = property.slice(4);
  11745. return dash.test(value) ? property : (value = value.replace(cap, kebab), value.charAt(0) !== "-" && (value = "-" + value), data + value);
  11746. }
  11747. function kebab($0) {
  11748. return "-" + $0.toLowerCase();
  11749. }
  11750. function camelcase($0) {
  11751. return $0.charAt(1).toUpperCase();
  11752. }
  11753. }
  11754. });
  11755. // ../../node_modules/hast-util-parse-selector/index.js
  11756. var require_hast_util_parse_selector = __commonJS({
  11757. "../../node_modules/hast-util-parse-selector/index.js"(exports, module2) {
  11758. "use strict";
  11759. module2.exports = parse9;
  11760. var search = /[#.]/g;
  11761. function parse9(selector, defaultTagName) {
  11762. for (var value = selector || "", name = defaultTagName || "div", props = {}, start2 = 0, subvalue, previous, match3; start2 < value.length; )
  11763. search.lastIndex = start2, match3 = search.exec(value), subvalue = value.slice(start2, match3 ? match3.index : value.length), subvalue && (previous ? previous === "#" ? props.id = subvalue : props.className ? props.className.push(subvalue) : props.className = [subvalue] : name = subvalue, start2 += subvalue.length), match3 && (previous = match3[0], start2++);
  11764. return { type: "element", tagName: name, properties: props, children: [] };
  11765. }
  11766. }
  11767. });
  11768. // ../../node_modules/hastscript/node_modules/space-separated-tokens/index.js
  11769. var require_space_separated_tokens = __commonJS({
  11770. "../../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(exports) {
  11771. "use strict";
  11772. exports.parse = parse9;
  11773. exports.stringify = stringify8;
  11774. var empty = "", space = " ", whiteSpace = /[ \t\n\r\f]+/g;
  11775. function parse9(value) {
  11776. var input2 = String(value || empty).trim();
  11777. return input2 === empty ? [] : input2.split(whiteSpace);
  11778. }
  11779. function stringify8(values) {
  11780. return values.join(space).trim();
  11781. }
  11782. }
  11783. });
  11784. // ../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js
  11785. var require_comma_separated_tokens = __commonJS({
  11786. "../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(exports) {
  11787. "use strict";
  11788. exports.parse = parse9;
  11789. exports.stringify = stringify8;
  11790. var comma = ",", space = " ", empty = "";
  11791. function parse9(value) {
  11792. for (var values = [], input2 = String(value || empty), index4 = input2.indexOf(comma), lastIndex = 0, end2 = !1, val; !end2; )
  11793. index4 === -1 && (index4 = input2.length, end2 = !0), val = input2.slice(lastIndex, index4).trim(), (val || !end2) && values.push(val), lastIndex = index4 + 1, index4 = input2.indexOf(comma, lastIndex);
  11794. return values;
  11795. }
  11796. function stringify8(values, options) {
  11797. var settings = options || {}, left2 = settings.padLeft === !1 ? empty : space, right2 = settings.padRight ? space : empty;
  11798. return values[values.length - 1] === empty && (values = values.concat(empty)), values.join(right2 + comma + left2).trim();
  11799. }
  11800. }
  11801. });
  11802. // ../../node_modules/hastscript/factory.js
  11803. var require_factory = __commonJS({
  11804. "../../node_modules/hastscript/factory.js"(exports, module2) {
  11805. "use strict";
  11806. var find2 = require_find(), normalize4 = require_normalize(), parseSelector = require_hast_util_parse_selector(), spaces = require_space_separated_tokens().parse, commas = require_comma_separated_tokens().parse;
  11807. module2.exports = factory;
  11808. var own = {}.hasOwnProperty;
  11809. function factory(schema, defaultTagName, caseSensitive) {
  11810. var adjust = caseSensitive ? createAdjustMap(caseSensitive) : null;
  11811. return h3;
  11812. function h3(selector, properties) {
  11813. var node2 = parseSelector(selector, defaultTagName), children = Array.prototype.slice.call(arguments, 2), name = node2.tagName.toLowerCase(), property;
  11814. if (node2.tagName = adjust && own.call(adjust, name) ? adjust[name] : name, properties && isChildren(properties, node2) && (children.unshift(properties), properties = null), properties)
  11815. for (property in properties)
  11816. addProperty2(node2.properties, property, properties[property]);
  11817. return addChild(node2.children, children), node2.tagName === "template" && (node2.content = { type: "root", children: node2.children }, node2.children = []), node2;
  11818. }
  11819. function addProperty2(properties, key, value) {
  11820. var info, property, result;
  11821. value == null || value !== value || (info = find2(schema, key), property = info.property, result = value, typeof result == "string" && (info.spaceSeparated ? result = spaces(result) : info.commaSeparated ? result = commas(result) : info.commaOrSpaceSeparated && (result = spaces(commas(result).join(" ")))), property === "style" && typeof value != "string" && (result = style(result)), property === "className" && properties.className && (result = properties.className.concat(result)), properties[property] = parsePrimitives(info, property, result));
  11822. }
  11823. }
  11824. function isChildren(value, node2) {
  11825. return typeof value == "string" || "length" in value || isNode2(node2.tagName, value);
  11826. }
  11827. function isNode2(tagName, value) {
  11828. var type5 = value.type;
  11829. return tagName === "input" || !type5 || typeof type5 != "string" ? !1 : typeof value.children == "object" && "length" in value.children ? !0 : (type5 = type5.toLowerCase(), tagName === "button" ? type5 !== "menu" && type5 !== "submit" && type5 !== "reset" && type5 !== "button" : "value" in value);
  11830. }
  11831. function addChild(nodes, value) {
  11832. var index4, length2;
  11833. if (typeof value == "string" || typeof value == "number") {
  11834. nodes.push({ type: "text", value: String(value) });
  11835. return;
  11836. }
  11837. if (typeof value == "object" && "length" in value) {
  11838. for (index4 = -1, length2 = value.length; ++index4 < length2; )
  11839. addChild(nodes, value[index4]);
  11840. return;
  11841. }
  11842. if (typeof value != "object" || !("type" in value))
  11843. throw new Error("Expected node, nodes, or string, got `" + value + "`");
  11844. nodes.push(value);
  11845. }
  11846. function parsePrimitives(info, name, value) {
  11847. var index4, length2, result;
  11848. if (typeof value != "object" || !("length" in value))
  11849. return parsePrimitive(info, name, value);
  11850. for (length2 = value.length, index4 = -1, result = []; ++index4 < length2; )
  11851. result[index4] = parsePrimitive(info, name, value[index4]);
  11852. return result;
  11853. }
  11854. function parsePrimitive(info, name, value) {
  11855. var result = value;
  11856. return info.number || info.positiveNumber ? !isNaN(result) && result !== "" && (result = Number(result)) : (info.boolean || info.overloadedBoolean) && typeof result == "string" && (result === "" || normalize4(value) === normalize4(name)) && (result = !0), result;
  11857. }
  11858. function style(value) {
  11859. var result = [], key;
  11860. for (key in value)
  11861. result.push([key, value[key]].join(": "));
  11862. return result.join("; ");
  11863. }
  11864. function createAdjustMap(values) {
  11865. for (var length2 = values.length, index4 = -1, result = {}, value; ++index4 < length2; )
  11866. value = values[index4], result[value.toLowerCase()] = value;
  11867. return result;
  11868. }
  11869. }
  11870. });
  11871. // ../../node_modules/hastscript/html.js
  11872. var require_html3 = __commonJS({
  11873. "../../node_modules/hastscript/html.js"(exports, module2) {
  11874. "use strict";
  11875. var schema = require_html2(), factory = require_factory(), html = factory(schema, "div");
  11876. html.displayName = "html";
  11877. module2.exports = html;
  11878. }
  11879. });
  11880. // ../../node_modules/hastscript/index.js
  11881. var require_hastscript = __commonJS({
  11882. "../../node_modules/hastscript/index.js"(exports, module2) {
  11883. "use strict";
  11884. module2.exports = require_html3();
  11885. }
  11886. });
  11887. // ../../node_modules/refractor/node_modules/character-entities-legacy/index.json
  11888. var require_character_entities_legacy = __commonJS({
  11889. "../../node_modules/refractor/node_modules/character-entities-legacy/index.json"(exports, module2) {
  11890. module2.exports = {
  11891. AElig: "\xC6",
  11892. AMP: "&",
  11893. Aacute: "\xC1",
  11894. Acirc: "\xC2",
  11895. Agrave: "\xC0",
  11896. Aring: "\xC5",
  11897. Atilde: "\xC3",
  11898. Auml: "\xC4",
  11899. COPY: "\xA9",
  11900. Ccedil: "\xC7",
  11901. ETH: "\xD0",
  11902. Eacute: "\xC9",
  11903. Ecirc: "\xCA",
  11904. Egrave: "\xC8",
  11905. Euml: "\xCB",
  11906. GT: ">",
  11907. Iacute: "\xCD",
  11908. Icirc: "\xCE",
  11909. Igrave: "\xCC",
  11910. Iuml: "\xCF",
  11911. LT: "<",
  11912. Ntilde: "\xD1",
  11913. Oacute: "\xD3",
  11914. Ocirc: "\xD4",
  11915. Ograve: "\xD2",
  11916. Oslash: "\xD8",
  11917. Otilde: "\xD5",
  11918. Ouml: "\xD6",
  11919. QUOT: '"',
  11920. REG: "\xAE",
  11921. THORN: "\xDE",
  11922. Uacute: "\xDA",
  11923. Ucirc: "\xDB",
  11924. Ugrave: "\xD9",
  11925. Uuml: "\xDC",
  11926. Yacute: "\xDD",
  11927. aacute: "\xE1",
  11928. acirc: "\xE2",
  11929. acute: "\xB4",
  11930. aelig: "\xE6",
  11931. agrave: "\xE0",
  11932. amp: "&",
  11933. aring: "\xE5",
  11934. atilde: "\xE3",
  11935. auml: "\xE4",
  11936. brvbar: "\xA6",
  11937. ccedil: "\xE7",
  11938. cedil: "\xB8",
  11939. cent: "\xA2",
  11940. copy: "\xA9",
  11941. curren: "\xA4",
  11942. deg: "\xB0",
  11943. divide: "\xF7",
  11944. eacute: "\xE9",
  11945. ecirc: "\xEA",
  11946. egrave: "\xE8",
  11947. eth: "\xF0",
  11948. euml: "\xEB",
  11949. frac12: "\xBD",
  11950. frac14: "\xBC",
  11951. frac34: "\xBE",
  11952. gt: ">",
  11953. iacute: "\xED",
  11954. icirc: "\xEE",
  11955. iexcl: "\xA1",
  11956. igrave: "\xEC",
  11957. iquest: "\xBF",
  11958. iuml: "\xEF",
  11959. laquo: "\xAB",
  11960. lt: "<",
  11961. macr: "\xAF",
  11962. micro: "\xB5",
  11963. middot: "\xB7",
  11964. nbsp: "\xA0",
  11965. not: "\xAC",
  11966. ntilde: "\xF1",
  11967. oacute: "\xF3",
  11968. ocirc: "\xF4",
  11969. ograve: "\xF2",
  11970. ordf: "\xAA",
  11971. ordm: "\xBA",
  11972. oslash: "\xF8",
  11973. otilde: "\xF5",
  11974. ouml: "\xF6",
  11975. para: "\xB6",
  11976. plusmn: "\xB1",
  11977. pound: "\xA3",
  11978. quot: '"',
  11979. raquo: "\xBB",
  11980. reg: "\xAE",
  11981. sect: "\xA7",
  11982. shy: "\xAD",
  11983. sup1: "\xB9",
  11984. sup2: "\xB2",
  11985. sup3: "\xB3",
  11986. szlig: "\xDF",
  11987. thorn: "\xFE",
  11988. times: "\xD7",
  11989. uacute: "\xFA",
  11990. ucirc: "\xFB",
  11991. ugrave: "\xF9",
  11992. uml: "\xA8",
  11993. uuml: "\xFC",
  11994. yacute: "\xFD",
  11995. yen: "\xA5",
  11996. yuml: "\xFF"
  11997. };
  11998. }
  11999. });
  12000. // ../../node_modules/refractor/node_modules/character-reference-invalid/index.json
  12001. var require_character_reference_invalid = __commonJS({
  12002. "../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(exports, module2) {
  12003. module2.exports = {
  12004. "0": "\uFFFD",
  12005. "128": "\u20AC",
  12006. "130": "\u201A",
  12007. "131": "\u0192",
  12008. "132": "\u201E",
  12009. "133": "\u2026",
  12010. "134": "\u2020",
  12011. "135": "\u2021",
  12012. "136": "\u02C6",
  12013. "137": "\u2030",
  12014. "138": "\u0160",
  12015. "139": "\u2039",
  12016. "140": "\u0152",
  12017. "142": "\u017D",
  12018. "145": "\u2018",
  12019. "146": "\u2019",
  12020. "147": "\u201C",
  12021. "148": "\u201D",
  12022. "149": "\u2022",
  12023. "150": "\u2013",
  12024. "151": "\u2014",
  12025. "152": "\u02DC",
  12026. "153": "\u2122",
  12027. "154": "\u0161",
  12028. "155": "\u203A",
  12029. "156": "\u0153",
  12030. "158": "\u017E",
  12031. "159": "\u0178"
  12032. };
  12033. }
  12034. });
  12035. // ../../node_modules/refractor/node_modules/is-decimal/index.js
  12036. var require_is_decimal = __commonJS({
  12037. "../../node_modules/refractor/node_modules/is-decimal/index.js"(exports, module2) {
  12038. "use strict";
  12039. module2.exports = decimal;
  12040. function decimal(character2) {
  12041. var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2;
  12042. return code >= 48 && code <= 57;
  12043. }
  12044. }
  12045. });
  12046. // ../../node_modules/refractor/node_modules/is-hexadecimal/index.js
  12047. var require_is_hexadecimal = __commonJS({
  12048. "../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(exports, module2) {
  12049. "use strict";
  12050. module2.exports = hexadecimal;
  12051. function hexadecimal(character2) {
  12052. var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2;
  12053. return code >= 97 && code <= 102 || code >= 65 && code <= 70 || code >= 48 && code <= 57;
  12054. }
  12055. }
  12056. });
  12057. // ../../node_modules/refractor/node_modules/is-alphabetical/index.js
  12058. var require_is_alphabetical = __commonJS({
  12059. "../../node_modules/refractor/node_modules/is-alphabetical/index.js"(exports, module2) {
  12060. "use strict";
  12061. module2.exports = alphabetical;
  12062. function alphabetical(character2) {
  12063. var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2;
  12064. return code >= 97 && code <= 122 || code >= 65 && code <= 90;
  12065. }
  12066. }
  12067. });
  12068. // ../../node_modules/refractor/node_modules/is-alphanumerical/index.js
  12069. var require_is_alphanumerical = __commonJS({
  12070. "../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(exports, module2) {
  12071. "use strict";
  12072. var alphabetical = require_is_alphabetical(), decimal = require_is_decimal();
  12073. module2.exports = alphanumerical;
  12074. function alphanumerical(character2) {
  12075. return alphabetical(character2) || decimal(character2);
  12076. }
  12077. }
  12078. });
  12079. // ../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js
  12080. var require_decode_entity_browser = __commonJS({
  12081. "../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(exports, module2) {
  12082. "use strict";
  12083. var el, semicolon = 59;
  12084. module2.exports = decodeEntity;
  12085. function decodeEntity(characters2) {
  12086. var entity = "&" + characters2 + ";", char2;
  12087. return el = el || document.createElement("i"), el.innerHTML = entity, char2 = el.textContent, char2.charCodeAt(char2.length - 1) === semicolon && characters2 !== "semi" || char2 === entity ? !1 : char2;
  12088. }
  12089. }
  12090. });
  12091. // ../../node_modules/refractor/node_modules/parse-entities/index.js
  12092. var require_parse_entities = __commonJS({
  12093. "../../node_modules/refractor/node_modules/parse-entities/index.js"(exports, module2) {
  12094. "use strict";
  12095. var legacy = require_character_entities_legacy(), invalid = require_character_reference_invalid(), decimal = require_is_decimal(), hexadecimal = require_is_hexadecimal(), alphanumerical = require_is_alphanumerical(), decodeEntity = require_decode_entity_browser();
  12096. module2.exports = parseEntities;
  12097. var own = {}.hasOwnProperty, fromCharCode = String.fromCharCode, noop7 = Function.prototype, defaults = {
  12098. warning: null,
  12099. reference: null,
  12100. text: null,
  12101. warningContext: null,
  12102. referenceContext: null,
  12103. textContext: null,
  12104. position: {},
  12105. additional: null,
  12106. attribute: !1,
  12107. nonTerminated: !0
  12108. }, tab3 = 9, lineFeed = 10, formFeed = 12, space = 32, ampersand = 38, semicolon = 59, lessThan = 60, equalsTo = 61, numberSign = 35, uppercaseX = 88, lowercaseX = 120, replacementCharacter = 65533, name = "named", hexa = "hexadecimal", deci = "decimal", bases = {};
  12109. bases[hexa] = 16;
  12110. bases[deci] = 10;
  12111. var tests = {};
  12112. tests[name] = alphanumerical;
  12113. tests[deci] = decimal;
  12114. tests[hexa] = hexadecimal;
  12115. var namedNotTerminated = 1, numericNotTerminated = 2, namedEmpty = 3, numericEmpty = 4, namedUnknown = 5, numericDisallowed = 6, numericProhibited = 7, messages = {};
  12116. messages[namedNotTerminated] = "Named character references must be terminated by a semicolon";
  12117. messages[numericNotTerminated] = "Numeric character references must be terminated by a semicolon";
  12118. messages[namedEmpty] = "Named character references cannot be empty";
  12119. messages[numericEmpty] = "Numeric character references cannot be empty";
  12120. messages[namedUnknown] = "Named character references must be known";
  12121. messages[numericDisallowed] = "Numeric character references cannot be disallowed";
  12122. messages[numericProhibited] = "Numeric character references cannot be outside the permissible Unicode range";
  12123. function parseEntities(value, options) {
  12124. var settings = {}, option, key;
  12125. options || (options = {});
  12126. for (key in defaults)
  12127. option = options[key], settings[key] = option ?? defaults[key];
  12128. return (settings.position.indent || settings.position.start) && (settings.indent = settings.position.indent || [], settings.position = settings.position.start), parse9(value, settings);
  12129. }
  12130. function parse9(value, settings) {
  12131. var additional = settings.additional, nonTerminated = settings.nonTerminated, handleText = settings.text, handleReference = settings.reference, handleWarning = settings.warning, textContext = settings.textContext, referenceContext = settings.referenceContext, warningContext = settings.warningContext, pos = settings.position, indent2 = settings.indent || [], length2 = value.length, index4 = 0, lines = -1, column2 = pos.column || 1, line2 = pos.line || 1, queue = "", result = [], entityCharacters, namedEntity, terminated, characters2, character2, reference2, following, warning3, reason, output, entity, begin, start2, type5, test3, prev2, next2, diff2, end2;
  12132. for (typeof additional == "string" && (additional = additional.charCodeAt(0)), prev2 = now(), warning3 = handleWarning ? parseError : noop7, index4--, length2++; ++index4 < length2; )
  12133. if (character2 === lineFeed && (column2 = indent2[lines] || 1), character2 = value.charCodeAt(index4), character2 === ampersand) {
  12134. if (following = value.charCodeAt(index4 + 1), following === tab3 || following === lineFeed || following === formFeed || following === space || following === ampersand || following === lessThan || following !== following || additional && following === additional) {
  12135. queue += fromCharCode(character2), column2++;
  12136. continue;
  12137. }
  12138. for (start2 = index4 + 1, begin = start2, end2 = start2, following === numberSign ? (end2 = ++begin, following = value.charCodeAt(end2), following === uppercaseX || following === lowercaseX ? (type5 = hexa, end2 = ++begin) : type5 = deci) : type5 = name, entityCharacters = "", entity = "", characters2 = "", test3 = tests[type5], end2--; ++end2 < length2 && (following = value.charCodeAt(end2), !!test3(following)); )
  12139. characters2 += fromCharCode(following), type5 === name && own.call(legacy, characters2) && (entityCharacters = characters2, entity = legacy[characters2]);
  12140. terminated = value.charCodeAt(end2) === semicolon, terminated && (end2++, namedEntity = type5 === name ? decodeEntity(characters2) : !1, namedEntity && (entityCharacters = characters2, entity = namedEntity)), diff2 = 1 + end2 - start2, !terminated && !nonTerminated || (characters2 ? type5 === name ? (terminated && !entity ? warning3(namedUnknown, 1) : (entityCharacters !== characters2 && (end2 = begin + entityCharacters.length, diff2 = 1 + end2 - begin, terminated = !1), terminated || (reason = entityCharacters ? namedNotTerminated : namedEmpty, settings.attribute ? (following = value.charCodeAt(end2), following === equalsTo ? (warning3(reason, diff2), entity = null) : alphanumerical(following) ? entity = null : warning3(reason, diff2)) : warning3(reason, diff2))), reference2 = entity) : (terminated || warning3(numericNotTerminated, diff2), reference2 = parseInt(characters2, bases[type5]), prohibited(reference2) ? (warning3(numericProhibited, diff2), reference2 = fromCharCode(replacementCharacter)) : reference2 in invalid ? (warning3(numericDisallowed, diff2), reference2 = invalid[reference2]) : (output = "", disallowed(reference2) && warning3(numericDisallowed, diff2), reference2 > 65535 && (reference2 -= 65536, output += fromCharCode(reference2 >>> 10 | 55296), reference2 = 56320 | reference2 & 1023), reference2 = output + fromCharCode(reference2))) : type5 !== name && warning3(numericEmpty, diff2)), reference2 ? (flush(), prev2 = now(), index4 = end2 - 1, column2 += end2 - start2 + 1, result.push(reference2), next2 = now(), next2.offset++, handleReference && handleReference.call(
  12141. referenceContext,
  12142. reference2,
  12143. { start: prev2, end: next2 },
  12144. value.slice(start2 - 1, end2)
  12145. ), prev2 = next2) : (characters2 = value.slice(start2 - 1, end2), queue += characters2, column2 += characters2.length, index4 = end2 - 1);
  12146. } else
  12147. character2 === 10 && (line2++, lines++, column2 = 0), character2 === character2 ? (queue += fromCharCode(character2), column2++) : flush();
  12148. return result.join("");
  12149. function now() {
  12150. return {
  12151. line: line2,
  12152. column: column2,
  12153. offset: index4 + (pos.offset || 0)
  12154. };
  12155. }
  12156. function parseError(code, offset3) {
  12157. var position2 = now();
  12158. position2.column += offset3, position2.offset += offset3, handleWarning.call(warningContext, messages[code], position2, code);
  12159. }
  12160. function flush() {
  12161. queue && (result.push(queue), handleText && handleText.call(textContext, queue, { start: prev2, end: now() }), queue = "");
  12162. }
  12163. }
  12164. function prohibited(code) {
  12165. return code >= 55296 && code <= 57343 || code > 1114111;
  12166. }
  12167. function disallowed(code) {
  12168. return code >= 1 && code <= 8 || code === 11 || code >= 13 && code <= 31 || code >= 127 && code <= 159 || code >= 64976 && code <= 65007 || (code & 65535) === 65535 || (code & 65535) === 65534;
  12169. }
  12170. }
  12171. });
  12172. // ../../node_modules/refractor/node_modules/prismjs/components/prism-core.js
  12173. var require_prism_core = __commonJS({
  12174. "../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports, module2) {
  12175. var _self = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
  12176. var Prism = (function(_self2) {
  12177. var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, uniqueId = 0, plainTextGrammar = {}, _ = {
  12178. /**
  12179. * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
  12180. * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
  12181. * additional languages or plugins yourself.
  12182. *
  12183. * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
  12184. *
  12185. * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
  12186. * empty Prism object into the global scope before loading the Prism script like this:
  12187. *
  12188. * ```js
  12189. * window.Prism = window.Prism || {};
  12190. * Prism.manual = true;
  12191. * // add a new <script> to load Prism's script
  12192. * ```
  12193. *
  12194. * @default false
  12195. * @type {boolean}
  12196. * @memberof Prism
  12197. * @public
  12198. */
  12199. manual: _self2.Prism && _self2.Prism.manual,
  12200. /**
  12201. * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
  12202. * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
  12203. * own worker, you don't want it to do this.
  12204. *
  12205. * By setting this value to `true`, Prism will not add its own listeners to the worker.
  12206. *
  12207. * You obviously have to change this value before Prism executes. To do this, you can add an
  12208. * empty Prism object into the global scope before loading the Prism script like this:
  12209. *
  12210. * ```js
  12211. * window.Prism = window.Prism || {};
  12212. * Prism.disableWorkerMessageHandler = true;
  12213. * // Load Prism's script
  12214. * ```
  12215. *
  12216. * @default false
  12217. * @type {boolean}
  12218. * @memberof Prism
  12219. * @public
  12220. */
  12221. disableWorkerMessageHandler: _self2.Prism && _self2.Prism.disableWorkerMessageHandler,
  12222. /**
  12223. * A namespace for utility methods.
  12224. *
  12225. * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
  12226. * change or disappear at any time.
  12227. *
  12228. * @namespace
  12229. * @memberof Prism
  12230. */
  12231. util: {
  12232. encode: function encode2(tokens2) {
  12233. return tokens2 instanceof Token ? new Token(tokens2.type, encode2(tokens2.content), tokens2.alias) : Array.isArray(tokens2) ? tokens2.map(encode2) : tokens2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
  12234. },
  12235. /**
  12236. * Returns the name of the type of the given value.
  12237. *
  12238. * @param {any} o
  12239. * @returns {string}
  12240. * @example
  12241. * type(null) === 'Null'
  12242. * type(undefined) === 'Undefined'
  12243. * type(123) === 'Number'
  12244. * type('foo') === 'String'
  12245. * type(true) === 'Boolean'
  12246. * type([1, 2]) === 'Array'
  12247. * type({}) === 'Object'
  12248. * type(String) === 'Function'
  12249. * type(/abc+/) === 'RegExp'
  12250. */
  12251. type: function(o) {
  12252. return Object.prototype.toString.call(o).slice(8, -1);
  12253. },
  12254. /**
  12255. * Returns a unique number for the given object. Later calls will still return the same number.
  12256. *
  12257. * @param {Object} obj
  12258. * @returns {number}
  12259. */
  12260. objId: function(obj) {
  12261. return obj.__id || Object.defineProperty(obj, "__id", { value: ++uniqueId }), obj.__id;
  12262. },
  12263. /**
  12264. * Creates a deep clone of the given object.
  12265. *
  12266. * The main intended use of this function is to clone language definitions.
  12267. *
  12268. * @param {T} o
  12269. * @param {Record<number, any>} [visited]
  12270. * @returns {T}
  12271. * @template T
  12272. */
  12273. clone: function deepClone2(o, visited) {
  12274. visited = visited || {};
  12275. var clone3, id;
  12276. switch (_.util.type(o)) {
  12277. case "Object":
  12278. if (id = _.util.objId(o), visited[id])
  12279. return visited[id];
  12280. clone3 = /** @type {Record<string, any>} */
  12281. {}, visited[id] = clone3;
  12282. for (var key in o)
  12283. o.hasOwnProperty(key) && (clone3[key] = deepClone2(o[key], visited));
  12284. return (
  12285. /** @type {any} */
  12286. clone3
  12287. );
  12288. case "Array":
  12289. return id = _.util.objId(o), visited[id] ? visited[id] : (clone3 = [], visited[id] = clone3, /** @type {Array} */
  12290. /** @type {any} */
  12291. o.forEach(function(v, i) {
  12292. clone3[i] = deepClone2(v, visited);
  12293. }), /** @type {any} */
  12294. clone3);
  12295. default:
  12296. return o;
  12297. }
  12298. },
  12299. /**
  12300. * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
  12301. *
  12302. * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
  12303. *
  12304. * @param {Element} element
  12305. * @returns {string}
  12306. */
  12307. getLanguage: function(element) {
  12308. for (; element; ) {
  12309. var m3 = lang.exec(element.className);
  12310. if (m3)
  12311. return m3[1].toLowerCase();
  12312. element = element.parentElement;
  12313. }
  12314. return "none";
  12315. },
  12316. /**
  12317. * Sets the Prism `language-xxxx` class of the given element.
  12318. *
  12319. * @param {Element} element
  12320. * @param {string} language
  12321. * @returns {void}
  12322. */
  12323. setLanguage: function(element, language) {
  12324. element.className = element.className.replace(RegExp(lang, "gi"), ""), element.classList.add("language-" + language);
  12325. },
  12326. /**
  12327. * Returns the script element that is currently executing.
  12328. *
  12329. * This does __not__ work for line script element.
  12330. *
  12331. * @returns {HTMLScriptElement | null}
  12332. */
  12333. currentScript: function() {
  12334. if (typeof document > "u")
  12335. return null;
  12336. if ("currentScript" in document)
  12337. return (
  12338. /** @type {any} */
  12339. document.currentScript
  12340. );
  12341. try {
  12342. throw new Error();
  12343. } catch (err) {
  12344. var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
  12345. if (src) {
  12346. var scripts = document.getElementsByTagName("script");
  12347. for (var i in scripts)
  12348. if (scripts[i].src == src)
  12349. return scripts[i];
  12350. }
  12351. return null;
  12352. }
  12353. },
  12354. /**
  12355. * Returns whether a given class is active for `element`.
  12356. *
  12357. * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
  12358. * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
  12359. * given class is just the given class with a `no-` prefix.
  12360. *
  12361. * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
  12362. * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
  12363. * ancestors have the given class or the negated version of it, then the default activation will be returned.
  12364. *
  12365. * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
  12366. * version of it, the class is considered active.
  12367. *
  12368. * @param {Element} element
  12369. * @param {string} className
  12370. * @param {boolean} [defaultActivation=false]
  12371. * @returns {boolean}
  12372. */
  12373. isActive: function(element, className, defaultActivation) {
  12374. for (var no = "no-" + className; element; ) {
  12375. var classList = element.classList;
  12376. if (classList.contains(className))
  12377. return !0;
  12378. if (classList.contains(no))
  12379. return !1;
  12380. element = element.parentElement;
  12381. }
  12382. return !!defaultActivation;
  12383. }
  12384. },
  12385. /**
  12386. * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
  12387. *
  12388. * @namespace
  12389. * @memberof Prism
  12390. * @public
  12391. */
  12392. languages: {
  12393. /**
  12394. * The grammar for plain, unformatted text.
  12395. */
  12396. plain: plainTextGrammar,
  12397. plaintext: plainTextGrammar,
  12398. text: plainTextGrammar,
  12399. txt: plainTextGrammar,
  12400. /**
  12401. * Creates a deep copy of the language with the given id and appends the given tokens.
  12402. *
  12403. * If a token in `redef` also appears in the copied language, then the existing token in the copied language
  12404. * will be overwritten at its original position.
  12405. *
  12406. * ## Best practices
  12407. *
  12408. * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
  12409. * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
  12410. * understand the language definition because, normally, the order of tokens matters in Prism grammars.
  12411. *
  12412. * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
  12413. * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
  12414. *
  12415. * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
  12416. * @param {Grammar} redef The new tokens to append.
  12417. * @returns {Grammar} The new language created.
  12418. * @public
  12419. * @example
  12420. * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
  12421. * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
  12422. * // at its original position
  12423. * 'comment': { ... },
  12424. * // CSS doesn't have a 'color' token, so this token will be appended
  12425. * 'color': /\b(?:red|green|blue)\b/
  12426. * });
  12427. */
  12428. extend: function(id, redef) {
  12429. var lang2 = _.util.clone(_.languages[id]);
  12430. for (var key in redef)
  12431. lang2[key] = redef[key];
  12432. return lang2;
  12433. },
  12434. /**
  12435. * Inserts tokens _before_ another token in a language definition or any other grammar.
  12436. *
  12437. * ## Usage
  12438. *
  12439. * This helper method makes it easy to modify existing languages. For example, the CSS language definition
  12440. * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
  12441. * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
  12442. * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
  12443. * this:
  12444. *
  12445. * ```js
  12446. * Prism.languages.markup.style = {
  12447. * // token
  12448. * };
  12449. * ```
  12450. *
  12451. * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
  12452. * before existing tokens. For the CSS example above, you would use it like this:
  12453. *
  12454. * ```js
  12455. * Prism.languages.insertBefore('markup', 'cdata', {
  12456. * 'style': {
  12457. * // token
  12458. * }
  12459. * });
  12460. * ```
  12461. *
  12462. * ## Special cases
  12463. *
  12464. * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
  12465. * will be ignored.
  12466. *
  12467. * This behavior can be used to insert tokens after `before`:
  12468. *
  12469. * ```js
  12470. * Prism.languages.insertBefore('markup', 'comment', {
  12471. * 'comment': Prism.languages.markup.comment,
  12472. * // tokens after 'comment'
  12473. * });
  12474. * ```
  12475. *
  12476. * ## Limitations
  12477. *
  12478. * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
  12479. * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
  12480. * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
  12481. * deleting properties which is necessary to insert at arbitrary positions.
  12482. *
  12483. * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
  12484. * Instead, it will create a new object and replace all references to the target object with the new one. This
  12485. * can be done without temporarily deleting properties, so the iteration order is well-defined.
  12486. *
  12487. * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
  12488. * you hold the target object in a variable, then the value of the variable will not change.
  12489. *
  12490. * ```js
  12491. * var oldMarkup = Prism.languages.markup;
  12492. * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
  12493. *
  12494. * assert(oldMarkup !== Prism.languages.markup);
  12495. * assert(newMarkup === Prism.languages.markup);
  12496. * ```
  12497. *
  12498. * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
  12499. * object to be modified.
  12500. * @param {string} before The key to insert before.
  12501. * @param {Grammar} insert An object containing the key-value pairs to be inserted.
  12502. * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
  12503. * object to be modified.
  12504. *
  12505. * Defaults to `Prism.languages`.
  12506. * @returns {Grammar} The new grammar object.
  12507. * @public
  12508. */
  12509. insertBefore: function(inside, before, insert, root2) {
  12510. root2 = root2 || /** @type {any} */
  12511. _.languages;
  12512. var grammar = root2[inside], ret = {};
  12513. for (var token2 in grammar)
  12514. if (grammar.hasOwnProperty(token2)) {
  12515. if (token2 == before)
  12516. for (var newToken in insert)
  12517. insert.hasOwnProperty(newToken) && (ret[newToken] = insert[newToken]);
  12518. insert.hasOwnProperty(token2) || (ret[token2] = grammar[token2]);
  12519. }
  12520. var old = root2[inside];
  12521. return root2[inside] = ret, _.languages.DFS(_.languages, function(key, value) {
  12522. value === old && key != inside && (this[key] = ret);
  12523. }), ret;
  12524. },
  12525. // Traverse a language definition with Depth First Search
  12526. DFS: function DFS(o, callback, type5, visited) {
  12527. visited = visited || {};
  12528. var objId = _.util.objId;
  12529. for (var i in o)
  12530. if (o.hasOwnProperty(i)) {
  12531. callback.call(o, i, o[i], type5 || i);
  12532. var property = o[i], propertyType = _.util.type(property);
  12533. propertyType === "Object" && !visited[objId(property)] ? (visited[objId(property)] = !0, DFS(property, callback, null, visited)) : propertyType === "Array" && !visited[objId(property)] && (visited[objId(property)] = !0, DFS(property, callback, i, visited));
  12534. }
  12535. }
  12536. },
  12537. plugins: {},
  12538. /**
  12539. * This is the most high-level function in Prism’s API.
  12540. * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
  12541. * each one of them.
  12542. *
  12543. * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
  12544. *
  12545. * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
  12546. * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
  12547. * @memberof Prism
  12548. * @public
  12549. */
  12550. highlightAll: function(async, callback) {
  12551. _.highlightAllUnder(document, async, callback);
  12552. },
  12553. /**
  12554. * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
  12555. * {@link Prism.highlightElement} on each one of them.
  12556. *
  12557. * The following hooks will be run:
  12558. * 1. `before-highlightall`
  12559. * 2. `before-all-elements-highlight`
  12560. * 3. All hooks of {@link Prism.highlightElement} for each element.
  12561. *
  12562. * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
  12563. * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
  12564. * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
  12565. * @memberof Prism
  12566. * @public
  12567. */
  12568. highlightAllUnder: function(container, async, callback) {
  12569. var env = {
  12570. callback,
  12571. container,
  12572. selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
  12573. };
  12574. _.hooks.run("before-highlightall", env), env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)), _.hooks.run("before-all-elements-highlight", env);
  12575. for (var i = 0, element; element = env.elements[i++]; )
  12576. _.highlightElement(element, async === !0, env.callback);
  12577. },
  12578. /**
  12579. * Highlights the code inside a single element.
  12580. *
  12581. * The following hooks will be run:
  12582. * 1. `before-sanity-check`
  12583. * 2. `before-highlight`
  12584. * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
  12585. * 4. `before-insert`
  12586. * 5. `after-highlight`
  12587. * 6. `complete`
  12588. *
  12589. * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
  12590. * the element's language.
  12591. *
  12592. * @param {Element} element The element containing the code.
  12593. * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
  12594. * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
  12595. * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
  12596. * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
  12597. *
  12598. * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
  12599. * asynchronous highlighting to work. You can build your own bundle on the
  12600. * [Download page](https://prismjs.com/download.html).
  12601. * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
  12602. * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
  12603. * @memberof Prism
  12604. * @public
  12605. */
  12606. highlightElement: function(element, async, callback) {
  12607. var language = _.util.getLanguage(element), grammar = _.languages[language];
  12608. _.util.setLanguage(element, language);
  12609. var parent = element.parentElement;
  12610. parent && parent.nodeName.toLowerCase() === "pre" && _.util.setLanguage(parent, language);
  12611. var code = element.textContent, env = {
  12612. element,
  12613. language,
  12614. grammar,
  12615. code
  12616. };
  12617. function insertHighlightedCode(highlightedCode) {
  12618. env.highlightedCode = highlightedCode, _.hooks.run("before-insert", env), env.element.innerHTML = env.highlightedCode, _.hooks.run("after-highlight", env), _.hooks.run("complete", env), callback && callback.call(env.element);
  12619. }
  12620. if (_.hooks.run("before-sanity-check", env), parent = env.element.parentElement, parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex") && parent.setAttribute("tabindex", "0"), !env.code) {
  12621. _.hooks.run("complete", env), callback && callback.call(env.element);
  12622. return;
  12623. }
  12624. if (_.hooks.run("before-highlight", env), !env.grammar) {
  12625. insertHighlightedCode(_.util.encode(env.code));
  12626. return;
  12627. }
  12628. if (async && _self2.Worker) {
  12629. var worker = new Worker(_.filename);
  12630. worker.onmessage = function(evt) {
  12631. insertHighlightedCode(evt.data);
  12632. }, worker.postMessage(JSON.stringify({
  12633. language: env.language,
  12634. code: env.code,
  12635. immediateClose: !0
  12636. }));
  12637. } else
  12638. insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
  12639. },
  12640. /**
  12641. * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
  12642. * and the language definitions to use, and returns a string with the HTML produced.
  12643. *
  12644. * The following hooks will be run:
  12645. * 1. `before-tokenize`
  12646. * 2. `after-tokenize`
  12647. * 3. `wrap`: On each {@link Token}.
  12648. *
  12649. * @param {string} text A string with the code to be highlighted.
  12650. * @param {Grammar} grammar An object containing the tokens to use.
  12651. *
  12652. * Usually a language definition like `Prism.languages.markup`.
  12653. * @param {string} language The name of the language definition passed to `grammar`.
  12654. * @returns {string} The highlighted HTML.
  12655. * @memberof Prism
  12656. * @public
  12657. * @example
  12658. * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
  12659. */
  12660. highlight: function(text, grammar, language) {
  12661. var env = {
  12662. code: text,
  12663. grammar,
  12664. language
  12665. };
  12666. if (_.hooks.run("before-tokenize", env), !env.grammar)
  12667. throw new Error('The language "' + env.language + '" has no grammar.');
  12668. return env.tokens = _.tokenize(env.code, env.grammar), _.hooks.run("after-tokenize", env), Token.stringify(_.util.encode(env.tokens), env.language);
  12669. },
  12670. /**
  12671. * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
  12672. * and the language definitions to use, and returns an array with the tokenized code.
  12673. *
  12674. * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
  12675. *
  12676. * This method could be useful in other contexts as well, as a very crude parser.
  12677. *
  12678. * @param {string} text A string with the code to be highlighted.
  12679. * @param {Grammar} grammar An object containing the tokens to use.
  12680. *
  12681. * Usually a language definition like `Prism.languages.markup`.
  12682. * @returns {TokenStream} An array of strings and tokens, a token stream.
  12683. * @memberof Prism
  12684. * @public
  12685. * @example
  12686. * let code = `var foo = 0;`;
  12687. * let tokens = Prism.tokenize(code, Prism.languages.javascript);
  12688. * tokens.forEach(token => {
  12689. * if (token instanceof Prism.Token && token.type === 'number') {
  12690. * console.log(`Found numeric literal: ${token.content}`);
  12691. * }
  12692. * });
  12693. */
  12694. tokenize: function(text, grammar) {
  12695. var rest = grammar.rest;
  12696. if (rest) {
  12697. for (var token2 in rest)
  12698. grammar[token2] = rest[token2];
  12699. delete grammar.rest;
  12700. }
  12701. var tokenList = new LinkedList();
  12702. return addAfter(tokenList, tokenList.head, text), matchGrammar(text, tokenList, grammar, tokenList.head, 0), toArray2(tokenList);
  12703. },
  12704. /**
  12705. * @namespace
  12706. * @memberof Prism
  12707. * @public
  12708. */
  12709. hooks: {
  12710. all: {},
  12711. /**
  12712. * Adds the given callback to the list of callbacks for the given hook.
  12713. *
  12714. * The callback will be invoked when the hook it is registered for is run.
  12715. * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
  12716. *
  12717. * One callback function can be registered to multiple hooks and the same hook multiple times.
  12718. *
  12719. * @param {string} name The name of the hook.
  12720. * @param {HookCallback} callback The callback function which is given environment variables.
  12721. * @public
  12722. */
  12723. add: function(name, callback) {
  12724. var hooks = _.hooks.all;
  12725. hooks[name] = hooks[name] || [], hooks[name].push(callback);
  12726. },
  12727. /**
  12728. * Runs a hook invoking all registered callbacks with the given environment variables.
  12729. *
  12730. * Callbacks will be invoked synchronously and in the order in which they were registered.
  12731. *
  12732. * @param {string} name The name of the hook.
  12733. * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
  12734. * @public
  12735. */
  12736. run: function(name, env) {
  12737. var callbacks = _.hooks.all[name];
  12738. if (!(!callbacks || !callbacks.length))
  12739. for (var i = 0, callback; callback = callbacks[i++]; )
  12740. callback(env);
  12741. }
  12742. },
  12743. Token
  12744. };
  12745. _self2.Prism = _;
  12746. function Token(type5, content, alias, matchedStr) {
  12747. this.type = type5, this.content = content, this.alias = alias, this.length = (matchedStr || "").length | 0;
  12748. }
  12749. Token.stringify = function stringify8(o, language) {
  12750. if (typeof o == "string")
  12751. return o;
  12752. if (Array.isArray(o)) {
  12753. var s3 = "";
  12754. return o.forEach(function(e) {
  12755. s3 += stringify8(e, language);
  12756. }), s3;
  12757. }
  12758. var env = {
  12759. type: o.type,
  12760. content: stringify8(o.content, language),
  12761. tag: "span",
  12762. classes: ["token", o.type],
  12763. attributes: {},
  12764. language
  12765. }, aliases2 = o.alias;
  12766. aliases2 && (Array.isArray(aliases2) ? Array.prototype.push.apply(env.classes, aliases2) : env.classes.push(aliases2)), _.hooks.run("wrap", env);
  12767. var attributes = "";
  12768. for (var name in env.attributes)
  12769. attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, "&quot;") + '"';
  12770. return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes + ">" + env.content + "</" + env.tag + ">";
  12771. };
  12772. function matchPattern(pattern, pos, text, lookbehind) {
  12773. pattern.lastIndex = pos;
  12774. var match3 = pattern.exec(text);
  12775. if (match3 && lookbehind && match3[1]) {
  12776. var lookbehindLength = match3[1].length;
  12777. match3.index += lookbehindLength, match3[0] = match3[0].slice(lookbehindLength);
  12778. }
  12779. return match3;
  12780. }
  12781. function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
  12782. for (var token2 in grammar)
  12783. if (!(!grammar.hasOwnProperty(token2) || !grammar[token2])) {
  12784. var patterns = grammar[token2];
  12785. patterns = Array.isArray(patterns) ? patterns : [patterns];
  12786. for (var j = 0; j < patterns.length; ++j) {
  12787. if (rematch && rematch.cause == token2 + "," + j)
  12788. return;
  12789. var patternObj = patterns[j], inside = patternObj.inside, lookbehind = !!patternObj.lookbehind, greedy = !!patternObj.greedy, alias = patternObj.alias;
  12790. if (greedy && !patternObj.pattern.global) {
  12791. var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
  12792. patternObj.pattern = RegExp(patternObj.pattern.source, flags + "g");
  12793. }
  12794. for (var pattern = patternObj.pattern || patternObj, currentNode = startNode.next, pos = startPos; currentNode !== tokenList.tail && !(rematch && pos >= rematch.reach); pos += currentNode.value.length, currentNode = currentNode.next) {
  12795. var str2 = currentNode.value;
  12796. if (tokenList.length > text.length)
  12797. return;
  12798. if (!(str2 instanceof Token)) {
  12799. var removeCount = 1, match3;
  12800. if (greedy) {
  12801. if (match3 = matchPattern(pattern, pos, text, lookbehind), !match3 || match3.index >= text.length)
  12802. break;
  12803. var from2 = match3.index, to = match3.index + match3[0].length, p3 = pos;
  12804. for (p3 += currentNode.value.length; from2 >= p3; )
  12805. currentNode = currentNode.next, p3 += currentNode.value.length;
  12806. if (p3 -= currentNode.value.length, pos = p3, currentNode.value instanceof Token)
  12807. continue;
  12808. for (var k = currentNode; k !== tokenList.tail && (p3 < to || typeof k.value == "string"); k = k.next)
  12809. removeCount++, p3 += k.value.length;
  12810. removeCount--, str2 = text.slice(pos, p3), match3.index -= pos;
  12811. } else if (match3 = matchPattern(pattern, 0, str2, lookbehind), !match3)
  12812. continue;
  12813. var from2 = match3.index, matchStr = match3[0], before = str2.slice(0, from2), after = str2.slice(from2 + matchStr.length), reach = pos + str2.length;
  12814. rematch && reach > rematch.reach && (rematch.reach = reach);
  12815. var removeFrom = currentNode.prev;
  12816. before && (removeFrom = addAfter(tokenList, removeFrom, before), pos += before.length), removeRange(tokenList, removeFrom, removeCount);
  12817. var wrapped = new Token(token2, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
  12818. if (currentNode = addAfter(tokenList, removeFrom, wrapped), after && addAfter(tokenList, currentNode, after), removeCount > 1) {
  12819. var nestedRematch = {
  12820. cause: token2 + "," + j,
  12821. reach
  12822. };
  12823. matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch), rematch && nestedRematch.reach > rematch.reach && (rematch.reach = nestedRematch.reach);
  12824. }
  12825. }
  12826. }
  12827. }
  12828. }
  12829. }
  12830. function LinkedList() {
  12831. var head2 = { value: null, prev: null, next: null }, tail2 = { value: null, prev: head2, next: null };
  12832. head2.next = tail2, this.head = head2, this.tail = tail2, this.length = 0;
  12833. }
  12834. function addAfter(list, node2, value) {
  12835. var next2 = node2.next, newNode = { value, prev: node2, next: next2 };
  12836. return node2.next = newNode, next2.prev = newNode, list.length++, newNode;
  12837. }
  12838. function removeRange(list, node2, count) {
  12839. for (var next2 = node2.next, i = 0; i < count && next2 !== list.tail; i++)
  12840. next2 = next2.next;
  12841. node2.next = next2, next2.prev = node2, list.length -= i;
  12842. }
  12843. function toArray2(list) {
  12844. for (var array = [], node2 = list.head.next; node2 !== list.tail; )
  12845. array.push(node2.value), node2 = node2.next;
  12846. return array;
  12847. }
  12848. if (!_self2.document)
  12849. return _self2.addEventListener && (_.disableWorkerMessageHandler || _self2.addEventListener("message", function(evt) {
  12850. var message = JSON.parse(evt.data), lang2 = message.language, code = message.code, immediateClose = message.immediateClose;
  12851. _self2.postMessage(_.highlight(code, _.languages[lang2], lang2)), immediateClose && _self2.close();
  12852. }, !1)), _;
  12853. var script = _.util.currentScript();
  12854. script && (_.filename = script.src, script.hasAttribute("data-manual") && (_.manual = !0));
  12855. function highlightAutomaticallyCallback() {
  12856. _.manual || _.highlightAll();
  12857. }
  12858. if (!_.manual) {
  12859. var readyState = document.readyState;
  12860. readyState === "loading" || readyState === "interactive" && script && script.defer ? document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback) : window.requestAnimationFrame ? window.requestAnimationFrame(highlightAutomaticallyCallback) : window.setTimeout(highlightAutomaticallyCallback, 16);
  12861. }
  12862. return _;
  12863. })(_self);
  12864. typeof module2 < "u" && module2.exports && (module2.exports = Prism);
  12865. typeof global < "u" && (global.Prism = Prism);
  12866. }
  12867. });
  12868. // ../../node_modules/refractor/lang/clike.js
  12869. var require_clike = __commonJS({
  12870. "../../node_modules/refractor/lang/clike.js"(exports, module2) {
  12871. "use strict";
  12872. module2.exports = clike;
  12873. clike.displayName = "clike";
  12874. clike.aliases = [];
  12875. function clike(Prism) {
  12876. Prism.languages.clike = {
  12877. comment: [
  12878. {
  12879. pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
  12880. lookbehind: !0,
  12881. greedy: !0
  12882. },
  12883. {
  12884. pattern: /(^|[^\\:])\/\/.*/,
  12885. lookbehind: !0,
  12886. greedy: !0
  12887. }
  12888. ],
  12889. string: {
  12890. pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
  12891. greedy: !0
  12892. },
  12893. "class-name": {
  12894. pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
  12895. lookbehind: !0,
  12896. inside: {
  12897. punctuation: /[.\\]/
  12898. }
  12899. },
  12900. keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
  12901. boolean: /\b(?:false|true)\b/,
  12902. function: /\b\w+(?=\()/,
  12903. number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
  12904. operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
  12905. punctuation: /[{}[\];(),.:]/
  12906. };
  12907. }
  12908. }
  12909. });
  12910. // ../../node_modules/refractor/lang/javascript.js
  12911. var require_javascript = __commonJS({
  12912. "../../node_modules/refractor/lang/javascript.js"(exports, module2) {
  12913. "use strict";
  12914. module2.exports = javascript;
  12915. javascript.displayName = "javascript";
  12916. javascript.aliases = ["js"];
  12917. function javascript(Prism) {
  12918. Prism.languages.javascript = Prism.languages.extend("clike", {
  12919. "class-name": [
  12920. Prism.languages.clike["class-name"],
  12921. {
  12922. pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
  12923. lookbehind: !0
  12924. }
  12925. ],
  12926. keyword: [
  12927. {
  12928. pattern: /((?:^|\})\s*)catch\b/,
  12929. lookbehind: !0
  12930. },
  12931. {
  12932. pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
  12933. lookbehind: !0
  12934. }
  12935. ],
  12936. // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
  12937. function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
  12938. number: {
  12939. pattern: RegExp(
  12940. /(^|[^\w$])/.source + "(?:" + // constant
  12941. (/NaN|Infinity/.source + "|" + // binary integer
  12942. /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
  12943. /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
  12944. /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
  12945. /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
  12946. /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
  12947. ),
  12948. lookbehind: !0
  12949. },
  12950. operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
  12951. }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", {
  12952. regex: {
  12953. // eslint-disable-next-line regexp/no-dupe-characters-character-class
  12954. pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
  12955. lookbehind: !0,
  12956. greedy: !0,
  12957. inside: {
  12958. "regex-source": {
  12959. pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
  12960. lookbehind: !0,
  12961. alias: "language-regex",
  12962. inside: Prism.languages.regex
  12963. },
  12964. "regex-delimiter": /^\/|\/$/,
  12965. "regex-flags": /^[a-z]+$/
  12966. }
  12967. },
  12968. // This must be declared before keyword because we use "function" inside the look-forward
  12969. "function-variable": {
  12970. pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
  12971. alias: "function"
  12972. },
  12973. parameter: [
  12974. {
  12975. pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
  12976. lookbehind: !0,
  12977. inside: Prism.languages.javascript
  12978. },
  12979. {
  12980. pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
  12981. lookbehind: !0,
  12982. inside: Prism.languages.javascript
  12983. },
  12984. {
  12985. pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
  12986. lookbehind: !0,
  12987. inside: Prism.languages.javascript
  12988. },
  12989. {
  12990. pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
  12991. lookbehind: !0,
  12992. inside: Prism.languages.javascript
  12993. }
  12994. ],
  12995. constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
  12996. }), Prism.languages.insertBefore("javascript", "string", {
  12997. hashbang: {
  12998. pattern: /^#!.*/,
  12999. greedy: !0,
  13000. alias: "comment"
  13001. },
  13002. "template-string": {
  13003. pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
  13004. greedy: !0,
  13005. inside: {
  13006. "template-punctuation": {
  13007. pattern: /^`|`$/,
  13008. alias: "string"
  13009. },
  13010. interpolation: {
  13011. pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
  13012. lookbehind: !0,
  13013. inside: {
  13014. "interpolation-punctuation": {
  13015. pattern: /^\$\{|\}$/,
  13016. alias: "punctuation"
  13017. },
  13018. rest: Prism.languages.javascript
  13019. }
  13020. },
  13021. string: /[\s\S]+/
  13022. }
  13023. },
  13024. "string-property": {
  13025. pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
  13026. lookbehind: !0,
  13027. greedy: !0,
  13028. alias: "property"
  13029. }
  13030. }), Prism.languages.insertBefore("javascript", "operator", {
  13031. "literal-property": {
  13032. pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
  13033. lookbehind: !0,
  13034. alias: "property"
  13035. }
  13036. }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(
  13037. /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
  13038. "javascript"
  13039. )), Prism.languages.js = Prism.languages.javascript;
  13040. }
  13041. }
  13042. });
  13043. // ../../node_modules/refractor/core.js
  13044. var require_core = __commonJS({
  13045. "../../node_modules/refractor/core.js"(exports, module2) {
  13046. "use strict";
  13047. var ctx = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, restore = capture();
  13048. ctx.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
  13049. var h3 = require_hastscript(), decode = require_parse_entities(), Prism = require_prism_core(), markup2 = require_markup(), css3 = require_css(), clike = require_clike(), js = require_javascript();
  13050. restore();
  13051. var own = {}.hasOwnProperty;
  13052. function Refractor() {
  13053. }
  13054. Refractor.prototype = Prism;
  13055. var refract = new Refractor();
  13056. module2.exports = refract;
  13057. refract.highlight = highlight;
  13058. refract.register = register;
  13059. refract.alias = alias;
  13060. refract.registered = registered;
  13061. refract.listLanguages = listLanguages;
  13062. register(markup2);
  13063. register(css3);
  13064. register(clike);
  13065. register(js);
  13066. refract.util.encode = encode2;
  13067. refract.Token.stringify = stringify8;
  13068. function register(grammar) {
  13069. if (typeof grammar != "function" || !grammar.displayName)
  13070. throw new Error("Expected `function` for `grammar`, got `" + grammar + "`");
  13071. refract.languages[grammar.displayName] === void 0 && grammar(refract);
  13072. }
  13073. function alias(name, alias2) {
  13074. var languages2 = refract.languages, map2 = name, key, list, length2, index4;
  13075. alias2 && (map2 = {}, map2[name] = alias2);
  13076. for (key in map2)
  13077. for (list = map2[key], list = typeof list == "string" ? [list] : list, length2 = list.length, index4 = -1; ++index4 < length2; )
  13078. languages2[list[index4]] = languages2[key];
  13079. }
  13080. function highlight(value, name) {
  13081. var sup = Prism.highlight, grammar;
  13082. if (typeof value != "string")
  13083. throw new Error("Expected `string` for `value`, got `" + value + "`");
  13084. if (refract.util.type(name) === "Object")
  13085. grammar = name, name = null;
  13086. else {
  13087. if (typeof name != "string")
  13088. throw new Error("Expected `string` for `name`, got `" + name + "`");
  13089. if (own.call(refract.languages, name))
  13090. grammar = refract.languages[name];
  13091. else
  13092. throw new Error("Unknown language: `" + name + "` is not registered");
  13093. }
  13094. return sup.call(this, value, grammar, name);
  13095. }
  13096. function registered(language) {
  13097. if (typeof language != "string")
  13098. throw new Error("Expected `string` for `language`, got `" + language + "`");
  13099. return own.call(refract.languages, language);
  13100. }
  13101. function listLanguages() {
  13102. var languages2 = refract.languages, list = [], language;
  13103. for (language in languages2)
  13104. own.call(languages2, language) && typeof languages2[language] == "object" && list.push(language);
  13105. return list;
  13106. }
  13107. function stringify8(value, language, parent) {
  13108. var env;
  13109. return typeof value == "string" ? { type: "text", value } : refract.util.type(value) === "Array" ? stringifyAll(value, language) : (env = {
  13110. type: value.type,
  13111. content: refract.Token.stringify(value.content, language, parent),
  13112. tag: "span",
  13113. classes: ["token", value.type],
  13114. attributes: {},
  13115. language,
  13116. parent
  13117. }, value.alias && (env.classes = env.classes.concat(value.alias)), refract.hooks.run("wrap", env), h3(
  13118. env.tag + "." + env.classes.join("."),
  13119. attributes(env.attributes),
  13120. env.content
  13121. ));
  13122. }
  13123. function stringifyAll(values, language) {
  13124. for (var result = [], length2 = values.length, index4 = -1, value; ++index4 < length2; )
  13125. value = values[index4], value !== "" && value !== null && value !== void 0 && result.push(value);
  13126. for (index4 = -1, length2 = result.length; ++index4 < length2; )
  13127. value = result[index4], result[index4] = refract.Token.stringify(value, language, result);
  13128. return result;
  13129. }
  13130. function encode2(tokens2) {
  13131. return tokens2;
  13132. }
  13133. function attributes(attrs) {
  13134. var key;
  13135. for (key in attrs)
  13136. attrs[key] = decode(attrs[key]);
  13137. return attrs;
  13138. }
  13139. function capture() {
  13140. var defined = "Prism" in ctx, current = defined ? ctx.Prism : void 0;
  13141. return restore2;
  13142. function restore2() {
  13143. defined ? ctx.Prism = current : delete ctx.Prism, defined = void 0, current = void 0;
  13144. }
  13145. }
  13146. }
  13147. });
  13148. // ../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js
  13149. var import_core, SyntaxHighlighter, prism_light_default, init_prism_light = __esm({
  13150. "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js"() {
  13151. init_highlight();
  13152. import_core = __toESM(require_core()), SyntaxHighlighter = highlight_default(import_core.default, {});
  13153. SyntaxHighlighter.registerLanguage = function(_, language) {
  13154. return import_core.default.register(language);
  13155. };
  13156. SyntaxHighlighter.alias = function(name, aliases2) {
  13157. return import_core.default.alias(name, aliases2);
  13158. };
  13159. prism_light_default = SyntaxHighlighter;
  13160. }
  13161. });
  13162. // src/components/components/ActionBar/ActionBar.tsx
  13163. var import_react10, Container, ActionButton, ActionBar, init_ActionBar = __esm({
  13164. "src/components/components/ActionBar/ActionBar.tsx"() {
  13165. "use strict";
  13166. import_react10 = __toESM(require_react(), 1);
  13167. init_theming();
  13168. Container = styled.div(({ theme: theme3, $flexLayout = !1 }) => [
  13169. {
  13170. background: theme3.background.content
  13171. },
  13172. $flexLayout ? {
  13173. display: "inline-flex",
  13174. marginInlineStart: "auto",
  13175. alignSelf: "flex-end"
  13176. } : {
  13177. position: "absolute",
  13178. bottom: 0,
  13179. right: 0,
  13180. maxWidth: "100%",
  13181. display: "flex",
  13182. zIndex: 1
  13183. }
  13184. ]), ActionButton = styled.button(
  13185. ({ theme: theme3 }) => ({
  13186. margin: 0,
  13187. border: "0 none",
  13188. padding: "4px 10px",
  13189. cursor: "pointer",
  13190. display: "flex",
  13191. alignItems: "center",
  13192. color: theme3.color.defaultText,
  13193. background: theme3.background.content,
  13194. fontSize: 12,
  13195. lineHeight: "16px",
  13196. fontFamily: theme3.typography.fonts.base,
  13197. fontWeight: theme3.typography.weight.bold,
  13198. borderTop: `1px solid ${theme3.appBorderColor}`,
  13199. borderLeft: `1px solid ${theme3.appBorderColor}`,
  13200. marginLeft: -1,
  13201. borderRadius: "4px 0 0 0",
  13202. "&:not(:last-child)": { borderRight: `1px solid ${theme3.appBorderColor}` },
  13203. "& + *": {
  13204. borderLeft: `1px solid ${theme3.appBorderColor}`,
  13205. borderRadius: 0
  13206. },
  13207. "&:focus": {
  13208. boxShadow: `${theme3.color.secondary} 0 -3px 0 0 inset`,
  13209. outline: "0 none",
  13210. "@media (forced-colors: active)": {
  13211. outline: "1px solid highlight"
  13212. }
  13213. }
  13214. }),
  13215. ({ disabled }) => disabled && {
  13216. cursor: "not-allowed",
  13217. opacity: 0.5
  13218. }
  13219. );
  13220. ActionButton.displayName = "ActionButton";
  13221. ActionBar = ({ actionItems, flexLayout = !1, ...props }) => import_react10.default.createElement(Container, { ...props, $flexLayout: flexLayout }, actionItems.map(({ title, className, onClick, disabled }, index4) => import_react10.default.createElement(ActionButton, { key: index4, className, onClick, disabled: !!disabled }, title)));
  13222. }
  13223. });
  13224. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
  13225. function setRef(ref, value) {
  13226. typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
  13227. }
  13228. function composeRefs(...refs) {
  13229. return (node2) => refs.forEach((ref) => setRef(ref, node2));
  13230. }
  13231. function useComposedRefs(...refs) {
  13232. return React9.useCallback(composeRefs(...refs), refs);
  13233. }
  13234. var React9, init_dist2 = __esm({
  13235. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"() {
  13236. React9 = __toESM(require_react(), 1);
  13237. }
  13238. });
  13239. // ../../node_modules/react/cjs/react-jsx-runtime.production.min.js
  13240. var require_react_jsx_runtime_production_min = __commonJS({
  13241. "../../node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
  13242. "use strict";
  13243. var f4 = require_react(), k = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.fragment"), m3 = Object.prototype.hasOwnProperty, n = f4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p3 = { key: !0, ref: !0, __self: !0, __source: !0 };
  13244. function q(c, a3, g2) {
  13245. var b, d = {}, e = null, h3 = null;
  13246. g2 !== void 0 && (e = "" + g2), a3.key !== void 0 && (e = "" + a3.key), a3.ref !== void 0 && (h3 = a3.ref);
  13247. for (b in a3) m3.call(a3, b) && !p3.hasOwnProperty(b) && (d[b] = a3[b]);
  13248. if (c && c.defaultProps) for (b in a3 = c.defaultProps, a3) d[b] === void 0 && (d[b] = a3[b]);
  13249. return { $$typeof: k, type: c, key: e, ref: h3, props: d, _owner: n.current };
  13250. }
  13251. exports.Fragment = l;
  13252. exports.jsx = q;
  13253. exports.jsxs = q;
  13254. }
  13255. });
  13256. // ../../node_modules/react/jsx-runtime.js
  13257. var require_jsx_runtime = __commonJS({
  13258. "../../node_modules/react/jsx-runtime.js"(exports, module2) {
  13259. "use strict";
  13260. module2.exports = require_react_jsx_runtime_production_min();
  13261. }
  13262. });
  13263. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs
  13264. function isSlottable(child) {
  13265. return React10.isValidElement(child) && child.type === Slottable;
  13266. }
  13267. function mergeProps(slotProps, childProps) {
  13268. let overrideProps = { ...childProps };
  13269. for (let propName in childProps) {
  13270. let slotPropValue = slotProps[propName], childPropValue = childProps[propName];
  13271. /^on[A-Z]/.test(propName) ? slotPropValue && childPropValue ? overrideProps[propName] = (...args) => {
  13272. childPropValue(...args), slotPropValue(...args);
  13273. } : slotPropValue && (overrideProps[propName] = slotPropValue) : propName === "style" ? overrideProps[propName] = { ...slotPropValue, ...childPropValue } : propName === "className" && (overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" "));
  13274. }
  13275. return { ...slotProps, ...overrideProps };
  13276. }
  13277. function getElementRef(element) {
  13278. let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
  13279. return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
  13280. }
  13281. var React10, import_jsx_runtime, Slot, SlotClone, Slottable, init_dist3 = __esm({
  13282. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs"() {
  13283. React10 = __toESM(require_react(), 1);
  13284. init_dist2();
  13285. import_jsx_runtime = __toESM(require_jsx_runtime(), 1), Slot = React10.forwardRef((props, forwardedRef) => {
  13286. let { children, ...slotProps } = props, childrenArray = React10.Children.toArray(children), slottable = childrenArray.find(isSlottable);
  13287. if (slottable) {
  13288. let newElement = slottable.props.children, newChildren = childrenArray.map((child) => child === slottable ? React10.Children.count(newElement) > 1 ? React10.Children.only(null) : React10.isValidElement(newElement) ? newElement.props.children : null : child);
  13289. return (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React10.isValidElement(newElement) ? React10.cloneElement(newElement, void 0, newChildren) : null });
  13290. }
  13291. return (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
  13292. });
  13293. Slot.displayName = "Slot";
  13294. SlotClone = React10.forwardRef((props, forwardedRef) => {
  13295. let { children, ...slotProps } = props;
  13296. if (React10.isValidElement(children)) {
  13297. let childrenRef = getElementRef(children);
  13298. return React10.cloneElement(children, {
  13299. ...mergeProps(slotProps, children.props),
  13300. // @ts-ignore
  13301. ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
  13302. });
  13303. }
  13304. return React10.Children.count(children) > 1 ? React10.Children.only(null) : null;
  13305. });
  13306. SlotClone.displayName = "SlotClone";
  13307. Slottable = ({ children }) => (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
  13308. }
  13309. });
  13310. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs
  13311. var React11, ReactDOM, import_jsx_runtime2, NODES, Primitive, init_dist4 = __esm({
  13312. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs"() {
  13313. React11 = __toESM(require_react(), 1), ReactDOM = __toESM(require_react_dom(), 1);
  13314. init_dist3();
  13315. import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1), NODES = [
  13316. "a",
  13317. "button",
  13318. "div",
  13319. "form",
  13320. "h2",
  13321. "h3",
  13322. "img",
  13323. "input",
  13324. "label",
  13325. "li",
  13326. "nav",
  13327. "ol",
  13328. "p",
  13329. "span",
  13330. "svg",
  13331. "ul"
  13332. ], Primitive = NODES.reduce((primitive, node2) => {
  13333. let Node2 = React11.forwardRef((props, forwardedRef) => {
  13334. let { asChild, ...primitiveProps } = props, Comp2 = asChild ? Slot : node2;
  13335. return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), (0, import_jsx_runtime2.jsx)(Comp2, { ...primitiveProps, ref: forwardedRef });
  13336. });
  13337. return Node2.displayName = `Primitive.${node2}`, { ...primitive, [node2]: Node2 };
  13338. }, {});
  13339. }
  13340. });
  13341. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
  13342. var React12, useLayoutEffect22, init_dist5 = __esm({
  13343. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"() {
  13344. React12 = __toESM(require_react(), 1), useLayoutEffect22 = globalThis?.document ? React12.useLayoutEffect : () => {
  13345. };
  13346. }
  13347. });
  13348. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs
  13349. function useStateMachine(initialState2, machine) {
  13350. return React13.useReducer((state3, event) => machine[state3][event] ?? state3, initialState2);
  13351. }
  13352. function usePresence(present) {
  13353. let [node2, setNode] = React22.useState(), stylesRef = React22.useRef({}), prevPresentRef = React22.useRef(present), prevAnimationNameRef = React22.useRef("none"), initialState2 = present ? "mounted" : "unmounted", [state3, send] = useStateMachine(initialState2, {
  13354. mounted: {
  13355. UNMOUNT: "unmounted",
  13356. ANIMATION_OUT: "unmountSuspended"
  13357. },
  13358. unmountSuspended: {
  13359. MOUNT: "mounted",
  13360. ANIMATION_END: "unmounted"
  13361. },
  13362. unmounted: {
  13363. MOUNT: "mounted"
  13364. }
  13365. });
  13366. return React22.useEffect(() => {
  13367. let currentAnimationName = getAnimationName(stylesRef.current);
  13368. prevAnimationNameRef.current = state3 === "mounted" ? currentAnimationName : "none";
  13369. }, [state3]), useLayoutEffect22(() => {
  13370. let styles4 = stylesRef.current, wasPresent = prevPresentRef.current;
  13371. if (wasPresent !== present) {
  13372. let prevAnimationName = prevAnimationNameRef.current, currentAnimationName = getAnimationName(styles4);
  13373. present ? send("MOUNT") : currentAnimationName === "none" || styles4?.display === "none" ? send("UNMOUNT") : send(wasPresent && prevAnimationName !== currentAnimationName ? "ANIMATION_OUT" : "UNMOUNT"), prevPresentRef.current = present;
  13374. }
  13375. }, [present, send]), useLayoutEffect22(() => {
  13376. if (node2) {
  13377. let handleAnimationEnd = (event) => {
  13378. let isCurrentAnimation = getAnimationName(stylesRef.current).includes(event.animationName);
  13379. event.target === node2 && isCurrentAnimation && ReactDOM2.flushSync(() => send("ANIMATION_END"));
  13380. }, handleAnimationStart = (event) => {
  13381. event.target === node2 && (prevAnimationNameRef.current = getAnimationName(stylesRef.current));
  13382. };
  13383. return node2.addEventListener("animationstart", handleAnimationStart), node2.addEventListener("animationcancel", handleAnimationEnd), node2.addEventListener("animationend", handleAnimationEnd), () => {
  13384. node2.removeEventListener("animationstart", handleAnimationStart), node2.removeEventListener("animationcancel", handleAnimationEnd), node2.removeEventListener("animationend", handleAnimationEnd);
  13385. };
  13386. } else
  13387. send("ANIMATION_END");
  13388. }, [node2, send]), {
  13389. isPresent: ["mounted", "unmountSuspended"].includes(state3),
  13390. ref: React22.useCallback((node22) => {
  13391. node22 && (stylesRef.current = getComputedStyle(node22)), setNode(node22);
  13392. }, [])
  13393. };
  13394. }
  13395. function getAnimationName(styles4) {
  13396. return styles4?.animationName || "none";
  13397. }
  13398. function getElementRef2(element) {
  13399. let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
  13400. return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
  13401. }
  13402. var React22, ReactDOM2, React13, Presence, init_dist6 = __esm({
  13403. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs"() {
  13404. "use client";
  13405. React22 = __toESM(require_react(), 1), ReactDOM2 = __toESM(require_react_dom(), 1);
  13406. init_dist2();
  13407. init_dist5();
  13408. React13 = __toESM(require_react(), 1);
  13409. Presence = (props) => {
  13410. let { present, children } = props, presence = usePresence(present), child = typeof children == "function" ? children({ present: presence.isPresent }) : React22.Children.only(children), ref = useComposedRefs(presence.ref, getElementRef2(child));
  13411. return typeof children == "function" || presence.isPresent ? React22.cloneElement(child, { ref }) : null;
  13412. };
  13413. Presence.displayName = "Presence";
  13414. }
  13415. });
  13416. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs
  13417. function createContextScope(scopeName, createContextScopeDeps = []) {
  13418. let defaultContexts = [];
  13419. function createContext32(rootComponentName, defaultContext) {
  13420. let BaseContext = React14.createContext(defaultContext), index4 = defaultContexts.length;
  13421. defaultContexts = [...defaultContexts, defaultContext];
  13422. function Provider(props) {
  13423. let { scope: scope2, children, ...context } = props, Context = scope2?.[scopeName][index4] || BaseContext, value = React14.useMemo(() => context, Object.values(context));
  13424. return (0, import_jsx_runtime3.jsx)(Context.Provider, { value, children });
  13425. }
  13426. function useContext22(consumerName, scope2) {
  13427. let Context = scope2?.[scopeName][index4] || BaseContext, context = React14.useContext(Context);
  13428. if (context) return context;
  13429. if (defaultContext !== void 0) return defaultContext;
  13430. throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
  13431. }
  13432. return Provider.displayName = rootComponentName + "Provider", [Provider, useContext22];
  13433. }
  13434. let createScope = () => {
  13435. let scopeContexts = defaultContexts.map((defaultContext) => React14.createContext(defaultContext));
  13436. return function(scope2) {
  13437. let contexts = scope2?.[scopeName] || scopeContexts;
  13438. return React14.useMemo(
  13439. () => ({ [`__scope${scopeName}`]: { ...scope2, [scopeName]: contexts } }),
  13440. [scope2, contexts]
  13441. );
  13442. };
  13443. };
  13444. return createScope.scopeName = scopeName, [createContext32, composeContextScopes(createScope, ...createContextScopeDeps)];
  13445. }
  13446. function composeContextScopes(...scopes) {
  13447. let baseScope = scopes[0];
  13448. if (scopes.length === 1) return baseScope;
  13449. let createScope = () => {
  13450. let scopeHooks = scopes.map((createScope2) => ({
  13451. useScope: createScope2(),
  13452. scopeName: createScope2.scopeName
  13453. }));
  13454. return function(overrideScopes) {
  13455. let nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
  13456. let currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
  13457. return { ...nextScopes2, ...currentScope };
  13458. }, {});
  13459. return React14.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
  13460. };
  13461. };
  13462. return createScope.scopeName = baseScope.scopeName, createScope;
  13463. }
  13464. var React14, import_jsx_runtime3, init_dist7 = __esm({
  13465. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs"() {
  13466. React14 = __toESM(require_react(), 1), import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
  13467. }
  13468. });
  13469. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
  13470. function useCallbackRef(callback) {
  13471. let callbackRef = React15.useRef(callback);
  13472. return React15.useEffect(() => {
  13473. callbackRef.current = callback;
  13474. }), React15.useMemo(() => (...args) => callbackRef.current?.(...args), []);
  13475. }
  13476. var React15, init_dist8 = __esm({
  13477. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"() {
  13478. React15 = __toESM(require_react(), 1);
  13479. }
  13480. });
  13481. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs
  13482. function useDirection(localDir) {
  13483. let globalDir = React16.useContext(DirectionContext);
  13484. return localDir || globalDir || "ltr";
  13485. }
  13486. var React16, import_jsx_runtime4, DirectionContext, init_dist9 = __esm({
  13487. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs"() {
  13488. React16 = __toESM(require_react(), 1), import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1), DirectionContext = React16.createContext(void 0);
  13489. }
  13490. });
  13491. // ../../node_modules/@radix-ui/number/dist/index.mjs
  13492. function clamp(value, [min2, max2]) {
  13493. return Math.min(max2, Math.max(min2, value));
  13494. }
  13495. var init_dist10 = __esm({
  13496. "../../node_modules/@radix-ui/number/dist/index.mjs"() {
  13497. }
  13498. });
  13499. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs
  13500. function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = !0 } = {}) {
  13501. return function(event) {
  13502. if (originalEventHandler?.(event), checkForDefaultPrevented === !1 || !event.defaultPrevented)
  13503. return ourEventHandler?.(event);
  13504. };
  13505. }
  13506. var init_dist11 = __esm({
  13507. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs"() {
  13508. }
  13509. });
  13510. // ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs
  13511. function useStateMachine2(initialState2, machine) {
  13512. return React17.useReducer((state3, event) => machine[state3][event] ?? state3, initialState2);
  13513. }
  13514. function toInt(value) {
  13515. return value ? parseInt(value, 10) : 0;
  13516. }
  13517. function getThumbRatio(viewportSize, contentSize) {
  13518. let ratio = viewportSize / contentSize;
  13519. return isNaN(ratio) ? 0 : ratio;
  13520. }
  13521. function getThumbSize(sizes2) {
  13522. let ratio = getThumbRatio(sizes2.viewport, sizes2.content), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, thumbSize = (sizes2.scrollbar.size - scrollbarPadding) * ratio;
  13523. return Math.max(thumbSize, 18);
  13524. }
  13525. function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes2, dir = "ltr") {
  13526. let thumbSizePx = getThumbSize(sizes2), thumbCenter = thumbSizePx / 2, offset3 = pointerOffset || thumbCenter, thumbOffsetFromEnd = thumbSizePx - offset3, minPointerPos = sizes2.scrollbar.paddingStart + offset3, maxPointerPos = sizes2.scrollbar.size - sizes2.scrollbar.paddingEnd - thumbOffsetFromEnd, maxScrollPos = sizes2.content - sizes2.viewport, scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
  13527. return linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos);
  13528. }
  13529. function getThumbOffsetFromScroll(scrollPos, sizes2, dir = "ltr") {
  13530. let thumbSizePx = getThumbSize(sizes2), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, scrollbar = sizes2.scrollbar.size - scrollbarPadding, maxScrollPos = sizes2.content - sizes2.viewport, maxThumbPos = scrollbar - thumbSizePx, scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0], scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);
  13531. return linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum);
  13532. }
  13533. function linearScale(input2, output) {
  13534. return (value) => {
  13535. if (input2[0] === input2[1] || output[0] === output[1]) return output[0];
  13536. let ratio = (output[1] - output[0]) / (input2[1] - input2[0]);
  13537. return output[0] + ratio * (value - input2[0]);
  13538. };
  13539. }
  13540. function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {
  13541. return scrollPos > 0 && scrollPos < maxScrollPos;
  13542. }
  13543. function useDebounceCallback(callback, delay) {
  13544. let handleCallback = useCallbackRef(callback), debounceTimerRef = React23.useRef(0);
  13545. return React23.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []), React23.useCallback(() => {
  13546. window.clearTimeout(debounceTimerRef.current), debounceTimerRef.current = window.setTimeout(handleCallback, delay);
  13547. }, [handleCallback, delay]);
  13548. }
  13549. function useResizeObserver(element, onResize) {
  13550. let handleResize = useCallbackRef(onResize);
  13551. useLayoutEffect22(() => {
  13552. let rAF = 0;
  13553. if (element) {
  13554. let resizeObserver = new ResizeObserver(() => {
  13555. cancelAnimationFrame(rAF), rAF = window.requestAnimationFrame(handleResize);
  13556. });
  13557. return resizeObserver.observe(element), () => {
  13558. window.cancelAnimationFrame(rAF), resizeObserver.unobserve(element);
  13559. };
  13560. }
  13561. }, [element, handleResize]);
  13562. }
  13563. function getSubtree(options, content) {
  13564. let { asChild, children } = options;
  13565. if (!asChild) return typeof content == "function" ? content(children) : content;
  13566. let firstChild = React23.Children.only(children);
  13567. return React23.cloneElement(firstChild, {
  13568. children: typeof content == "function" ? content(firstChild.props.children) : content
  13569. });
  13570. }
  13571. var React23, React17, import_jsx_runtime5, SCROLL_AREA_NAME, createScrollAreaContext, createScrollAreaScope, ScrollAreaProvider, useScrollAreaContext, ScrollArea, VIEWPORT_NAME, ScrollAreaViewport, SCROLLBAR_NAME, ScrollAreaScrollbar, ScrollAreaScrollbarHover, ScrollAreaScrollbarScroll, ScrollAreaScrollbarAuto, ScrollAreaScrollbarVisible, ScrollAreaScrollbarX, ScrollAreaScrollbarY, ScrollbarProvider, useScrollbarContext, ScrollAreaScrollbarImpl, THUMB_NAME, ScrollAreaThumb, ScrollAreaThumbImpl, CORNER_NAME, ScrollAreaCorner, ScrollAreaCornerImpl, addUnlinkedScrollListener, Root, Viewport, Scrollbar, Thumb, Corner, init_dist12 = __esm({
  13572. "../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs"() {
  13573. "use client";
  13574. React23 = __toESM(require_react(), 1);
  13575. init_dist4();
  13576. init_dist6();
  13577. init_dist7();
  13578. init_dist2();
  13579. init_dist8();
  13580. init_dist9();
  13581. init_dist5();
  13582. init_dist10();
  13583. init_dist11();
  13584. React17 = __toESM(require_react(), 1), import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
  13585. SCROLL_AREA_NAME = "ScrollArea", [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME), [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME), ScrollArea = React23.forwardRef(
  13586. (props, forwardedRef) => {
  13587. let {
  13588. __scopeScrollArea,
  13589. type: type5 = "hover",
  13590. dir,
  13591. scrollHideDelay = 600,
  13592. ...scrollAreaProps
  13593. } = props, [scrollArea, setScrollArea] = React23.useState(null), [viewport2, setViewport] = React23.useState(null), [content, setContent] = React23.useState(null), [scrollbarX, setScrollbarX] = React23.useState(null), [scrollbarY, setScrollbarY] = React23.useState(null), [cornerWidth, setCornerWidth] = React23.useState(0), [cornerHeight, setCornerHeight] = React23.useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = React23.useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = React23.useState(!1), composedRefs = useComposedRefs(forwardedRef, (node2) => setScrollArea(node2)), direction = useDirection(dir);
  13594. return (0, import_jsx_runtime5.jsx)(
  13595. ScrollAreaProvider,
  13596. {
  13597. scope: __scopeScrollArea,
  13598. type: type5,
  13599. dir: direction,
  13600. scrollHideDelay,
  13601. scrollArea,
  13602. viewport: viewport2,
  13603. onViewportChange: setViewport,
  13604. content,
  13605. onContentChange: setContent,
  13606. scrollbarX,
  13607. onScrollbarXChange: setScrollbarX,
  13608. scrollbarXEnabled,
  13609. onScrollbarXEnabledChange: setScrollbarXEnabled,
  13610. scrollbarY,
  13611. onScrollbarYChange: setScrollbarY,
  13612. scrollbarYEnabled,
  13613. onScrollbarYEnabledChange: setScrollbarYEnabled,
  13614. onCornerWidthChange: setCornerWidth,
  13615. onCornerHeightChange: setCornerHeight,
  13616. children: (0, import_jsx_runtime5.jsx)(
  13617. Primitive.div,
  13618. {
  13619. dir: direction,
  13620. ...scrollAreaProps,
  13621. ref: composedRefs,
  13622. style: {
  13623. position: "relative",
  13624. // Pass corner sizes as CSS vars to reduce re-renders of context consumers
  13625. "--radix-scroll-area-corner-width": cornerWidth + "px",
  13626. "--radix-scroll-area-corner-height": cornerHeight + "px",
  13627. ...props.style
  13628. }
  13629. }
  13630. )
  13631. }
  13632. );
  13633. }
  13634. );
  13635. ScrollArea.displayName = SCROLL_AREA_NAME;
  13636. VIEWPORT_NAME = "ScrollAreaViewport", ScrollAreaViewport = React23.forwardRef(
  13637. (props, forwardedRef) => {
  13638. let { __scopeScrollArea, children, asChild, nonce, ...viewportProps } = props, context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea), ref = React23.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
  13639. return (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
  13640. (0, import_jsx_runtime5.jsx)(
  13641. "style",
  13642. {
  13643. dangerouslySetInnerHTML: {
  13644. __html: `
  13645. [data-radix-scroll-area-viewport] {
  13646. scrollbar-width: none;
  13647. -ms-overflow-style: none;
  13648. -webkit-overflow-scrolling: touch;
  13649. }
  13650. [data-radix-scroll-area-viewport]::-webkit-scrollbar {
  13651. display: none;
  13652. }
  13653. :where([data-radix-scroll-area-viewport]) {
  13654. display: flex;
  13655. flex-direction: column;
  13656. align-items: stretch;
  13657. }
  13658. :where([data-radix-scroll-area-content]) {
  13659. flex-grow: 1;
  13660. }
  13661. `
  13662. },
  13663. nonce
  13664. }
  13665. ),
  13666. (0, import_jsx_runtime5.jsx)(
  13667. Primitive.div,
  13668. {
  13669. "data-radix-scroll-area-viewport": "",
  13670. ...viewportProps,
  13671. asChild,
  13672. ref: composedRefs,
  13673. style: {
  13674. /**
  13675. * We don't support `visible` because the intention is to have at least one scrollbar
  13676. * if this component is used and `visible` will behave like `auto` in that case
  13677. * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description
  13678. *
  13679. * We don't handle `auto` because the intention is for the native implementation
  13680. * to be hidden if using this component. We just want to ensure the node is scrollable
  13681. * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent
  13682. * the browser from having to work out whether to render native scrollbars or not,
  13683. * we tell it to with the intention of hiding them in CSS.
  13684. */
  13685. overflowX: context.scrollbarXEnabled ? "scroll" : "hidden",
  13686. overflowY: context.scrollbarYEnabled ? "scroll" : "hidden",
  13687. ...props.style
  13688. },
  13689. children: getSubtree({ asChild, children }, (children2) => (0, import_jsx_runtime5.jsx)(
  13690. "div",
  13691. {
  13692. "data-radix-scroll-area-content": "",
  13693. ref: context.onContentChange,
  13694. style: { minWidth: context.scrollbarXEnabled ? "fit-content" : void 0 },
  13695. children: children2
  13696. }
  13697. ))
  13698. }
  13699. )
  13700. ] });
  13701. }
  13702. );
  13703. ScrollAreaViewport.displayName = VIEWPORT_NAME;
  13704. SCROLLBAR_NAME = "ScrollAreaScrollbar", ScrollAreaScrollbar = React23.forwardRef(
  13705. (props, forwardedRef) => {
  13706. let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context, isHorizontal = props.orientation === "horizontal";
  13707. return React23.useEffect(() => (isHorizontal ? onScrollbarXEnabledChange(!0) : onScrollbarYEnabledChange(!0), () => {
  13708. isHorizontal ? onScrollbarXEnabledChange(!1) : onScrollbarYEnabledChange(!1);
  13709. }), [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]), context.type === "hover" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "scroll" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "auto" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "always" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;
  13710. }
  13711. );
  13712. ScrollAreaScrollbar.displayName = SCROLLBAR_NAME;
  13713. ScrollAreaScrollbarHover = React23.forwardRef((props, forwardedRef) => {
  13714. let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [visible, setVisible] = React23.useState(!1);
  13715. return React23.useEffect(() => {
  13716. let scrollArea = context.scrollArea, hideTimer = 0;
  13717. if (scrollArea) {
  13718. let handlePointerEnter = () => {
  13719. window.clearTimeout(hideTimer), setVisible(!0);
  13720. }, handlePointerLeave = () => {
  13721. hideTimer = window.setTimeout(() => setVisible(!1), context.scrollHideDelay);
  13722. };
  13723. return scrollArea.addEventListener("pointerenter", handlePointerEnter), scrollArea.addEventListener("pointerleave", handlePointerLeave), () => {
  13724. window.clearTimeout(hideTimer), scrollArea.removeEventListener("pointerenter", handlePointerEnter), scrollArea.removeEventListener("pointerleave", handlePointerLeave);
  13725. };
  13726. }
  13727. }, [context.scrollArea, context.scrollHideDelay]), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || visible, children: (0, import_jsx_runtime5.jsx)(
  13728. ScrollAreaScrollbarAuto,
  13729. {
  13730. "data-state": visible ? "visible" : "hidden",
  13731. ...scrollbarProps,
  13732. ref: forwardedRef
  13733. }
  13734. ) });
  13735. }), ScrollAreaScrollbarScroll = React23.forwardRef((props, forwardedRef) => {
  13736. let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), isHorizontal = props.orientation === "horizontal", debounceScrollEnd = useDebounceCallback(() => send("SCROLL_END"), 100), [state3, send] = useStateMachine2("hidden", {
  13737. hidden: {
  13738. SCROLL: "scrolling"
  13739. },
  13740. scrolling: {
  13741. SCROLL_END: "idle",
  13742. POINTER_ENTER: "interacting"
  13743. },
  13744. interacting: {
  13745. SCROLL: "interacting",
  13746. POINTER_LEAVE: "idle"
  13747. },
  13748. idle: {
  13749. HIDE: "hidden",
  13750. SCROLL: "scrolling",
  13751. POINTER_ENTER: "interacting"
  13752. }
  13753. });
  13754. return React23.useEffect(() => {
  13755. if (state3 === "idle") {
  13756. let hideTimer = window.setTimeout(() => send("HIDE"), context.scrollHideDelay);
  13757. return () => window.clearTimeout(hideTimer);
  13758. }
  13759. }, [state3, context.scrollHideDelay, send]), React23.useEffect(() => {
  13760. let viewport2 = context.viewport, scrollDirection = isHorizontal ? "scrollLeft" : "scrollTop";
  13761. if (viewport2) {
  13762. let prevScrollPos = viewport2[scrollDirection], handleScroll = () => {
  13763. let scrollPos = viewport2[scrollDirection];
  13764. prevScrollPos !== scrollPos && (send("SCROLL"), debounceScrollEnd()), prevScrollPos = scrollPos;
  13765. };
  13766. return viewport2.addEventListener("scroll", handleScroll), () => viewport2.removeEventListener("scroll", handleScroll);
  13767. }
  13768. }, [context.viewport, isHorizontal, send, debounceScrollEnd]), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || state3 !== "hidden", children: (0, import_jsx_runtime5.jsx)(
  13769. ScrollAreaScrollbarVisible,
  13770. {
  13771. "data-state": state3 === "hidden" ? "hidden" : "visible",
  13772. ...scrollbarProps,
  13773. ref: forwardedRef,
  13774. onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send("POINTER_ENTER")),
  13775. onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send("POINTER_LEAVE"))
  13776. }
  13777. ) });
  13778. }), ScrollAreaScrollbarAuto = React23.forwardRef((props, forwardedRef) => {
  13779. let context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), { forceMount, ...scrollbarProps } = props, [visible, setVisible] = React23.useState(!1), isHorizontal = props.orientation === "horizontal", handleResize = useDebounceCallback(() => {
  13780. if (context.viewport) {
  13781. let isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth, isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;
  13782. setVisible(isHorizontal ? isOverflowX : isOverflowY);
  13783. }
  13784. }, 10);
  13785. return useResizeObserver(context.viewport, handleResize), useResizeObserver(context.content, handleResize), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || visible, children: (0, import_jsx_runtime5.jsx)(
  13786. ScrollAreaScrollbarVisible,
  13787. {
  13788. "data-state": visible ? "visible" : "hidden",
  13789. ...scrollbarProps,
  13790. ref: forwardedRef
  13791. }
  13792. ) });
  13793. }), ScrollAreaScrollbarVisible = React23.forwardRef((props, forwardedRef) => {
  13794. let { orientation = "vertical", ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), thumbRef = React23.useRef(null), pointerOffsetRef = React23.useRef(0), [sizes2, setSizes] = React23.useState({
  13795. content: 0,
  13796. viewport: 0,
  13797. scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
  13798. }), thumbRatio = getThumbRatio(sizes2.viewport, sizes2.content), commonProps = {
  13799. ...scrollbarProps,
  13800. sizes: sizes2,
  13801. onSizesChange: setSizes,
  13802. hasThumb: thumbRatio > 0 && thumbRatio < 1,
  13803. onThumbChange: (thumb) => thumbRef.current = thumb,
  13804. onThumbPointerUp: () => pointerOffsetRef.current = 0,
  13805. onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos
  13806. };
  13807. function getScrollPosition(pointerPos, dir) {
  13808. return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, dir);
  13809. }
  13810. return orientation === "horizontal" ? (0, import_jsx_runtime5.jsx)(
  13811. ScrollAreaScrollbarX,
  13812. {
  13813. ...commonProps,
  13814. ref: forwardedRef,
  13815. onThumbPositionChange: () => {
  13816. if (context.viewport && thumbRef.current) {
  13817. let scrollPos = context.viewport.scrollLeft, offset3 = getThumbOffsetFromScroll(scrollPos, sizes2, context.dir);
  13818. thumbRef.current.style.transform = `translate3d(${offset3}px, 0, 0)`;
  13819. }
  13820. },
  13821. onWheelScroll: (scrollPos) => {
  13822. context.viewport && (context.viewport.scrollLeft = scrollPos);
  13823. },
  13824. onDragScroll: (pointerPos) => {
  13825. context.viewport && (context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir));
  13826. }
  13827. }
  13828. ) : orientation === "vertical" ? (0, import_jsx_runtime5.jsx)(
  13829. ScrollAreaScrollbarY,
  13830. {
  13831. ...commonProps,
  13832. ref: forwardedRef,
  13833. onThumbPositionChange: () => {
  13834. if (context.viewport && thumbRef.current) {
  13835. let scrollPos = context.viewport.scrollTop, offset3 = getThumbOffsetFromScroll(scrollPos, sizes2);
  13836. thumbRef.current.style.transform = `translate3d(0, ${offset3}px, 0)`;
  13837. }
  13838. },
  13839. onWheelScroll: (scrollPos) => {
  13840. context.viewport && (context.viewport.scrollTop = scrollPos);
  13841. },
  13842. onDragScroll: (pointerPos) => {
  13843. context.viewport && (context.viewport.scrollTop = getScrollPosition(pointerPos));
  13844. }
  13845. }
  13846. ) : null;
  13847. }), ScrollAreaScrollbarX = React23.forwardRef((props, forwardedRef) => {
  13848. let { sizes: sizes2, onSizesChange, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [computedStyle, setComputedStyle] = React23.useState(), ref = React23.useRef(null), composeRefs3 = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);
  13849. return React23.useEffect(() => {
  13850. ref.current && setComputedStyle(getComputedStyle(ref.current));
  13851. }, [ref]), (0, import_jsx_runtime5.jsx)(
  13852. ScrollAreaScrollbarImpl,
  13853. {
  13854. "data-orientation": "horizontal",
  13855. ...scrollbarProps,
  13856. ref: composeRefs3,
  13857. sizes: sizes2,
  13858. style: {
  13859. bottom: 0,
  13860. left: context.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
  13861. right: context.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
  13862. "--radix-scroll-area-thumb-width": getThumbSize(sizes2) + "px",
  13863. ...props.style
  13864. },
  13865. onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),
  13866. onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),
  13867. onWheelScroll: (event, maxScrollPos) => {
  13868. if (context.viewport) {
  13869. let scrollPos = context.viewport.scrollLeft + event.deltaX;
  13870. props.onWheelScroll(scrollPos), isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) && event.preventDefault();
  13871. }
  13872. },
  13873. onResize: () => {
  13874. ref.current && context.viewport && computedStyle && onSizesChange({
  13875. content: context.viewport.scrollWidth,
  13876. viewport: context.viewport.offsetWidth,
  13877. scrollbar: {
  13878. size: ref.current.clientWidth,
  13879. paddingStart: toInt(computedStyle.paddingLeft),
  13880. paddingEnd: toInt(computedStyle.paddingRight)
  13881. }
  13882. });
  13883. }
  13884. }
  13885. );
  13886. }), ScrollAreaScrollbarY = React23.forwardRef((props, forwardedRef) => {
  13887. let { sizes: sizes2, onSizesChange, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [computedStyle, setComputedStyle] = React23.useState(), ref = React23.useRef(null), composeRefs3 = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);
  13888. return React23.useEffect(() => {
  13889. ref.current && setComputedStyle(getComputedStyle(ref.current));
  13890. }, [ref]), (0, import_jsx_runtime5.jsx)(
  13891. ScrollAreaScrollbarImpl,
  13892. {
  13893. "data-orientation": "vertical",
  13894. ...scrollbarProps,
  13895. ref: composeRefs3,
  13896. sizes: sizes2,
  13897. style: {
  13898. top: 0,
  13899. right: context.dir === "ltr" ? 0 : void 0,
  13900. left: context.dir === "rtl" ? 0 : void 0,
  13901. bottom: "var(--radix-scroll-area-corner-height)",
  13902. "--radix-scroll-area-thumb-height": getThumbSize(sizes2) + "px",
  13903. ...props.style
  13904. },
  13905. onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),
  13906. onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),
  13907. onWheelScroll: (event, maxScrollPos) => {
  13908. if (context.viewport) {
  13909. let scrollPos = context.viewport.scrollTop + event.deltaY;
  13910. props.onWheelScroll(scrollPos), isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) && event.preventDefault();
  13911. }
  13912. },
  13913. onResize: () => {
  13914. ref.current && context.viewport && computedStyle && onSizesChange({
  13915. content: context.viewport.scrollHeight,
  13916. viewport: context.viewport.offsetHeight,
  13917. scrollbar: {
  13918. size: ref.current.clientHeight,
  13919. paddingStart: toInt(computedStyle.paddingTop),
  13920. paddingEnd: toInt(computedStyle.paddingBottom)
  13921. }
  13922. });
  13923. }
  13924. }
  13925. );
  13926. }), [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME), ScrollAreaScrollbarImpl = React23.forwardRef((props, forwardedRef) => {
  13927. let {
  13928. __scopeScrollArea,
  13929. sizes: sizes2,
  13930. hasThumb,
  13931. onThumbChange,
  13932. onThumbPointerUp,
  13933. onThumbPointerDown,
  13934. onThumbPositionChange,
  13935. onDragScroll,
  13936. onWheelScroll,
  13937. onResize,
  13938. ...scrollbarProps
  13939. } = props, context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea), [scrollbar, setScrollbar] = React23.useState(null), composeRefs3 = useComposedRefs(forwardedRef, (node2) => setScrollbar(node2)), rectRef = React23.useRef(null), prevWebkitUserSelectRef = React23.useRef(""), viewport2 = context.viewport, maxScrollPos = sizes2.content - sizes2.viewport, handleWheelScroll = useCallbackRef(onWheelScroll), handleThumbPositionChange = useCallbackRef(onThumbPositionChange), handleResize = useDebounceCallback(onResize, 10);
  13940. function handleDragScroll(event) {
  13941. if (rectRef.current) {
  13942. let x = event.clientX - rectRef.current.left, y = event.clientY - rectRef.current.top;
  13943. onDragScroll({ x, y });
  13944. }
  13945. }
  13946. return React23.useEffect(() => {
  13947. let handleWheel = (event) => {
  13948. let element = event.target;
  13949. scrollbar?.contains(element) && handleWheelScroll(event, maxScrollPos);
  13950. };
  13951. return document.addEventListener("wheel", handleWheel, { passive: !1 }), () => document.removeEventListener("wheel", handleWheel, { passive: !1 });
  13952. }, [viewport2, scrollbar, maxScrollPos, handleWheelScroll]), React23.useEffect(handleThumbPositionChange, [sizes2, handleThumbPositionChange]), useResizeObserver(scrollbar, handleResize), useResizeObserver(context.content, handleResize), (0, import_jsx_runtime5.jsx)(
  13953. ScrollbarProvider,
  13954. {
  13955. scope: __scopeScrollArea,
  13956. scrollbar,
  13957. hasThumb,
  13958. onThumbChange: useCallbackRef(onThumbChange),
  13959. onThumbPointerUp: useCallbackRef(onThumbPointerUp),
  13960. onThumbPositionChange: handleThumbPositionChange,
  13961. onThumbPointerDown: useCallbackRef(onThumbPointerDown),
  13962. children: (0, import_jsx_runtime5.jsx)(
  13963. Primitive.div,
  13964. {
  13965. ...scrollbarProps,
  13966. ref: composeRefs3,
  13967. style: { position: "absolute", ...scrollbarProps.style },
  13968. onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {
  13969. event.button === 0 && (event.target.setPointerCapture(event.pointerId), rectRef.current = scrollbar.getBoundingClientRect(), prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", context.viewport && (context.viewport.style.scrollBehavior = "auto"), handleDragScroll(event));
  13970. }),
  13971. onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),
  13972. onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {
  13973. let element = event.target;
  13974. element.hasPointerCapture(event.pointerId) && element.releasePointerCapture(event.pointerId), document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current, context.viewport && (context.viewport.style.scrollBehavior = ""), rectRef.current = null;
  13975. })
  13976. }
  13977. )
  13978. }
  13979. );
  13980. }), THUMB_NAME = "ScrollAreaThumb", ScrollAreaThumb = React23.forwardRef(
  13981. (props, forwardedRef) => {
  13982. let { forceMount, ...thumbProps } = props, scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea);
  13983. return (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || scrollbarContext.hasThumb, children: (0, import_jsx_runtime5.jsx)(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) });
  13984. }
  13985. ), ScrollAreaThumbImpl = React23.forwardRef(
  13986. (props, forwardedRef) => {
  13987. let { __scopeScrollArea, style, ...thumbProps } = props, scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea), scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea), { onThumbPositionChange } = scrollbarContext, composedRef = useComposedRefs(
  13988. forwardedRef,
  13989. (node2) => scrollbarContext.onThumbChange(node2)
  13990. ), removeUnlinkedScrollListenerRef = React23.useRef(), debounceScrollEnd = useDebounceCallback(() => {
  13991. removeUnlinkedScrollListenerRef.current && (removeUnlinkedScrollListenerRef.current(), removeUnlinkedScrollListenerRef.current = void 0);
  13992. }, 100);
  13993. return React23.useEffect(() => {
  13994. let viewport2 = scrollAreaContext.viewport;
  13995. if (viewport2) {
  13996. let handleScroll = () => {
  13997. if (debounceScrollEnd(), !removeUnlinkedScrollListenerRef.current) {
  13998. let listener = addUnlinkedScrollListener(viewport2, onThumbPositionChange);
  13999. removeUnlinkedScrollListenerRef.current = listener, onThumbPositionChange();
  14000. }
  14001. };
  14002. return onThumbPositionChange(), viewport2.addEventListener("scroll", handleScroll), () => viewport2.removeEventListener("scroll", handleScroll);
  14003. }
  14004. }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]), (0, import_jsx_runtime5.jsx)(
  14005. Primitive.div,
  14006. {
  14007. "data-state": scrollbarContext.hasThumb ? "visible" : "hidden",
  14008. ...thumbProps,
  14009. ref: composedRef,
  14010. style: {
  14011. width: "var(--radix-scroll-area-thumb-width)",
  14012. height: "var(--radix-scroll-area-thumb-height)",
  14013. ...style
  14014. },
  14015. onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {
  14016. let thumbRect = event.target.getBoundingClientRect(), x = event.clientX - thumbRect.left, y = event.clientY - thumbRect.top;
  14017. scrollbarContext.onThumbPointerDown({ x, y });
  14018. }),
  14019. onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)
  14020. }
  14021. );
  14022. }
  14023. );
  14024. ScrollAreaThumb.displayName = THUMB_NAME;
  14025. CORNER_NAME = "ScrollAreaCorner", ScrollAreaCorner = React23.forwardRef(
  14026. (props, forwardedRef) => {
  14027. let context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea), hasBothScrollbarsVisible = !!(context.scrollbarX && context.scrollbarY);
  14028. return context.type !== "scroll" && hasBothScrollbarsVisible ? (0, import_jsx_runtime5.jsx)(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null;
  14029. }
  14030. );
  14031. ScrollAreaCorner.displayName = CORNER_NAME;
  14032. ScrollAreaCornerImpl = React23.forwardRef((props, forwardedRef) => {
  14033. let { __scopeScrollArea, ...cornerProps } = props, context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea), [width, setWidth] = React23.useState(0), [height, setHeight] = React23.useState(0), hasSize = !!(width && height);
  14034. return useResizeObserver(context.scrollbarX, () => {
  14035. let height2 = context.scrollbarX?.offsetHeight || 0;
  14036. context.onCornerHeightChange(height2), setHeight(height2);
  14037. }), useResizeObserver(context.scrollbarY, () => {
  14038. let width2 = context.scrollbarY?.offsetWidth || 0;
  14039. context.onCornerWidthChange(width2), setWidth(width2);
  14040. }), hasSize ? (0, import_jsx_runtime5.jsx)(
  14041. Primitive.div,
  14042. {
  14043. ...cornerProps,
  14044. ref: forwardedRef,
  14045. style: {
  14046. width,
  14047. height,
  14048. position: "absolute",
  14049. right: context.dir === "ltr" ? 0 : void 0,
  14050. left: context.dir === "rtl" ? 0 : void 0,
  14051. bottom: 0,
  14052. ...props.style
  14053. }
  14054. }
  14055. ) : null;
  14056. });
  14057. addUnlinkedScrollListener = (node2, handler = () => {
  14058. }) => {
  14059. let prevPosition = { left: node2.scrollLeft, top: node2.scrollTop }, rAF = 0;
  14060. return (function loop() {
  14061. let position2 = { left: node2.scrollLeft, top: node2.scrollTop }, isHorizontalScroll = prevPosition.left !== position2.left, isVerticalScroll = prevPosition.top !== position2.top;
  14062. (isHorizontalScroll || isVerticalScroll) && handler(), prevPosition = position2, rAF = window.requestAnimationFrame(loop);
  14063. })(), () => window.cancelAnimationFrame(rAF);
  14064. };
  14065. Root = ScrollArea, Viewport = ScrollAreaViewport, Scrollbar = ScrollAreaScrollbar, Thumb = ScrollAreaThumb, Corner = ScrollAreaCorner;
  14066. }
  14067. });
  14068. // src/components/components/ScrollArea/ScrollArea.tsx
  14069. var import_react11, ScrollAreaRoot, ScrollAreaViewport2, ScrollAreaScrollbar2, ScrollAreaThumb2, ScrollArea2, init_ScrollArea = __esm({
  14070. "src/components/components/ScrollArea/ScrollArea.tsx"() {
  14071. "use strict";
  14072. import_react11 = __toESM(require_react(), 1);
  14073. init_dist12();
  14074. init_theming();
  14075. ScrollAreaRoot = styled(Root)(
  14076. ({ scrollbarsize, offset: offset3 }) => ({
  14077. width: "100%",
  14078. height: "100%",
  14079. overflow: "hidden",
  14080. "--scrollbar-size": `${scrollbarsize + offset3}px`,
  14081. "--radix-scroll-area-thumb-width": `${scrollbarsize}px`
  14082. })
  14083. ), ScrollAreaViewport2 = styled(Viewport)(
  14084. ({ focusable, theme: theme3 }) => ({
  14085. width: "100%",
  14086. height: "100%",
  14087. "&:focus": focusable ? {
  14088. outline: `2px solid ${theme3.color.secondary}`,
  14089. outlineOffset: -2
  14090. } : {}
  14091. })
  14092. ), ScrollAreaScrollbar2 = styled(Scrollbar)(({ offset: offset3, horizontal, vertical }) => ({
  14093. display: "flex",
  14094. userSelect: "none",
  14095. // ensures no selection
  14096. touchAction: "none",
  14097. // disable browser handling of all panning and zooming gestures on touch devices
  14098. background: "transparent",
  14099. transition: "all 0.2s ease-out",
  14100. borderRadius: "var(--scrollbar-size)",
  14101. zIndex: 1,
  14102. '&[data-orientation="vertical"]': {
  14103. width: "var(--scrollbar-size)",
  14104. paddingRight: offset3,
  14105. marginTop: offset3,
  14106. marginBottom: horizontal === "true" && vertical === "true" ? 0 : offset3
  14107. },
  14108. '&[data-orientation="horizontal"]': {
  14109. flexDirection: "column",
  14110. height: "var(--scrollbar-size)",
  14111. paddingBottom: offset3,
  14112. marginLeft: offset3,
  14113. marginRight: horizontal === "true" && vertical === "true" ? 0 : offset3
  14114. }
  14115. })), ScrollAreaThumb2 = styled(Thumb)(({ theme: theme3 }) => ({
  14116. flex: 1,
  14117. background: theme3.textMutedColor,
  14118. opacity: 0.5,
  14119. borderRadius: "var(--scrollbar-size)",
  14120. position: "relative",
  14121. transition: "opacity 0.2s ease-out",
  14122. zIndex: 1,
  14123. "&:hover": { opacity: 0.8 },
  14124. /* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */
  14125. "::before": {
  14126. content: '""',
  14127. position: "absolute",
  14128. top: "50%",
  14129. left: "50%",
  14130. transform: "translate(-50%,-50%)",
  14131. width: "100%",
  14132. height: "100%"
  14133. }
  14134. })), ScrollArea2 = (0, import_react11.forwardRef)(
  14135. ({
  14136. children,
  14137. horizontal = !1,
  14138. vertical = !1,
  14139. offset: offset3 = 2,
  14140. scrollbarSize = 6,
  14141. scrollPadding = 0,
  14142. className,
  14143. focusable = !1
  14144. }, ref) => import_react11.default.createElement(ScrollAreaRoot, { scrollbarsize: scrollbarSize, offset: offset3, className }, import_react11.default.createElement(
  14145. ScrollAreaViewport2,
  14146. {
  14147. ref,
  14148. style: { scrollPadding },
  14149. tabIndex: focusable ? 0 : void 0,
  14150. focusable
  14151. },
  14152. children
  14153. ), horizontal && import_react11.default.createElement(
  14154. ScrollAreaScrollbar2,
  14155. {
  14156. orientation: "horizontal",
  14157. offset: offset3,
  14158. horizontal: horizontal.toString(),
  14159. vertical: vertical.toString()
  14160. },
  14161. import_react11.default.createElement(ScrollAreaThumb2, null)
  14162. ), vertical && import_react11.default.createElement(
  14163. ScrollAreaScrollbar2,
  14164. {
  14165. orientation: "vertical",
  14166. offset: offset3,
  14167. horizontal: horizontal.toString(),
  14168. vertical: vertical.toString()
  14169. },
  14170. import_react11.default.createElement(ScrollAreaThumb2, null)
  14171. ), horizontal && vertical && import_react11.default.createElement(Corner, null))
  14172. );
  14173. ScrollArea2.displayName = "ScrollArea";
  14174. }
  14175. });
  14176. // ../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs
  14177. function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = 7e3) {
  14178. $319e236875307eab$var$liveAnnouncer ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : ($319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : setTimeout(() => {
  14179. $319e236875307eab$var$liveAnnouncer?.isAttached() && $319e236875307eab$var$liveAnnouncer?.announce(message, assertiveness, timeout);
  14180. }, 100));
  14181. }
  14182. function $319e236875307eab$export$d10ae4f68404609a(assertiveness) {
  14183. $319e236875307eab$var$liveAnnouncer && $319e236875307eab$var$liveAnnouncer.clear(assertiveness);
  14184. }
  14185. var $319e236875307eab$var$liveAnnouncer, $319e236875307eab$var$LiveAnnouncer, init_LiveAnnouncer = __esm({
  14186. "../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs"() {
  14187. $319e236875307eab$var$liveAnnouncer = null;
  14188. $319e236875307eab$var$LiveAnnouncer = class {
  14189. isAttached() {
  14190. var _this_node;
  14191. return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;
  14192. }
  14193. createLog(ariaLive) {
  14194. let node2 = document.createElement("div");
  14195. return node2.setAttribute("role", "log"), node2.setAttribute("aria-live", ariaLive), node2.setAttribute("aria-relevant", "additions"), node2;
  14196. }
  14197. destroy() {
  14198. this.node && (document.body.removeChild(this.node), this.node = null);
  14199. }
  14200. announce(message, assertiveness = "assertive", timeout = 7e3) {
  14201. var _this_assertiveLog, _this_politeLog;
  14202. if (!this.node) return;
  14203. let node2 = document.createElement("div");
  14204. typeof message == "object" ? (node2.setAttribute("role", "img"), node2.setAttribute("aria-labelledby", message["aria-labelledby"])) : node2.textContent = message, assertiveness === "assertive" ? (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 || _this_assertiveLog.appendChild(node2) : (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 || _this_politeLog.appendChild(node2), message !== "" && setTimeout(() => {
  14205. node2.remove();
  14206. }, timeout);
  14207. }
  14208. clear(assertiveness) {
  14209. this.node && ((!assertiveness || assertiveness === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!assertiveness || assertiveness === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
  14210. }
  14211. constructor() {
  14212. this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
  14213. border: 0,
  14214. clip: "rect(0 0 0 0)",
  14215. clipPath: "inset(50%)",
  14216. height: "1px",
  14217. margin: "-1px",
  14218. overflow: "hidden",
  14219. padding: 0,
  14220. position: "absolute",
  14221. width: "1px",
  14222. whiteSpace: "nowrap"
  14223. }), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
  14224. }
  14225. };
  14226. }
  14227. });
  14228. // ../../node_modules/@react-aria/live-announcer/dist/import.mjs
  14229. var init_import = __esm({
  14230. "../../node_modules/@react-aria/live-announcer/dist/import.mjs"() {
  14231. init_LiveAnnouncer();
  14232. }
  14233. });
  14234. // src/shared/useCopyButton.ts
  14235. function useCopyButton({
  14236. children = "Copy",
  14237. childrenOnCopy = "Copied!",
  14238. content,
  14239. onCopy,
  14240. ariaLabel = !1,
  14241. ariaLabelOnCopy = !1,
  14242. duration = 3e3
  14243. }) {
  14244. let [copied, setCopied] = (0, import_react12.useState)(!1), timerRef = (0, import_react12.useRef)(null);
  14245. (0, import_react12.useEffect)(
  14246. () => () => {
  14247. timerRef.current && clearTimeout(timerRef.current);
  14248. },
  14249. []
  14250. );
  14251. let handleClick = (0, import_react12.useCallback)(
  14252. (e) => {
  14253. timerRef.current && clearTimeout(timerRef.current);
  14254. let announcement = typeof ariaLabelOnCopy == "string" ? ariaLabelOnCopy : "Copied to clipboard";
  14255. navigator.clipboard?.writeText(content).then(() => {
  14256. onCopy?.(e), setCopied(!0), $319e236875307eab$export$a9b970dcc4ae71a9(announcement, "polite"), timerRef.current = setTimeout(() => {
  14257. setCopied(!1), $319e236875307eab$export$d10ae4f68404609a("polite"), timerRef.current = null;
  14258. }, duration);
  14259. });
  14260. },
  14261. [content, onCopy, ariaLabelOnCopy, duration]
  14262. );
  14263. return {
  14264. // @ts-expect-error - TypeScript is not realising T is constrained identically in both interfaces.
  14265. children: copied ? childrenOnCopy : children,
  14266. buttonProps: (0, import_react12.useMemo)(
  14267. () => ({
  14268. onClick: handleClick,
  14269. ariaLabel: copied ? ariaLabelOnCopy : ariaLabel
  14270. }),
  14271. [handleClick, copied, ariaLabelOnCopy, ariaLabel]
  14272. )
  14273. };
  14274. }
  14275. var import_react12, init_useCopyButton = __esm({
  14276. "src/shared/useCopyButton.ts"() {
  14277. "use strict";
  14278. import_react12 = __toESM(require_react(), 1);
  14279. init_import();
  14280. }
  14281. });
  14282. // src/components/components/syntaxhighlighter/syntaxhighlighter.tsx
  14283. var syntaxhighlighter_exports = {};
  14284. __export(syntaxhighlighter_exports, {
  14285. SyntaxHighlighter: () => SyntaxHighlighter2,
  14286. default: () => syntaxhighlighter_default,
  14287. supportedLanguages: () => supportedLanguages
  14288. });
  14289. var import_react13, import_memoizerific2, supportedLanguages, themedSyntax, Wrapper, UnstyledScroller, Scroller, Pre, Code, processLineNumber, defaultRenderer2, wrapRenderer, SyntaxHighlighter2, syntaxhighlighter_default, init_syntaxhighlighter = __esm({
  14290. "src/components/components/syntaxhighlighter/syntaxhighlighter.tsx"() {
  14291. "use strict";
  14292. import_react13 = __toESM(require_react(), 1), import_memoizerific2 = __toESM(require_memoizerific(), 1);
  14293. init_create_element();
  14294. init_bash();
  14295. init_css();
  14296. init_graphql();
  14297. init_js_extras();
  14298. init_json();
  14299. init_jsx();
  14300. init_markdown();
  14301. init_markup();
  14302. init_tsx();
  14303. init_typescript();
  14304. init_yaml();
  14305. init_prism_light();
  14306. init_theming();
  14307. init_ActionBar();
  14308. init_ScrollArea();
  14309. init_useCopyButton();
  14310. supportedLanguages = {
  14311. jsextra: js_extras_default,
  14312. jsx: jsx_default,
  14313. json: json_default,
  14314. yml: yaml_default,
  14315. md: markdown_default,
  14316. bash: bash_default,
  14317. css: css_default,
  14318. html: markup_default,
  14319. tsx: tsx_default,
  14320. typescript: typescript_default,
  14321. graphql: graphql_default
  14322. };
  14323. Object.entries(supportedLanguages).forEach(([key, val]) => {
  14324. prism_light_default.registerLanguage(key, val);
  14325. });
  14326. themedSyntax = (0, import_memoizerific2.default)(2)(
  14327. (theme3) => Object.entries(theme3.code || {}).reduce((acc, [key, val]) => ({ ...acc, [`* .${key}`]: val }), {})
  14328. ), Wrapper = styled.div(
  14329. ({ theme: theme3 }) => ({
  14330. position: "relative",
  14331. display: "flex",
  14332. flexWrap: "wrap",
  14333. overflow: "hidden",
  14334. color: theme3.color.defaultText
  14335. }),
  14336. ({ theme: theme3, bordered }) => bordered ? {
  14337. border: `1px solid ${theme3.appBorderColor}`,
  14338. borderRadius: theme3.borderRadius,
  14339. background: theme3.background.content
  14340. } : {},
  14341. ({ showLineNumbers }) => showLineNumbers ? {
  14342. // use the before pseudo element to display line numbers
  14343. ".react-syntax-highlighter-line-number::before": {
  14344. content: "attr(data-line-number)"
  14345. }
  14346. } : {}
  14347. ), UnstyledScroller = ({ children, className }) => import_react13.default.createElement(ScrollArea2, { horizontal: !0, vertical: !0, focusable: !0, className }, children), Scroller = styled(UnstyledScroller)(
  14348. {
  14349. flex: 1,
  14350. flexShrink: 0,
  14351. flexBasis: "fit-content",
  14352. maxWidth: "100%"
  14353. },
  14354. ({ theme: theme3 }) => themedSyntax(theme3)
  14355. ), Pre = styled.pre(({ theme: theme3, padded }) => ({
  14356. display: "flex",
  14357. justifyContent: "flex-start",
  14358. margin: 0,
  14359. padding: padded ? theme3.layoutMargin : 0
  14360. })), Code = styled.div(({ theme: theme3 }) => ({
  14361. flex: 1,
  14362. paddingLeft: 2,
  14363. // TODO: To match theming/global.ts for now
  14364. paddingRight: theme3.layoutMargin,
  14365. opacity: 1,
  14366. fontFamily: theme3.typography.fonts.mono
  14367. })), processLineNumber = (row) => {
  14368. let children = [...row.children], lineNumberNode = children[0], lineNumber = lineNumberNode.children[0].value, processedLineNumberNode = {
  14369. ...lineNumberNode,
  14370. // empty the line-number element
  14371. children: [],
  14372. properties: {
  14373. ...lineNumberNode.properties,
  14374. // add a data-line-number attribute to line-number element, so we can access the line number with `content: attr(data-line-number)`
  14375. "data-line-number": lineNumber,
  14376. // remove the 'userSelect: none' style, which will produce extra empty lines when copy-pasting in firefox
  14377. style: { ...lineNumberNode.properties.style, userSelect: "auto" }
  14378. }
  14379. };
  14380. return children[0] = processedLineNumberNode, { ...row, children };
  14381. }, defaultRenderer2 = ({ rows, stylesheet, useInlineStyles }) => rows.map((node2, i) => createElement4({
  14382. node: processLineNumber(node2),
  14383. stylesheet,
  14384. useInlineStyles,
  14385. key: `code-segement${i}`
  14386. })), wrapRenderer = (renderer, showLineNumbers) => showLineNumbers ? renderer ? ({ rows, ...rest }) => renderer({ rows: rows.map((row) => processLineNumber(row)), ...rest }) : defaultRenderer2 : renderer, SyntaxHighlighter2 = ({
  14387. children,
  14388. language = "jsx",
  14389. copyable = !1,
  14390. bordered = !1,
  14391. padded = !1,
  14392. format: format4 = !0,
  14393. formatter: formatter2 = void 0,
  14394. className = void 0,
  14395. showLineNumbers = !1,
  14396. ...rest
  14397. }) => {
  14398. if (typeof children != "string" || !children.trim())
  14399. return null;
  14400. let [highlightableCode, setHighlightableCode] = (0, import_react13.useState)("");
  14401. (0, import_react13.useEffect)(() => {
  14402. formatter2 ? formatter2(format4, children).then(setHighlightableCode) : setHighlightableCode(children.trim());
  14403. }, [children, format4, formatter2]);
  14404. let { children: copyChildren, buttonProps: copyButtonProps } = useCopyButton({
  14405. content: highlightableCode
  14406. }), renderer = wrapRenderer(rest.renderer, showLineNumbers);
  14407. return import_react13.default.createElement(
  14408. Wrapper,
  14409. {
  14410. bordered,
  14411. padded,
  14412. showLineNumbers,
  14413. className
  14414. },
  14415. import_react13.default.createElement(Scroller, null, import_react13.default.createElement(
  14416. prism_light_default,
  14417. {
  14418. padded: padded || bordered,
  14419. language,
  14420. showLineNumbers,
  14421. showInlineLineNumbers: showLineNumbers,
  14422. useInlineStyles: !1,
  14423. PreTag: Pre,
  14424. CodeTag: Code,
  14425. lineNumberContainerStyle: {},
  14426. ...rest,
  14427. renderer
  14428. },
  14429. highlightableCode
  14430. )),
  14431. copyable ? import_react13.default.createElement(
  14432. ActionBar,
  14433. {
  14434. actionItems: [
  14435. {
  14436. title: copyChildren,
  14437. onClick: copyButtonProps.onClick
  14438. }
  14439. ],
  14440. flexLayout: !0
  14441. }
  14442. ) : null
  14443. );
  14444. };
  14445. SyntaxHighlighter2.registerLanguage = (...args) => prism_light_default.registerLanguage(...args);
  14446. syntaxhighlighter_default = SyntaxHighlighter2;
  14447. }
  14448. });
  14449. // src/components/components/syntaxhighlighter/formatter.ts
  14450. var formatter_exports = {};
  14451. __export(formatter_exports, {
  14452. formatter: () => formatter
  14453. });
  14454. var import_memoizerific3, formatter, init_formatter = __esm({
  14455. "src/components/components/syntaxhighlighter/formatter.ts"() {
  14456. "use strict";
  14457. import_memoizerific3 = __toESM(require_memoizerific(), 1);
  14458. init_esm();
  14459. formatter = (0, import_memoizerific3.default)(2)(async (type5, source) => type5 === !1 ? source : dedent(source));
  14460. }
  14461. });
  14462. // ../../node_modules/picocolors/picocolors.browser.js
  14463. var require_picocolors_browser = __commonJS({
  14464. "../../node_modules/picocolors/picocolors.browser.js"(exports, module2) {
  14465. var x = String, create4 = function() {
  14466. return { isColorSupported: !1, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x, blackBright: x, redBright: x, greenBright: x, yellowBright: x, blueBright: x, magentaBright: x, cyanBright: x, whiteBright: x, bgBlackBright: x, bgRedBright: x, bgGreenBright: x, bgYellowBright: x, bgBlueBright: x, bgMagentaBright: x, bgCyanBright: x, bgWhiteBright: x };
  14467. };
  14468. module2.exports = create4();
  14469. module2.exports.createColors = create4;
  14470. }
  14471. });
  14472. // ../../node_modules/@ngard/tiny-isequal/index.js
  14473. var require_tiny_isequal = __commonJS({
  14474. "../../node_modules/@ngard/tiny-isequal/index.js"(exports) {
  14475. Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isEqual = /* @__PURE__ */ (function() {
  14476. var e = Object.prototype.toString, r2 = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(e2) {
  14477. return Object.keys(e2).concat(Object.getOwnPropertySymbols(e2));
  14478. } : Object.keys;
  14479. return function(n, a3) {
  14480. return (function n2(a4, c, u2) {
  14481. var i, s3, l, o = e.call(a4), f4 = e.call(c);
  14482. if (a4 === c) return !0;
  14483. if (a4 == null || c == null) return !1;
  14484. if (u2.indexOf(a4) > -1 && u2.indexOf(c) > -1) return !0;
  14485. if (u2.push(a4, c), o != f4 || (i = t(a4), s3 = t(c), i.length != s3.length || i.some(function(e2) {
  14486. return !n2(a4[e2], c[e2], u2);
  14487. }))) return !1;
  14488. switch (o.slice(8, -1)) {
  14489. case "Symbol":
  14490. return a4.valueOf() == c.valueOf();
  14491. case "Date":
  14492. case "Number":
  14493. return +a4 == +c || +a4 != +a4 && +c != +c;
  14494. case "RegExp":
  14495. case "Function":
  14496. case "String":
  14497. case "Boolean":
  14498. return "" + a4 == "" + c;
  14499. case "Set":
  14500. case "Map":
  14501. i = a4.entries(), s3 = c.entries();
  14502. do
  14503. if (!n2((l = i.next()).value, s3.next().value, u2)) return !1;
  14504. while (!l.done);
  14505. return !0;
  14506. case "ArrayBuffer":
  14507. a4 = new Uint8Array(a4), c = new Uint8Array(c);
  14508. case "DataView":
  14509. a4 = new Uint8Array(a4.buffer), c = new Uint8Array(c.buffer);
  14510. case "Float32Array":
  14511. case "Float64Array":
  14512. case "Int8Array":
  14513. case "Int16Array":
  14514. case "Int32Array":
  14515. case "Uint8Array":
  14516. case "Uint16Array":
  14517. case "Uint32Array":
  14518. case "Uint8ClampedArray":
  14519. case "Arguments":
  14520. case "Array":
  14521. if (a4.length != c.length) return !1;
  14522. for (l = 0; l < a4.length; l++) if ((l in a4 || l in c) && (l in a4 != l in c || !n2(a4[l], c[l], u2))) return !1;
  14523. return !0;
  14524. case "Object":
  14525. return n2(r2(a4), r2(c), u2);
  14526. default:
  14527. return !1;
  14528. }
  14529. })(n, a3, []);
  14530. };
  14531. })();
  14532. }
  14533. });
  14534. // ../../node_modules/picoquery/lib/string-util.js
  14535. var require_string_util = __commonJS({
  14536. "../../node_modules/picoquery/lib/string-util.js"(exports) {
  14537. "use strict";
  14538. Object.defineProperty(exports, "__esModule", { value: !0 });
  14539. exports.encodeString = encodeString;
  14540. var hexTable = Array.from({ length: 256 }, (_, i) => "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase()), noEscape = new Int8Array([
  14541. 0,
  14542. 0,
  14543. 0,
  14544. 0,
  14545. 0,
  14546. 0,
  14547. 0,
  14548. 0,
  14549. 0,
  14550. 0,
  14551. 0,
  14552. 0,
  14553. 0,
  14554. 0,
  14555. 0,
  14556. 0,
  14557. 0,
  14558. 0,
  14559. 0,
  14560. 0,
  14561. 0,
  14562. 0,
  14563. 0,
  14564. 0,
  14565. 0,
  14566. 0,
  14567. 0,
  14568. 0,
  14569. 0,
  14570. 0,
  14571. 0,
  14572. 0,
  14573. 0,
  14574. 1,
  14575. 0,
  14576. 0,
  14577. 0,
  14578. 0,
  14579. 0,
  14580. 1,
  14581. 1,
  14582. 1,
  14583. 1,
  14584. 0,
  14585. 0,
  14586. 1,
  14587. 1,
  14588. 0,
  14589. 1,
  14590. 1,
  14591. 1,
  14592. 1,
  14593. 1,
  14594. 1,
  14595. 1,
  14596. 1,
  14597. 1,
  14598. 1,
  14599. 0,
  14600. 0,
  14601. 0,
  14602. 0,
  14603. 0,
  14604. 0,
  14605. 0,
  14606. 1,
  14607. 1,
  14608. 1,
  14609. 1,
  14610. 1,
  14611. 1,
  14612. 1,
  14613. 1,
  14614. 1,
  14615. 1,
  14616. 1,
  14617. 1,
  14618. 1,
  14619. 1,
  14620. 1,
  14621. 1,
  14622. 1,
  14623. 1,
  14624. 1,
  14625. 1,
  14626. 1,
  14627. 1,
  14628. 1,
  14629. 1,
  14630. 1,
  14631. 1,
  14632. 0,
  14633. 0,
  14634. 0,
  14635. 0,
  14636. 1,
  14637. 0,
  14638. 1,
  14639. 1,
  14640. 1,
  14641. 1,
  14642. 1,
  14643. 1,
  14644. 1,
  14645. 1,
  14646. 1,
  14647. 1,
  14648. 1,
  14649. 1,
  14650. 1,
  14651. 1,
  14652. 1,
  14653. 1,
  14654. 1,
  14655. 1,
  14656. 1,
  14657. 1,
  14658. 1,
  14659. 1,
  14660. 1,
  14661. 1,
  14662. 1,
  14663. 1,
  14664. 0,
  14665. 0,
  14666. 0,
  14667. 1,
  14668. 0
  14669. ]);
  14670. function encodeString(str2) {
  14671. let len = str2.length;
  14672. if (len === 0)
  14673. return "";
  14674. let out = "", lastPos = 0, i = 0;
  14675. outer: for (; i < len; i++) {
  14676. let c = str2.charCodeAt(i);
  14677. for (; c < 128; ) {
  14678. if (noEscape[c] !== 1 && (lastPos < i && (out += str2.slice(lastPos, i)), lastPos = i + 1, out += hexTable[c]), ++i === len)
  14679. break outer;
  14680. c = str2.charCodeAt(i);
  14681. }
  14682. if (lastPos < i && (out += str2.slice(lastPos, i)), c < 2048) {
  14683. lastPos = i + 1, out += hexTable[192 | c >> 6] + hexTable[128 | c & 63];
  14684. continue;
  14685. }
  14686. if (c < 55296 || c >= 57344) {
  14687. lastPos = i + 1, out += hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
  14688. continue;
  14689. }
  14690. if (++i, i >= len)
  14691. throw new Error("URI malformed");
  14692. let c2 = str2.charCodeAt(i) & 1023;
  14693. lastPos = i + 1, c = 65536 + ((c & 1023) << 10 | c2), out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
  14694. }
  14695. return lastPos === 0 ? str2 : lastPos < len ? out + str2.slice(lastPos) : out;
  14696. }
  14697. }
  14698. });
  14699. // ../../node_modules/picoquery/lib/shared.js
  14700. var require_shared = __commonJS({
  14701. "../../node_modules/picoquery/lib/shared.js"(exports) {
  14702. "use strict";
  14703. Object.defineProperty(exports, "__esModule", { value: !0 });
  14704. exports.defaultOptions = exports.defaultShouldSerializeObject = exports.defaultValueSerializer = void 0;
  14705. var string_util_js_1 = require_string_util(), defaultValueSerializer = (value) => {
  14706. switch (typeof value) {
  14707. case "string":
  14708. return (0, string_util_js_1.encodeString)(value);
  14709. case "bigint":
  14710. case "boolean":
  14711. return "" + value;
  14712. case "number":
  14713. if (Number.isFinite(value))
  14714. return value < 1e21 ? "" + value : (0, string_util_js_1.encodeString)("" + value);
  14715. break;
  14716. }
  14717. return value instanceof Date ? (0, string_util_js_1.encodeString)(value.toISOString()) : "";
  14718. };
  14719. exports.defaultValueSerializer = defaultValueSerializer;
  14720. var defaultShouldSerializeObject = (val) => val instanceof Date;
  14721. exports.defaultShouldSerializeObject = defaultShouldSerializeObject;
  14722. var identityFunc = (v) => v;
  14723. exports.defaultOptions = {
  14724. nesting: !0,
  14725. nestingSyntax: "dot",
  14726. arrayRepeat: !1,
  14727. arrayRepeatSyntax: "repeat",
  14728. delimiter: 38,
  14729. valueDeserializer: identityFunc,
  14730. valueSerializer: exports.defaultValueSerializer,
  14731. keyDeserializer: identityFunc,
  14732. shouldSerializeObject: exports.defaultShouldSerializeObject
  14733. };
  14734. }
  14735. });
  14736. // ../../node_modules/picoquery/lib/object-util.js
  14737. var require_object_util = __commonJS({
  14738. "../../node_modules/picoquery/lib/object-util.js"(exports) {
  14739. "use strict";
  14740. Object.defineProperty(exports, "__esModule", { value: !0 });
  14741. exports.getDeepObject = getDeepObject;
  14742. exports.stringifyObject = stringifyObject;
  14743. var shared_js_1 = require_shared(), string_util_js_1 = require_string_util();
  14744. function isPrototypeKey(value) {
  14745. return value === "__proto__" || value === "constructor" || value === "prototype";
  14746. }
  14747. function getDeepObject(obj, key, nextKey, forceObject, forceArray) {
  14748. if (isPrototypeKey(key))
  14749. return obj;
  14750. let currObj = obj[key];
  14751. return typeof currObj == "object" && currObj !== null ? currObj : !forceObject && (forceArray || typeof nextKey == "number" || typeof nextKey == "string" && nextKey * 0 === 0 && nextKey.indexOf(".") === -1) ? obj[key] = [] : obj[key] = {};
  14752. }
  14753. var MAX_DEPTH = 20, strBracketPair = "[]", strBracketLeft = "[", strBracketRight = "]", strDot = ".";
  14754. function stringifyObject(obj, options, depth = 0, parentKey, isProbableArray) {
  14755. let { nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, delimiter: delimiter2 = shared_js_1.defaultOptions.delimiter, valueSerializer = shared_js_1.defaultOptions.valueSerializer, shouldSerializeObject = shared_js_1.defaultOptions.shouldSerializeObject } = options, strDelimiter = typeof delimiter2 == "number" ? String.fromCharCode(delimiter2) : delimiter2, useArrayRepeatKey = isProbableArray === !0 && arrayRepeat, shouldUseDot = nestingSyntax === "dot" || nestingSyntax === "js" && !isProbableArray;
  14756. if (depth > MAX_DEPTH)
  14757. return "";
  14758. let result = "", firstKey = !0, valueIsProbableArray = !1;
  14759. for (let key in obj) {
  14760. let value = obj[key];
  14761. if (value === void 0)
  14762. continue;
  14763. let path;
  14764. parentKey ? (path = parentKey, useArrayRepeatKey ? arrayRepeatSyntax === "bracket" && (path += strBracketPair) : shouldUseDot ? (path += strDot, path += key) : (path += strBracketLeft, path += key, path += strBracketRight)) : path = key, firstKey || (result += strDelimiter), typeof value == "object" && value !== null && !shouldSerializeObject(value) ? (valueIsProbableArray = value.pop !== void 0, (nesting || arrayRepeat && valueIsProbableArray) && (result += stringifyObject(value, options, depth + 1, path, valueIsProbableArray))) : (result += (0, string_util_js_1.encodeString)(path), result += "=", result += valueSerializer(value, key)), firstKey && (firstKey = !1);
  14765. }
  14766. return result;
  14767. }
  14768. }
  14769. });
  14770. // ../../node_modules/picoquery/lib/decode-uri-component.js
  14771. var require_decode_uri_component = __commonJS({
  14772. "../../node_modules/picoquery/lib/decode-uri-component.js"(exports) {
  14773. "use strict";
  14774. Object.defineProperty(exports, "__esModule", { value: !0 });
  14775. exports.decodeURIComponent = decodeURIComponent2;
  14776. var UTF8_ACCEPT = 12, UTF8_REJECT = 0, UTF8_DATA = [
  14777. // The first part of the table maps bytes to character to a transition.
  14778. 0,
  14779. 0,
  14780. 0,
  14781. 0,
  14782. 0,
  14783. 0,
  14784. 0,
  14785. 0,
  14786. 0,
  14787. 0,
  14788. 0,
  14789. 0,
  14790. 0,
  14791. 0,
  14792. 0,
  14793. 0,
  14794. 0,
  14795. 0,
  14796. 0,
  14797. 0,
  14798. 0,
  14799. 0,
  14800. 0,
  14801. 0,
  14802. 0,
  14803. 0,
  14804. 0,
  14805. 0,
  14806. 0,
  14807. 0,
  14808. 0,
  14809. 0,
  14810. 0,
  14811. 0,
  14812. 0,
  14813. 0,
  14814. 0,
  14815. 0,
  14816. 0,
  14817. 0,
  14818. 0,
  14819. 0,
  14820. 0,
  14821. 0,
  14822. 0,
  14823. 0,
  14824. 0,
  14825. 0,
  14826. 0,
  14827. 0,
  14828. 0,
  14829. 0,
  14830. 0,
  14831. 0,
  14832. 0,
  14833. 0,
  14834. 0,
  14835. 0,
  14836. 0,
  14837. 0,
  14838. 0,
  14839. 0,
  14840. 0,
  14841. 0,
  14842. 0,
  14843. 0,
  14844. 0,
  14845. 0,
  14846. 0,
  14847. 0,
  14848. 0,
  14849. 0,
  14850. 0,
  14851. 0,
  14852. 0,
  14853. 0,
  14854. 0,
  14855. 0,
  14856. 0,
  14857. 0,
  14858. 0,
  14859. 0,
  14860. 0,
  14861. 0,
  14862. 0,
  14863. 0,
  14864. 0,
  14865. 0,
  14866. 0,
  14867. 0,
  14868. 0,
  14869. 0,
  14870. 0,
  14871. 0,
  14872. 0,
  14873. 0,
  14874. 0,
  14875. 0,
  14876. 0,
  14877. 0,
  14878. 0,
  14879. 0,
  14880. 0,
  14881. 0,
  14882. 0,
  14883. 0,
  14884. 0,
  14885. 0,
  14886. 0,
  14887. 0,
  14888. 0,
  14889. 0,
  14890. 0,
  14891. 0,
  14892. 0,
  14893. 0,
  14894. 0,
  14895. 0,
  14896. 0,
  14897. 0,
  14898. 0,
  14899. 0,
  14900. 0,
  14901. 0,
  14902. 0,
  14903. 0,
  14904. 0,
  14905. 0,
  14906. 1,
  14907. 1,
  14908. 1,
  14909. 1,
  14910. 1,
  14911. 1,
  14912. 1,
  14913. 1,
  14914. 1,
  14915. 1,
  14916. 1,
  14917. 1,
  14918. 1,
  14919. 1,
  14920. 1,
  14921. 1,
  14922. 2,
  14923. 2,
  14924. 2,
  14925. 2,
  14926. 2,
  14927. 2,
  14928. 2,
  14929. 2,
  14930. 2,
  14931. 2,
  14932. 2,
  14933. 2,
  14934. 2,
  14935. 2,
  14936. 2,
  14937. 2,
  14938. 3,
  14939. 3,
  14940. 3,
  14941. 3,
  14942. 3,
  14943. 3,
  14944. 3,
  14945. 3,
  14946. 3,
  14947. 3,
  14948. 3,
  14949. 3,
  14950. 3,
  14951. 3,
  14952. 3,
  14953. 3,
  14954. 3,
  14955. 3,
  14956. 3,
  14957. 3,
  14958. 3,
  14959. 3,
  14960. 3,
  14961. 3,
  14962. 3,
  14963. 3,
  14964. 3,
  14965. 3,
  14966. 3,
  14967. 3,
  14968. 3,
  14969. 3,
  14970. 4,
  14971. 4,
  14972. 5,
  14973. 5,
  14974. 5,
  14975. 5,
  14976. 5,
  14977. 5,
  14978. 5,
  14979. 5,
  14980. 5,
  14981. 5,
  14982. 5,
  14983. 5,
  14984. 5,
  14985. 5,
  14986. 5,
  14987. 5,
  14988. 5,
  14989. 5,
  14990. 5,
  14991. 5,
  14992. 5,
  14993. 5,
  14994. 5,
  14995. 5,
  14996. 5,
  14997. 5,
  14998. 5,
  14999. 5,
  15000. 5,
  15001. 5,
  15002. 6,
  15003. 7,
  15004. 7,
  15005. 7,
  15006. 7,
  15007. 7,
  15008. 7,
  15009. 7,
  15010. 7,
  15011. 7,
  15012. 7,
  15013. 7,
  15014. 7,
  15015. 8,
  15016. 7,
  15017. 7,
  15018. 10,
  15019. 9,
  15020. 9,
  15021. 9,
  15022. 11,
  15023. 4,
  15024. 4,
  15025. 4,
  15026. 4,
  15027. 4,
  15028. 4,
  15029. 4,
  15030. 4,
  15031. 4,
  15032. 4,
  15033. 4,
  15034. // The second part of the table maps a state to a new state when adding a
  15035. // transition.
  15036. 0,
  15037. 0,
  15038. 0,
  15039. 0,
  15040. 0,
  15041. 0,
  15042. 0,
  15043. 0,
  15044. 0,
  15045. 0,
  15046. 0,
  15047. 0,
  15048. 12,
  15049. 0,
  15050. 0,
  15051. 0,
  15052. 0,
  15053. 24,
  15054. 36,
  15055. 48,
  15056. 60,
  15057. 72,
  15058. 84,
  15059. 96,
  15060. 0,
  15061. 12,
  15062. 12,
  15063. 12,
  15064. 0,
  15065. 0,
  15066. 0,
  15067. 0,
  15068. 0,
  15069. 0,
  15070. 0,
  15071. 0,
  15072. 0,
  15073. 0,
  15074. 0,
  15075. 24,
  15076. 0,
  15077. 0,
  15078. 0,
  15079. 0,
  15080. 0,
  15081. 0,
  15082. 0,
  15083. 0,
  15084. 0,
  15085. 24,
  15086. 24,
  15087. 24,
  15088. 0,
  15089. 0,
  15090. 0,
  15091. 0,
  15092. 0,
  15093. 0,
  15094. 0,
  15095. 0,
  15096. 0,
  15097. 24,
  15098. 24,
  15099. 0,
  15100. 0,
  15101. 0,
  15102. 0,
  15103. 0,
  15104. 0,
  15105. 0,
  15106. 0,
  15107. 0,
  15108. 0,
  15109. 48,
  15110. 48,
  15111. 48,
  15112. 0,
  15113. 0,
  15114. 0,
  15115. 0,
  15116. 0,
  15117. 0,
  15118. 0,
  15119. 0,
  15120. 0,
  15121. 0,
  15122. 48,
  15123. 48,
  15124. 0,
  15125. 0,
  15126. 0,
  15127. 0,
  15128. 0,
  15129. 0,
  15130. 0,
  15131. 0,
  15132. 0,
  15133. 48,
  15134. 0,
  15135. 0,
  15136. 0,
  15137. 0,
  15138. 0,
  15139. 0,
  15140. 0,
  15141. 0,
  15142. 0,
  15143. 0,
  15144. // The third part maps the current transition to a mask that needs to apply
  15145. // to the byte.
  15146. 127,
  15147. 63,
  15148. 63,
  15149. 63,
  15150. 0,
  15151. 31,
  15152. 15,
  15153. 15,
  15154. 15,
  15155. 7,
  15156. 7,
  15157. 7
  15158. ];
  15159. function decodeURIComponent2(uri) {
  15160. let percentPosition = uri.indexOf("%");
  15161. if (percentPosition === -1)
  15162. return uri;
  15163. let length2 = uri.length, decoded = "", last2 = 0, codepoint = 0, startOfOctets = percentPosition, state3 = UTF8_ACCEPT;
  15164. for (; percentPosition > -1 && percentPosition < length2; ) {
  15165. let high = hexCodeToInt(uri[percentPosition + 1], 4), low = hexCodeToInt(uri[percentPosition + 2], 0), byte = high | low, type5 = UTF8_DATA[byte];
  15166. if (state3 = UTF8_DATA[256 + state3 + type5], codepoint = codepoint << 6 | byte & UTF8_DATA[364 + type5], state3 === UTF8_ACCEPT)
  15167. decoded += uri.slice(last2, startOfOctets), decoded += codepoint <= 65535 ? String.fromCharCode(codepoint) : String.fromCharCode(55232 + (codepoint >> 10), 56320 + (codepoint & 1023)), codepoint = 0, last2 = percentPosition + 3, percentPosition = startOfOctets = uri.indexOf("%", last2);
  15168. else {
  15169. if (state3 === UTF8_REJECT)
  15170. return null;
  15171. if (percentPosition += 3, percentPosition < length2 && uri.charCodeAt(percentPosition) === 37)
  15172. continue;
  15173. return null;
  15174. }
  15175. }
  15176. return decoded + uri.slice(last2);
  15177. }
  15178. var HEX = {
  15179. 0: 0,
  15180. 1: 1,
  15181. 2: 2,
  15182. 3: 3,
  15183. 4: 4,
  15184. 5: 5,
  15185. 6: 6,
  15186. 7: 7,
  15187. 8: 8,
  15188. 9: 9,
  15189. a: 10,
  15190. A: 10,
  15191. b: 11,
  15192. B: 11,
  15193. c: 12,
  15194. C: 12,
  15195. d: 13,
  15196. D: 13,
  15197. e: 14,
  15198. E: 14,
  15199. f: 15,
  15200. F: 15
  15201. };
  15202. function hexCodeToInt(c, shift) {
  15203. let i = HEX[c];
  15204. return i === void 0 ? 255 : i << shift;
  15205. }
  15206. }
  15207. });
  15208. // ../../node_modules/picoquery/lib/parse.js
  15209. var require_parse = __commonJS({
  15210. "../../node_modules/picoquery/lib/parse.js"(exports) {
  15211. "use strict";
  15212. Object.defineProperty(exports, "__esModule", { value: !0 });
  15213. exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0;
  15214. exports.parse = parse9;
  15215. var object_util_js_1 = require_object_util(), shared_js_1 = require_shared(), decode_uri_component_js_1 = require_decode_uri_component(), numberKeyDeserializer = (key) => {
  15216. let asNumber = Number(key);
  15217. return Number.isNaN(asNumber) ? key : asNumber;
  15218. };
  15219. exports.numberKeyDeserializer = numberKeyDeserializer;
  15220. var numberValueDeserializer = (value) => {
  15221. let asNumber = Number(value);
  15222. return Number.isNaN(asNumber) ? value : asNumber;
  15223. };
  15224. exports.numberValueDeserializer = numberValueDeserializer;
  15225. var regexPlus = /\+/g, Empty = function() {
  15226. };
  15227. Empty.prototype = /* @__PURE__ */ Object.create(null);
  15228. function computeKeySlice(input2, startIndex, endIndex, keyHasPlus, shouldDecodeKey) {
  15229. let chunk2 = input2.substring(startIndex, endIndex);
  15230. return keyHasPlus && (chunk2 = chunk2.replace(regexPlus, " ")), shouldDecodeKey && (chunk2 = (0, decode_uri_component_js_1.decodeURIComponent)(chunk2) || chunk2), chunk2;
  15231. }
  15232. function parse9(input2, options) {
  15233. let { valueDeserializer = shared_js_1.defaultOptions.valueDeserializer, keyDeserializer = shared_js_1.defaultOptions.keyDeserializer, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, delimiter: delimiter2 = shared_js_1.defaultOptions.delimiter } = options ?? {}, charDelimiter = typeof delimiter2 == "string" ? delimiter2.charCodeAt(0) : delimiter2, isJsNestingSyntax = nestingSyntax === "js", result = new Empty();
  15234. if (typeof input2 != "string")
  15235. return result;
  15236. let inputLength = input2.length, value = "", startingIndex = -1, equalityIndex = -1, keySeparatorIndex = -1, currentObj = result, lastKey, currentKey = "", keyChunk = "", shouldDecodeKey = !1, shouldDecodeValue = !1, keyHasPlus = !1, valueHasPlus = !1, keyIsDot = !1, hasBothKeyValuePair = !1, c = 0, arrayRepeatBracketIndex = -1, prevIndex = -1, prevChar = -1;
  15237. for (let i = 0; i < inputLength + 1; i++) {
  15238. if (c = i !== inputLength ? input2.charCodeAt(i) : charDelimiter, c === charDelimiter) {
  15239. if (hasBothKeyValuePair = equalityIndex > startingIndex, hasBothKeyValuePair || (equalityIndex = i), keySeparatorIndex !== equalityIndex - 1 && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, arrayRepeatBracketIndex > -1 ? arrayRepeatBracketIndex : equalityIndex, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, void 0))), hasBothKeyValuePair || currentKey !== "") {
  15240. hasBothKeyValuePair && (value = input2.slice(equalityIndex + 1, i), valueHasPlus && (value = value.replace(regexPlus, " ")), shouldDecodeValue && (value = (0, decode_uri_component_js_1.decodeURIComponent)(value) || value));
  15241. let newValue = valueDeserializer(value, currentKey);
  15242. if (arrayRepeat) {
  15243. let currentValue = currentObj[currentKey];
  15244. currentValue === void 0 ? arrayRepeatBracketIndex > -1 ? currentObj[currentKey] = [newValue] : currentObj[currentKey] = newValue : currentValue.pop ? currentValue.push(newValue) : currentObj[currentKey] = [currentValue, newValue];
  15245. } else
  15246. currentObj[currentKey] = newValue;
  15247. }
  15248. value = "", startingIndex = i, equalityIndex = i, shouldDecodeKey = !1, shouldDecodeValue = !1, keyHasPlus = !1, valueHasPlus = !1, keyIsDot = !1, arrayRepeatBracketIndex = -1, keySeparatorIndex = i, currentObj = result, lastKey = void 0, currentKey = "";
  15249. } else c === 93 ? (arrayRepeat && arrayRepeatSyntax === "bracket" && prevChar === 91 && (arrayRepeatBracketIndex = prevIndex), nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, void 0, void 0)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1), keySeparatorIndex = i, keyIsDot = !1)) : c === 46 ? nesting && (nestingSyntax === "dot" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1), keyIsDot = !0, keySeparatorIndex = i) : c === 91 ? nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), isJsNestingSyntax && lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1, keyIsDot = !1), keySeparatorIndex = i) : c === 61 ? equalityIndex <= startingIndex ? equalityIndex = i : shouldDecodeValue = !0 : c === 43 ? equalityIndex > startingIndex ? valueHasPlus = !0 : keyHasPlus = !0 : c === 37 && (equalityIndex > startingIndex ? shouldDecodeValue = !0 : shouldDecodeKey = !0);
  15250. prevIndex = i, prevChar = c;
  15251. }
  15252. return result;
  15253. }
  15254. }
  15255. });
  15256. // ../../node_modules/picoquery/lib/stringify.js
  15257. var require_stringify = __commonJS({
  15258. "../../node_modules/picoquery/lib/stringify.js"(exports) {
  15259. "use strict";
  15260. Object.defineProperty(exports, "__esModule", { value: !0 });
  15261. exports.stringify = stringify8;
  15262. var object_util_js_1 = require_object_util();
  15263. function stringify8(input2, options) {
  15264. if (input2 === null || typeof input2 != "object")
  15265. return "";
  15266. let optionsObj = options ?? {};
  15267. return (0, object_util_js_1.stringifyObject)(input2, optionsObj);
  15268. }
  15269. }
  15270. });
  15271. // ../../node_modules/picoquery/lib/main.js
  15272. var require_main = __commonJS({
  15273. "../../node_modules/picoquery/lib/main.js"(exports) {
  15274. "use strict";
  15275. var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m3, k, k2) {
  15276. k2 === void 0 && (k2 = k);
  15277. var desc = Object.getOwnPropertyDescriptor(m3, k);
  15278. (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
  15279. return m3[k];
  15280. } }), Object.defineProperty(o, k2, desc);
  15281. }) : (function(o, m3, k, k2) {
  15282. k2 === void 0 && (k2 = k), o[k2] = m3[k];
  15283. })), __exportStar = exports && exports.__exportStar || function(m3, exports2) {
  15284. for (var p3 in m3) p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3) && __createBinding(exports2, m3, p3);
  15285. };
  15286. Object.defineProperty(exports, "__esModule", { value: !0 });
  15287. exports.stringify = exports.parse = void 0;
  15288. var parse_js_1 = require_parse();
  15289. Object.defineProperty(exports, "parse", { enumerable: !0, get: function() {
  15290. return parse_js_1.parse;
  15291. } });
  15292. var stringify_js_1 = require_stringify();
  15293. Object.defineProperty(exports, "stringify", { enumerable: !0, get: function() {
  15294. return stringify_js_1.stringify;
  15295. } });
  15296. __exportStar(require_shared(), exports);
  15297. }
  15298. });
  15299. // ../../node_modules/entities/lib/maps/entities.json
  15300. var require_entities = __commonJS({
  15301. "../../node_modules/entities/lib/maps/entities.json"(exports, module2) {
  15302. module2.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: `
  15303. `, nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
  15304. }
  15305. });
  15306. // ../../node_modules/entities/lib/maps/legacy.json
  15307. var require_legacy = __commonJS({
  15308. "../../node_modules/entities/lib/maps/legacy.json"(exports, module2) {
  15309. module2.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9", eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\xBD", frac14: "\xBC", frac34: "\xBE", gt: ">", GT: ">", Iacute: "\xCD", iacute: "\xED", Icirc: "\xCE", icirc: "\xEE", iexcl: "\xA1", Igrave: "\xCC", igrave: "\xEC", iquest: "\xBF", Iuml: "\xCF", iuml: "\xEF", laquo: "\xAB", lt: "<", LT: "<", macr: "\xAF", micro: "\xB5", middot: "\xB7", nbsp: "\xA0", not: "\xAC", Ntilde: "\xD1", ntilde: "\xF1", Oacute: "\xD3", oacute: "\xF3", Ocirc: "\xD4", ocirc: "\xF4", Ograve: "\xD2", ograve: "\xF2", ordf: "\xAA", ordm: "\xBA", Oslash: "\xD8", oslash: "\xF8", Otilde: "\xD5", otilde: "\xF5", Ouml: "\xD6", ouml: "\xF6", para: "\xB6", plusmn: "\xB1", pound: "\xA3", quot: '"', QUOT: '"', raquo: "\xBB", reg: "\xAE", REG: "\xAE", sect: "\xA7", shy: "\xAD", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", szlig: "\xDF", THORN: "\xDE", thorn: "\xFE", times: "\xD7", Uacute: "\xDA", uacute: "\xFA", Ucirc: "\xDB", ucirc: "\xFB", Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" };
  15310. }
  15311. });
  15312. // ../../node_modules/entities/lib/maps/xml.json
  15313. var require_xml2 = __commonJS({
  15314. "../../node_modules/entities/lib/maps/xml.json"(exports, module2) {
  15315. module2.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
  15316. }
  15317. });
  15318. // ../../node_modules/entities/lib/maps/decode.json
  15319. var require_decode = __commonJS({
  15320. "../../node_modules/entities/lib/maps/decode.json"(exports, module2) {
  15321. module2.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240, "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212, "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
  15322. }
  15323. });
  15324. // ../../node_modules/entities/lib/decode_codepoint.js
  15325. var require_decode_codepoint = __commonJS({
  15326. "../../node_modules/entities/lib/decode_codepoint.js"(exports) {
  15327. "use strict";
  15328. var __importDefault = exports && exports.__importDefault || function(mod) {
  15329. return mod && mod.__esModule ? mod : { default: mod };
  15330. };
  15331. Object.defineProperty(exports, "__esModule", { value: !0 });
  15332. var decode_json_1 = __importDefault(require_decode()), fromCodePoint3 = (
  15333. // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
  15334. String.fromCodePoint || function(codePoint) {
  15335. var output = "";
  15336. return codePoint > 65535 && (codePoint -= 65536, output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023), output += String.fromCharCode(codePoint), output;
  15337. }
  15338. );
  15339. function decodeCodePoint(codePoint) {
  15340. return codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111 ? "\uFFFD" : (codePoint in decode_json_1.default && (codePoint = decode_json_1.default[codePoint]), fromCodePoint3(codePoint));
  15341. }
  15342. exports.default = decodeCodePoint;
  15343. }
  15344. });
  15345. // ../../node_modules/entities/lib/decode.js
  15346. var require_decode2 = __commonJS({
  15347. "../../node_modules/entities/lib/decode.js"(exports) {
  15348. "use strict";
  15349. var __importDefault = exports && exports.__importDefault || function(mod) {
  15350. return mod && mod.__esModule ? mod : { default: mod };
  15351. };
  15352. Object.defineProperty(exports, "__esModule", { value: !0 });
  15353. exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0;
  15354. var entities_json_1 = __importDefault(require_entities()), legacy_json_1 = __importDefault(require_legacy()), xml_json_1 = __importDefault(require_xml2()), decode_codepoint_1 = __importDefault(require_decode_codepoint()), strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
  15355. exports.decodeXML = getStrictDecoder(xml_json_1.default);
  15356. exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default);
  15357. function getStrictDecoder(map2) {
  15358. var replace2 = getReplacer(map2);
  15359. return function(str2) {
  15360. return String(str2).replace(strictEntityRe, replace2);
  15361. };
  15362. }
  15363. var sorter = function(a3, b) {
  15364. return a3 < b ? 1 : -1;
  15365. };
  15366. exports.decodeHTML = (function() {
  15367. for (var legacy = Object.keys(legacy_json_1.default).sort(sorter), keys3 = Object.keys(entities_json_1.default).sort(sorter), i = 0, j = 0; i < keys3.length; i++)
  15368. legacy[j] === keys3[i] ? (keys3[i] += ";?", j++) : keys3[i] += ";";
  15369. var re2 = new RegExp("&(?:" + keys3.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), replace2 = getReplacer(entities_json_1.default);
  15370. function replacer3(str2) {
  15371. return str2.substr(-1) !== ";" && (str2 += ";"), replace2(str2);
  15372. }
  15373. return function(str2) {
  15374. return String(str2).replace(re2, replacer3);
  15375. };
  15376. })();
  15377. function getReplacer(map2) {
  15378. return function(str2) {
  15379. if (str2.charAt(1) === "#") {
  15380. var secondChar = str2.charAt(2);
  15381. return secondChar === "X" || secondChar === "x" ? decode_codepoint_1.default(parseInt(str2.substr(3), 16)) : decode_codepoint_1.default(parseInt(str2.substr(2), 10));
  15382. }
  15383. return map2[str2.slice(1, -1)] || str2;
  15384. };
  15385. }
  15386. }
  15387. });
  15388. // ../../node_modules/entities/lib/encode.js
  15389. var require_encode = __commonJS({
  15390. "../../node_modules/entities/lib/encode.js"(exports) {
  15391. "use strict";
  15392. var __importDefault = exports && exports.__importDefault || function(mod) {
  15393. return mod && mod.__esModule ? mod : { default: mod };
  15394. };
  15395. Object.defineProperty(exports, "__esModule", { value: !0 });
  15396. exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0;
  15397. var xml_json_1 = __importDefault(require_xml2()), inverseXML = getInverseObj(xml_json_1.default), xmlReplacer = getInverseReplacer(inverseXML);
  15398. exports.encodeXML = getASCIIEncoder(inverseXML);
  15399. var entities_json_1 = __importDefault(require_entities()), inverseHTML = getInverseObj(entities_json_1.default), htmlReplacer = getInverseReplacer(inverseHTML);
  15400. exports.encodeHTML = getInverse(inverseHTML, htmlReplacer);
  15401. exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML);
  15402. function getInverseObj(obj) {
  15403. return Object.keys(obj).sort().reduce(function(inverse, name) {
  15404. return inverse[obj[name]] = "&" + name + ";", inverse;
  15405. }, {});
  15406. }
  15407. function getInverseReplacer(inverse) {
  15408. for (var single = [], multiple = [], _i = 0, _a4 = Object.keys(inverse); _i < _a4.length; _i++) {
  15409. var k = _a4[_i];
  15410. k.length === 1 ? single.push("\\" + k) : multiple.push(k);
  15411. }
  15412. single.sort();
  15413. for (var start2 = 0; start2 < single.length - 1; start2++) {
  15414. for (var end2 = start2; end2 < single.length - 1 && single[end2].charCodeAt(1) + 1 === single[end2 + 1].charCodeAt(1); )
  15415. end2 += 1;
  15416. var count = 1 + end2 - start2;
  15417. count < 3 || single.splice(start2, count, single[start2] + "-" + single[end2]);
  15418. }
  15419. return multiple.unshift("[" + single.join("") + "]"), new RegExp(multiple.join("|"), "g");
  15420. }
  15421. var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, getCodePoint = (
  15422. // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
  15423. String.prototype.codePointAt != null ? (
  15424. // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
  15425. function(str2) {
  15426. return str2.codePointAt(0);
  15427. }
  15428. ) : (
  15429. // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
  15430. function(c) {
  15431. return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536;
  15432. }
  15433. )
  15434. );
  15435. function singleCharReplacer(c) {
  15436. return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";";
  15437. }
  15438. function getInverse(inverse, re2) {
  15439. return function(data) {
  15440. return data.replace(re2, function(name) {
  15441. return inverse[name];
  15442. }).replace(reNonASCII, singleCharReplacer);
  15443. };
  15444. }
  15445. var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g");
  15446. function escape4(data) {
  15447. return data.replace(reEscapeChars, singleCharReplacer);
  15448. }
  15449. exports.escape = escape4;
  15450. function escapeUTF8(data) {
  15451. return data.replace(xmlReplacer, singleCharReplacer);
  15452. }
  15453. exports.escapeUTF8 = escapeUTF8;
  15454. function getASCIIEncoder(obj) {
  15455. return function(data) {
  15456. return data.replace(reEscapeChars, function(c) {
  15457. return obj[c] || singleCharReplacer(c);
  15458. });
  15459. };
  15460. }
  15461. }
  15462. });
  15463. // ../../node_modules/entities/lib/index.js
  15464. var require_lib = __commonJS({
  15465. "../../node_modules/entities/lib/index.js"(exports) {
  15466. "use strict";
  15467. Object.defineProperty(exports, "__esModule", { value: !0 });
  15468. exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0;
  15469. var decode_1 = require_decode2(), encode_1 = require_encode();
  15470. function decode(data, level) {
  15471. return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data);
  15472. }
  15473. exports.decode = decode;
  15474. function decodeStrict(data, level) {
  15475. return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data);
  15476. }
  15477. exports.decodeStrict = decodeStrict;
  15478. function encode2(data, level) {
  15479. return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data);
  15480. }
  15481. exports.encode = encode2;
  15482. var encode_2 = require_encode();
  15483. Object.defineProperty(exports, "encodeXML", { enumerable: !0, get: function() {
  15484. return encode_2.encodeXML;
  15485. } });
  15486. Object.defineProperty(exports, "encodeHTML", { enumerable: !0, get: function() {
  15487. return encode_2.encodeHTML;
  15488. } });
  15489. Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: !0, get: function() {
  15490. return encode_2.encodeNonAsciiHTML;
  15491. } });
  15492. Object.defineProperty(exports, "escape", { enumerable: !0, get: function() {
  15493. return encode_2.escape;
  15494. } });
  15495. Object.defineProperty(exports, "escapeUTF8", { enumerable: !0, get: function() {
  15496. return encode_2.escapeUTF8;
  15497. } });
  15498. Object.defineProperty(exports, "encodeHTML4", { enumerable: !0, get: function() {
  15499. return encode_2.encodeHTML;
  15500. } });
  15501. Object.defineProperty(exports, "encodeHTML5", { enumerable: !0, get: function() {
  15502. return encode_2.encodeHTML;
  15503. } });
  15504. var decode_2 = require_decode2();
  15505. Object.defineProperty(exports, "decodeXML", { enumerable: !0, get: function() {
  15506. return decode_2.decodeXML;
  15507. } });
  15508. Object.defineProperty(exports, "decodeHTML", { enumerable: !0, get: function() {
  15509. return decode_2.decodeHTML;
  15510. } });
  15511. Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: !0, get: function() {
  15512. return decode_2.decodeHTMLStrict;
  15513. } });
  15514. Object.defineProperty(exports, "decodeHTML4", { enumerable: !0, get: function() {
  15515. return decode_2.decodeHTML;
  15516. } });
  15517. Object.defineProperty(exports, "decodeHTML5", { enumerable: !0, get: function() {
  15518. return decode_2.decodeHTML;
  15519. } });
  15520. Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: !0, get: function() {
  15521. return decode_2.decodeHTMLStrict;
  15522. } });
  15523. Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: !0, get: function() {
  15524. return decode_2.decodeHTMLStrict;
  15525. } });
  15526. Object.defineProperty(exports, "decodeXMLStrict", { enumerable: !0, get: function() {
  15527. return decode_2.decodeXML;
  15528. } });
  15529. }
  15530. });
  15531. // ../../node_modules/ansi-to-html/lib/ansi_to_html.js
  15532. var require_ansi_to_html = __commonJS({
  15533. "../../node_modules/ansi-to-html/lib/ansi_to_html.js"(exports, module2) {
  15534. "use strict";
  15535. function _classCallCheck3(instance, Constructor) {
  15536. if (!(instance instanceof Constructor))
  15537. throw new TypeError("Cannot call a class as a function");
  15538. }
  15539. function _defineProperties3(target, props) {
  15540. for (var i = 0; i < props.length; i++) {
  15541. var descriptor = props[i];
  15542. descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
  15543. }
  15544. }
  15545. function _createClass3(Constructor, protoProps, staticProps) {
  15546. return protoProps && _defineProperties3(Constructor.prototype, protoProps), staticProps && _defineProperties3(Constructor, staticProps), Constructor;
  15547. }
  15548. function _createForOfIteratorHelper(o, allowArrayLike) {
  15549. var it = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
  15550. if (!it) {
  15551. if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length == "number") {
  15552. it && (o = it);
  15553. var i = 0, F = function() {
  15554. };
  15555. return { s: F, n: function() {
  15556. return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] };
  15557. }, e: function(_e) {
  15558. throw _e;
  15559. }, f: F };
  15560. }
  15561. throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  15562. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  15563. }
  15564. var normalCompletion = !0, didErr = !1, err;
  15565. return { s: function() {
  15566. it = it.call(o);
  15567. }, n: function() {
  15568. var step2 = it.next();
  15569. return normalCompletion = step2.done, step2;
  15570. }, e: function(_e2) {
  15571. didErr = !0, err = _e2;
  15572. }, f: function() {
  15573. try {
  15574. !normalCompletion && it.return != null && it.return();
  15575. } finally {
  15576. if (didErr) throw err;
  15577. }
  15578. } };
  15579. }
  15580. function _unsupportedIterableToArray2(o, minLen) {
  15581. if (o) {
  15582. if (typeof o == "string") return _arrayLikeToArray2(o, minLen);
  15583. var n = Object.prototype.toString.call(o).slice(8, -1);
  15584. if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(o);
  15585. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray2(o, minLen);
  15586. }
  15587. }
  15588. function _arrayLikeToArray2(arr, len) {
  15589. (len == null || len > arr.length) && (len = arr.length);
  15590. for (var i = 0, arr2 = new Array(len); i < len; i++)
  15591. arr2[i] = arr[i];
  15592. return arr2;
  15593. }
  15594. var entities = require_lib(), defaults = {
  15595. fg: "#FFF",
  15596. bg: "#000",
  15597. newline: !1,
  15598. escapeXML: !1,
  15599. stream: !1,
  15600. colors: getDefaultColors()
  15601. };
  15602. function getDefaultColors() {
  15603. var colors3 = {
  15604. 0: "#000",
  15605. 1: "#A00",
  15606. 2: "#0A0",
  15607. 3: "#A50",
  15608. 4: "#00A",
  15609. 5: "#A0A",
  15610. 6: "#0AA",
  15611. 7: "#AAA",
  15612. 8: "#555",
  15613. 9: "#F55",
  15614. 10: "#5F5",
  15615. 11: "#FF5",
  15616. 12: "#55F",
  15617. 13: "#F5F",
  15618. 14: "#5FF",
  15619. 15: "#FFF"
  15620. };
  15621. return range(0, 5).forEach(function(red) {
  15622. range(0, 5).forEach(function(green) {
  15623. range(0, 5).forEach(function(blue) {
  15624. return setStyleColor(red, green, blue, colors3);
  15625. });
  15626. });
  15627. }), range(0, 23).forEach(function(gray) {
  15628. var c = gray + 232, l = toHexString(gray * 10 + 8);
  15629. colors3[c] = "#" + l + l + l;
  15630. }), colors3;
  15631. }
  15632. function setStyleColor(red, green, blue, colors3) {
  15633. var c = 16 + red * 36 + green * 6 + blue, r2 = red > 0 ? red * 40 + 55 : 0, g2 = green > 0 ? green * 40 + 55 : 0, b = blue > 0 ? blue * 40 + 55 : 0;
  15634. colors3[c] = toColorHexString([r2, g2, b]);
  15635. }
  15636. function toHexString(num) {
  15637. for (var str2 = num.toString(16); str2.length < 2; )
  15638. str2 = "0" + str2;
  15639. return str2;
  15640. }
  15641. function toColorHexString(ref) {
  15642. var results = [], _iterator = _createForOfIteratorHelper(ref), _step;
  15643. try {
  15644. for (_iterator.s(); !(_step = _iterator.n()).done; ) {
  15645. var r2 = _step.value;
  15646. results.push(toHexString(r2));
  15647. }
  15648. } catch (err) {
  15649. _iterator.e(err);
  15650. } finally {
  15651. _iterator.f();
  15652. }
  15653. return "#" + results.join("");
  15654. }
  15655. function generateOutput(stack, token2, data, options) {
  15656. var result;
  15657. return token2 === "text" ? result = pushText(data, options) : token2 === "display" ? result = handleDisplay(stack, data, options) : token2 === "xterm256Foreground" ? result = pushForegroundColor(stack, options.colors[data]) : token2 === "xterm256Background" ? result = pushBackgroundColor(stack, options.colors[data]) : token2 === "rgb" && (result = handleRgb(stack, data)), result;
  15658. }
  15659. function handleRgb(stack, data) {
  15660. data = data.substring(2).slice(0, -1);
  15661. var operation = +data.substr(0, 2), color2 = data.substring(5).split(";"), rgb2 = color2.map(function(value) {
  15662. return ("0" + Number(value).toString(16)).substr(-2);
  15663. }).join("");
  15664. return pushStyle(stack, (operation === 38 ? "color:#" : "background-color:#") + rgb2);
  15665. }
  15666. function handleDisplay(stack, code, options) {
  15667. code = parseInt(code, 10);
  15668. var codeMap = {
  15669. "-1": function() {
  15670. return "<br/>";
  15671. },
  15672. 0: function() {
  15673. return stack.length && resetStyles(stack);
  15674. },
  15675. 1: function() {
  15676. return pushTag(stack, "b");
  15677. },
  15678. 3: function() {
  15679. return pushTag(stack, "i");
  15680. },
  15681. 4: function() {
  15682. return pushTag(stack, "u");
  15683. },
  15684. 8: function() {
  15685. return pushStyle(stack, "display:none");
  15686. },
  15687. 9: function() {
  15688. return pushTag(stack, "strike");
  15689. },
  15690. 22: function() {
  15691. return pushStyle(stack, "font-weight:normal;text-decoration:none;font-style:normal");
  15692. },
  15693. 23: function() {
  15694. return closeTag(stack, "i");
  15695. },
  15696. 24: function() {
  15697. return closeTag(stack, "u");
  15698. },
  15699. 39: function() {
  15700. return pushForegroundColor(stack, options.fg);
  15701. },
  15702. 49: function() {
  15703. return pushBackgroundColor(stack, options.bg);
  15704. },
  15705. 53: function() {
  15706. return pushStyle(stack, "text-decoration:overline");
  15707. }
  15708. }, result;
  15709. return codeMap[code] ? result = codeMap[code]() : 4 < code && code < 7 ? result = pushTag(stack, "blink") : 29 < code && code < 38 ? result = pushForegroundColor(stack, options.colors[code - 30]) : 39 < code && code < 48 ? result = pushBackgroundColor(stack, options.colors[code - 40]) : 89 < code && code < 98 ? result = pushForegroundColor(stack, options.colors[8 + (code - 90)]) : 99 < code && code < 108 && (result = pushBackgroundColor(stack, options.colors[8 + (code - 100)])), result;
  15710. }
  15711. function resetStyles(stack) {
  15712. var stackClone = stack.slice(0);
  15713. return stack.length = 0, stackClone.reverse().map(function(tag) {
  15714. return "</" + tag + ">";
  15715. }).join("");
  15716. }
  15717. function range(low, high) {
  15718. for (var results = [], j = low; j <= high; j++)
  15719. results.push(j);
  15720. return results;
  15721. }
  15722. function notCategory(category) {
  15723. return function(e) {
  15724. return (category === null || e.category !== category) && category !== "all";
  15725. };
  15726. }
  15727. function categoryForCode(code) {
  15728. code = parseInt(code, 10);
  15729. var result = null;
  15730. return code === 0 ? result = "all" : code === 1 ? result = "bold" : 2 < code && code < 5 ? result = "underline" : 4 < code && code < 7 ? result = "blink" : code === 8 ? result = "hide" : code === 9 ? result = "strike" : 29 < code && code < 38 || code === 39 || 89 < code && code < 98 ? result = "foreground-color" : (39 < code && code < 48 || code === 49 || 99 < code && code < 108) && (result = "background-color"), result;
  15731. }
  15732. function pushText(text, options) {
  15733. return options.escapeXML ? entities.encodeXML(text) : text;
  15734. }
  15735. function pushTag(stack, tag, style) {
  15736. return style || (style = ""), stack.push(tag), "<".concat(tag).concat(style ? ' style="'.concat(style, '"') : "", ">");
  15737. }
  15738. function pushStyle(stack, style) {
  15739. return pushTag(stack, "span", style);
  15740. }
  15741. function pushForegroundColor(stack, color2) {
  15742. return pushTag(stack, "span", "color:" + color2);
  15743. }
  15744. function pushBackgroundColor(stack, color2) {
  15745. return pushTag(stack, "span", "background-color:" + color2);
  15746. }
  15747. function closeTag(stack, style) {
  15748. var last2;
  15749. if (stack.slice(-1)[0] === style && (last2 = stack.pop()), last2)
  15750. return "</" + style + ">";
  15751. }
  15752. function tokenize2(text, options, callback) {
  15753. var ansiMatch = !1, ansiHandler = 3;
  15754. function remove2() {
  15755. return "";
  15756. }
  15757. function removeXterm256Foreground(m3, g1) {
  15758. return callback("xterm256Foreground", g1), "";
  15759. }
  15760. function removeXterm256Background(m3, g1) {
  15761. return callback("xterm256Background", g1), "";
  15762. }
  15763. function newline(m3) {
  15764. return options.newline ? callback("display", -1) : callback("text", m3), "";
  15765. }
  15766. function ansiMess(m3, g1) {
  15767. ansiMatch = !0, g1.trim().length === 0 && (g1 = "0"), g1 = g1.trimRight(";").split(";");
  15768. var _iterator2 = _createForOfIteratorHelper(g1), _step2;
  15769. try {
  15770. for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
  15771. var g2 = _step2.value;
  15772. callback("display", g2);
  15773. }
  15774. } catch (err) {
  15775. _iterator2.e(err);
  15776. } finally {
  15777. _iterator2.f();
  15778. }
  15779. return "";
  15780. }
  15781. function realText(m3) {
  15782. return callback("text", m3), "";
  15783. }
  15784. function rgb2(m3) {
  15785. return callback("rgb", m3), "";
  15786. }
  15787. var tokens2 = [{
  15788. pattern: /^\x08+/,
  15789. sub: remove2
  15790. }, {
  15791. pattern: /^\x1b\[[012]?K/,
  15792. sub: remove2
  15793. }, {
  15794. pattern: /^\x1b\[\(B/,
  15795. sub: remove2
  15796. }, {
  15797. pattern: /^\x1b\[[34]8;2;\d+;\d+;\d+m/,
  15798. sub: rgb2
  15799. }, {
  15800. pattern: /^\x1b\[38;5;(\d+)m/,
  15801. sub: removeXterm256Foreground
  15802. }, {
  15803. pattern: /^\x1b\[48;5;(\d+)m/,
  15804. sub: removeXterm256Background
  15805. }, {
  15806. pattern: /^\n/,
  15807. sub: newline
  15808. }, {
  15809. pattern: /^\r+\n/,
  15810. sub: newline
  15811. }, {
  15812. pattern: /^\r/,
  15813. sub: newline
  15814. }, {
  15815. pattern: /^\x1b\[((?:\d{1,3};?)+|)m/,
  15816. sub: ansiMess
  15817. }, {
  15818. // CSI n J
  15819. // ED - Erase in Display Clears part of the screen.
  15820. // If n is 0 (or missing), clear from cursor to end of screen.
  15821. // If n is 1, clear from cursor to beginning of the screen.
  15822. // If n is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS).
  15823. // If n is 3, clear entire screen and delete all lines saved in the scrollback buffer
  15824. // (this feature was added for xterm and is supported by other terminal applications).
  15825. pattern: /^\x1b\[\d?J/,
  15826. sub: remove2
  15827. }, {
  15828. // CSI n ; m f
  15829. // HVP - Horizontal Vertical Position Same as CUP
  15830. pattern: /^\x1b\[\d{0,3};\d{0,3}f/,
  15831. sub: remove2
  15832. }, {
  15833. // catch-all for CSI sequences?
  15834. pattern: /^\x1b\[?[\d;]{0,3}/,
  15835. sub: remove2
  15836. }, {
  15837. /**
  15838. * extracts real text - not containing:
  15839. * - `\x1b' - ESC - escape (Ascii 27)
  15840. * - '\x08' - BS - backspace (Ascii 8)
  15841. * - `\n` - Newline - linefeed (LF) (ascii 10)
  15842. * - `\r` - Windows Carriage Return (CR)
  15843. */
  15844. pattern: /^(([^\x1b\x08\r\n])+)/,
  15845. sub: realText
  15846. }];
  15847. function process2(handler2, i2) {
  15848. i2 > ansiHandler && ansiMatch || (ansiMatch = !1, text = text.replace(handler2.pattern, handler2.sub));
  15849. }
  15850. var results1 = [], _text = text, length2 = _text.length;
  15851. outer: for (; length2 > 0; ) {
  15852. for (var i = 0, o = 0, len = tokens2.length; o < len; i = ++o) {
  15853. var handler = tokens2[i];
  15854. if (process2(handler, i), text.length !== length2) {
  15855. length2 = text.length;
  15856. continue outer;
  15857. }
  15858. }
  15859. if (text.length === length2)
  15860. break;
  15861. results1.push(0), length2 = text.length;
  15862. }
  15863. return results1;
  15864. }
  15865. function updateStickyStack(stickyStack, token2, data) {
  15866. return token2 !== "text" && (stickyStack = stickyStack.filter(notCategory(categoryForCode(data))), stickyStack.push({
  15867. token: token2,
  15868. data,
  15869. category: categoryForCode(data)
  15870. })), stickyStack;
  15871. }
  15872. var Filter = (function() {
  15873. function Filter2(options) {
  15874. _classCallCheck3(this, Filter2), options = options || {}, options.colors && (options.colors = Object.assign({}, defaults.colors, options.colors)), this.options = Object.assign({}, defaults, options), this.stack = [], this.stickyStack = [];
  15875. }
  15876. return _createClass3(Filter2, [{
  15877. key: "toHtml",
  15878. value: function(input2) {
  15879. var _this = this;
  15880. input2 = typeof input2 == "string" ? [input2] : input2;
  15881. var stack = this.stack, options = this.options, buf = [];
  15882. return this.stickyStack.forEach(function(element) {
  15883. var output = generateOutput(stack, element.token, element.data, options);
  15884. output && buf.push(output);
  15885. }), tokenize2(input2.join(""), options, function(token2, data) {
  15886. var output = generateOutput(stack, token2, data, options);
  15887. output && buf.push(output), options.stream && (_this.stickyStack = updateStickyStack(_this.stickyStack, token2, data));
  15888. }), stack.length && buf.push(resetStyles(stack)), buf.join("");
  15889. }
  15890. }]), Filter2;
  15891. })();
  15892. module2.exports = Filter;
  15893. }
  15894. });
  15895. // ../../node_modules/jsdoc-type-pratt-parser/dist/index.js
  15896. var require_dist = __commonJS({
  15897. "../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(exports, module2) {
  15898. (function(global2, factory) {
  15899. typeof exports == "object" && typeof module2 < "u" ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis < "u" ? globalThis : global2 || self, factory(global2.jtpp = {}));
  15900. })(exports, (function(exports2) {
  15901. "use strict";
  15902. function tokenToString(token2) {
  15903. return token2.text !== void 0 && token2.text !== "" ? `'${token2.type}' with value '${token2.text}'` : `'${token2.type}'`;
  15904. }
  15905. class NoParsletFoundError extends Error {
  15906. constructor(token2) {
  15907. super(`No parslet found for token: ${tokenToString(token2)}`), this.token = token2, Object.setPrototypeOf(this, NoParsletFoundError.prototype);
  15908. }
  15909. getToken() {
  15910. return this.token;
  15911. }
  15912. }
  15913. class EarlyEndOfParseError extends Error {
  15914. constructor(token2) {
  15915. super(`The parsing ended early. The next token was: ${tokenToString(token2)}`), this.token = token2, Object.setPrototypeOf(this, EarlyEndOfParseError.prototype);
  15916. }
  15917. getToken() {
  15918. return this.token;
  15919. }
  15920. }
  15921. class UnexpectedTypeError extends Error {
  15922. constructor(result, message) {
  15923. let error = `Unexpected type: '${result.type}'.`;
  15924. message !== void 0 && (error += ` Message: ${message}`), super(error), Object.setPrototypeOf(this, UnexpectedTypeError.prototype);
  15925. }
  15926. }
  15927. function makePunctuationRule(type5) {
  15928. return (text) => text.startsWith(type5) ? { type: type5, text: type5 } : null;
  15929. }
  15930. function getQuoted(text) {
  15931. let position2 = 0, char2, mark = text[0], escaped = !1;
  15932. if (mark !== "'" && mark !== '"')
  15933. return null;
  15934. for (; position2 < text.length; ) {
  15935. if (position2++, char2 = text[position2], !escaped && char2 === mark) {
  15936. position2++;
  15937. break;
  15938. }
  15939. escaped = !escaped && char2 === "\\";
  15940. }
  15941. if (char2 !== mark)
  15942. throw new Error("Unterminated String");
  15943. return text.slice(0, position2);
  15944. }
  15945. let identifierStartRegex = new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u"), identifierContinueRegex = new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u");
  15946. function getIdentifier(text) {
  15947. let char2 = text[0];
  15948. if (!identifierStartRegex.test(char2))
  15949. return null;
  15950. let position2 = 1;
  15951. do {
  15952. if (char2 = text[position2], !identifierContinueRegex.test(char2))
  15953. break;
  15954. position2++;
  15955. } while (position2 < text.length);
  15956. return text.slice(0, position2);
  15957. }
  15958. let numberRegex = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;
  15959. function getNumber(text) {
  15960. var _a4, _b;
  15961. return (_b = (_a4 = numberRegex.exec(text)) === null || _a4 === void 0 ? void 0 : _a4[0]) !== null && _b !== void 0 ? _b : null;
  15962. }
  15963. let identifierRule = (text) => {
  15964. let value = getIdentifier(text);
  15965. return value == null ? null : {
  15966. type: "Identifier",
  15967. text: value
  15968. };
  15969. };
  15970. function makeKeyWordRule(type5) {
  15971. return (text) => {
  15972. if (!text.startsWith(type5))
  15973. return null;
  15974. let prepends = text[type5.length];
  15975. return prepends !== void 0 && identifierContinueRegex.test(prepends) ? null : {
  15976. type: type5,
  15977. text: type5
  15978. };
  15979. };
  15980. }
  15981. let stringValueRule = (text) => {
  15982. let value = getQuoted(text);
  15983. return value == null ? null : {
  15984. type: "StringValue",
  15985. text: value
  15986. };
  15987. }, eofRule = (text) => text.length > 0 ? null : {
  15988. type: "EOF",
  15989. text: ""
  15990. }, numberRule = (text) => {
  15991. let value = getNumber(text);
  15992. return value === null ? null : {
  15993. type: "Number",
  15994. text: value
  15995. };
  15996. }, rules = [
  15997. eofRule,
  15998. makePunctuationRule("=>"),
  15999. makePunctuationRule("("),
  16000. makePunctuationRule(")"),
  16001. makePunctuationRule("{"),
  16002. makePunctuationRule("}"),
  16003. makePunctuationRule("["),
  16004. makePunctuationRule("]"),
  16005. makePunctuationRule("|"),
  16006. makePunctuationRule("&"),
  16007. makePunctuationRule("<"),
  16008. makePunctuationRule(">"),
  16009. makePunctuationRule(","),
  16010. makePunctuationRule(";"),
  16011. makePunctuationRule("*"),
  16012. makePunctuationRule("?"),
  16013. makePunctuationRule("!"),
  16014. makePunctuationRule("="),
  16015. makePunctuationRule(":"),
  16016. makePunctuationRule("..."),
  16017. makePunctuationRule("."),
  16018. makePunctuationRule("#"),
  16019. makePunctuationRule("~"),
  16020. makePunctuationRule("/"),
  16021. makePunctuationRule("@"),
  16022. makeKeyWordRule("undefined"),
  16023. makeKeyWordRule("null"),
  16024. makeKeyWordRule("function"),
  16025. makeKeyWordRule("this"),
  16026. makeKeyWordRule("new"),
  16027. makeKeyWordRule("module"),
  16028. makeKeyWordRule("event"),
  16029. makeKeyWordRule("extends"),
  16030. makeKeyWordRule("external"),
  16031. makeKeyWordRule("infer"),
  16032. makeKeyWordRule("typeof"),
  16033. makeKeyWordRule("keyof"),
  16034. makeKeyWordRule("readonly"),
  16035. makeKeyWordRule("import"),
  16036. makeKeyWordRule("is"),
  16037. makeKeyWordRule("in"),
  16038. makeKeyWordRule("asserts"),
  16039. numberRule,
  16040. identifierRule,
  16041. stringValueRule
  16042. ], breakingWhitespaceRegex = /^\s*\n\s*/;
  16043. class Lexer {
  16044. static create(text) {
  16045. let current = this.read(text);
  16046. text = current.text;
  16047. let next2 = this.read(text);
  16048. return text = next2.text, new Lexer(text, void 0, current.token, next2.token);
  16049. }
  16050. constructor(text, previous, current, next2) {
  16051. this.text = "", this.text = text, this.previous = previous, this.current = current, this.next = next2;
  16052. }
  16053. static read(text, startOfLine = !1) {
  16054. startOfLine = startOfLine || breakingWhitespaceRegex.test(text), text = text.trim();
  16055. for (let rule of rules) {
  16056. let partial = rule(text);
  16057. if (partial !== null) {
  16058. let token2 = Object.assign(Object.assign({}, partial), { startOfLine });
  16059. return text = text.slice(token2.text.length), { text, token: token2 };
  16060. }
  16061. }
  16062. throw new Error("Unexpected Token " + text);
  16063. }
  16064. advance() {
  16065. let next2 = Lexer.read(this.text);
  16066. return new Lexer(next2.text, this.current, this.next, next2.token);
  16067. }
  16068. }
  16069. function assertRootResult(result) {
  16070. if (result === void 0)
  16071. throw new Error("Unexpected undefined");
  16072. if (result.type === "JsdocTypeKeyValue" || result.type === "JsdocTypeParameterList" || result.type === "JsdocTypeProperty" || result.type === "JsdocTypeReadonlyProperty" || result.type === "JsdocTypeObjectField" || result.type === "JsdocTypeJsdocObjectField" || result.type === "JsdocTypeIndexSignature" || result.type === "JsdocTypeMappedType" || result.type === "JsdocTypeTypeParameter")
  16073. throw new UnexpectedTypeError(result);
  16074. return result;
  16075. }
  16076. function assertPlainKeyValueOrRootResult(result) {
  16077. return result.type === "JsdocTypeKeyValue" ? assertPlainKeyValueResult(result) : assertRootResult(result);
  16078. }
  16079. function assertPlainKeyValueOrNameResult(result) {
  16080. return result.type === "JsdocTypeName" ? result : assertPlainKeyValueResult(result);
  16081. }
  16082. function assertPlainKeyValueResult(result) {
  16083. if (result.type !== "JsdocTypeKeyValue")
  16084. throw new UnexpectedTypeError(result);
  16085. return result;
  16086. }
  16087. function assertNumberOrVariadicNameResult(result) {
  16088. var _a4;
  16089. if (result.type === "JsdocTypeVariadic") {
  16090. if (((_a4 = result.element) === null || _a4 === void 0 ? void 0 : _a4.type) === "JsdocTypeName")
  16091. return result;
  16092. throw new UnexpectedTypeError(result);
  16093. }
  16094. if (result.type !== "JsdocTypeNumber" && result.type !== "JsdocTypeName")
  16095. throw new UnexpectedTypeError(result);
  16096. return result;
  16097. }
  16098. function assertArrayOrTupleResult(result) {
  16099. if (result.type === "JsdocTypeTuple" || result.type === "JsdocTypeGeneric" && result.meta.brackets === "square")
  16100. return result;
  16101. throw new UnexpectedTypeError(result);
  16102. }
  16103. function isSquaredProperty(result) {
  16104. return result.type === "JsdocTypeIndexSignature" || result.type === "JsdocTypeMappedType";
  16105. }
  16106. var Precedence;
  16107. (function(Precedence2) {
  16108. Precedence2[Precedence2.ALL = 0] = "ALL", Precedence2[Precedence2.PARAMETER_LIST = 1] = "PARAMETER_LIST", Precedence2[Precedence2.OBJECT = 2] = "OBJECT", Precedence2[Precedence2.KEY_VALUE = 3] = "KEY_VALUE", Precedence2[Precedence2.INDEX_BRACKETS = 4] = "INDEX_BRACKETS", Precedence2[Precedence2.UNION = 5] = "UNION", Precedence2[Precedence2.INTERSECTION = 6] = "INTERSECTION", Precedence2[Precedence2.PREFIX = 7] = "PREFIX", Precedence2[Precedence2.INFIX = 8] = "INFIX", Precedence2[Precedence2.TUPLE = 9] = "TUPLE", Precedence2[Precedence2.SYMBOL = 10] = "SYMBOL", Precedence2[Precedence2.OPTIONAL = 11] = "OPTIONAL", Precedence2[Precedence2.NULLABLE = 12] = "NULLABLE", Precedence2[Precedence2.KEY_OF_TYPE_OF = 13] = "KEY_OF_TYPE_OF", Precedence2[Precedence2.FUNCTION = 14] = "FUNCTION", Precedence2[Precedence2.ARROW = 15] = "ARROW", Precedence2[Precedence2.ARRAY_BRACKETS = 16] = "ARRAY_BRACKETS", Precedence2[Precedence2.GENERIC = 17] = "GENERIC", Precedence2[Precedence2.NAME_PATH = 18] = "NAME_PATH", Precedence2[Precedence2.PARENTHESIS = 19] = "PARENTHESIS", Precedence2[Precedence2.SPECIAL_TYPES = 20] = "SPECIAL_TYPES";
  16109. })(Precedence || (Precedence = {}));
  16110. class Parser2 {
  16111. constructor(grammar, textOrLexer, baseParser) {
  16112. this.grammar = grammar, typeof textOrLexer == "string" ? this._lexer = Lexer.create(textOrLexer) : this._lexer = textOrLexer, this.baseParser = baseParser;
  16113. }
  16114. get lexer() {
  16115. return this._lexer;
  16116. }
  16117. /**
  16118. * Parses a given string and throws an error if the parse ended before the end of the string.
  16119. */
  16120. parse() {
  16121. let result = this.parseType(Precedence.ALL);
  16122. if (this.lexer.current.type !== "EOF")
  16123. throw new EarlyEndOfParseError(this.lexer.current);
  16124. return result;
  16125. }
  16126. /**
  16127. * Parses with the current lexer and asserts that the result is a {@link RootResult}.
  16128. */
  16129. parseType(precedence) {
  16130. return assertRootResult(this.parseIntermediateType(precedence));
  16131. }
  16132. /**
  16133. * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues
  16134. * to parse the state in the infix step.
  16135. */
  16136. parseIntermediateType(precedence) {
  16137. let result = this.tryParslets(null, precedence);
  16138. if (result === null)
  16139. throw new NoParsletFoundError(this.lexer.current);
  16140. return this.parseInfixIntermediateType(result, precedence);
  16141. }
  16142. /**
  16143. * In the infix parsing step the parser continues to parse the current state with all parslets until none returns
  16144. * a result.
  16145. */
  16146. parseInfixIntermediateType(left2, precedence) {
  16147. let result = this.tryParslets(left2, precedence);
  16148. for (; result !== null; )
  16149. left2 = result, result = this.tryParslets(left2, precedence);
  16150. return left2;
  16151. }
  16152. /**
  16153. * Tries to parse the current state with all parslets in the grammar and returns the first non null result.
  16154. */
  16155. tryParslets(left2, precedence) {
  16156. for (let parslet of this.grammar) {
  16157. let result = parslet(this, precedence, left2);
  16158. if (result !== null)
  16159. return result;
  16160. }
  16161. return null;
  16162. }
  16163. /**
  16164. * If the given type equals the current type of the {@link Lexer} advance the lexer. Return true if the lexer was
  16165. * advanced.
  16166. */
  16167. consume(types) {
  16168. return Array.isArray(types) || (types = [types]), types.includes(this.lexer.current.type) ? (this._lexer = this.lexer.advance(), !0) : !1;
  16169. }
  16170. acceptLexerState(parser) {
  16171. this._lexer = parser.lexer;
  16172. }
  16173. }
  16174. function isQuestionMarkUnknownType(next2) {
  16175. return next2 === "}" || next2 === "EOF" || next2 === "|" || next2 === "," || next2 === ")" || next2 === ">";
  16176. }
  16177. let nullableParslet = (parser, precedence, left2) => {
  16178. let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type;
  16179. return left2 == null && type5 === "?" && !isQuestionMarkUnknownType(next2) || left2 != null && type5 === "?" ? (parser.consume("?"), left2 == null ? {
  16180. type: "JsdocTypeNullable",
  16181. element: parser.parseType(Precedence.NULLABLE),
  16182. meta: {
  16183. position: "prefix"
  16184. }
  16185. } : {
  16186. type: "JsdocTypeNullable",
  16187. element: assertRootResult(left2),
  16188. meta: {
  16189. position: "suffix"
  16190. }
  16191. }) : null;
  16192. };
  16193. function composeParslet(options) {
  16194. let parslet = (parser, curPrecedence, left2) => {
  16195. let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type;
  16196. if (left2 === null) {
  16197. if ("parsePrefix" in options && options.accept(type5, next2))
  16198. return options.parsePrefix(parser);
  16199. } else if ("parseInfix" in options && options.precedence > curPrecedence && options.accept(type5, next2))
  16200. return options.parseInfix(parser, left2);
  16201. return null;
  16202. };
  16203. return Object.defineProperty(parslet, "name", {
  16204. value: options.name
  16205. }), parslet;
  16206. }
  16207. let optionalParslet = composeParslet({
  16208. name: "optionalParslet",
  16209. accept: (type5) => type5 === "=",
  16210. precedence: Precedence.OPTIONAL,
  16211. parsePrefix: (parser) => (parser.consume("="), {
  16212. type: "JsdocTypeOptional",
  16213. element: parser.parseType(Precedence.OPTIONAL),
  16214. meta: {
  16215. position: "prefix"
  16216. }
  16217. }),
  16218. parseInfix: (parser, left2) => (parser.consume("="), {
  16219. type: "JsdocTypeOptional",
  16220. element: assertRootResult(left2),
  16221. meta: {
  16222. position: "suffix"
  16223. }
  16224. })
  16225. }), numberParslet = composeParslet({
  16226. name: "numberParslet",
  16227. accept: (type5) => type5 === "Number",
  16228. parsePrefix: (parser) => {
  16229. let value = parseFloat(parser.lexer.current.text);
  16230. return parser.consume("Number"), {
  16231. type: "JsdocTypeNumber",
  16232. value
  16233. };
  16234. }
  16235. }), parenthesisParslet = composeParslet({
  16236. name: "parenthesisParslet",
  16237. accept: (type5) => type5 === "(",
  16238. parsePrefix: (parser) => {
  16239. if (parser.consume("("), parser.consume(")"))
  16240. return {
  16241. type: "JsdocTypeParameterList",
  16242. elements: []
  16243. };
  16244. let result = parser.parseIntermediateType(Precedence.ALL);
  16245. if (!parser.consume(")"))
  16246. throw new Error("Unterminated parenthesis");
  16247. return result.type === "JsdocTypeParameterList" ? result : result.type === "JsdocTypeKeyValue" ? {
  16248. type: "JsdocTypeParameterList",
  16249. elements: [result]
  16250. } : {
  16251. type: "JsdocTypeParenthesis",
  16252. element: assertRootResult(result)
  16253. };
  16254. }
  16255. }), specialTypesParslet = composeParslet({
  16256. name: "specialTypesParslet",
  16257. accept: (type5, next2) => type5 === "?" && isQuestionMarkUnknownType(next2) || type5 === "null" || type5 === "undefined" || type5 === "*",
  16258. parsePrefix: (parser) => {
  16259. if (parser.consume("null"))
  16260. return {
  16261. type: "JsdocTypeNull"
  16262. };
  16263. if (parser.consume("undefined"))
  16264. return {
  16265. type: "JsdocTypeUndefined"
  16266. };
  16267. if (parser.consume("*"))
  16268. return {
  16269. type: "JsdocTypeAny"
  16270. };
  16271. if (parser.consume("?"))
  16272. return {
  16273. type: "JsdocTypeUnknown"
  16274. };
  16275. throw new Error("Unacceptable token: " + parser.lexer.current.text);
  16276. }
  16277. }), notNullableParslet = composeParslet({
  16278. name: "notNullableParslet",
  16279. accept: (type5) => type5 === "!",
  16280. precedence: Precedence.NULLABLE,
  16281. parsePrefix: (parser) => (parser.consume("!"), {
  16282. type: "JsdocTypeNotNullable",
  16283. element: parser.parseType(Precedence.NULLABLE),
  16284. meta: {
  16285. position: "prefix"
  16286. }
  16287. }),
  16288. parseInfix: (parser, left2) => (parser.consume("!"), {
  16289. type: "JsdocTypeNotNullable",
  16290. element: assertRootResult(left2),
  16291. meta: {
  16292. position: "suffix"
  16293. }
  16294. })
  16295. });
  16296. function createParameterListParslet({ allowTrailingComma }) {
  16297. return composeParslet({
  16298. name: "parameterListParslet",
  16299. accept: (type5) => type5 === ",",
  16300. precedence: Precedence.PARAMETER_LIST,
  16301. parseInfix: (parser, left2) => {
  16302. let elements = [
  16303. assertPlainKeyValueOrRootResult(left2)
  16304. ];
  16305. parser.consume(",");
  16306. do
  16307. try {
  16308. let next2 = parser.parseIntermediateType(Precedence.PARAMETER_LIST);
  16309. elements.push(assertPlainKeyValueOrRootResult(next2));
  16310. } catch (e) {
  16311. if (e instanceof NoParsletFoundError)
  16312. break;
  16313. throw e;
  16314. }
  16315. while (parser.consume(","));
  16316. if (elements.length > 0 && elements.slice(0, -1).some((e) => e.type === "JsdocTypeVariadic"))
  16317. throw new Error("Only the last parameter may be a rest parameter");
  16318. return {
  16319. type: "JsdocTypeParameterList",
  16320. elements
  16321. };
  16322. }
  16323. });
  16324. }
  16325. let genericParslet = composeParslet({
  16326. name: "genericParslet",
  16327. accept: (type5, next2) => type5 === "<" || type5 === "." && next2 === "<",
  16328. precedence: Precedence.GENERIC,
  16329. parseInfix: (parser, left2) => {
  16330. let dot = parser.consume(".");
  16331. parser.consume("<");
  16332. let objects = [], infer = !1;
  16333. if (parser.consume("infer")) {
  16334. infer = !0;
  16335. let left3 = parser.parseIntermediateType(Precedence.SYMBOL);
  16336. if (left3.type !== "JsdocTypeName")
  16337. throw new UnexpectedTypeError(left3, "A typescript asserts always has to have a name on the left side.");
  16338. objects.push(left3);
  16339. } else
  16340. do
  16341. objects.push(parser.parseType(Precedence.PARAMETER_LIST));
  16342. while (parser.consume(","));
  16343. if (!parser.consume(">"))
  16344. throw new Error("Unterminated generic parameter list");
  16345. return Object.assign(Object.assign({ type: "JsdocTypeGeneric", left: assertRootResult(left2), elements: objects }, infer ? { infer: !0 } : {}), { meta: {
  16346. brackets: "angle",
  16347. dot
  16348. } });
  16349. }
  16350. }), unionParslet = composeParslet({
  16351. name: "unionParslet",
  16352. accept: (type5) => type5 === "|",
  16353. precedence: Precedence.UNION,
  16354. parseInfix: (parser, left2) => {
  16355. parser.consume("|");
  16356. let elements = [];
  16357. do
  16358. elements.push(parser.parseType(Precedence.UNION));
  16359. while (parser.consume("|"));
  16360. return {
  16361. type: "JsdocTypeUnion",
  16362. elements: [assertRootResult(left2), ...elements]
  16363. };
  16364. }
  16365. }), baseGrammar = [
  16366. nullableParslet,
  16367. optionalParslet,
  16368. numberParslet,
  16369. parenthesisParslet,
  16370. specialTypesParslet,
  16371. notNullableParslet,
  16372. createParameterListParslet({
  16373. allowTrailingComma: !0
  16374. }),
  16375. genericParslet,
  16376. unionParslet,
  16377. optionalParslet
  16378. ];
  16379. function createNamePathParslet({ allowSquareBracketsOnAnyType, allowJsdocNamePaths, pathGrammar: pathGrammar2 }) {
  16380. return function(parser, precedence, left2) {
  16381. if (left2 == null || precedence >= Precedence.NAME_PATH)
  16382. return null;
  16383. let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type;
  16384. if (!(type5 === "." && next2 !== "<" || type5 === "[" && (allowSquareBracketsOnAnyType || left2.type === "JsdocTypeName") || allowJsdocNamePaths && (type5 === "~" || type5 === "#")))
  16385. return null;
  16386. let pathType, brackets = !1;
  16387. parser.consume(".") ? pathType = "property" : parser.consume("[") ? (pathType = "property-brackets", brackets = !0) : parser.consume("~") ? pathType = "inner" : (parser.consume("#"), pathType = "instance");
  16388. let pathParser = pathGrammar2 !== null ? new Parser2(pathGrammar2, parser.lexer, parser) : parser, parsed = pathParser.parseIntermediateType(Precedence.NAME_PATH);
  16389. parser.acceptLexerState(pathParser);
  16390. let right2;
  16391. switch (parsed.type) {
  16392. case "JsdocTypeName":
  16393. right2 = {
  16394. type: "JsdocTypeProperty",
  16395. value: parsed.value,
  16396. meta: {
  16397. quote: void 0
  16398. }
  16399. };
  16400. break;
  16401. case "JsdocTypeNumber":
  16402. right2 = {
  16403. type: "JsdocTypeProperty",
  16404. value: parsed.value.toString(10),
  16405. meta: {
  16406. quote: void 0
  16407. }
  16408. };
  16409. break;
  16410. case "JsdocTypeStringValue":
  16411. right2 = {
  16412. type: "JsdocTypeProperty",
  16413. value: parsed.value,
  16414. meta: {
  16415. quote: parsed.meta.quote
  16416. }
  16417. };
  16418. break;
  16419. case "JsdocTypeSpecialNamePath":
  16420. if (parsed.specialType === "event")
  16421. right2 = parsed;
  16422. else
  16423. throw new UnexpectedTypeError(parsed, "Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");
  16424. break;
  16425. default:
  16426. throw new UnexpectedTypeError(parsed, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");
  16427. }
  16428. if (brackets && !parser.consume("]")) {
  16429. let token2 = parser.lexer.current;
  16430. throw new Error(`Unterminated square brackets. Next token is '${token2.type}' with text '${token2.text}'`);
  16431. }
  16432. return {
  16433. type: "JsdocTypeNamePath",
  16434. left: assertRootResult(left2),
  16435. right: right2,
  16436. pathType
  16437. };
  16438. };
  16439. }
  16440. function createNameParslet({ allowedAdditionalTokens }) {
  16441. return composeParslet({
  16442. name: "nameParslet",
  16443. accept: (type5) => type5 === "Identifier" || type5 === "this" || type5 === "new" || allowedAdditionalTokens.includes(type5),
  16444. parsePrefix: (parser) => {
  16445. let { type: type5, text } = parser.lexer.current;
  16446. return parser.consume(type5), {
  16447. type: "JsdocTypeName",
  16448. value: text
  16449. };
  16450. }
  16451. });
  16452. }
  16453. let stringValueParslet = composeParslet({
  16454. name: "stringValueParslet",
  16455. accept: (type5) => type5 === "StringValue",
  16456. parsePrefix: (parser) => {
  16457. let text = parser.lexer.current.text;
  16458. return parser.consume("StringValue"), {
  16459. type: "JsdocTypeStringValue",
  16460. value: text.slice(1, -1),
  16461. meta: {
  16462. quote: text[0] === "'" ? "single" : "double"
  16463. }
  16464. };
  16465. }
  16466. });
  16467. function createSpecialNamePathParslet({ pathGrammar: pathGrammar2, allowedTypes }) {
  16468. return composeParslet({
  16469. name: "specialNamePathParslet",
  16470. accept: (type5) => allowedTypes.includes(type5),
  16471. parsePrefix: (parser) => {
  16472. let type5 = parser.lexer.current.type;
  16473. if (parser.consume(type5), !parser.consume(":"))
  16474. return {
  16475. type: "JsdocTypeName",
  16476. value: type5
  16477. };
  16478. let result, token2 = parser.lexer.current;
  16479. if (parser.consume("StringValue"))
  16480. result = {
  16481. type: "JsdocTypeSpecialNamePath",
  16482. value: token2.text.slice(1, -1),
  16483. specialType: type5,
  16484. meta: {
  16485. quote: token2.text[0] === "'" ? "single" : "double"
  16486. }
  16487. };
  16488. else {
  16489. let value = "", allowed = ["Identifier", "@", "/"];
  16490. for (; allowed.some((type6) => parser.consume(type6)); )
  16491. value += token2.text, token2 = parser.lexer.current;
  16492. result = {
  16493. type: "JsdocTypeSpecialNamePath",
  16494. value,
  16495. specialType: type5,
  16496. meta: {
  16497. quote: void 0
  16498. }
  16499. };
  16500. }
  16501. let moduleParser = new Parser2(pathGrammar2, parser.lexer, parser), moduleResult = moduleParser.parseInfixIntermediateType(result, Precedence.ALL);
  16502. return parser.acceptLexerState(moduleParser), assertRootResult(moduleResult);
  16503. }
  16504. });
  16505. }
  16506. let basePathGrammar = [
  16507. createNameParslet({
  16508. allowedAdditionalTokens: ["external", "module"]
  16509. }),
  16510. stringValueParslet,
  16511. numberParslet,
  16512. createNamePathParslet({
  16513. allowSquareBracketsOnAnyType: !1,
  16514. allowJsdocNamePaths: !0,
  16515. pathGrammar: null
  16516. })
  16517. ], pathGrammar = [
  16518. ...basePathGrammar,
  16519. createSpecialNamePathParslet({
  16520. allowedTypes: ["event"],
  16521. pathGrammar: basePathGrammar
  16522. })
  16523. ];
  16524. function getParameters(value) {
  16525. let parameters2;
  16526. if (value.type === "JsdocTypeParameterList")
  16527. parameters2 = value.elements;
  16528. else if (value.type === "JsdocTypeParenthesis")
  16529. parameters2 = [value.element];
  16530. else
  16531. throw new UnexpectedTypeError(value);
  16532. return parameters2.map((p3) => assertPlainKeyValueOrRootResult(p3));
  16533. }
  16534. function getUnnamedParameters(value) {
  16535. let parameters2 = getParameters(value);
  16536. if (parameters2.some((p3) => p3.type === "JsdocTypeKeyValue"))
  16537. throw new Error("No parameter should be named");
  16538. return parameters2;
  16539. }
  16540. function createFunctionParslet({ allowNamedParameters, allowNoReturnType, allowWithoutParenthesis, allowNewAsFunctionKeyword }) {
  16541. return composeParslet({
  16542. name: "functionParslet",
  16543. accept: (type5, next2) => type5 === "function" || allowNewAsFunctionKeyword && type5 === "new" && next2 === "(",
  16544. parsePrefix: (parser) => {
  16545. let newKeyword = parser.consume("new");
  16546. parser.consume("function");
  16547. let hasParenthesis = parser.lexer.current.type === "(";
  16548. if (!hasParenthesis) {
  16549. if (!allowWithoutParenthesis)
  16550. throw new Error("function is missing parameter list");
  16551. return {
  16552. type: "JsdocTypeName",
  16553. value: "function"
  16554. };
  16555. }
  16556. let result = {
  16557. type: "JsdocTypeFunction",
  16558. parameters: [],
  16559. arrow: !1,
  16560. constructor: newKeyword,
  16561. parenthesis: hasParenthesis
  16562. }, value = parser.parseIntermediateType(Precedence.FUNCTION);
  16563. if (allowNamedParameters === void 0)
  16564. result.parameters = getUnnamedParameters(value);
  16565. else {
  16566. if (newKeyword && value.type === "JsdocTypeFunction" && value.arrow)
  16567. return result = value, result.constructor = !0, result;
  16568. result.parameters = getParameters(value);
  16569. for (let p3 of result.parameters)
  16570. if (p3.type === "JsdocTypeKeyValue" && !allowNamedParameters.includes(p3.key))
  16571. throw new Error(`only allowed named parameters are ${allowNamedParameters.join(", ")} but got ${p3.type}`);
  16572. }
  16573. if (parser.consume(":"))
  16574. result.returnType = parser.parseType(Precedence.PREFIX);
  16575. else if (!allowNoReturnType)
  16576. throw new Error("function is missing return type");
  16577. return result;
  16578. }
  16579. });
  16580. }
  16581. function createVariadicParslet({ allowPostfix, allowEnclosingBrackets }) {
  16582. return composeParslet({
  16583. name: "variadicParslet",
  16584. accept: (type5) => type5 === "...",
  16585. precedence: Precedence.PREFIX,
  16586. parsePrefix: (parser) => {
  16587. parser.consume("...");
  16588. let brackets = allowEnclosingBrackets && parser.consume("[");
  16589. try {
  16590. let element = parser.parseType(Precedence.PREFIX);
  16591. if (brackets && !parser.consume("]"))
  16592. throw new Error("Unterminated variadic type. Missing ']'");
  16593. return {
  16594. type: "JsdocTypeVariadic",
  16595. element: assertRootResult(element),
  16596. meta: {
  16597. position: "prefix",
  16598. squareBrackets: brackets
  16599. }
  16600. };
  16601. } catch (e) {
  16602. if (e instanceof NoParsletFoundError) {
  16603. if (brackets)
  16604. throw new Error("Empty square brackets for variadic are not allowed.");
  16605. return {
  16606. type: "JsdocTypeVariadic",
  16607. meta: {
  16608. position: void 0,
  16609. squareBrackets: !1
  16610. }
  16611. };
  16612. } else
  16613. throw e;
  16614. }
  16615. },
  16616. parseInfix: allowPostfix ? (parser, left2) => (parser.consume("..."), {
  16617. type: "JsdocTypeVariadic",
  16618. element: assertRootResult(left2),
  16619. meta: {
  16620. position: "suffix",
  16621. squareBrackets: !1
  16622. }
  16623. }) : void 0
  16624. });
  16625. }
  16626. let symbolParslet = composeParslet({
  16627. name: "symbolParslet",
  16628. accept: (type5) => type5 === "(",
  16629. precedence: Precedence.SYMBOL,
  16630. parseInfix: (parser, left2) => {
  16631. if (left2.type !== "JsdocTypeName")
  16632. throw new Error("Symbol expects a name on the left side. (Reacting on '(')");
  16633. parser.consume("(");
  16634. let result = {
  16635. type: "JsdocTypeSymbol",
  16636. value: left2.value
  16637. };
  16638. if (!parser.consume(")")) {
  16639. let next2 = parser.parseIntermediateType(Precedence.SYMBOL);
  16640. if (result.element = assertNumberOrVariadicNameResult(next2), !parser.consume(")"))
  16641. throw new Error("Symbol does not end after value");
  16642. }
  16643. return result;
  16644. }
  16645. }), arrayBracketsParslet = composeParslet({
  16646. name: "arrayBracketsParslet",
  16647. precedence: Precedence.ARRAY_BRACKETS,
  16648. accept: (type5, next2) => type5 === "[" && next2 === "]",
  16649. parseInfix: (parser, left2) => (parser.consume("["), parser.consume("]"), {
  16650. type: "JsdocTypeGeneric",
  16651. left: {
  16652. type: "JsdocTypeName",
  16653. value: "Array"
  16654. },
  16655. elements: [
  16656. assertRootResult(left2)
  16657. ],
  16658. meta: {
  16659. brackets: "square",
  16660. dot: !1
  16661. }
  16662. })
  16663. });
  16664. function createObjectParslet({ objectFieldGrammar: objectFieldGrammar2, allowKeyTypes }) {
  16665. return composeParslet({
  16666. name: "objectParslet",
  16667. accept: (type5) => type5 === "{",
  16668. parsePrefix: (parser) => {
  16669. parser.consume("{");
  16670. let result = {
  16671. type: "JsdocTypeObject",
  16672. meta: {
  16673. separator: "comma"
  16674. },
  16675. elements: []
  16676. };
  16677. if (!parser.consume("}")) {
  16678. let separator, fieldParser = new Parser2(objectFieldGrammar2, parser.lexer, parser);
  16679. for (; ; ) {
  16680. fieldParser.acceptLexerState(parser);
  16681. let field = fieldParser.parseIntermediateType(Precedence.OBJECT);
  16682. parser.acceptLexerState(fieldParser), field === void 0 && allowKeyTypes && (field = parser.parseIntermediateType(Precedence.OBJECT));
  16683. let optional = !1;
  16684. if (field.type === "JsdocTypeNullable" && (optional = !0, field = field.element), field.type === "JsdocTypeNumber" || field.type === "JsdocTypeName" || field.type === "JsdocTypeStringValue") {
  16685. let quote2;
  16686. field.type === "JsdocTypeStringValue" && (quote2 = field.meta.quote), result.elements.push({
  16687. type: "JsdocTypeObjectField",
  16688. key: field.value.toString(),
  16689. right: void 0,
  16690. optional,
  16691. readonly: !1,
  16692. meta: {
  16693. quote: quote2
  16694. }
  16695. });
  16696. } else if (field.type === "JsdocTypeObjectField" || field.type === "JsdocTypeJsdocObjectField")
  16697. result.elements.push(field);
  16698. else
  16699. throw new UnexpectedTypeError(field);
  16700. if (parser.lexer.current.startOfLine)
  16701. separator = "linebreak", parser.consume(",") || parser.consume(";");
  16702. else if (parser.consume(","))
  16703. separator = "comma";
  16704. else if (parser.consume(";"))
  16705. separator = "semicolon";
  16706. else
  16707. break;
  16708. if (parser.lexer.current.type === "}")
  16709. break;
  16710. }
  16711. if (result.meta.separator = separator ?? "comma", separator === "linebreak" && (result.meta.propertyIndent = " "), !parser.consume("}"))
  16712. throw new Error("Unterminated record type. Missing '}'");
  16713. }
  16714. return result;
  16715. }
  16716. });
  16717. }
  16718. function createObjectFieldParslet({ allowSquaredProperties, allowKeyTypes, allowReadonly, allowOptional }) {
  16719. return composeParslet({
  16720. name: "objectFieldParslet",
  16721. precedence: Precedence.KEY_VALUE,
  16722. accept: (type5) => type5 === ":",
  16723. parseInfix: (parser, left2) => {
  16724. var _a4;
  16725. let optional = !1, readonlyProperty = !1;
  16726. allowOptional && left2.type === "JsdocTypeNullable" && (optional = !0, left2 = left2.element), allowReadonly && left2.type === "JsdocTypeReadonlyProperty" && (readonlyProperty = !0, left2 = left2.element);
  16727. let parentParser = (_a4 = parser.baseParser) !== null && _a4 !== void 0 ? _a4 : parser;
  16728. if (parentParser.acceptLexerState(parser), left2.type === "JsdocTypeNumber" || left2.type === "JsdocTypeName" || left2.type === "JsdocTypeStringValue" || isSquaredProperty(left2)) {
  16729. if (isSquaredProperty(left2) && !allowSquaredProperties)
  16730. throw new UnexpectedTypeError(left2);
  16731. parentParser.consume(":");
  16732. let quote2;
  16733. left2.type === "JsdocTypeStringValue" && (quote2 = left2.meta.quote);
  16734. let right2 = parentParser.parseType(Precedence.KEY_VALUE);
  16735. return parser.acceptLexerState(parentParser), {
  16736. type: "JsdocTypeObjectField",
  16737. key: isSquaredProperty(left2) ? left2 : left2.value.toString(),
  16738. right: right2,
  16739. optional,
  16740. readonly: readonlyProperty,
  16741. meta: {
  16742. quote: quote2
  16743. }
  16744. };
  16745. } else {
  16746. if (!allowKeyTypes)
  16747. throw new UnexpectedTypeError(left2);
  16748. parentParser.consume(":");
  16749. let right2 = parentParser.parseType(Precedence.KEY_VALUE);
  16750. return parser.acceptLexerState(parentParser), {
  16751. type: "JsdocTypeJsdocObjectField",
  16752. left: assertRootResult(left2),
  16753. right: right2
  16754. };
  16755. }
  16756. }
  16757. });
  16758. }
  16759. function createKeyValueParslet({ allowOptional, allowVariadic }) {
  16760. return composeParslet({
  16761. name: "keyValueParslet",
  16762. precedence: Precedence.KEY_VALUE,
  16763. accept: (type5) => type5 === ":",
  16764. parseInfix: (parser, left2) => {
  16765. let optional = !1, variadic2 = !1;
  16766. if (allowOptional && left2.type === "JsdocTypeNullable" && (optional = !0, left2 = left2.element), allowVariadic && left2.type === "JsdocTypeVariadic" && left2.element !== void 0 && (variadic2 = !0, left2 = left2.element), left2.type !== "JsdocTypeName")
  16767. throw new UnexpectedTypeError(left2);
  16768. parser.consume(":");
  16769. let right2 = parser.parseType(Precedence.KEY_VALUE);
  16770. return {
  16771. type: "JsdocTypeKeyValue",
  16772. key: left2.value,
  16773. right: right2,
  16774. optional,
  16775. variadic: variadic2
  16776. };
  16777. }
  16778. });
  16779. }
  16780. let jsdocBaseGrammar = [
  16781. ...baseGrammar,
  16782. createFunctionParslet({
  16783. allowWithoutParenthesis: !0,
  16784. allowNamedParameters: ["this", "new"],
  16785. allowNoReturnType: !0,
  16786. allowNewAsFunctionKeyword: !1
  16787. }),
  16788. stringValueParslet,
  16789. createSpecialNamePathParslet({
  16790. allowedTypes: ["module", "external", "event"],
  16791. pathGrammar
  16792. }),
  16793. createVariadicParslet({
  16794. allowEnclosingBrackets: !0,
  16795. allowPostfix: !0
  16796. }),
  16797. createNameParslet({
  16798. allowedAdditionalTokens: ["keyof"]
  16799. }),
  16800. symbolParslet,
  16801. arrayBracketsParslet,
  16802. createNamePathParslet({
  16803. allowSquareBracketsOnAnyType: !1,
  16804. allowJsdocNamePaths: !0,
  16805. pathGrammar
  16806. })
  16807. ], jsdocGrammar = [
  16808. ...jsdocBaseGrammar,
  16809. createObjectParslet({
  16810. // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here
  16811. // we leave out the object type deliberately
  16812. objectFieldGrammar: [
  16813. createNameParslet({
  16814. allowedAdditionalTokens: ["typeof", "module", "in"]
  16815. }),
  16816. createObjectFieldParslet({
  16817. allowSquaredProperties: !1,
  16818. allowKeyTypes: !0,
  16819. allowOptional: !1,
  16820. allowReadonly: !1
  16821. }),
  16822. ...jsdocBaseGrammar
  16823. ],
  16824. allowKeyTypes: !0
  16825. }),
  16826. createKeyValueParslet({
  16827. allowOptional: !0,
  16828. allowVariadic: !0
  16829. })
  16830. ], typeOfParslet = composeParslet({
  16831. name: "typeOfParslet",
  16832. accept: (type5) => type5 === "typeof",
  16833. parsePrefix: (parser) => (parser.consume("typeof"), {
  16834. type: "JsdocTypeTypeof",
  16835. element: parser.parseType(Precedence.KEY_OF_TYPE_OF)
  16836. })
  16837. }), objectFieldGrammar$1 = [
  16838. createNameParslet({
  16839. allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"]
  16840. }),
  16841. nullableParslet,
  16842. optionalParslet,
  16843. stringValueParslet,
  16844. numberParslet,
  16845. createObjectFieldParslet({
  16846. allowSquaredProperties: !1,
  16847. allowKeyTypes: !1,
  16848. allowOptional: !1,
  16849. allowReadonly: !1
  16850. })
  16851. ], closureGrammar = [
  16852. ...baseGrammar,
  16853. createObjectParslet({
  16854. allowKeyTypes: !1,
  16855. objectFieldGrammar: objectFieldGrammar$1
  16856. }),
  16857. createNameParslet({
  16858. allowedAdditionalTokens: ["event", "external", "in"]
  16859. }),
  16860. typeOfParslet,
  16861. createFunctionParslet({
  16862. allowWithoutParenthesis: !1,
  16863. allowNamedParameters: ["this", "new"],
  16864. allowNoReturnType: !0,
  16865. allowNewAsFunctionKeyword: !1
  16866. }),
  16867. createVariadicParslet({
  16868. allowEnclosingBrackets: !1,
  16869. allowPostfix: !1
  16870. }),
  16871. // additional name parslet is needed for some special cases
  16872. createNameParslet({
  16873. allowedAdditionalTokens: ["keyof"]
  16874. }),
  16875. createSpecialNamePathParslet({
  16876. allowedTypes: ["module"],
  16877. pathGrammar
  16878. }),
  16879. createNamePathParslet({
  16880. allowSquareBracketsOnAnyType: !1,
  16881. allowJsdocNamePaths: !0,
  16882. pathGrammar
  16883. }),
  16884. createKeyValueParslet({
  16885. allowOptional: !1,
  16886. allowVariadic: !1
  16887. }),
  16888. symbolParslet
  16889. ], assertsParslet = composeParslet({
  16890. name: "assertsParslet",
  16891. accept: (type5) => type5 === "asserts",
  16892. parsePrefix: (parser) => {
  16893. parser.consume("asserts");
  16894. let left2 = parser.parseIntermediateType(Precedence.SYMBOL);
  16895. if (left2.type !== "JsdocTypeName")
  16896. throw new UnexpectedTypeError(left2, "A typescript asserts always has to have a name on the left side.");
  16897. return parser.consume("is") ? {
  16898. type: "JsdocTypeAsserts",
  16899. left: left2,
  16900. right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX))
  16901. } : {
  16902. type: "JsdocTypeAssertsPlain",
  16903. element: left2
  16904. };
  16905. }
  16906. });
  16907. function createTupleParslet({ allowQuestionMark }) {
  16908. return composeParslet({
  16909. name: "tupleParslet",
  16910. accept: (type5) => type5 === "[",
  16911. parsePrefix: (parser) => {
  16912. parser.consume("[");
  16913. let result = {
  16914. type: "JsdocTypeTuple",
  16915. elements: []
  16916. };
  16917. if (parser.consume("]"))
  16918. return result;
  16919. let typeList = parser.parseIntermediateType(Precedence.ALL);
  16920. if (typeList.type === "JsdocTypeParameterList" ? typeList.elements[0].type === "JsdocTypeKeyValue" ? result.elements = typeList.elements.map(assertPlainKeyValueResult) : result.elements = typeList.elements.map(assertRootResult) : typeList.type === "JsdocTypeKeyValue" ? result.elements = [assertPlainKeyValueResult(typeList)] : result.elements = [assertRootResult(typeList)], !parser.consume("]"))
  16921. throw new Error("Unterminated '['");
  16922. if (result.elements.some((e) => e.type === "JsdocTypeUnknown"))
  16923. throw new Error("Question mark in tuple not allowed");
  16924. return result;
  16925. }
  16926. });
  16927. }
  16928. let keyOfParslet = composeParslet({
  16929. name: "keyOfParslet",
  16930. accept: (type5) => type5 === "keyof",
  16931. parsePrefix: (parser) => (parser.consume("keyof"), {
  16932. type: "JsdocTypeKeyof",
  16933. element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF))
  16934. })
  16935. }), importParslet = composeParslet({
  16936. name: "importParslet",
  16937. accept: (type5) => type5 === "import",
  16938. parsePrefix: (parser) => {
  16939. if (parser.consume("import"), !parser.consume("("))
  16940. throw new Error("Missing parenthesis after import keyword");
  16941. let path = parser.parseType(Precedence.PREFIX);
  16942. if (path.type !== "JsdocTypeStringValue")
  16943. throw new Error("Only string values are allowed as paths for imports");
  16944. if (!parser.consume(")"))
  16945. throw new Error("Missing closing parenthesis after import keyword");
  16946. return {
  16947. type: "JsdocTypeImport",
  16948. element: path
  16949. };
  16950. }
  16951. }), readonlyPropertyParslet = composeParslet({
  16952. name: "readonlyPropertyParslet",
  16953. accept: (type5) => type5 === "readonly",
  16954. parsePrefix: (parser) => (parser.consume("readonly"), {
  16955. type: "JsdocTypeReadonlyProperty",
  16956. element: parser.parseIntermediateType(Precedence.KEY_VALUE)
  16957. })
  16958. }), arrowFunctionParslet = composeParslet({
  16959. name: "arrowFunctionParslet",
  16960. precedence: Precedence.ARROW,
  16961. accept: (type5) => type5 === "=>",
  16962. parseInfix: (parser, left2) => (parser.consume("=>"), {
  16963. type: "JsdocTypeFunction",
  16964. parameters: getParameters(left2).map(assertPlainKeyValueOrNameResult),
  16965. arrow: !0,
  16966. constructor: !1,
  16967. parenthesis: !0,
  16968. returnType: parser.parseType(Precedence.OBJECT)
  16969. })
  16970. }), genericArrowFunctionParslet = composeParslet({
  16971. name: "genericArrowFunctionParslet",
  16972. accept: (type5) => type5 === "<",
  16973. parsePrefix: (parser) => {
  16974. let typeParameters = [];
  16975. parser.consume("<");
  16976. do {
  16977. let defaultValue, name = parser.parseIntermediateType(Precedence.SYMBOL);
  16978. if (name.type === "JsdocTypeOptional" && (name = name.element, defaultValue = parser.parseType(Precedence.SYMBOL)), name.type !== "JsdocTypeName")
  16979. throw new UnexpectedTypeError(name);
  16980. let constraint;
  16981. parser.consume("extends") && (constraint = parser.parseType(Precedence.SYMBOL), constraint.type === "JsdocTypeOptional" && (constraint = constraint.element, defaultValue = parser.parseType(Precedence.SYMBOL)));
  16982. let typeParameter = {
  16983. type: "JsdocTypeTypeParameter",
  16984. name
  16985. };
  16986. if (constraint !== void 0 && (typeParameter.constraint = constraint), defaultValue !== void 0 && (typeParameter.defaultValue = defaultValue), typeParameters.push(typeParameter), parser.consume(">"))
  16987. break;
  16988. } while (parser.consume(","));
  16989. let functionBase = parser.parseIntermediateType(Precedence.SYMBOL);
  16990. return functionBase.typeParameters = typeParameters, functionBase;
  16991. }
  16992. }), intersectionParslet = composeParslet({
  16993. name: "intersectionParslet",
  16994. accept: (type5) => type5 === "&",
  16995. precedence: Precedence.INTERSECTION,
  16996. parseInfix: (parser, left2) => {
  16997. parser.consume("&");
  16998. let elements = [];
  16999. do
  17000. elements.push(parser.parseType(Precedence.INTERSECTION));
  17001. while (parser.consume("&"));
  17002. return {
  17003. type: "JsdocTypeIntersection",
  17004. elements: [assertRootResult(left2), ...elements]
  17005. };
  17006. }
  17007. }), predicateParslet = composeParslet({
  17008. name: "predicateParslet",
  17009. precedence: Precedence.INFIX,
  17010. accept: (type5) => type5 === "is",
  17011. parseInfix: (parser, left2) => {
  17012. if (left2.type !== "JsdocTypeName")
  17013. throw new UnexpectedTypeError(left2, "A typescript predicate always has to have a name on the left side.");
  17014. return parser.consume("is"), {
  17015. type: "JsdocTypePredicate",
  17016. left: left2,
  17017. right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX))
  17018. };
  17019. }
  17020. }), objectSquaredPropertyParslet = composeParslet({
  17021. name: "objectSquareBracketPropertyParslet",
  17022. accept: (type5) => type5 === "[",
  17023. parsePrefix: (parser) => {
  17024. if (parser.baseParser === void 0)
  17025. throw new Error("Only allowed inside object grammar");
  17026. parser.consume("[");
  17027. let key = parser.lexer.current.text;
  17028. parser.consume("Identifier");
  17029. let result;
  17030. if (parser.consume(":")) {
  17031. let parentParser = parser.baseParser;
  17032. parentParser.acceptLexerState(parser), result = {
  17033. type: "JsdocTypeIndexSignature",
  17034. key,
  17035. right: parentParser.parseType(Precedence.INDEX_BRACKETS)
  17036. }, parser.acceptLexerState(parentParser);
  17037. } else if (parser.consume("in")) {
  17038. let parentParser = parser.baseParser;
  17039. parentParser.acceptLexerState(parser), result = {
  17040. type: "JsdocTypeMappedType",
  17041. key,
  17042. right: parentParser.parseType(Precedence.ARRAY_BRACKETS)
  17043. }, parser.acceptLexerState(parentParser);
  17044. } else
  17045. throw new Error("Missing ':' or 'in' inside square bracketed property.");
  17046. if (!parser.consume("]"))
  17047. throw new Error("Unterminated square brackets");
  17048. return result;
  17049. }
  17050. }), readonlyArrayParslet = composeParslet({
  17051. name: "readonlyArrayParslet",
  17052. accept: (type5) => type5 === "readonly",
  17053. parsePrefix: (parser) => (parser.consume("readonly"), {
  17054. type: "JsdocTypeReadonlyArray",
  17055. element: assertArrayOrTupleResult(parser.parseIntermediateType(Precedence.ALL))
  17056. })
  17057. }), conditionalParslet = composeParslet({
  17058. name: "conditionalParslet",
  17059. precedence: Precedence.INFIX,
  17060. accept: (type5) => type5 === "extends",
  17061. parseInfix: (parser, left2) => {
  17062. parser.consume("extends");
  17063. let extendsType = parser.parseType(Precedence.KEY_OF_TYPE_OF).element, trueType = parser.parseType(Precedence.INFIX);
  17064. return parser.consume(":"), {
  17065. type: "JsdocTypeConditional",
  17066. checksType: assertRootResult(left2),
  17067. extendsType,
  17068. trueType,
  17069. falseType: parser.parseType(Precedence.INFIX)
  17070. };
  17071. }
  17072. }), objectFieldGrammar = [
  17073. readonlyPropertyParslet,
  17074. createNameParslet({
  17075. allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"]
  17076. }),
  17077. nullableParslet,
  17078. optionalParslet,
  17079. stringValueParslet,
  17080. numberParslet,
  17081. createObjectFieldParslet({
  17082. allowSquaredProperties: !0,
  17083. allowKeyTypes: !1,
  17084. allowOptional: !0,
  17085. allowReadonly: !0
  17086. }),
  17087. objectSquaredPropertyParslet
  17088. ], typescriptGrammar = [
  17089. ...baseGrammar,
  17090. createObjectParslet({
  17091. allowKeyTypes: !1,
  17092. objectFieldGrammar
  17093. }),
  17094. readonlyArrayParslet,
  17095. typeOfParslet,
  17096. keyOfParslet,
  17097. importParslet,
  17098. stringValueParslet,
  17099. createFunctionParslet({
  17100. allowWithoutParenthesis: !0,
  17101. allowNoReturnType: !1,
  17102. allowNamedParameters: ["this", "new", "args"],
  17103. allowNewAsFunctionKeyword: !0
  17104. }),
  17105. createTupleParslet({
  17106. allowQuestionMark: !1
  17107. }),
  17108. createVariadicParslet({
  17109. allowEnclosingBrackets: !1,
  17110. allowPostfix: !1
  17111. }),
  17112. assertsParslet,
  17113. conditionalParslet,
  17114. createNameParslet({
  17115. allowedAdditionalTokens: ["event", "external", "in"]
  17116. }),
  17117. createSpecialNamePathParslet({
  17118. allowedTypes: ["module"],
  17119. pathGrammar
  17120. }),
  17121. arrayBracketsParslet,
  17122. arrowFunctionParslet,
  17123. genericArrowFunctionParslet,
  17124. createNamePathParslet({
  17125. allowSquareBracketsOnAnyType: !0,
  17126. allowJsdocNamePaths: !1,
  17127. pathGrammar
  17128. }),
  17129. intersectionParslet,
  17130. predicateParslet,
  17131. createKeyValueParslet({
  17132. allowVariadic: !0,
  17133. allowOptional: !0
  17134. })
  17135. ];
  17136. function parse9(expression, mode) {
  17137. switch (mode) {
  17138. case "closure":
  17139. return new Parser2(closureGrammar, expression).parse();
  17140. case "jsdoc":
  17141. return new Parser2(jsdocGrammar, expression).parse();
  17142. case "typescript":
  17143. return new Parser2(typescriptGrammar, expression).parse();
  17144. }
  17145. }
  17146. function tryParse(expression, modes = ["typescript", "closure", "jsdoc"]) {
  17147. let error;
  17148. for (let mode of modes)
  17149. try {
  17150. return parse9(expression, mode);
  17151. } catch (e) {
  17152. error = e;
  17153. }
  17154. throw error;
  17155. }
  17156. function transform(rules2, parseResult) {
  17157. let rule = rules2[parseResult.type];
  17158. if (rule === void 0)
  17159. throw new Error(`In this set of transform rules exists no rule for type ${parseResult.type}.`);
  17160. return rule(parseResult, (aParseResult) => transform(rules2, aParseResult));
  17161. }
  17162. function notAvailableTransform(parseResult) {
  17163. throw new Error("This transform is not available. Are you trying the correct parsing mode?");
  17164. }
  17165. function extractSpecialParams(source) {
  17166. let result = {
  17167. params: []
  17168. };
  17169. for (let param of source.parameters)
  17170. param.type === "JsdocTypeKeyValue" ? param.key === "this" ? result.this = param.right : param.key === "new" ? result.new = param.right : result.params.push(param) : result.params.push(param);
  17171. return result;
  17172. }
  17173. function applyPosition(position2, target, value) {
  17174. return position2 === "prefix" ? value + target : target + value;
  17175. }
  17176. function quote(value, quote2) {
  17177. switch (quote2) {
  17178. case "double":
  17179. return `"${value}"`;
  17180. case "single":
  17181. return `'${value}'`;
  17182. case void 0:
  17183. return value;
  17184. }
  17185. }
  17186. function stringifyRules2() {
  17187. return {
  17188. JsdocTypeParenthesis: (result, transform2) => `(${result.element !== void 0 ? transform2(result.element) : ""})`,
  17189. JsdocTypeKeyof: (result, transform2) => `keyof ${transform2(result.element)}`,
  17190. JsdocTypeFunction: (result, transform2) => {
  17191. var _a4;
  17192. if (result.arrow) {
  17193. if (result.returnType === void 0)
  17194. throw new Error("Arrow function needs a return type.");
  17195. let stringified = `${result.typeParameters !== void 0 ? `<${(_a4 = result.typeParameters.map(transform2).join(", ")) !== null && _a4 !== void 0 ? _a4 : ""}>` : ""}(${result.parameters.map(transform2).join(", ")}) => ${transform2(result.returnType)}`;
  17196. return result.constructor && (stringified = "new " + stringified), stringified;
  17197. } else {
  17198. let stringified = result.constructor ? "new" : "function";
  17199. return result.parenthesis && (stringified += `(${result.parameters.map(transform2).join(", ")})`, result.returnType !== void 0 && (stringified += `: ${transform2(result.returnType)}`)), stringified;
  17200. }
  17201. },
  17202. JsdocTypeName: (result) => result.value,
  17203. JsdocTypeTuple: (result, transform2) => `[${result.elements.map(transform2).join(", ")}]`,
  17204. JsdocTypeVariadic: (result, transform2) => result.meta.position === void 0 ? "..." : applyPosition(result.meta.position, transform2(result.element), "..."),
  17205. JsdocTypeNamePath: (result, transform2) => {
  17206. let left2 = transform2(result.left), right2 = transform2(result.right);
  17207. switch (result.pathType) {
  17208. case "inner":
  17209. return `${left2}~${right2}`;
  17210. case "instance":
  17211. return `${left2}#${right2}`;
  17212. case "property":
  17213. return `${left2}.${right2}`;
  17214. case "property-brackets":
  17215. return `${left2}[${right2}]`;
  17216. }
  17217. },
  17218. JsdocTypeStringValue: (result) => quote(result.value, result.meta.quote),
  17219. JsdocTypeAny: () => "*",
  17220. JsdocTypeGeneric: (result, transform2) => {
  17221. if (result.meta.brackets === "square") {
  17222. let element = result.elements[0], transformed = transform2(element);
  17223. return element.type === "JsdocTypeUnion" || element.type === "JsdocTypeIntersection" ? `(${transformed})[]` : `${transformed}[]`;
  17224. } else
  17225. return `${transform2(result.left)}${result.meta.dot ? "." : ""}<${result.infer === !0 ? "infer " : ""}${result.elements.map(transform2).join(", ")}>`;
  17226. },
  17227. JsdocTypeImport: (result, transform2) => `import(${transform2(result.element)})`,
  17228. JsdocTypeObjectField: (result, transform2) => {
  17229. let text = "";
  17230. return result.readonly && (text += "readonly "), typeof result.key == "string" ? text += quote(result.key, result.meta.quote) : text += transform2(result.key), result.optional && (text += "?"), result.right === void 0 ? text : text + `: ${transform2(result.right)}`;
  17231. },
  17232. JsdocTypeJsdocObjectField: (result, transform2) => `${transform2(result.left)}: ${transform2(result.right)}`,
  17233. JsdocTypeKeyValue: (result, transform2) => {
  17234. let text = result.key;
  17235. return result.optional && (text += "?"), result.variadic && (text = "..." + text), result.right === void 0 ? text : text + `: ${transform2(result.right)}`;
  17236. },
  17237. JsdocTypeSpecialNamePath: (result) => `${result.specialType}:${quote(result.value, result.meta.quote)}`,
  17238. JsdocTypeNotNullable: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "!"),
  17239. JsdocTypeNull: () => "null",
  17240. JsdocTypeNullable: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "?"),
  17241. JsdocTypeNumber: (result) => result.value.toString(),
  17242. JsdocTypeObject: (result, transform2) => {
  17243. var _a4, _b;
  17244. return `{${(result.meta.separator === "linebreak" && result.elements.length > 1 ? `
  17245. ` + ((_a4 = result.meta.propertyIndent) !== null && _a4 !== void 0 ? _a4 : "") : "") + result.elements.map(transform2).join(result.meta.separator === "comma" ? ", " : result.meta.separator === "linebreak" ? `
  17246. ` + ((_b = result.meta.propertyIndent) !== null && _b !== void 0 ? _b : "") : "; ") + (result.meta.separator === "linebreak" && result.elements.length > 1 ? `
  17247. ` : "")}}`;
  17248. },
  17249. JsdocTypeOptional: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "="),
  17250. JsdocTypeSymbol: (result, transform2) => `${result.value}(${result.element !== void 0 ? transform2(result.element) : ""})`,
  17251. JsdocTypeTypeof: (result, transform2) => `typeof ${transform2(result.element)}`,
  17252. JsdocTypeUndefined: () => "undefined",
  17253. JsdocTypeUnion: (result, transform2) => result.elements.map(transform2).join(" | "),
  17254. JsdocTypeUnknown: () => "?",
  17255. JsdocTypeIntersection: (result, transform2) => result.elements.map(transform2).join(" & "),
  17256. JsdocTypeProperty: (result) => quote(result.value, result.meta.quote),
  17257. JsdocTypePredicate: (result, transform2) => `${transform2(result.left)} is ${transform2(result.right)}`,
  17258. JsdocTypeIndexSignature: (result, transform2) => `[${result.key}: ${transform2(result.right)}]`,
  17259. JsdocTypeMappedType: (result, transform2) => `[${result.key} in ${transform2(result.right)}]`,
  17260. JsdocTypeAsserts: (result, transform2) => `asserts ${transform2(result.left)} is ${transform2(result.right)}`,
  17261. JsdocTypeReadonlyArray: (result, transform2) => `readonly ${transform2(result.element)}`,
  17262. JsdocTypeAssertsPlain: (result, transform2) => `asserts ${transform2(result.element)}`,
  17263. JsdocTypeConditional: (result, transform2) => `${transform2(result.checksType)} extends ${transform2(result.extendsType)} ? ${transform2(result.trueType)} : ${transform2(result.falseType)}`,
  17264. JsdocTypeTypeParameter: (result, transform2) => `${transform2(result.name)}${result.constraint !== void 0 ? ` extends ${transform2(result.constraint)}` : ""}${result.defaultValue !== void 0 ? ` = ${transform2(result.defaultValue)}` : ""}`
  17265. };
  17266. }
  17267. let storedStringifyRules = stringifyRules2();
  17268. function stringify8(result) {
  17269. return transform(storedStringifyRules, result);
  17270. }
  17271. let reservedWords2 = [
  17272. "null",
  17273. "true",
  17274. "false",
  17275. "break",
  17276. "case",
  17277. "catch",
  17278. "class",
  17279. "const",
  17280. "continue",
  17281. "debugger",
  17282. "default",
  17283. "delete",
  17284. "do",
  17285. "else",
  17286. "export",
  17287. "extends",
  17288. "finally",
  17289. "for",
  17290. "function",
  17291. "if",
  17292. "import",
  17293. "in",
  17294. "instanceof",
  17295. "new",
  17296. "return",
  17297. "super",
  17298. "switch",
  17299. "this",
  17300. "throw",
  17301. "try",
  17302. "typeof",
  17303. "var",
  17304. "void",
  17305. "while",
  17306. "with",
  17307. "yield"
  17308. ];
  17309. function makeName(value) {
  17310. let result = {
  17311. type: "NameExpression",
  17312. name: value
  17313. };
  17314. return reservedWords2.includes(value) && (result.reservedWord = !0), result;
  17315. }
  17316. let catharsisTransformRules = {
  17317. JsdocTypeOptional: (result, transform2) => {
  17318. let transformed = transform2(result.element);
  17319. return transformed.optional = !0, transformed;
  17320. },
  17321. JsdocTypeNullable: (result, transform2) => {
  17322. let transformed = transform2(result.element);
  17323. return transformed.nullable = !0, transformed;
  17324. },
  17325. JsdocTypeNotNullable: (result, transform2) => {
  17326. let transformed = transform2(result.element);
  17327. return transformed.nullable = !1, transformed;
  17328. },
  17329. JsdocTypeVariadic: (result, transform2) => {
  17330. if (result.element === void 0)
  17331. throw new Error("dots without value are not allowed in catharsis mode");
  17332. let transformed = transform2(result.element);
  17333. return transformed.repeatable = !0, transformed;
  17334. },
  17335. JsdocTypeAny: () => ({
  17336. type: "AllLiteral"
  17337. }),
  17338. JsdocTypeNull: () => ({
  17339. type: "NullLiteral"
  17340. }),
  17341. JsdocTypeStringValue: (result) => makeName(quote(result.value, result.meta.quote)),
  17342. JsdocTypeUndefined: () => ({
  17343. type: "UndefinedLiteral"
  17344. }),
  17345. JsdocTypeUnknown: () => ({
  17346. type: "UnknownLiteral"
  17347. }),
  17348. JsdocTypeFunction: (result, transform2) => {
  17349. let params = extractSpecialParams(result), transformed = {
  17350. type: "FunctionType",
  17351. params: params.params.map(transform2)
  17352. };
  17353. return params.this !== void 0 && (transformed.this = transform2(params.this)), params.new !== void 0 && (transformed.new = transform2(params.new)), result.returnType !== void 0 && (transformed.result = transform2(result.returnType)), transformed;
  17354. },
  17355. JsdocTypeGeneric: (result, transform2) => ({
  17356. type: "TypeApplication",
  17357. applications: result.elements.map((o) => transform2(o)),
  17358. expression: transform2(result.left)
  17359. }),
  17360. JsdocTypeSpecialNamePath: (result) => makeName(result.specialType + ":" + quote(result.value, result.meta.quote)),
  17361. JsdocTypeName: (result) => result.value !== "function" ? makeName(result.value) : {
  17362. type: "FunctionType",
  17363. params: []
  17364. },
  17365. JsdocTypeNumber: (result) => makeName(result.value.toString()),
  17366. JsdocTypeObject: (result, transform2) => {
  17367. let transformed = {
  17368. type: "RecordType",
  17369. fields: []
  17370. };
  17371. for (let field of result.elements)
  17372. field.type !== "JsdocTypeObjectField" && field.type !== "JsdocTypeJsdocObjectField" ? transformed.fields.push({
  17373. type: "FieldType",
  17374. key: transform2(field),
  17375. value: void 0
  17376. }) : transformed.fields.push(transform2(field));
  17377. return transformed;
  17378. },
  17379. JsdocTypeObjectField: (result, transform2) => {
  17380. if (typeof result.key != "string")
  17381. throw new Error("Index signatures and mapped types are not supported");
  17382. return {
  17383. type: "FieldType",
  17384. key: makeName(quote(result.key, result.meta.quote)),
  17385. value: result.right === void 0 ? void 0 : transform2(result.right)
  17386. };
  17387. },
  17388. JsdocTypeJsdocObjectField: (result, transform2) => ({
  17389. type: "FieldType",
  17390. key: transform2(result.left),
  17391. value: transform2(result.right)
  17392. }),
  17393. JsdocTypeUnion: (result, transform2) => ({
  17394. type: "TypeUnion",
  17395. elements: result.elements.map((e) => transform2(e))
  17396. }),
  17397. JsdocTypeKeyValue: (result, transform2) => ({
  17398. type: "FieldType",
  17399. key: makeName(result.key),
  17400. value: result.right === void 0 ? void 0 : transform2(result.right)
  17401. }),
  17402. JsdocTypeNamePath: (result, transform2) => {
  17403. let leftResult = transform2(result.left), rightValue;
  17404. result.right.type === "JsdocTypeSpecialNamePath" ? rightValue = transform2(result.right).name : rightValue = quote(result.right.value, result.right.meta.quote);
  17405. let joiner = result.pathType === "inner" ? "~" : result.pathType === "instance" ? "#" : ".";
  17406. return makeName(`${leftResult.name}${joiner}${rightValue}`);
  17407. },
  17408. JsdocTypeSymbol: (result) => {
  17409. let value = "", element = result.element, trailingDots = !1;
  17410. return element?.type === "JsdocTypeVariadic" && (element.meta.position === "prefix" ? value = "..." : trailingDots = !0, element = element.element), element?.type === "JsdocTypeName" ? value += element.value : element?.type === "JsdocTypeNumber" && (value += element.value.toString()), trailingDots && (value += "..."), makeName(`${result.value}(${value})`);
  17411. },
  17412. JsdocTypeParenthesis: (result, transform2) => transform2(assertRootResult(result.element)),
  17413. JsdocTypeMappedType: notAvailableTransform,
  17414. JsdocTypeIndexSignature: notAvailableTransform,
  17415. JsdocTypeImport: notAvailableTransform,
  17416. JsdocTypeKeyof: notAvailableTransform,
  17417. JsdocTypeTuple: notAvailableTransform,
  17418. JsdocTypeTypeof: notAvailableTransform,
  17419. JsdocTypeIntersection: notAvailableTransform,
  17420. JsdocTypeProperty: notAvailableTransform,
  17421. JsdocTypePredicate: notAvailableTransform,
  17422. JsdocTypeAsserts: notAvailableTransform,
  17423. JsdocTypeReadonlyArray: notAvailableTransform,
  17424. JsdocTypeAssertsPlain: notAvailableTransform,
  17425. JsdocTypeConditional: notAvailableTransform,
  17426. JsdocTypeTypeParameter: notAvailableTransform
  17427. };
  17428. function catharsisTransform(result) {
  17429. return transform(catharsisTransformRules, result);
  17430. }
  17431. function getQuoteStyle(quote2) {
  17432. switch (quote2) {
  17433. case void 0:
  17434. return "none";
  17435. case "single":
  17436. return "single";
  17437. case "double":
  17438. return "double";
  17439. }
  17440. }
  17441. function getMemberType(type5) {
  17442. switch (type5) {
  17443. case "inner":
  17444. return "INNER_MEMBER";
  17445. case "instance":
  17446. return "INSTANCE_MEMBER";
  17447. case "property":
  17448. return "MEMBER";
  17449. case "property-brackets":
  17450. return "MEMBER";
  17451. }
  17452. }
  17453. function nestResults(type5, results) {
  17454. return results.length === 2 ? {
  17455. type: type5,
  17456. left: results[0],
  17457. right: results[1]
  17458. } : {
  17459. type: type5,
  17460. left: results[0],
  17461. right: nestResults(type5, results.slice(1))
  17462. };
  17463. }
  17464. let jtpRules = {
  17465. JsdocTypeOptional: (result, transform2) => ({
  17466. type: "OPTIONAL",
  17467. value: transform2(result.element),
  17468. meta: {
  17469. syntax: result.meta.position === "prefix" ? "PREFIX_EQUAL_SIGN" : "SUFFIX_EQUALS_SIGN"
  17470. }
  17471. }),
  17472. JsdocTypeNullable: (result, transform2) => ({
  17473. type: "NULLABLE",
  17474. value: transform2(result.element),
  17475. meta: {
  17476. syntax: result.meta.position === "prefix" ? "PREFIX_QUESTION_MARK" : "SUFFIX_QUESTION_MARK"
  17477. }
  17478. }),
  17479. JsdocTypeNotNullable: (result, transform2) => ({
  17480. type: "NOT_NULLABLE",
  17481. value: transform2(result.element),
  17482. meta: {
  17483. syntax: result.meta.position === "prefix" ? "PREFIX_BANG" : "SUFFIX_BANG"
  17484. }
  17485. }),
  17486. JsdocTypeVariadic: (result, transform2) => {
  17487. let transformed = {
  17488. type: "VARIADIC",
  17489. meta: {
  17490. syntax: result.meta.position === "prefix" ? "PREFIX_DOTS" : result.meta.position === "suffix" ? "SUFFIX_DOTS" : "ONLY_DOTS"
  17491. }
  17492. };
  17493. return result.element !== void 0 && (transformed.value = transform2(result.element)), transformed;
  17494. },
  17495. JsdocTypeName: (result) => ({
  17496. type: "NAME",
  17497. name: result.value
  17498. }),
  17499. JsdocTypeTypeof: (result, transform2) => ({
  17500. type: "TYPE_QUERY",
  17501. name: transform2(result.element)
  17502. }),
  17503. JsdocTypeTuple: (result, transform2) => ({
  17504. type: "TUPLE",
  17505. entries: result.elements.map(transform2)
  17506. }),
  17507. JsdocTypeKeyof: (result, transform2) => ({
  17508. type: "KEY_QUERY",
  17509. value: transform2(result.element)
  17510. }),
  17511. JsdocTypeImport: (result) => ({
  17512. type: "IMPORT",
  17513. path: {
  17514. type: "STRING_VALUE",
  17515. quoteStyle: getQuoteStyle(result.element.meta.quote),
  17516. string: result.element.value
  17517. }
  17518. }),
  17519. JsdocTypeUndefined: () => ({
  17520. type: "NAME",
  17521. name: "undefined"
  17522. }),
  17523. JsdocTypeAny: () => ({
  17524. type: "ANY"
  17525. }),
  17526. JsdocTypeFunction: (result, transform2) => {
  17527. let specialParams = extractSpecialParams(result), transformed = {
  17528. type: result.arrow ? "ARROW" : "FUNCTION",
  17529. params: specialParams.params.map((param) => {
  17530. if (param.type === "JsdocTypeKeyValue") {
  17531. if (param.right === void 0)
  17532. throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");
  17533. return {
  17534. type: "NAMED_PARAMETER",
  17535. name: param.key,
  17536. typeName: transform2(param.right)
  17537. };
  17538. } else
  17539. return transform2(param);
  17540. }),
  17541. new: null,
  17542. returns: null
  17543. };
  17544. return specialParams.this !== void 0 ? transformed.this = transform2(specialParams.this) : result.arrow || (transformed.this = null), specialParams.new !== void 0 && (transformed.new = transform2(specialParams.new)), result.returnType !== void 0 && (transformed.returns = transform2(result.returnType)), transformed;
  17545. },
  17546. JsdocTypeGeneric: (result, transform2) => {
  17547. let transformed = {
  17548. type: "GENERIC",
  17549. subject: transform2(result.left),
  17550. objects: result.elements.map(transform2),
  17551. meta: {
  17552. syntax: result.meta.brackets === "square" ? "SQUARE_BRACKET" : result.meta.dot ? "ANGLE_BRACKET_WITH_DOT" : "ANGLE_BRACKET"
  17553. }
  17554. };
  17555. return result.meta.brackets === "square" && result.elements[0].type === "JsdocTypeFunction" && !result.elements[0].parenthesis && (transformed.objects[0] = {
  17556. type: "NAME",
  17557. name: "function"
  17558. }), transformed;
  17559. },
  17560. JsdocTypeObjectField: (result, transform2) => {
  17561. if (typeof result.key != "string")
  17562. throw new Error("Index signatures and mapped types are not supported");
  17563. if (result.right === void 0)
  17564. return {
  17565. type: "RECORD_ENTRY",
  17566. key: result.key,
  17567. quoteStyle: getQuoteStyle(result.meta.quote),
  17568. value: null,
  17569. readonly: !1
  17570. };
  17571. let right2 = transform2(result.right);
  17572. return result.optional && (right2 = {
  17573. type: "OPTIONAL",
  17574. value: right2,
  17575. meta: {
  17576. syntax: "SUFFIX_KEY_QUESTION_MARK"
  17577. }
  17578. }), {
  17579. type: "RECORD_ENTRY",
  17580. key: result.key.toString(),
  17581. quoteStyle: getQuoteStyle(result.meta.quote),
  17582. value: right2,
  17583. readonly: !1
  17584. };
  17585. },
  17586. JsdocTypeJsdocObjectField: () => {
  17587. throw new Error("Keys may not be typed in jsdoctypeparser.");
  17588. },
  17589. JsdocTypeKeyValue: (result, transform2) => {
  17590. if (result.right === void 0)
  17591. return {
  17592. type: "RECORD_ENTRY",
  17593. key: result.key,
  17594. quoteStyle: "none",
  17595. value: null,
  17596. readonly: !1
  17597. };
  17598. let right2 = transform2(result.right);
  17599. return result.optional && (right2 = {
  17600. type: "OPTIONAL",
  17601. value: right2,
  17602. meta: {
  17603. syntax: "SUFFIX_KEY_QUESTION_MARK"
  17604. }
  17605. }), {
  17606. type: "RECORD_ENTRY",
  17607. key: result.key,
  17608. quoteStyle: "none",
  17609. value: right2,
  17610. readonly: !1
  17611. };
  17612. },
  17613. JsdocTypeObject: (result, transform2) => {
  17614. let entries = [];
  17615. for (let field of result.elements)
  17616. (field.type === "JsdocTypeObjectField" || field.type === "JsdocTypeJsdocObjectField") && entries.push(transform2(field));
  17617. return {
  17618. type: "RECORD",
  17619. entries
  17620. };
  17621. },
  17622. JsdocTypeSpecialNamePath: (result) => {
  17623. if (result.specialType !== "module")
  17624. throw new Error(`jsdoctypeparser does not support type ${result.specialType} at this point.`);
  17625. return {
  17626. type: "MODULE",
  17627. value: {
  17628. type: "FILE_PATH",
  17629. quoteStyle: getQuoteStyle(result.meta.quote),
  17630. path: result.value
  17631. }
  17632. };
  17633. },
  17634. JsdocTypeNamePath: (result, transform2) => {
  17635. let hasEventPrefix = !1, name, quoteStyle;
  17636. result.right.type === "JsdocTypeSpecialNamePath" && result.right.specialType === "event" ? (hasEventPrefix = !0, name = result.right.value, quoteStyle = getQuoteStyle(result.right.meta.quote)) : (name = result.right.value, quoteStyle = getQuoteStyle(result.right.meta.quote));
  17637. let transformed = {
  17638. type: getMemberType(result.pathType),
  17639. owner: transform2(result.left),
  17640. name,
  17641. quoteStyle,
  17642. hasEventPrefix
  17643. };
  17644. if (transformed.owner.type === "MODULE") {
  17645. let tModule = transformed.owner;
  17646. return transformed.owner = transformed.owner.value, tModule.value = transformed, tModule;
  17647. } else
  17648. return transformed;
  17649. },
  17650. JsdocTypeUnion: (result, transform2) => nestResults("UNION", result.elements.map(transform2)),
  17651. JsdocTypeParenthesis: (result, transform2) => ({
  17652. type: "PARENTHESIS",
  17653. value: transform2(assertRootResult(result.element))
  17654. }),
  17655. JsdocTypeNull: () => ({
  17656. type: "NAME",
  17657. name: "null"
  17658. }),
  17659. JsdocTypeUnknown: () => ({
  17660. type: "UNKNOWN"
  17661. }),
  17662. JsdocTypeStringValue: (result) => ({
  17663. type: "STRING_VALUE",
  17664. quoteStyle: getQuoteStyle(result.meta.quote),
  17665. string: result.value
  17666. }),
  17667. JsdocTypeIntersection: (result, transform2) => nestResults("INTERSECTION", result.elements.map(transform2)),
  17668. JsdocTypeNumber: (result) => ({
  17669. type: "NUMBER_VALUE",
  17670. number: result.value.toString()
  17671. }),
  17672. JsdocTypeSymbol: notAvailableTransform,
  17673. JsdocTypeProperty: notAvailableTransform,
  17674. JsdocTypePredicate: notAvailableTransform,
  17675. JsdocTypeMappedType: notAvailableTransform,
  17676. JsdocTypeIndexSignature: notAvailableTransform,
  17677. JsdocTypeAsserts: notAvailableTransform,
  17678. JsdocTypeReadonlyArray: notAvailableTransform,
  17679. JsdocTypeAssertsPlain: notAvailableTransform,
  17680. JsdocTypeConditional: notAvailableTransform,
  17681. JsdocTypeTypeParameter: notAvailableTransform
  17682. };
  17683. function jtpTransform(result) {
  17684. return transform(jtpRules, result);
  17685. }
  17686. function identityTransformRules() {
  17687. return {
  17688. JsdocTypeIntersection: (result, transform2) => ({
  17689. type: "JsdocTypeIntersection",
  17690. elements: result.elements.map(transform2)
  17691. }),
  17692. JsdocTypeGeneric: (result, transform2) => ({
  17693. type: "JsdocTypeGeneric",
  17694. left: transform2(result.left),
  17695. elements: result.elements.map(transform2),
  17696. meta: {
  17697. dot: result.meta.dot,
  17698. brackets: result.meta.brackets
  17699. }
  17700. }),
  17701. JsdocTypeNullable: (result) => result,
  17702. JsdocTypeUnion: (result, transform2) => ({
  17703. type: "JsdocTypeUnion",
  17704. elements: result.elements.map(transform2)
  17705. }),
  17706. JsdocTypeUnknown: (result) => result,
  17707. JsdocTypeUndefined: (result) => result,
  17708. JsdocTypeTypeof: (result, transform2) => ({
  17709. type: "JsdocTypeTypeof",
  17710. element: transform2(result.element)
  17711. }),
  17712. JsdocTypeSymbol: (result, transform2) => {
  17713. let transformed = {
  17714. type: "JsdocTypeSymbol",
  17715. value: result.value
  17716. };
  17717. return result.element !== void 0 && (transformed.element = transform2(result.element)), transformed;
  17718. },
  17719. JsdocTypeOptional: (result, transform2) => ({
  17720. type: "JsdocTypeOptional",
  17721. element: transform2(result.element),
  17722. meta: {
  17723. position: result.meta.position
  17724. }
  17725. }),
  17726. JsdocTypeObject: (result, transform2) => ({
  17727. type: "JsdocTypeObject",
  17728. meta: {
  17729. separator: "comma"
  17730. },
  17731. elements: result.elements.map(transform2)
  17732. }),
  17733. JsdocTypeNumber: (result) => result,
  17734. JsdocTypeNull: (result) => result,
  17735. JsdocTypeNotNullable: (result, transform2) => ({
  17736. type: "JsdocTypeNotNullable",
  17737. element: transform2(result.element),
  17738. meta: {
  17739. position: result.meta.position
  17740. }
  17741. }),
  17742. JsdocTypeSpecialNamePath: (result) => result,
  17743. JsdocTypeObjectField: (result, transform2) => ({
  17744. type: "JsdocTypeObjectField",
  17745. key: result.key,
  17746. right: result.right === void 0 ? void 0 : transform2(result.right),
  17747. optional: result.optional,
  17748. readonly: result.readonly,
  17749. meta: result.meta
  17750. }),
  17751. JsdocTypeJsdocObjectField: (result, transform2) => ({
  17752. type: "JsdocTypeJsdocObjectField",
  17753. left: transform2(result.left),
  17754. right: transform2(result.right)
  17755. }),
  17756. JsdocTypeKeyValue: (result, transform2) => ({
  17757. type: "JsdocTypeKeyValue",
  17758. key: result.key,
  17759. right: result.right === void 0 ? void 0 : transform2(result.right),
  17760. optional: result.optional,
  17761. variadic: result.variadic
  17762. }),
  17763. JsdocTypeImport: (result, transform2) => ({
  17764. type: "JsdocTypeImport",
  17765. element: transform2(result.element)
  17766. }),
  17767. JsdocTypeAny: (result) => result,
  17768. JsdocTypeStringValue: (result) => result,
  17769. JsdocTypeNamePath: (result) => result,
  17770. JsdocTypeVariadic: (result, transform2) => {
  17771. let transformed = {
  17772. type: "JsdocTypeVariadic",
  17773. meta: {
  17774. position: result.meta.position,
  17775. squareBrackets: result.meta.squareBrackets
  17776. }
  17777. };
  17778. return result.element !== void 0 && (transformed.element = transform2(result.element)), transformed;
  17779. },
  17780. JsdocTypeTuple: (result, transform2) => ({
  17781. type: "JsdocTypeTuple",
  17782. elements: result.elements.map(transform2)
  17783. }),
  17784. JsdocTypeName: (result) => result,
  17785. JsdocTypeFunction: (result, transform2) => {
  17786. let transformed = {
  17787. type: "JsdocTypeFunction",
  17788. arrow: result.arrow,
  17789. parameters: result.parameters.map(transform2),
  17790. constructor: result.constructor,
  17791. parenthesis: result.parenthesis
  17792. };
  17793. return result.returnType !== void 0 && (transformed.returnType = transform2(result.returnType)), transformed;
  17794. },
  17795. JsdocTypeKeyof: (result, transform2) => ({
  17796. type: "JsdocTypeKeyof",
  17797. element: transform2(result.element)
  17798. }),
  17799. JsdocTypeParenthesis: (result, transform2) => ({
  17800. type: "JsdocTypeParenthesis",
  17801. element: transform2(result.element)
  17802. }),
  17803. JsdocTypeProperty: (result) => result,
  17804. JsdocTypePredicate: (result, transform2) => ({
  17805. type: "JsdocTypePredicate",
  17806. left: transform2(result.left),
  17807. right: transform2(result.right)
  17808. }),
  17809. JsdocTypeIndexSignature: (result, transform2) => ({
  17810. type: "JsdocTypeIndexSignature",
  17811. key: result.key,
  17812. right: transform2(result.right)
  17813. }),
  17814. JsdocTypeMappedType: (result, transform2) => ({
  17815. type: "JsdocTypeMappedType",
  17816. key: result.key,
  17817. right: transform2(result.right)
  17818. }),
  17819. JsdocTypeAsserts: (result, transform2) => ({
  17820. type: "JsdocTypeAsserts",
  17821. left: transform2(result.left),
  17822. right: transform2(result.right)
  17823. }),
  17824. JsdocTypeReadonlyArray: (result, transform2) => ({
  17825. type: "JsdocTypeReadonlyArray",
  17826. element: transform2(result.element)
  17827. }),
  17828. JsdocTypeAssertsPlain: (result, transform2) => ({
  17829. type: "JsdocTypeAssertsPlain",
  17830. element: transform2(result.element)
  17831. }),
  17832. JsdocTypeConditional: (result, transform2) => ({
  17833. type: "JsdocTypeConditional",
  17834. checksType: transform2(result.checksType),
  17835. extendsType: transform2(result.extendsType),
  17836. trueType: transform2(result.trueType),
  17837. falseType: transform2(result.falseType)
  17838. }),
  17839. JsdocTypeTypeParameter: (result, transform2) => ({
  17840. type: "JsdocTypeTypeParameter",
  17841. name: transform2(result.name),
  17842. constraint: result.constraint !== void 0 ? transform2(result.constraint) : void 0,
  17843. defaultValue: result.defaultValue !== void 0 ? transform2(result.defaultValue) : void 0
  17844. })
  17845. };
  17846. }
  17847. let visitorKeys = {
  17848. JsdocTypeAny: [],
  17849. JsdocTypeFunction: ["parameters", "returnType"],
  17850. JsdocTypeGeneric: ["left", "elements"],
  17851. JsdocTypeImport: [],
  17852. JsdocTypeIndexSignature: ["right"],
  17853. JsdocTypeIntersection: ["elements"],
  17854. JsdocTypeKeyof: ["element"],
  17855. JsdocTypeKeyValue: ["right"],
  17856. JsdocTypeMappedType: ["right"],
  17857. JsdocTypeName: [],
  17858. JsdocTypeNamePath: ["left", "right"],
  17859. JsdocTypeNotNullable: ["element"],
  17860. JsdocTypeNull: [],
  17861. JsdocTypeNullable: ["element"],
  17862. JsdocTypeNumber: [],
  17863. JsdocTypeObject: ["elements"],
  17864. JsdocTypeObjectField: ["right"],
  17865. JsdocTypeJsdocObjectField: ["left", "right"],
  17866. JsdocTypeOptional: ["element"],
  17867. JsdocTypeParenthesis: ["element"],
  17868. JsdocTypeSpecialNamePath: [],
  17869. JsdocTypeStringValue: [],
  17870. JsdocTypeSymbol: ["element"],
  17871. JsdocTypeTuple: ["elements"],
  17872. JsdocTypeTypeof: ["element"],
  17873. JsdocTypeUndefined: [],
  17874. JsdocTypeUnion: ["elements"],
  17875. JsdocTypeUnknown: [],
  17876. JsdocTypeVariadic: ["element"],
  17877. JsdocTypeProperty: [],
  17878. JsdocTypePredicate: ["left", "right"],
  17879. JsdocTypeAsserts: ["left", "right"],
  17880. JsdocTypeReadonlyArray: ["element"],
  17881. JsdocTypeAssertsPlain: ["element"],
  17882. JsdocTypeConditional: ["checksType", "extendsType", "trueType", "falseType"],
  17883. JsdocTypeTypeParameter: ["name", "constraint", "defaultValue"]
  17884. };
  17885. function _traverse(node2, parentNode, property, onEnter, onLeave) {
  17886. onEnter?.(node2, parentNode, property);
  17887. let keysToVisit = visitorKeys[node2.type];
  17888. for (let key of keysToVisit) {
  17889. let value = node2[key];
  17890. if (value !== void 0)
  17891. if (Array.isArray(value))
  17892. for (let element of value)
  17893. _traverse(element, node2, key, onEnter, onLeave);
  17894. else
  17895. _traverse(value, node2, key, onEnter, onLeave);
  17896. }
  17897. onLeave?.(node2, parentNode, property);
  17898. }
  17899. function traverse(node2, onEnter, onLeave) {
  17900. _traverse(node2, void 0, void 0, onEnter, onLeave);
  17901. }
  17902. exports2.catharsisTransform = catharsisTransform, exports2.identityTransformRules = identityTransformRules, exports2.jtpTransform = jtpTransform, exports2.parse = parse9, exports2.stringify = stringify8, exports2.stringifyRules = stringifyRules2, exports2.transform = transform, exports2.traverse = traverse, exports2.tryParse = tryParse, exports2.visitorKeys = visitorKeys;
  17903. }));
  17904. }
  17905. });
  17906. // ../../node_modules/min-indent/index.js
  17907. var require_min_indent = __commonJS({
  17908. "../../node_modules/min-indent/index.js"(exports, module2) {
  17909. "use strict";
  17910. module2.exports = (string) => {
  17911. let match3 = string.match(/^[ \t]*(?=\S)/gm);
  17912. return match3 ? match3.reduce((r2, a3) => Math.min(r2, a3.length), 1 / 0) : 0;
  17913. };
  17914. }
  17915. });
  17916. // ../../node_modules/strip-indent/index.js
  17917. var require_strip_indent = __commonJS({
  17918. "../../node_modules/strip-indent/index.js"(exports, module2) {
  17919. "use strict";
  17920. var minIndent = require_min_indent();
  17921. module2.exports = (string) => {
  17922. let indent2 = minIndent(string);
  17923. if (indent2 === 0)
  17924. return string;
  17925. let regex = new RegExp(`^[ \\t]{${indent2}}`, "gm");
  17926. return string.replace(regex, "");
  17927. };
  17928. }
  17929. });
  17930. // ../../node_modules/indent-string/index.js
  17931. var require_indent_string = __commonJS({
  17932. "../../node_modules/indent-string/index.js"(exports, module2) {
  17933. "use strict";
  17934. module2.exports = (string, count = 1, options) => {
  17935. if (options = {
  17936. indent: " ",
  17937. includeEmptyLines: !1,
  17938. ...options
  17939. }, typeof string != "string")
  17940. throw new TypeError(
  17941. `Expected \`input\` to be a \`string\`, got \`${typeof string}\``
  17942. );
  17943. if (typeof count != "number")
  17944. throw new TypeError(
  17945. `Expected \`count\` to be a \`number\`, got \`${typeof count}\``
  17946. );
  17947. if (typeof options.indent != "string")
  17948. throw new TypeError(
  17949. `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
  17950. );
  17951. if (count === 0)
  17952. return string;
  17953. let regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
  17954. return string.replace(regex, options.indent.repeat(count));
  17955. };
  17956. }
  17957. });
  17958. // ../../node_modules/redent/index.js
  17959. var require_redent = __commonJS({
  17960. "../../node_modules/redent/index.js"(exports, module2) {
  17961. "use strict";
  17962. var stripIndent = require_strip_indent(), indentString = require_indent_string();
  17963. module2.exports = (string, count = 0, options) => indentString(stripIndent(string), count, options);
  17964. }
  17965. });
  17966. // ../../node_modules/aria-query/lib/util/iteratorProxy.js
  17967. var require_iteratorProxy = __commonJS({
  17968. "../../node_modules/aria-query/lib/util/iteratorProxy.js"(exports) {
  17969. "use strict";
  17970. Object.defineProperty(exports, "__esModule", {
  17971. value: !0
  17972. });
  17973. exports.default = void 0;
  17974. function iteratorProxy() {
  17975. var values = this, index4 = 0, iter = {
  17976. "@@iterator": function() {
  17977. return iter;
  17978. },
  17979. next: function() {
  17980. if (index4 < values.length) {
  17981. var value = values[index4];
  17982. return index4 = index4 + 1, {
  17983. done: !1,
  17984. value
  17985. };
  17986. } else
  17987. return {
  17988. done: !0
  17989. };
  17990. }
  17991. };
  17992. return iter;
  17993. }
  17994. var _default = exports.default = iteratorProxy;
  17995. }
  17996. });
  17997. // ../../node_modules/aria-query/lib/util/iterationDecorator.js
  17998. var require_iterationDecorator = __commonJS({
  17999. "../../node_modules/aria-query/lib/util/iterationDecorator.js"(exports) {
  18000. "use strict";
  18001. Object.defineProperty(exports, "__esModule", {
  18002. value: !0
  18003. });
  18004. exports.default = iterationDecorator;
  18005. var _iteratorProxy = _interopRequireDefault(require_iteratorProxy());
  18006. function _interopRequireDefault(e) {
  18007. return e && e.__esModule ? e : { default: e };
  18008. }
  18009. function _typeof6(o) {
  18010. "@babel/helpers - typeof";
  18011. return _typeof6 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  18012. return typeof o2;
  18013. } : function(o2) {
  18014. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  18015. }, _typeof6(o);
  18016. }
  18017. function iterationDecorator(collection, entries) {
  18018. return typeof Symbol == "function" && _typeof6(Symbol.iterator) === "symbol" && Object.defineProperty(collection, Symbol.iterator, {
  18019. value: _iteratorProxy.default.bind(entries)
  18020. }), collection;
  18021. }
  18022. }
  18023. });
  18024. // ../../node_modules/aria-query/lib/ariaPropsMap.js
  18025. var require_ariaPropsMap = __commonJS({
  18026. "../../node_modules/aria-query/lib/ariaPropsMap.js"(exports) {
  18027. "use strict";
  18028. Object.defineProperty(exports, "__esModule", {
  18029. value: !0
  18030. });
  18031. exports.default = void 0;
  18032. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator());
  18033. function _interopRequireDefault(e) {
  18034. return e && e.__esModule ? e : { default: e };
  18035. }
  18036. function _slicedToArray(r2, e) {
  18037. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  18038. }
  18039. function _nonIterableRest() {
  18040. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  18041. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  18042. }
  18043. function _unsupportedIterableToArray2(r2, a3) {
  18044. if (r2) {
  18045. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  18046. var t = {}.toString.call(r2).slice(8, -1);
  18047. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  18048. }
  18049. }
  18050. function _arrayLikeToArray2(r2, a3) {
  18051. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  18052. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  18053. return n;
  18054. }
  18055. function _iterableToArrayLimit(r2, l) {
  18056. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  18057. if (t != null) {
  18058. var e, n, i, u2, a3 = [], f4 = !0, o = !1;
  18059. try {
  18060. if (i = (t = t.call(r2)).next, l === 0) {
  18061. if (Object(t) !== t) return;
  18062. f4 = !1;
  18063. } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  18064. } catch (r3) {
  18065. o = !0, n = r3;
  18066. } finally {
  18067. try {
  18068. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  18069. } finally {
  18070. if (o) throw n;
  18071. }
  18072. }
  18073. return a3;
  18074. }
  18075. }
  18076. function _arrayWithHoles(r2) {
  18077. if (Array.isArray(r2)) return r2;
  18078. }
  18079. var properties = [["aria-activedescendant", {
  18080. type: "id"
  18081. }], ["aria-atomic", {
  18082. type: "boolean"
  18083. }], ["aria-autocomplete", {
  18084. type: "token",
  18085. values: ["inline", "list", "both", "none"]
  18086. }], ["aria-braillelabel", {
  18087. type: "string"
  18088. }], ["aria-brailleroledescription", {
  18089. type: "string"
  18090. }], ["aria-busy", {
  18091. type: "boolean"
  18092. }], ["aria-checked", {
  18093. type: "tristate"
  18094. }], ["aria-colcount", {
  18095. type: "integer"
  18096. }], ["aria-colindex", {
  18097. type: "integer"
  18098. }], ["aria-colspan", {
  18099. type: "integer"
  18100. }], ["aria-controls", {
  18101. type: "idlist"
  18102. }], ["aria-current", {
  18103. type: "token",
  18104. values: ["page", "step", "location", "date", "time", !0, !1]
  18105. }], ["aria-describedby", {
  18106. type: "idlist"
  18107. }], ["aria-description", {
  18108. type: "string"
  18109. }], ["aria-details", {
  18110. type: "id"
  18111. }], ["aria-disabled", {
  18112. type: "boolean"
  18113. }], ["aria-dropeffect", {
  18114. type: "tokenlist",
  18115. values: ["copy", "execute", "link", "move", "none", "popup"]
  18116. }], ["aria-errormessage", {
  18117. type: "id"
  18118. }], ["aria-expanded", {
  18119. type: "boolean",
  18120. allowundefined: !0
  18121. }], ["aria-flowto", {
  18122. type: "idlist"
  18123. }], ["aria-grabbed", {
  18124. type: "boolean",
  18125. allowundefined: !0
  18126. }], ["aria-haspopup", {
  18127. type: "token",
  18128. values: [!1, !0, "menu", "listbox", "tree", "grid", "dialog"]
  18129. }], ["aria-hidden", {
  18130. type: "boolean",
  18131. allowundefined: !0
  18132. }], ["aria-invalid", {
  18133. type: "token",
  18134. values: ["grammar", !1, "spelling", !0]
  18135. }], ["aria-keyshortcuts", {
  18136. type: "string"
  18137. }], ["aria-label", {
  18138. type: "string"
  18139. }], ["aria-labelledby", {
  18140. type: "idlist"
  18141. }], ["aria-level", {
  18142. type: "integer"
  18143. }], ["aria-live", {
  18144. type: "token",
  18145. values: ["assertive", "off", "polite"]
  18146. }], ["aria-modal", {
  18147. type: "boolean"
  18148. }], ["aria-multiline", {
  18149. type: "boolean"
  18150. }], ["aria-multiselectable", {
  18151. type: "boolean"
  18152. }], ["aria-orientation", {
  18153. type: "token",
  18154. values: ["vertical", "undefined", "horizontal"]
  18155. }], ["aria-owns", {
  18156. type: "idlist"
  18157. }], ["aria-placeholder", {
  18158. type: "string"
  18159. }], ["aria-posinset", {
  18160. type: "integer"
  18161. }], ["aria-pressed", {
  18162. type: "tristate"
  18163. }], ["aria-readonly", {
  18164. type: "boolean"
  18165. }], ["aria-relevant", {
  18166. type: "tokenlist",
  18167. values: ["additions", "all", "removals", "text"]
  18168. }], ["aria-required", {
  18169. type: "boolean"
  18170. }], ["aria-roledescription", {
  18171. type: "string"
  18172. }], ["aria-rowcount", {
  18173. type: "integer"
  18174. }], ["aria-rowindex", {
  18175. type: "integer"
  18176. }], ["aria-rowspan", {
  18177. type: "integer"
  18178. }], ["aria-selected", {
  18179. type: "boolean",
  18180. allowundefined: !0
  18181. }], ["aria-setsize", {
  18182. type: "integer"
  18183. }], ["aria-sort", {
  18184. type: "token",
  18185. values: ["ascending", "descending", "none", "other"]
  18186. }], ["aria-valuemax", {
  18187. type: "number"
  18188. }], ["aria-valuemin", {
  18189. type: "number"
  18190. }], ["aria-valuenow", {
  18191. type: "number"
  18192. }], ["aria-valuetext", {
  18193. type: "string"
  18194. }]], ariaPropsMap = {
  18195. entries: function() {
  18196. return properties;
  18197. },
  18198. forEach: function(fn4) {
  18199. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _properties = properties; _i < _properties.length; _i++) {
  18200. var _properties$_i = _slicedToArray(_properties[_i], 2), key = _properties$_i[0], values = _properties$_i[1];
  18201. fn4.call(thisArg, values, key, properties);
  18202. }
  18203. },
  18204. get: function(key) {
  18205. var item = properties.filter(function(tuple) {
  18206. return tuple[0] === key;
  18207. })[0];
  18208. return item && item[1];
  18209. },
  18210. has: function(key) {
  18211. return !!ariaPropsMap.get(key);
  18212. },
  18213. keys: function() {
  18214. return properties.map(function(_ref) {
  18215. var _ref2 = _slicedToArray(_ref, 1), key = _ref2[0];
  18216. return key;
  18217. });
  18218. },
  18219. values: function() {
  18220. return properties.map(function(_ref3) {
  18221. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  18222. return values2;
  18223. });
  18224. }
  18225. }, _default = exports.default = (0, _iterationDecorator.default)(ariaPropsMap, ariaPropsMap.entries());
  18226. }
  18227. });
  18228. // ../../node_modules/aria-query/lib/domMap.js
  18229. var require_domMap = __commonJS({
  18230. "../../node_modules/aria-query/lib/domMap.js"(exports) {
  18231. "use strict";
  18232. Object.defineProperty(exports, "__esModule", {
  18233. value: !0
  18234. });
  18235. exports.default = void 0;
  18236. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator());
  18237. function _interopRequireDefault(e) {
  18238. return e && e.__esModule ? e : { default: e };
  18239. }
  18240. function _slicedToArray(r2, e) {
  18241. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  18242. }
  18243. function _nonIterableRest() {
  18244. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  18245. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  18246. }
  18247. function _unsupportedIterableToArray2(r2, a3) {
  18248. if (r2) {
  18249. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  18250. var t = {}.toString.call(r2).slice(8, -1);
  18251. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  18252. }
  18253. }
  18254. function _arrayLikeToArray2(r2, a3) {
  18255. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  18256. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  18257. return n;
  18258. }
  18259. function _iterableToArrayLimit(r2, l) {
  18260. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  18261. if (t != null) {
  18262. var e, n, i, u2, a3 = [], f4 = !0, o = !1;
  18263. try {
  18264. if (i = (t = t.call(r2)).next, l === 0) {
  18265. if (Object(t) !== t) return;
  18266. f4 = !1;
  18267. } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  18268. } catch (r3) {
  18269. o = !0, n = r3;
  18270. } finally {
  18271. try {
  18272. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  18273. } finally {
  18274. if (o) throw n;
  18275. }
  18276. }
  18277. return a3;
  18278. }
  18279. }
  18280. function _arrayWithHoles(r2) {
  18281. if (Array.isArray(r2)) return r2;
  18282. }
  18283. var dom = [["a", {
  18284. reserved: !1
  18285. }], ["abbr", {
  18286. reserved: !1
  18287. }], ["acronym", {
  18288. reserved: !1
  18289. }], ["address", {
  18290. reserved: !1
  18291. }], ["applet", {
  18292. reserved: !1
  18293. }], ["area", {
  18294. reserved: !1
  18295. }], ["article", {
  18296. reserved: !1
  18297. }], ["aside", {
  18298. reserved: !1
  18299. }], ["audio", {
  18300. reserved: !1
  18301. }], ["b", {
  18302. reserved: !1
  18303. }], ["base", {
  18304. reserved: !0
  18305. }], ["bdi", {
  18306. reserved: !1
  18307. }], ["bdo", {
  18308. reserved: !1
  18309. }], ["big", {
  18310. reserved: !1
  18311. }], ["blink", {
  18312. reserved: !1
  18313. }], ["blockquote", {
  18314. reserved: !1
  18315. }], ["body", {
  18316. reserved: !1
  18317. }], ["br", {
  18318. reserved: !1
  18319. }], ["button", {
  18320. reserved: !1
  18321. }], ["canvas", {
  18322. reserved: !1
  18323. }], ["caption", {
  18324. reserved: !1
  18325. }], ["center", {
  18326. reserved: !1
  18327. }], ["cite", {
  18328. reserved: !1
  18329. }], ["code", {
  18330. reserved: !1
  18331. }], ["col", {
  18332. reserved: !0
  18333. }], ["colgroup", {
  18334. reserved: !0
  18335. }], ["content", {
  18336. reserved: !1
  18337. }], ["data", {
  18338. reserved: !1
  18339. }], ["datalist", {
  18340. reserved: !1
  18341. }], ["dd", {
  18342. reserved: !1
  18343. }], ["del", {
  18344. reserved: !1
  18345. }], ["details", {
  18346. reserved: !1
  18347. }], ["dfn", {
  18348. reserved: !1
  18349. }], ["dialog", {
  18350. reserved: !1
  18351. }], ["dir", {
  18352. reserved: !1
  18353. }], ["div", {
  18354. reserved: !1
  18355. }], ["dl", {
  18356. reserved: !1
  18357. }], ["dt", {
  18358. reserved: !1
  18359. }], ["em", {
  18360. reserved: !1
  18361. }], ["embed", {
  18362. reserved: !1
  18363. }], ["fieldset", {
  18364. reserved: !1
  18365. }], ["figcaption", {
  18366. reserved: !1
  18367. }], ["figure", {
  18368. reserved: !1
  18369. }], ["font", {
  18370. reserved: !1
  18371. }], ["footer", {
  18372. reserved: !1
  18373. }], ["form", {
  18374. reserved: !1
  18375. }], ["frame", {
  18376. reserved: !1
  18377. }], ["frameset", {
  18378. reserved: !1
  18379. }], ["h1", {
  18380. reserved: !1
  18381. }], ["h2", {
  18382. reserved: !1
  18383. }], ["h3", {
  18384. reserved: !1
  18385. }], ["h4", {
  18386. reserved: !1
  18387. }], ["h5", {
  18388. reserved: !1
  18389. }], ["h6", {
  18390. reserved: !1
  18391. }], ["head", {
  18392. reserved: !0
  18393. }], ["header", {
  18394. reserved: !1
  18395. }], ["hgroup", {
  18396. reserved: !1
  18397. }], ["hr", {
  18398. reserved: !1
  18399. }], ["html", {
  18400. reserved: !0
  18401. }], ["i", {
  18402. reserved: !1
  18403. }], ["iframe", {
  18404. reserved: !1
  18405. }], ["img", {
  18406. reserved: !1
  18407. }], ["input", {
  18408. reserved: !1
  18409. }], ["ins", {
  18410. reserved: !1
  18411. }], ["kbd", {
  18412. reserved: !1
  18413. }], ["keygen", {
  18414. reserved: !1
  18415. }], ["label", {
  18416. reserved: !1
  18417. }], ["legend", {
  18418. reserved: !1
  18419. }], ["li", {
  18420. reserved: !1
  18421. }], ["link", {
  18422. reserved: !0
  18423. }], ["main", {
  18424. reserved: !1
  18425. }], ["map", {
  18426. reserved: !1
  18427. }], ["mark", {
  18428. reserved: !1
  18429. }], ["marquee", {
  18430. reserved: !1
  18431. }], ["menu", {
  18432. reserved: !1
  18433. }], ["menuitem", {
  18434. reserved: !1
  18435. }], ["meta", {
  18436. reserved: !0
  18437. }], ["meter", {
  18438. reserved: !1
  18439. }], ["nav", {
  18440. reserved: !1
  18441. }], ["noembed", {
  18442. reserved: !0
  18443. }], ["noscript", {
  18444. reserved: !0
  18445. }], ["object", {
  18446. reserved: !1
  18447. }], ["ol", {
  18448. reserved: !1
  18449. }], ["optgroup", {
  18450. reserved: !1
  18451. }], ["option", {
  18452. reserved: !1
  18453. }], ["output", {
  18454. reserved: !1
  18455. }], ["p", {
  18456. reserved: !1
  18457. }], ["param", {
  18458. reserved: !0
  18459. }], ["picture", {
  18460. reserved: !0
  18461. }], ["pre", {
  18462. reserved: !1
  18463. }], ["progress", {
  18464. reserved: !1
  18465. }], ["q", {
  18466. reserved: !1
  18467. }], ["rp", {
  18468. reserved: !1
  18469. }], ["rt", {
  18470. reserved: !1
  18471. }], ["rtc", {
  18472. reserved: !1
  18473. }], ["ruby", {
  18474. reserved: !1
  18475. }], ["s", {
  18476. reserved: !1
  18477. }], ["samp", {
  18478. reserved: !1
  18479. }], ["script", {
  18480. reserved: !0
  18481. }], ["section", {
  18482. reserved: !1
  18483. }], ["select", {
  18484. reserved: !1
  18485. }], ["small", {
  18486. reserved: !1
  18487. }], ["source", {
  18488. reserved: !0
  18489. }], ["spacer", {
  18490. reserved: !1
  18491. }], ["span", {
  18492. reserved: !1
  18493. }], ["strike", {
  18494. reserved: !1
  18495. }], ["strong", {
  18496. reserved: !1
  18497. }], ["style", {
  18498. reserved: !0
  18499. }], ["sub", {
  18500. reserved: !1
  18501. }], ["summary", {
  18502. reserved: !1
  18503. }], ["sup", {
  18504. reserved: !1
  18505. }], ["table", {
  18506. reserved: !1
  18507. }], ["tbody", {
  18508. reserved: !1
  18509. }], ["td", {
  18510. reserved: !1
  18511. }], ["textarea", {
  18512. reserved: !1
  18513. }], ["tfoot", {
  18514. reserved: !1
  18515. }], ["th", {
  18516. reserved: !1
  18517. }], ["thead", {
  18518. reserved: !1
  18519. }], ["time", {
  18520. reserved: !1
  18521. }], ["title", {
  18522. reserved: !0
  18523. }], ["tr", {
  18524. reserved: !1
  18525. }], ["track", {
  18526. reserved: !0
  18527. }], ["tt", {
  18528. reserved: !1
  18529. }], ["u", {
  18530. reserved: !1
  18531. }], ["ul", {
  18532. reserved: !1
  18533. }], ["var", {
  18534. reserved: !1
  18535. }], ["video", {
  18536. reserved: !1
  18537. }], ["wbr", {
  18538. reserved: !1
  18539. }], ["xmp", {
  18540. reserved: !1
  18541. }]], domMap = {
  18542. entries: function() {
  18543. return dom;
  18544. },
  18545. forEach: function(fn4) {
  18546. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _dom = dom; _i < _dom.length; _i++) {
  18547. var _dom$_i = _slicedToArray(_dom[_i], 2), key = _dom$_i[0], values = _dom$_i[1];
  18548. fn4.call(thisArg, values, key, dom);
  18549. }
  18550. },
  18551. get: function(key) {
  18552. var item = dom.filter(function(tuple) {
  18553. return tuple[0] === key;
  18554. })[0];
  18555. return item && item[1];
  18556. },
  18557. has: function(key) {
  18558. return !!domMap.get(key);
  18559. },
  18560. keys: function() {
  18561. return dom.map(function(_ref) {
  18562. var _ref2 = _slicedToArray(_ref, 1), key = _ref2[0];
  18563. return key;
  18564. });
  18565. },
  18566. values: function() {
  18567. return dom.map(function(_ref3) {
  18568. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  18569. return values2;
  18570. });
  18571. }
  18572. }, _default = exports.default = (0, _iterationDecorator.default)(domMap, domMap.entries());
  18573. }
  18574. });
  18575. // ../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js
  18576. var require_commandRole = __commonJS({
  18577. "../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(exports) {
  18578. "use strict";
  18579. Object.defineProperty(exports, "__esModule", {
  18580. value: !0
  18581. });
  18582. exports.default = void 0;
  18583. var commandRole = {
  18584. abstract: !0,
  18585. accessibleNameRequired: !1,
  18586. baseConcepts: [],
  18587. childrenPresentational: !1,
  18588. nameFrom: ["author"],
  18589. prohibitedProps: [],
  18590. props: {},
  18591. relatedConcepts: [],
  18592. requireContextRole: [],
  18593. requiredContextRole: [],
  18594. requiredOwnedElements: [],
  18595. requiredProps: {},
  18596. superClass: [["roletype", "widget"]]
  18597. }, _default = exports.default = commandRole;
  18598. }
  18599. });
  18600. // ../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js
  18601. var require_compositeRole = __commonJS({
  18602. "../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(exports) {
  18603. "use strict";
  18604. Object.defineProperty(exports, "__esModule", {
  18605. value: !0
  18606. });
  18607. exports.default = void 0;
  18608. var compositeRole = {
  18609. abstract: !0,
  18610. accessibleNameRequired: !1,
  18611. baseConcepts: [],
  18612. childrenPresentational: !1,
  18613. nameFrom: ["author"],
  18614. prohibitedProps: [],
  18615. props: {
  18616. "aria-activedescendant": null,
  18617. "aria-disabled": null
  18618. },
  18619. relatedConcepts: [],
  18620. requireContextRole: [],
  18621. requiredContextRole: [],
  18622. requiredOwnedElements: [],
  18623. requiredProps: {},
  18624. superClass: [["roletype", "widget"]]
  18625. }, _default = exports.default = compositeRole;
  18626. }
  18627. });
  18628. // ../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js
  18629. var require_inputRole = __commonJS({
  18630. "../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(exports) {
  18631. "use strict";
  18632. Object.defineProperty(exports, "__esModule", {
  18633. value: !0
  18634. });
  18635. exports.default = void 0;
  18636. var inputRole = {
  18637. abstract: !0,
  18638. accessibleNameRequired: !1,
  18639. baseConcepts: [],
  18640. childrenPresentational: !1,
  18641. nameFrom: ["author"],
  18642. prohibitedProps: [],
  18643. props: {
  18644. "aria-disabled": null
  18645. },
  18646. relatedConcepts: [{
  18647. concept: {
  18648. name: "input"
  18649. },
  18650. module: "XForms"
  18651. }],
  18652. requireContextRole: [],
  18653. requiredContextRole: [],
  18654. requiredOwnedElements: [],
  18655. requiredProps: {},
  18656. superClass: [["roletype", "widget"]]
  18657. }, _default = exports.default = inputRole;
  18658. }
  18659. });
  18660. // ../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js
  18661. var require_landmarkRole = __commonJS({
  18662. "../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(exports) {
  18663. "use strict";
  18664. Object.defineProperty(exports, "__esModule", {
  18665. value: !0
  18666. });
  18667. exports.default = void 0;
  18668. var landmarkRole = {
  18669. abstract: !0,
  18670. accessibleNameRequired: !1,
  18671. baseConcepts: [],
  18672. childrenPresentational: !1,
  18673. nameFrom: ["author"],
  18674. prohibitedProps: [],
  18675. props: {},
  18676. relatedConcepts: [],
  18677. requireContextRole: [],
  18678. requiredContextRole: [],
  18679. requiredOwnedElements: [],
  18680. requiredProps: {},
  18681. superClass: [["roletype", "structure", "section"]]
  18682. }, _default = exports.default = landmarkRole;
  18683. }
  18684. });
  18685. // ../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js
  18686. var require_rangeRole = __commonJS({
  18687. "../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(exports) {
  18688. "use strict";
  18689. Object.defineProperty(exports, "__esModule", {
  18690. value: !0
  18691. });
  18692. exports.default = void 0;
  18693. var rangeRole = {
  18694. abstract: !0,
  18695. accessibleNameRequired: !1,
  18696. baseConcepts: [],
  18697. childrenPresentational: !1,
  18698. nameFrom: ["author"],
  18699. prohibitedProps: [],
  18700. props: {
  18701. "aria-valuemax": null,
  18702. "aria-valuemin": null,
  18703. "aria-valuenow": null
  18704. },
  18705. relatedConcepts: [],
  18706. requireContextRole: [],
  18707. requiredContextRole: [],
  18708. requiredOwnedElements: [],
  18709. requiredProps: {},
  18710. superClass: [["roletype", "structure"]]
  18711. }, _default = exports.default = rangeRole;
  18712. }
  18713. });
  18714. // ../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js
  18715. var require_roletypeRole = __commonJS({
  18716. "../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(exports) {
  18717. "use strict";
  18718. Object.defineProperty(exports, "__esModule", {
  18719. value: !0
  18720. });
  18721. exports.default = void 0;
  18722. var roletypeRole = {
  18723. abstract: !0,
  18724. accessibleNameRequired: !1,
  18725. baseConcepts: [],
  18726. childrenPresentational: !1,
  18727. nameFrom: [],
  18728. prohibitedProps: [],
  18729. props: {
  18730. "aria-atomic": null,
  18731. "aria-busy": null,
  18732. "aria-controls": null,
  18733. "aria-current": null,
  18734. "aria-describedby": null,
  18735. "aria-details": null,
  18736. "aria-dropeffect": null,
  18737. "aria-flowto": null,
  18738. "aria-grabbed": null,
  18739. "aria-hidden": null,
  18740. "aria-keyshortcuts": null,
  18741. "aria-label": null,
  18742. "aria-labelledby": null,
  18743. "aria-live": null,
  18744. "aria-owns": null,
  18745. "aria-relevant": null,
  18746. "aria-roledescription": null
  18747. },
  18748. relatedConcepts: [{
  18749. concept: {
  18750. name: "role"
  18751. },
  18752. module: "XHTML"
  18753. }, {
  18754. concept: {
  18755. name: "type"
  18756. },
  18757. module: "Dublin Core"
  18758. }],
  18759. requireContextRole: [],
  18760. requiredContextRole: [],
  18761. requiredOwnedElements: [],
  18762. requiredProps: {},
  18763. superClass: []
  18764. }, _default = exports.default = roletypeRole;
  18765. }
  18766. });
  18767. // ../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js
  18768. var require_sectionRole = __commonJS({
  18769. "../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(exports) {
  18770. "use strict";
  18771. Object.defineProperty(exports, "__esModule", {
  18772. value: !0
  18773. });
  18774. exports.default = void 0;
  18775. var sectionRole = {
  18776. abstract: !0,
  18777. accessibleNameRequired: !1,
  18778. baseConcepts: [],
  18779. childrenPresentational: !1,
  18780. nameFrom: [],
  18781. prohibitedProps: [],
  18782. props: {},
  18783. relatedConcepts: [{
  18784. concept: {
  18785. name: "frontmatter"
  18786. },
  18787. module: "DTB"
  18788. }, {
  18789. concept: {
  18790. name: "level"
  18791. },
  18792. module: "DTB"
  18793. }, {
  18794. concept: {
  18795. name: "level"
  18796. },
  18797. module: "SMIL"
  18798. }],
  18799. requireContextRole: [],
  18800. requiredContextRole: [],
  18801. requiredOwnedElements: [],
  18802. requiredProps: {},
  18803. superClass: [["roletype", "structure"]]
  18804. }, _default = exports.default = sectionRole;
  18805. }
  18806. });
  18807. // ../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js
  18808. var require_sectionheadRole = __commonJS({
  18809. "../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(exports) {
  18810. "use strict";
  18811. Object.defineProperty(exports, "__esModule", {
  18812. value: !0
  18813. });
  18814. exports.default = void 0;
  18815. var sectionheadRole = {
  18816. abstract: !0,
  18817. accessibleNameRequired: !1,
  18818. baseConcepts: [],
  18819. childrenPresentational: !1,
  18820. nameFrom: ["author", "contents"],
  18821. prohibitedProps: [],
  18822. props: {},
  18823. relatedConcepts: [],
  18824. requireContextRole: [],
  18825. requiredContextRole: [],
  18826. requiredOwnedElements: [],
  18827. requiredProps: {},
  18828. superClass: [["roletype", "structure"]]
  18829. }, _default = exports.default = sectionheadRole;
  18830. }
  18831. });
  18832. // ../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js
  18833. var require_selectRole = __commonJS({
  18834. "../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(exports) {
  18835. "use strict";
  18836. Object.defineProperty(exports, "__esModule", {
  18837. value: !0
  18838. });
  18839. exports.default = void 0;
  18840. var selectRole = {
  18841. abstract: !0,
  18842. accessibleNameRequired: !1,
  18843. baseConcepts: [],
  18844. childrenPresentational: !1,
  18845. nameFrom: ["author"],
  18846. prohibitedProps: [],
  18847. props: {
  18848. "aria-orientation": null
  18849. },
  18850. relatedConcepts: [],
  18851. requireContextRole: [],
  18852. requiredContextRole: [],
  18853. requiredOwnedElements: [],
  18854. requiredProps: {},
  18855. superClass: [["roletype", "widget", "composite"], ["roletype", "structure", "section", "group"]]
  18856. }, _default = exports.default = selectRole;
  18857. }
  18858. });
  18859. // ../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js
  18860. var require_structureRole = __commonJS({
  18861. "../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(exports) {
  18862. "use strict";
  18863. Object.defineProperty(exports, "__esModule", {
  18864. value: !0
  18865. });
  18866. exports.default = void 0;
  18867. var structureRole = {
  18868. abstract: !0,
  18869. accessibleNameRequired: !1,
  18870. baseConcepts: [],
  18871. childrenPresentational: !1,
  18872. nameFrom: [],
  18873. prohibitedProps: [],
  18874. props: {},
  18875. relatedConcepts: [],
  18876. requireContextRole: [],
  18877. requiredContextRole: [],
  18878. requiredOwnedElements: [],
  18879. requiredProps: {},
  18880. superClass: [["roletype"]]
  18881. }, _default = exports.default = structureRole;
  18882. }
  18883. });
  18884. // ../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js
  18885. var require_widgetRole = __commonJS({
  18886. "../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(exports) {
  18887. "use strict";
  18888. Object.defineProperty(exports, "__esModule", {
  18889. value: !0
  18890. });
  18891. exports.default = void 0;
  18892. var widgetRole = {
  18893. abstract: !0,
  18894. accessibleNameRequired: !1,
  18895. baseConcepts: [],
  18896. childrenPresentational: !1,
  18897. nameFrom: [],
  18898. prohibitedProps: [],
  18899. props: {},
  18900. relatedConcepts: [],
  18901. requireContextRole: [],
  18902. requiredContextRole: [],
  18903. requiredOwnedElements: [],
  18904. requiredProps: {},
  18905. superClass: [["roletype"]]
  18906. }, _default = exports.default = widgetRole;
  18907. }
  18908. });
  18909. // ../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js
  18910. var require_windowRole = __commonJS({
  18911. "../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(exports) {
  18912. "use strict";
  18913. Object.defineProperty(exports, "__esModule", {
  18914. value: !0
  18915. });
  18916. exports.default = void 0;
  18917. var windowRole = {
  18918. abstract: !0,
  18919. accessibleNameRequired: !1,
  18920. baseConcepts: [],
  18921. childrenPresentational: !1,
  18922. nameFrom: ["author"],
  18923. prohibitedProps: [],
  18924. props: {
  18925. "aria-modal": null
  18926. },
  18927. relatedConcepts: [],
  18928. requireContextRole: [],
  18929. requiredContextRole: [],
  18930. requiredOwnedElements: [],
  18931. requiredProps: {},
  18932. superClass: [["roletype"]]
  18933. }, _default = exports.default = windowRole;
  18934. }
  18935. });
  18936. // ../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js
  18937. var require_ariaAbstractRoles = __commonJS({
  18938. "../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(exports) {
  18939. "use strict";
  18940. Object.defineProperty(exports, "__esModule", {
  18941. value: !0
  18942. });
  18943. exports.default = void 0;
  18944. var _commandRole = _interopRequireDefault(require_commandRole()), _compositeRole = _interopRequireDefault(require_compositeRole()), _inputRole = _interopRequireDefault(require_inputRole()), _landmarkRole = _interopRequireDefault(require_landmarkRole()), _rangeRole = _interopRequireDefault(require_rangeRole()), _roletypeRole = _interopRequireDefault(require_roletypeRole()), _sectionRole = _interopRequireDefault(require_sectionRole()), _sectionheadRole = _interopRequireDefault(require_sectionheadRole()), _selectRole = _interopRequireDefault(require_selectRole()), _structureRole = _interopRequireDefault(require_structureRole()), _widgetRole = _interopRequireDefault(require_widgetRole()), _windowRole = _interopRequireDefault(require_windowRole());
  18945. function _interopRequireDefault(e) {
  18946. return e && e.__esModule ? e : { default: e };
  18947. }
  18948. var ariaAbstractRoles = [["command", _commandRole.default], ["composite", _compositeRole.default], ["input", _inputRole.default], ["landmark", _landmarkRole.default], ["range", _rangeRole.default], ["roletype", _roletypeRole.default], ["section", _sectionRole.default], ["sectionhead", _sectionheadRole.default], ["select", _selectRole.default], ["structure", _structureRole.default], ["widget", _widgetRole.default], ["window", _windowRole.default]], _default = exports.default = ariaAbstractRoles;
  18949. }
  18950. });
  18951. // ../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js
  18952. var require_alertRole = __commonJS({
  18953. "../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(exports) {
  18954. "use strict";
  18955. Object.defineProperty(exports, "__esModule", {
  18956. value: !0
  18957. });
  18958. exports.default = void 0;
  18959. var alertRole = {
  18960. abstract: !1,
  18961. accessibleNameRequired: !1,
  18962. baseConcepts: [],
  18963. childrenPresentational: !1,
  18964. nameFrom: ["author"],
  18965. prohibitedProps: [],
  18966. props: {
  18967. "aria-atomic": "true",
  18968. "aria-live": "assertive"
  18969. },
  18970. relatedConcepts: [{
  18971. concept: {
  18972. name: "alert"
  18973. },
  18974. module: "XForms"
  18975. }],
  18976. requireContextRole: [],
  18977. requiredContextRole: [],
  18978. requiredOwnedElements: [],
  18979. requiredProps: {},
  18980. superClass: [["roletype", "structure", "section"]]
  18981. }, _default = exports.default = alertRole;
  18982. }
  18983. });
  18984. // ../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js
  18985. var require_alertdialogRole = __commonJS({
  18986. "../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(exports) {
  18987. "use strict";
  18988. Object.defineProperty(exports, "__esModule", {
  18989. value: !0
  18990. });
  18991. exports.default = void 0;
  18992. var alertdialogRole = {
  18993. abstract: !1,
  18994. accessibleNameRequired: !0,
  18995. baseConcepts: [],
  18996. childrenPresentational: !1,
  18997. nameFrom: ["author"],
  18998. prohibitedProps: [],
  18999. props: {},
  19000. relatedConcepts: [{
  19001. concept: {
  19002. name: "alert"
  19003. },
  19004. module: "XForms"
  19005. }],
  19006. requireContextRole: [],
  19007. requiredContextRole: [],
  19008. requiredOwnedElements: [],
  19009. requiredProps: {},
  19010. superClass: [["roletype", "structure", "section", "alert"], ["roletype", "window", "dialog"]]
  19011. }, _default = exports.default = alertdialogRole;
  19012. }
  19013. });
  19014. // ../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js
  19015. var require_applicationRole = __commonJS({
  19016. "../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(exports) {
  19017. "use strict";
  19018. Object.defineProperty(exports, "__esModule", {
  19019. value: !0
  19020. });
  19021. exports.default = void 0;
  19022. var applicationRole = {
  19023. abstract: !1,
  19024. accessibleNameRequired: !0,
  19025. baseConcepts: [],
  19026. childrenPresentational: !1,
  19027. nameFrom: ["author"],
  19028. prohibitedProps: [],
  19029. props: {
  19030. "aria-activedescendant": null,
  19031. "aria-disabled": null,
  19032. "aria-errormessage": null,
  19033. "aria-expanded": null,
  19034. "aria-haspopup": null,
  19035. "aria-invalid": null
  19036. },
  19037. relatedConcepts: [{
  19038. concept: {
  19039. name: "Device Independence Delivery Unit"
  19040. }
  19041. }],
  19042. requireContextRole: [],
  19043. requiredContextRole: [],
  19044. requiredOwnedElements: [],
  19045. requiredProps: {},
  19046. superClass: [["roletype", "structure"]]
  19047. }, _default = exports.default = applicationRole;
  19048. }
  19049. });
  19050. // ../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js
  19051. var require_articleRole = __commonJS({
  19052. "../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(exports) {
  19053. "use strict";
  19054. Object.defineProperty(exports, "__esModule", {
  19055. value: !0
  19056. });
  19057. exports.default = void 0;
  19058. var articleRole = {
  19059. abstract: !1,
  19060. accessibleNameRequired: !1,
  19061. baseConcepts: [],
  19062. childrenPresentational: !1,
  19063. nameFrom: ["author"],
  19064. prohibitedProps: [],
  19065. props: {
  19066. "aria-posinset": null,
  19067. "aria-setsize": null
  19068. },
  19069. relatedConcepts: [{
  19070. concept: {
  19071. name: "article"
  19072. },
  19073. module: "HTML"
  19074. }],
  19075. requireContextRole: [],
  19076. requiredContextRole: [],
  19077. requiredOwnedElements: [],
  19078. requiredProps: {},
  19079. superClass: [["roletype", "structure", "document"]]
  19080. }, _default = exports.default = articleRole;
  19081. }
  19082. });
  19083. // ../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js
  19084. var require_bannerRole = __commonJS({
  19085. "../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(exports) {
  19086. "use strict";
  19087. Object.defineProperty(exports, "__esModule", {
  19088. value: !0
  19089. });
  19090. exports.default = void 0;
  19091. var bannerRole = {
  19092. abstract: !1,
  19093. accessibleNameRequired: !1,
  19094. baseConcepts: [],
  19095. childrenPresentational: !1,
  19096. nameFrom: ["author"],
  19097. prohibitedProps: [],
  19098. props: {},
  19099. relatedConcepts: [{
  19100. concept: {
  19101. constraints: ["scoped to the body element"],
  19102. name: "header"
  19103. },
  19104. module: "HTML"
  19105. }],
  19106. requireContextRole: [],
  19107. requiredContextRole: [],
  19108. requiredOwnedElements: [],
  19109. requiredProps: {},
  19110. superClass: [["roletype", "structure", "section", "landmark"]]
  19111. }, _default = exports.default = bannerRole;
  19112. }
  19113. });
  19114. // ../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js
  19115. var require_blockquoteRole = __commonJS({
  19116. "../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(exports) {
  19117. "use strict";
  19118. Object.defineProperty(exports, "__esModule", {
  19119. value: !0
  19120. });
  19121. exports.default = void 0;
  19122. var blockquoteRole = {
  19123. abstract: !1,
  19124. accessibleNameRequired: !1,
  19125. baseConcepts: [],
  19126. childrenPresentational: !1,
  19127. nameFrom: ["author"],
  19128. prohibitedProps: [],
  19129. props: {},
  19130. relatedConcepts: [{
  19131. concept: {
  19132. name: "blockquote"
  19133. },
  19134. module: "HTML"
  19135. }],
  19136. requireContextRole: [],
  19137. requiredContextRole: [],
  19138. requiredOwnedElements: [],
  19139. requiredProps: {},
  19140. superClass: [["roletype", "structure", "section"]]
  19141. }, _default = exports.default = blockquoteRole;
  19142. }
  19143. });
  19144. // ../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js
  19145. var require_buttonRole = __commonJS({
  19146. "../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(exports) {
  19147. "use strict";
  19148. Object.defineProperty(exports, "__esModule", {
  19149. value: !0
  19150. });
  19151. exports.default = void 0;
  19152. var buttonRole = {
  19153. abstract: !1,
  19154. accessibleNameRequired: !0,
  19155. baseConcepts: [],
  19156. childrenPresentational: !0,
  19157. nameFrom: ["author", "contents"],
  19158. prohibitedProps: [],
  19159. props: {
  19160. "aria-disabled": null,
  19161. "aria-expanded": null,
  19162. "aria-haspopup": null,
  19163. "aria-pressed": null
  19164. },
  19165. relatedConcepts: [{
  19166. concept: {
  19167. attributes: [{
  19168. name: "type",
  19169. value: "button"
  19170. }],
  19171. name: "input"
  19172. },
  19173. module: "HTML"
  19174. }, {
  19175. concept: {
  19176. attributes: [{
  19177. name: "type",
  19178. value: "image"
  19179. }],
  19180. name: "input"
  19181. },
  19182. module: "HTML"
  19183. }, {
  19184. concept: {
  19185. attributes: [{
  19186. name: "type",
  19187. value: "reset"
  19188. }],
  19189. name: "input"
  19190. },
  19191. module: "HTML"
  19192. }, {
  19193. concept: {
  19194. attributes: [{
  19195. name: "type",
  19196. value: "submit"
  19197. }],
  19198. name: "input"
  19199. },
  19200. module: "HTML"
  19201. }, {
  19202. concept: {
  19203. name: "button"
  19204. },
  19205. module: "HTML"
  19206. }, {
  19207. concept: {
  19208. name: "trigger"
  19209. },
  19210. module: "XForms"
  19211. }],
  19212. requireContextRole: [],
  19213. requiredContextRole: [],
  19214. requiredOwnedElements: [],
  19215. requiredProps: {},
  19216. superClass: [["roletype", "widget", "command"]]
  19217. }, _default = exports.default = buttonRole;
  19218. }
  19219. });
  19220. // ../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js
  19221. var require_captionRole = __commonJS({
  19222. "../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(exports) {
  19223. "use strict";
  19224. Object.defineProperty(exports, "__esModule", {
  19225. value: !0
  19226. });
  19227. exports.default = void 0;
  19228. var captionRole = {
  19229. abstract: !1,
  19230. accessibleNameRequired: !1,
  19231. baseConcepts: [],
  19232. childrenPresentational: !1,
  19233. nameFrom: ["prohibited"],
  19234. prohibitedProps: ["aria-label", "aria-labelledby"],
  19235. props: {},
  19236. relatedConcepts: [{
  19237. concept: {
  19238. name: "caption"
  19239. },
  19240. module: "HTML"
  19241. }],
  19242. requireContextRole: ["figure", "grid", "table"],
  19243. requiredContextRole: ["figure", "grid", "table"],
  19244. requiredOwnedElements: [],
  19245. requiredProps: {},
  19246. superClass: [["roletype", "structure", "section"]]
  19247. }, _default = exports.default = captionRole;
  19248. }
  19249. });
  19250. // ../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js
  19251. var require_cellRole = __commonJS({
  19252. "../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(exports) {
  19253. "use strict";
  19254. Object.defineProperty(exports, "__esModule", {
  19255. value: !0
  19256. });
  19257. exports.default = void 0;
  19258. var cellRole = {
  19259. abstract: !1,
  19260. accessibleNameRequired: !1,
  19261. baseConcepts: [],
  19262. childrenPresentational: !1,
  19263. nameFrom: ["author", "contents"],
  19264. prohibitedProps: [],
  19265. props: {
  19266. "aria-colindex": null,
  19267. "aria-colspan": null,
  19268. "aria-rowindex": null,
  19269. "aria-rowspan": null
  19270. },
  19271. relatedConcepts: [{
  19272. concept: {
  19273. constraints: ["ancestor table element has table role"],
  19274. name: "td"
  19275. },
  19276. module: "HTML"
  19277. }],
  19278. requireContextRole: ["row"],
  19279. requiredContextRole: ["row"],
  19280. requiredOwnedElements: [],
  19281. requiredProps: {},
  19282. superClass: [["roletype", "structure", "section"]]
  19283. }, _default = exports.default = cellRole;
  19284. }
  19285. });
  19286. // ../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js
  19287. var require_checkboxRole = __commonJS({
  19288. "../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(exports) {
  19289. "use strict";
  19290. Object.defineProperty(exports, "__esModule", {
  19291. value: !0
  19292. });
  19293. exports.default = void 0;
  19294. var checkboxRole = {
  19295. abstract: !1,
  19296. accessibleNameRequired: !0,
  19297. baseConcepts: [],
  19298. childrenPresentational: !0,
  19299. nameFrom: ["author", "contents"],
  19300. prohibitedProps: [],
  19301. props: {
  19302. "aria-checked": null,
  19303. "aria-errormessage": null,
  19304. "aria-expanded": null,
  19305. "aria-invalid": null,
  19306. "aria-readonly": null,
  19307. "aria-required": null
  19308. },
  19309. relatedConcepts: [{
  19310. concept: {
  19311. attributes: [{
  19312. name: "type",
  19313. value: "checkbox"
  19314. }],
  19315. name: "input"
  19316. },
  19317. module: "HTML"
  19318. }, {
  19319. concept: {
  19320. name: "option"
  19321. },
  19322. module: "ARIA"
  19323. }],
  19324. requireContextRole: [],
  19325. requiredContextRole: [],
  19326. requiredOwnedElements: [],
  19327. requiredProps: {
  19328. "aria-checked": null
  19329. },
  19330. superClass: [["roletype", "widget", "input"]]
  19331. }, _default = exports.default = checkboxRole;
  19332. }
  19333. });
  19334. // ../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js
  19335. var require_codeRole = __commonJS({
  19336. "../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(exports) {
  19337. "use strict";
  19338. Object.defineProperty(exports, "__esModule", {
  19339. value: !0
  19340. });
  19341. exports.default = void 0;
  19342. var codeRole = {
  19343. abstract: !1,
  19344. accessibleNameRequired: !1,
  19345. baseConcepts: [],
  19346. childrenPresentational: !1,
  19347. nameFrom: ["prohibited"],
  19348. prohibitedProps: ["aria-label", "aria-labelledby"],
  19349. props: {},
  19350. relatedConcepts: [{
  19351. concept: {
  19352. name: "code"
  19353. },
  19354. module: "HTML"
  19355. }],
  19356. requireContextRole: [],
  19357. requiredContextRole: [],
  19358. requiredOwnedElements: [],
  19359. requiredProps: {},
  19360. superClass: [["roletype", "structure", "section"]]
  19361. }, _default = exports.default = codeRole;
  19362. }
  19363. });
  19364. // ../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js
  19365. var require_columnheaderRole = __commonJS({
  19366. "../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(exports) {
  19367. "use strict";
  19368. Object.defineProperty(exports, "__esModule", {
  19369. value: !0
  19370. });
  19371. exports.default = void 0;
  19372. var columnheaderRole = {
  19373. abstract: !1,
  19374. accessibleNameRequired: !0,
  19375. baseConcepts: [],
  19376. childrenPresentational: !1,
  19377. nameFrom: ["author", "contents"],
  19378. prohibitedProps: [],
  19379. props: {
  19380. "aria-sort": null
  19381. },
  19382. relatedConcepts: [{
  19383. concept: {
  19384. name: "th"
  19385. },
  19386. module: "HTML"
  19387. }, {
  19388. concept: {
  19389. attributes: [{
  19390. name: "scope",
  19391. value: "col"
  19392. }],
  19393. name: "th"
  19394. },
  19395. module: "HTML"
  19396. }, {
  19397. concept: {
  19398. attributes: [{
  19399. name: "scope",
  19400. value: "colgroup"
  19401. }],
  19402. name: "th"
  19403. },
  19404. module: "HTML"
  19405. }],
  19406. requireContextRole: ["row"],
  19407. requiredContextRole: ["row"],
  19408. requiredOwnedElements: [],
  19409. requiredProps: {},
  19410. superClass: [["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"]]
  19411. }, _default = exports.default = columnheaderRole;
  19412. }
  19413. });
  19414. // ../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js
  19415. var require_comboboxRole = __commonJS({
  19416. "../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(exports) {
  19417. "use strict";
  19418. Object.defineProperty(exports, "__esModule", {
  19419. value: !0
  19420. });
  19421. exports.default = void 0;
  19422. var comboboxRole = {
  19423. abstract: !1,
  19424. accessibleNameRequired: !0,
  19425. baseConcepts: [],
  19426. childrenPresentational: !1,
  19427. nameFrom: ["author"],
  19428. prohibitedProps: [],
  19429. props: {
  19430. "aria-activedescendant": null,
  19431. "aria-autocomplete": null,
  19432. "aria-errormessage": null,
  19433. "aria-invalid": null,
  19434. "aria-readonly": null,
  19435. "aria-required": null,
  19436. "aria-expanded": "false",
  19437. "aria-haspopup": "listbox"
  19438. },
  19439. relatedConcepts: [{
  19440. concept: {
  19441. attributes: [{
  19442. constraints: ["set"],
  19443. name: "list"
  19444. }, {
  19445. name: "type",
  19446. value: "email"
  19447. }],
  19448. name: "input"
  19449. },
  19450. module: "HTML"
  19451. }, {
  19452. concept: {
  19453. attributes: [{
  19454. constraints: ["set"],
  19455. name: "list"
  19456. }, {
  19457. name: "type",
  19458. value: "search"
  19459. }],
  19460. name: "input"
  19461. },
  19462. module: "HTML"
  19463. }, {
  19464. concept: {
  19465. attributes: [{
  19466. constraints: ["set"],
  19467. name: "list"
  19468. }, {
  19469. name: "type",
  19470. value: "tel"
  19471. }],
  19472. name: "input"
  19473. },
  19474. module: "HTML"
  19475. }, {
  19476. concept: {
  19477. attributes: [{
  19478. constraints: ["set"],
  19479. name: "list"
  19480. }, {
  19481. name: "type",
  19482. value: "text"
  19483. }],
  19484. name: "input"
  19485. },
  19486. module: "HTML"
  19487. }, {
  19488. concept: {
  19489. attributes: [{
  19490. constraints: ["set"],
  19491. name: "list"
  19492. }, {
  19493. name: "type",
  19494. value: "url"
  19495. }],
  19496. name: "input"
  19497. },
  19498. module: "HTML"
  19499. }, {
  19500. concept: {
  19501. attributes: [{
  19502. constraints: ["set"],
  19503. name: "list"
  19504. }, {
  19505. name: "type",
  19506. value: "url"
  19507. }],
  19508. name: "input"
  19509. },
  19510. module: "HTML"
  19511. }, {
  19512. concept: {
  19513. attributes: [{
  19514. constraints: ["undefined"],
  19515. name: "multiple"
  19516. }, {
  19517. constraints: ["undefined"],
  19518. name: "size"
  19519. }],
  19520. constraints: ["the multiple attribute is not set and the size attribute does not have a value greater than 1"],
  19521. name: "select"
  19522. },
  19523. module: "HTML"
  19524. }, {
  19525. concept: {
  19526. name: "select"
  19527. },
  19528. module: "XForms"
  19529. }],
  19530. requireContextRole: [],
  19531. requiredContextRole: [],
  19532. requiredOwnedElements: [],
  19533. requiredProps: {
  19534. "aria-controls": null,
  19535. "aria-expanded": "false"
  19536. },
  19537. superClass: [["roletype", "widget", "input"]]
  19538. }, _default = exports.default = comboboxRole;
  19539. }
  19540. });
  19541. // ../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js
  19542. var require_complementaryRole = __commonJS({
  19543. "../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(exports) {
  19544. "use strict";
  19545. Object.defineProperty(exports, "__esModule", {
  19546. value: !0
  19547. });
  19548. exports.default = void 0;
  19549. var complementaryRole = {
  19550. abstract: !1,
  19551. accessibleNameRequired: !1,
  19552. baseConcepts: [],
  19553. childrenPresentational: !1,
  19554. nameFrom: ["author"],
  19555. prohibitedProps: [],
  19556. props: {},
  19557. relatedConcepts: [{
  19558. concept: {
  19559. constraints: ["scoped to the body element", "scoped to the main element"],
  19560. name: "aside"
  19561. },
  19562. module: "HTML"
  19563. }, {
  19564. concept: {
  19565. attributes: [{
  19566. constraints: ["set"],
  19567. name: "aria-label"
  19568. }],
  19569. constraints: ["scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19570. name: "aside"
  19571. },
  19572. module: "HTML"
  19573. }, {
  19574. concept: {
  19575. attributes: [{
  19576. constraints: ["set"],
  19577. name: "aria-labelledby"
  19578. }],
  19579. constraints: ["scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19580. name: "aside"
  19581. },
  19582. module: "HTML"
  19583. }],
  19584. requireContextRole: [],
  19585. requiredContextRole: [],
  19586. requiredOwnedElements: [],
  19587. requiredProps: {},
  19588. superClass: [["roletype", "structure", "section", "landmark"]]
  19589. }, _default = exports.default = complementaryRole;
  19590. }
  19591. });
  19592. // ../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js
  19593. var require_contentinfoRole = __commonJS({
  19594. "../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(exports) {
  19595. "use strict";
  19596. Object.defineProperty(exports, "__esModule", {
  19597. value: !0
  19598. });
  19599. exports.default = void 0;
  19600. var contentinfoRole = {
  19601. abstract: !1,
  19602. accessibleNameRequired: !1,
  19603. baseConcepts: [],
  19604. childrenPresentational: !1,
  19605. nameFrom: ["author"],
  19606. prohibitedProps: [],
  19607. props: {},
  19608. relatedConcepts: [{
  19609. concept: {
  19610. constraints: ["scoped to the body element"],
  19611. name: "footer"
  19612. },
  19613. module: "HTML"
  19614. }],
  19615. requireContextRole: [],
  19616. requiredContextRole: [],
  19617. requiredOwnedElements: [],
  19618. requiredProps: {},
  19619. superClass: [["roletype", "structure", "section", "landmark"]]
  19620. }, _default = exports.default = contentinfoRole;
  19621. }
  19622. });
  19623. // ../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js
  19624. var require_definitionRole = __commonJS({
  19625. "../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(exports) {
  19626. "use strict";
  19627. Object.defineProperty(exports, "__esModule", {
  19628. value: !0
  19629. });
  19630. exports.default = void 0;
  19631. var definitionRole = {
  19632. abstract: !1,
  19633. accessibleNameRequired: !1,
  19634. baseConcepts: [],
  19635. childrenPresentational: !1,
  19636. nameFrom: ["author"],
  19637. prohibitedProps: [],
  19638. props: {},
  19639. relatedConcepts: [{
  19640. concept: {
  19641. name: "dd"
  19642. },
  19643. module: "HTML"
  19644. }],
  19645. requireContextRole: [],
  19646. requiredContextRole: [],
  19647. requiredOwnedElements: [],
  19648. requiredProps: {},
  19649. superClass: [["roletype", "structure", "section"]]
  19650. }, _default = exports.default = definitionRole;
  19651. }
  19652. });
  19653. // ../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js
  19654. var require_deletionRole = __commonJS({
  19655. "../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(exports) {
  19656. "use strict";
  19657. Object.defineProperty(exports, "__esModule", {
  19658. value: !0
  19659. });
  19660. exports.default = void 0;
  19661. var deletionRole = {
  19662. abstract: !1,
  19663. accessibleNameRequired: !1,
  19664. baseConcepts: [],
  19665. childrenPresentational: !1,
  19666. nameFrom: ["prohibited"],
  19667. prohibitedProps: ["aria-label", "aria-labelledby"],
  19668. props: {},
  19669. relatedConcepts: [{
  19670. concept: {
  19671. name: "del"
  19672. },
  19673. module: "HTML"
  19674. }],
  19675. requireContextRole: [],
  19676. requiredContextRole: [],
  19677. requiredOwnedElements: [],
  19678. requiredProps: {},
  19679. superClass: [["roletype", "structure", "section"]]
  19680. }, _default = exports.default = deletionRole;
  19681. }
  19682. });
  19683. // ../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js
  19684. var require_dialogRole = __commonJS({
  19685. "../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(exports) {
  19686. "use strict";
  19687. Object.defineProperty(exports, "__esModule", {
  19688. value: !0
  19689. });
  19690. exports.default = void 0;
  19691. var dialogRole = {
  19692. abstract: !1,
  19693. accessibleNameRequired: !0,
  19694. baseConcepts: [],
  19695. childrenPresentational: !1,
  19696. nameFrom: ["author"],
  19697. prohibitedProps: [],
  19698. props: {},
  19699. relatedConcepts: [{
  19700. concept: {
  19701. name: "dialog"
  19702. },
  19703. module: "HTML"
  19704. }],
  19705. requireContextRole: [],
  19706. requiredContextRole: [],
  19707. requiredOwnedElements: [],
  19708. requiredProps: {},
  19709. superClass: [["roletype", "window"]]
  19710. }, _default = exports.default = dialogRole;
  19711. }
  19712. });
  19713. // ../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js
  19714. var require_directoryRole = __commonJS({
  19715. "../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(exports) {
  19716. "use strict";
  19717. Object.defineProperty(exports, "__esModule", {
  19718. value: !0
  19719. });
  19720. exports.default = void 0;
  19721. var directoryRole = {
  19722. abstract: !1,
  19723. accessibleNameRequired: !1,
  19724. baseConcepts: [],
  19725. childrenPresentational: !1,
  19726. nameFrom: ["author"],
  19727. prohibitedProps: [],
  19728. props: {},
  19729. relatedConcepts: [{
  19730. module: "DAISY Guide"
  19731. }],
  19732. requireContextRole: [],
  19733. requiredContextRole: [],
  19734. requiredOwnedElements: [],
  19735. requiredProps: {},
  19736. superClass: [["roletype", "structure", "section", "list"]]
  19737. }, _default = exports.default = directoryRole;
  19738. }
  19739. });
  19740. // ../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js
  19741. var require_documentRole = __commonJS({
  19742. "../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(exports) {
  19743. "use strict";
  19744. Object.defineProperty(exports, "__esModule", {
  19745. value: !0
  19746. });
  19747. exports.default = void 0;
  19748. var documentRole = {
  19749. abstract: !1,
  19750. accessibleNameRequired: !1,
  19751. baseConcepts: [],
  19752. childrenPresentational: !1,
  19753. nameFrom: ["author"],
  19754. prohibitedProps: [],
  19755. props: {},
  19756. relatedConcepts: [{
  19757. concept: {
  19758. name: "Device Independence Delivery Unit"
  19759. }
  19760. }, {
  19761. concept: {
  19762. name: "html"
  19763. },
  19764. module: "HTML"
  19765. }],
  19766. requireContextRole: [],
  19767. requiredContextRole: [],
  19768. requiredOwnedElements: [],
  19769. requiredProps: {},
  19770. superClass: [["roletype", "structure"]]
  19771. }, _default = exports.default = documentRole;
  19772. }
  19773. });
  19774. // ../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js
  19775. var require_emphasisRole = __commonJS({
  19776. "../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(exports) {
  19777. "use strict";
  19778. Object.defineProperty(exports, "__esModule", {
  19779. value: !0
  19780. });
  19781. exports.default = void 0;
  19782. var emphasisRole = {
  19783. abstract: !1,
  19784. accessibleNameRequired: !1,
  19785. baseConcepts: [],
  19786. childrenPresentational: !1,
  19787. nameFrom: ["prohibited"],
  19788. prohibitedProps: ["aria-label", "aria-labelledby"],
  19789. props: {},
  19790. relatedConcepts: [{
  19791. concept: {
  19792. name: "em"
  19793. },
  19794. module: "HTML"
  19795. }],
  19796. requireContextRole: [],
  19797. requiredContextRole: [],
  19798. requiredOwnedElements: [],
  19799. requiredProps: {},
  19800. superClass: [["roletype", "structure", "section"]]
  19801. }, _default = exports.default = emphasisRole;
  19802. }
  19803. });
  19804. // ../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js
  19805. var require_feedRole = __commonJS({
  19806. "../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(exports) {
  19807. "use strict";
  19808. Object.defineProperty(exports, "__esModule", {
  19809. value: !0
  19810. });
  19811. exports.default = void 0;
  19812. var feedRole = {
  19813. abstract: !1,
  19814. accessibleNameRequired: !1,
  19815. baseConcepts: [],
  19816. childrenPresentational: !1,
  19817. nameFrom: ["author"],
  19818. prohibitedProps: [],
  19819. props: {},
  19820. relatedConcepts: [],
  19821. requireContextRole: [],
  19822. requiredContextRole: [],
  19823. requiredOwnedElements: [["article"]],
  19824. requiredProps: {},
  19825. superClass: [["roletype", "structure", "section", "list"]]
  19826. }, _default = exports.default = feedRole;
  19827. }
  19828. });
  19829. // ../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js
  19830. var require_figureRole = __commonJS({
  19831. "../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(exports) {
  19832. "use strict";
  19833. Object.defineProperty(exports, "__esModule", {
  19834. value: !0
  19835. });
  19836. exports.default = void 0;
  19837. var figureRole = {
  19838. abstract: !1,
  19839. accessibleNameRequired: !1,
  19840. baseConcepts: [],
  19841. childrenPresentational: !1,
  19842. nameFrom: ["author"],
  19843. prohibitedProps: [],
  19844. props: {},
  19845. relatedConcepts: [{
  19846. concept: {
  19847. name: "figure"
  19848. },
  19849. module: "HTML"
  19850. }],
  19851. requireContextRole: [],
  19852. requiredContextRole: [],
  19853. requiredOwnedElements: [],
  19854. requiredProps: {},
  19855. superClass: [["roletype", "structure", "section"]]
  19856. }, _default = exports.default = figureRole;
  19857. }
  19858. });
  19859. // ../../node_modules/aria-query/lib/etc/roles/literal/formRole.js
  19860. var require_formRole = __commonJS({
  19861. "../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(exports) {
  19862. "use strict";
  19863. Object.defineProperty(exports, "__esModule", {
  19864. value: !0
  19865. });
  19866. exports.default = void 0;
  19867. var formRole = {
  19868. abstract: !1,
  19869. accessibleNameRequired: !1,
  19870. baseConcepts: [],
  19871. childrenPresentational: !1,
  19872. nameFrom: ["author"],
  19873. prohibitedProps: [],
  19874. props: {},
  19875. relatedConcepts: [{
  19876. concept: {
  19877. attributes: [{
  19878. constraints: ["set"],
  19879. name: "aria-label"
  19880. }],
  19881. name: "form"
  19882. },
  19883. module: "HTML"
  19884. }, {
  19885. concept: {
  19886. attributes: [{
  19887. constraints: ["set"],
  19888. name: "aria-labelledby"
  19889. }],
  19890. name: "form"
  19891. },
  19892. module: "HTML"
  19893. }, {
  19894. concept: {
  19895. attributes: [{
  19896. constraints: ["set"],
  19897. name: "name"
  19898. }],
  19899. name: "form"
  19900. },
  19901. module: "HTML"
  19902. }],
  19903. requireContextRole: [],
  19904. requiredContextRole: [],
  19905. requiredOwnedElements: [],
  19906. requiredProps: {},
  19907. superClass: [["roletype", "structure", "section", "landmark"]]
  19908. }, _default = exports.default = formRole;
  19909. }
  19910. });
  19911. // ../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js
  19912. var require_genericRole = __commonJS({
  19913. "../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(exports) {
  19914. "use strict";
  19915. Object.defineProperty(exports, "__esModule", {
  19916. value: !0
  19917. });
  19918. exports.default = void 0;
  19919. var genericRole = {
  19920. abstract: !1,
  19921. accessibleNameRequired: !1,
  19922. baseConcepts: [],
  19923. childrenPresentational: !1,
  19924. nameFrom: ["prohibited"],
  19925. prohibitedProps: ["aria-label", "aria-labelledby"],
  19926. props: {},
  19927. relatedConcepts: [{
  19928. concept: {
  19929. name: "a"
  19930. },
  19931. module: "HTML"
  19932. }, {
  19933. concept: {
  19934. name: "area"
  19935. },
  19936. module: "HTML"
  19937. }, {
  19938. concept: {
  19939. name: "aside"
  19940. },
  19941. module: "HTML"
  19942. }, {
  19943. concept: {
  19944. name: "b"
  19945. },
  19946. module: "HTML"
  19947. }, {
  19948. concept: {
  19949. name: "bdo"
  19950. },
  19951. module: "HTML"
  19952. }, {
  19953. concept: {
  19954. name: "body"
  19955. },
  19956. module: "HTML"
  19957. }, {
  19958. concept: {
  19959. name: "data"
  19960. },
  19961. module: "HTML"
  19962. }, {
  19963. concept: {
  19964. name: "div"
  19965. },
  19966. module: "HTML"
  19967. }, {
  19968. concept: {
  19969. constraints: ["scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19970. name: "footer"
  19971. },
  19972. module: "HTML"
  19973. }, {
  19974. concept: {
  19975. constraints: ["scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19976. name: "header"
  19977. },
  19978. module: "HTML"
  19979. }, {
  19980. concept: {
  19981. name: "hgroup"
  19982. },
  19983. module: "HTML"
  19984. }, {
  19985. concept: {
  19986. name: "i"
  19987. },
  19988. module: "HTML"
  19989. }, {
  19990. concept: {
  19991. name: "pre"
  19992. },
  19993. module: "HTML"
  19994. }, {
  19995. concept: {
  19996. name: "q"
  19997. },
  19998. module: "HTML"
  19999. }, {
  20000. concept: {
  20001. name: "samp"
  20002. },
  20003. module: "HTML"
  20004. }, {
  20005. concept: {
  20006. name: "section"
  20007. },
  20008. module: "HTML"
  20009. }, {
  20010. concept: {
  20011. name: "small"
  20012. },
  20013. module: "HTML"
  20014. }, {
  20015. concept: {
  20016. name: "span"
  20017. },
  20018. module: "HTML"
  20019. }, {
  20020. concept: {
  20021. name: "u"
  20022. },
  20023. module: "HTML"
  20024. }],
  20025. requireContextRole: [],
  20026. requiredContextRole: [],
  20027. requiredOwnedElements: [],
  20028. requiredProps: {},
  20029. superClass: [["roletype", "structure"]]
  20030. }, _default = exports.default = genericRole;
  20031. }
  20032. });
  20033. // ../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js
  20034. var require_gridRole = __commonJS({
  20035. "../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(exports) {
  20036. "use strict";
  20037. Object.defineProperty(exports, "__esModule", {
  20038. value: !0
  20039. });
  20040. exports.default = void 0;
  20041. var gridRole = {
  20042. abstract: !1,
  20043. accessibleNameRequired: !0,
  20044. baseConcepts: [],
  20045. childrenPresentational: !1,
  20046. nameFrom: ["author"],
  20047. prohibitedProps: [],
  20048. props: {
  20049. "aria-multiselectable": null,
  20050. "aria-readonly": null
  20051. },
  20052. relatedConcepts: [],
  20053. requireContextRole: [],
  20054. requiredContextRole: [],
  20055. requiredOwnedElements: [["row"], ["row", "rowgroup"]],
  20056. requiredProps: {},
  20057. superClass: [["roletype", "widget", "composite"], ["roletype", "structure", "section", "table"]]
  20058. }, _default = exports.default = gridRole;
  20059. }
  20060. });
  20061. // ../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js
  20062. var require_gridcellRole = __commonJS({
  20063. "../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(exports) {
  20064. "use strict";
  20065. Object.defineProperty(exports, "__esModule", {
  20066. value: !0
  20067. });
  20068. exports.default = void 0;
  20069. var gridcellRole = {
  20070. abstract: !1,
  20071. accessibleNameRequired: !1,
  20072. baseConcepts: [],
  20073. childrenPresentational: !1,
  20074. nameFrom: ["author", "contents"],
  20075. prohibitedProps: [],
  20076. props: {
  20077. "aria-disabled": null,
  20078. "aria-errormessage": null,
  20079. "aria-expanded": null,
  20080. "aria-haspopup": null,
  20081. "aria-invalid": null,
  20082. "aria-readonly": null,
  20083. "aria-required": null,
  20084. "aria-selected": null
  20085. },
  20086. relatedConcepts: [{
  20087. concept: {
  20088. constraints: ["ancestor table element has grid role", "ancestor table element has treegrid role"],
  20089. name: "td"
  20090. },
  20091. module: "HTML"
  20092. }],
  20093. requireContextRole: ["row"],
  20094. requiredContextRole: ["row"],
  20095. requiredOwnedElements: [],
  20096. requiredProps: {},
  20097. superClass: [["roletype", "structure", "section", "cell"], ["roletype", "widget"]]
  20098. }, _default = exports.default = gridcellRole;
  20099. }
  20100. });
  20101. // ../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js
  20102. var require_groupRole = __commonJS({
  20103. "../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(exports) {
  20104. "use strict";
  20105. Object.defineProperty(exports, "__esModule", {
  20106. value: !0
  20107. });
  20108. exports.default = void 0;
  20109. var groupRole = {
  20110. abstract: !1,
  20111. accessibleNameRequired: !1,
  20112. baseConcepts: [],
  20113. childrenPresentational: !1,
  20114. nameFrom: ["author"],
  20115. prohibitedProps: [],
  20116. props: {
  20117. "aria-activedescendant": null,
  20118. "aria-disabled": null
  20119. },
  20120. relatedConcepts: [{
  20121. concept: {
  20122. name: "details"
  20123. },
  20124. module: "HTML"
  20125. }, {
  20126. concept: {
  20127. name: "fieldset"
  20128. },
  20129. module: "HTML"
  20130. }, {
  20131. concept: {
  20132. name: "optgroup"
  20133. },
  20134. module: "HTML"
  20135. }, {
  20136. concept: {
  20137. name: "address"
  20138. },
  20139. module: "HTML"
  20140. }],
  20141. requireContextRole: [],
  20142. requiredContextRole: [],
  20143. requiredOwnedElements: [],
  20144. requiredProps: {},
  20145. superClass: [["roletype", "structure", "section"]]
  20146. }, _default = exports.default = groupRole;
  20147. }
  20148. });
  20149. // ../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js
  20150. var require_headingRole = __commonJS({
  20151. "../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(exports) {
  20152. "use strict";
  20153. Object.defineProperty(exports, "__esModule", {
  20154. value: !0
  20155. });
  20156. exports.default = void 0;
  20157. var headingRole = {
  20158. abstract: !1,
  20159. accessibleNameRequired: !0,
  20160. baseConcepts: [],
  20161. childrenPresentational: !1,
  20162. nameFrom: ["author", "contents"],
  20163. prohibitedProps: [],
  20164. props: {
  20165. "aria-level": "2"
  20166. },
  20167. relatedConcepts: [{
  20168. concept: {
  20169. name: "h1"
  20170. },
  20171. module: "HTML"
  20172. }, {
  20173. concept: {
  20174. name: "h2"
  20175. },
  20176. module: "HTML"
  20177. }, {
  20178. concept: {
  20179. name: "h3"
  20180. },
  20181. module: "HTML"
  20182. }, {
  20183. concept: {
  20184. name: "h4"
  20185. },
  20186. module: "HTML"
  20187. }, {
  20188. concept: {
  20189. name: "h5"
  20190. },
  20191. module: "HTML"
  20192. }, {
  20193. concept: {
  20194. name: "h6"
  20195. },
  20196. module: "HTML"
  20197. }],
  20198. requireContextRole: [],
  20199. requiredContextRole: [],
  20200. requiredOwnedElements: [],
  20201. requiredProps: {
  20202. "aria-level": "2"
  20203. },
  20204. superClass: [["roletype", "structure", "sectionhead"]]
  20205. }, _default = exports.default = headingRole;
  20206. }
  20207. });
  20208. // ../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js
  20209. var require_imgRole = __commonJS({
  20210. "../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(exports) {
  20211. "use strict";
  20212. Object.defineProperty(exports, "__esModule", {
  20213. value: !0
  20214. });
  20215. exports.default = void 0;
  20216. var imgRole = {
  20217. abstract: !1,
  20218. accessibleNameRequired: !0,
  20219. baseConcepts: [],
  20220. childrenPresentational: !0,
  20221. nameFrom: ["author"],
  20222. prohibitedProps: [],
  20223. props: {},
  20224. relatedConcepts: [{
  20225. concept: {
  20226. attributes: [{
  20227. constraints: ["set"],
  20228. name: "alt"
  20229. }],
  20230. name: "img"
  20231. },
  20232. module: "HTML"
  20233. }, {
  20234. concept: {
  20235. attributes: [{
  20236. constraints: ["undefined"],
  20237. name: "alt"
  20238. }],
  20239. name: "img"
  20240. },
  20241. module: "HTML"
  20242. }, {
  20243. concept: {
  20244. name: "imggroup"
  20245. },
  20246. module: "DTB"
  20247. }],
  20248. requireContextRole: [],
  20249. requiredContextRole: [],
  20250. requiredOwnedElements: [],
  20251. requiredProps: {},
  20252. superClass: [["roletype", "structure", "section"]]
  20253. }, _default = exports.default = imgRole;
  20254. }
  20255. });
  20256. // ../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js
  20257. var require_insertionRole = __commonJS({
  20258. "../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(exports) {
  20259. "use strict";
  20260. Object.defineProperty(exports, "__esModule", {
  20261. value: !0
  20262. });
  20263. exports.default = void 0;
  20264. var insertionRole = {
  20265. abstract: !1,
  20266. accessibleNameRequired: !1,
  20267. baseConcepts: [],
  20268. childrenPresentational: !1,
  20269. nameFrom: ["prohibited"],
  20270. prohibitedProps: ["aria-label", "aria-labelledby"],
  20271. props: {},
  20272. relatedConcepts: [{
  20273. concept: {
  20274. name: "ins"
  20275. },
  20276. module: "HTML"
  20277. }],
  20278. requireContextRole: [],
  20279. requiredContextRole: [],
  20280. requiredOwnedElements: [],
  20281. requiredProps: {},
  20282. superClass: [["roletype", "structure", "section"]]
  20283. }, _default = exports.default = insertionRole;
  20284. }
  20285. });
  20286. // ../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js
  20287. var require_linkRole = __commonJS({
  20288. "../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(exports) {
  20289. "use strict";
  20290. Object.defineProperty(exports, "__esModule", {
  20291. value: !0
  20292. });
  20293. exports.default = void 0;
  20294. var linkRole = {
  20295. abstract: !1,
  20296. accessibleNameRequired: !0,
  20297. baseConcepts: [],
  20298. childrenPresentational: !1,
  20299. nameFrom: ["author", "contents"],
  20300. prohibitedProps: [],
  20301. props: {
  20302. "aria-disabled": null,
  20303. "aria-expanded": null,
  20304. "aria-haspopup": null
  20305. },
  20306. relatedConcepts: [{
  20307. concept: {
  20308. attributes: [{
  20309. constraints: ["set"],
  20310. name: "href"
  20311. }],
  20312. name: "a"
  20313. },
  20314. module: "HTML"
  20315. }, {
  20316. concept: {
  20317. attributes: [{
  20318. constraints: ["set"],
  20319. name: "href"
  20320. }],
  20321. name: "area"
  20322. },
  20323. module: "HTML"
  20324. }],
  20325. requireContextRole: [],
  20326. requiredContextRole: [],
  20327. requiredOwnedElements: [],
  20328. requiredProps: {},
  20329. superClass: [["roletype", "widget", "command"]]
  20330. }, _default = exports.default = linkRole;
  20331. }
  20332. });
  20333. // ../../node_modules/aria-query/lib/etc/roles/literal/listRole.js
  20334. var require_listRole = __commonJS({
  20335. "../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(exports) {
  20336. "use strict";
  20337. Object.defineProperty(exports, "__esModule", {
  20338. value: !0
  20339. });
  20340. exports.default = void 0;
  20341. var listRole = {
  20342. abstract: !1,
  20343. accessibleNameRequired: !1,
  20344. baseConcepts: [],
  20345. childrenPresentational: !1,
  20346. nameFrom: ["author"],
  20347. prohibitedProps: [],
  20348. props: {},
  20349. relatedConcepts: [{
  20350. concept: {
  20351. name: "menu"
  20352. },
  20353. module: "HTML"
  20354. }, {
  20355. concept: {
  20356. name: "ol"
  20357. },
  20358. module: "HTML"
  20359. }, {
  20360. concept: {
  20361. name: "ul"
  20362. },
  20363. module: "HTML"
  20364. }],
  20365. requireContextRole: [],
  20366. requiredContextRole: [],
  20367. requiredOwnedElements: [["listitem"]],
  20368. requiredProps: {},
  20369. superClass: [["roletype", "structure", "section"]]
  20370. }, _default = exports.default = listRole;
  20371. }
  20372. });
  20373. // ../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js
  20374. var require_listboxRole = __commonJS({
  20375. "../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(exports) {
  20376. "use strict";
  20377. Object.defineProperty(exports, "__esModule", {
  20378. value: !0
  20379. });
  20380. exports.default = void 0;
  20381. var listboxRole = {
  20382. abstract: !1,
  20383. accessibleNameRequired: !0,
  20384. baseConcepts: [],
  20385. childrenPresentational: !1,
  20386. nameFrom: ["author"],
  20387. prohibitedProps: [],
  20388. props: {
  20389. "aria-errormessage": null,
  20390. "aria-expanded": null,
  20391. "aria-invalid": null,
  20392. "aria-multiselectable": null,
  20393. "aria-readonly": null,
  20394. "aria-required": null,
  20395. "aria-orientation": "vertical"
  20396. },
  20397. relatedConcepts: [{
  20398. concept: {
  20399. attributes: [{
  20400. constraints: [">1"],
  20401. name: "size"
  20402. }],
  20403. constraints: ["the size attribute value is greater than 1"],
  20404. name: "select"
  20405. },
  20406. module: "HTML"
  20407. }, {
  20408. concept: {
  20409. attributes: [{
  20410. name: "multiple"
  20411. }],
  20412. name: "select"
  20413. },
  20414. module: "HTML"
  20415. }, {
  20416. concept: {
  20417. name: "datalist"
  20418. },
  20419. module: "HTML"
  20420. }, {
  20421. concept: {
  20422. name: "list"
  20423. },
  20424. module: "ARIA"
  20425. }, {
  20426. concept: {
  20427. name: "select"
  20428. },
  20429. module: "XForms"
  20430. }],
  20431. requireContextRole: [],
  20432. requiredContextRole: [],
  20433. requiredOwnedElements: [["option", "group"], ["option"]],
  20434. requiredProps: {},
  20435. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  20436. }, _default = exports.default = listboxRole;
  20437. }
  20438. });
  20439. // ../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js
  20440. var require_listitemRole = __commonJS({
  20441. "../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(exports) {
  20442. "use strict";
  20443. Object.defineProperty(exports, "__esModule", {
  20444. value: !0
  20445. });
  20446. exports.default = void 0;
  20447. var listitemRole = {
  20448. abstract: !1,
  20449. accessibleNameRequired: !1,
  20450. baseConcepts: [],
  20451. childrenPresentational: !1,
  20452. nameFrom: ["author"],
  20453. prohibitedProps: [],
  20454. props: {
  20455. "aria-level": null,
  20456. "aria-posinset": null,
  20457. "aria-setsize": null
  20458. },
  20459. relatedConcepts: [{
  20460. concept: {
  20461. constraints: ["direct descendant of ol", "direct descendant of ul", "direct descendant of menu"],
  20462. name: "li"
  20463. },
  20464. module: "HTML"
  20465. }, {
  20466. concept: {
  20467. name: "item"
  20468. },
  20469. module: "XForms"
  20470. }],
  20471. requireContextRole: ["directory", "list"],
  20472. requiredContextRole: ["directory", "list"],
  20473. requiredOwnedElements: [],
  20474. requiredProps: {},
  20475. superClass: [["roletype", "structure", "section"]]
  20476. }, _default = exports.default = listitemRole;
  20477. }
  20478. });
  20479. // ../../node_modules/aria-query/lib/etc/roles/literal/logRole.js
  20480. var require_logRole = __commonJS({
  20481. "../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(exports) {
  20482. "use strict";
  20483. Object.defineProperty(exports, "__esModule", {
  20484. value: !0
  20485. });
  20486. exports.default = void 0;
  20487. var logRole = {
  20488. abstract: !1,
  20489. accessibleNameRequired: !1,
  20490. baseConcepts: [],
  20491. childrenPresentational: !1,
  20492. nameFrom: ["author"],
  20493. prohibitedProps: [],
  20494. props: {
  20495. "aria-live": "polite"
  20496. },
  20497. relatedConcepts: [],
  20498. requireContextRole: [],
  20499. requiredContextRole: [],
  20500. requiredOwnedElements: [],
  20501. requiredProps: {},
  20502. superClass: [["roletype", "structure", "section"]]
  20503. }, _default = exports.default = logRole;
  20504. }
  20505. });
  20506. // ../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js
  20507. var require_mainRole = __commonJS({
  20508. "../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(exports) {
  20509. "use strict";
  20510. Object.defineProperty(exports, "__esModule", {
  20511. value: !0
  20512. });
  20513. exports.default = void 0;
  20514. var mainRole = {
  20515. abstract: !1,
  20516. accessibleNameRequired: !1,
  20517. baseConcepts: [],
  20518. childrenPresentational: !1,
  20519. nameFrom: ["author"],
  20520. prohibitedProps: [],
  20521. props: {},
  20522. relatedConcepts: [{
  20523. concept: {
  20524. name: "main"
  20525. },
  20526. module: "HTML"
  20527. }],
  20528. requireContextRole: [],
  20529. requiredContextRole: [],
  20530. requiredOwnedElements: [],
  20531. requiredProps: {},
  20532. superClass: [["roletype", "structure", "section", "landmark"]]
  20533. }, _default = exports.default = mainRole;
  20534. }
  20535. });
  20536. // ../../node_modules/aria-query/lib/etc/roles/literal/markRole.js
  20537. var require_markRole = __commonJS({
  20538. "../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(exports) {
  20539. "use strict";
  20540. Object.defineProperty(exports, "__esModule", {
  20541. value: !0
  20542. });
  20543. exports.default = void 0;
  20544. var markRole = {
  20545. abstract: !1,
  20546. accessibleNameRequired: !1,
  20547. baseConcepts: [],
  20548. childrenPresentational: !1,
  20549. nameFrom: ["prohibited"],
  20550. prohibitedProps: [],
  20551. props: {
  20552. "aria-braillelabel": null,
  20553. "aria-brailleroledescription": null,
  20554. "aria-description": null
  20555. },
  20556. relatedConcepts: [{
  20557. concept: {
  20558. name: "mark"
  20559. },
  20560. module: "HTML"
  20561. }],
  20562. requireContextRole: [],
  20563. requiredContextRole: [],
  20564. requiredOwnedElements: [],
  20565. requiredProps: {},
  20566. superClass: [["roletype", "structure", "section"]]
  20567. }, _default = exports.default = markRole;
  20568. }
  20569. });
  20570. // ../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js
  20571. var require_marqueeRole = __commonJS({
  20572. "../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(exports) {
  20573. "use strict";
  20574. Object.defineProperty(exports, "__esModule", {
  20575. value: !0
  20576. });
  20577. exports.default = void 0;
  20578. var marqueeRole = {
  20579. abstract: !1,
  20580. accessibleNameRequired: !0,
  20581. baseConcepts: [],
  20582. childrenPresentational: !1,
  20583. nameFrom: ["author"],
  20584. prohibitedProps: [],
  20585. props: {},
  20586. relatedConcepts: [],
  20587. requireContextRole: [],
  20588. requiredContextRole: [],
  20589. requiredOwnedElements: [],
  20590. requiredProps: {},
  20591. superClass: [["roletype", "structure", "section"]]
  20592. }, _default = exports.default = marqueeRole;
  20593. }
  20594. });
  20595. // ../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js
  20596. var require_mathRole = __commonJS({
  20597. "../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(exports) {
  20598. "use strict";
  20599. Object.defineProperty(exports, "__esModule", {
  20600. value: !0
  20601. });
  20602. exports.default = void 0;
  20603. var mathRole = {
  20604. abstract: !1,
  20605. accessibleNameRequired: !1,
  20606. baseConcepts: [],
  20607. childrenPresentational: !1,
  20608. nameFrom: ["author"],
  20609. prohibitedProps: [],
  20610. props: {},
  20611. relatedConcepts: [{
  20612. concept: {
  20613. name: "math"
  20614. },
  20615. module: "HTML"
  20616. }],
  20617. requireContextRole: [],
  20618. requiredContextRole: [],
  20619. requiredOwnedElements: [],
  20620. requiredProps: {},
  20621. superClass: [["roletype", "structure", "section"]]
  20622. }, _default = exports.default = mathRole;
  20623. }
  20624. });
  20625. // ../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js
  20626. var require_menuRole = __commonJS({
  20627. "../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(exports) {
  20628. "use strict";
  20629. Object.defineProperty(exports, "__esModule", {
  20630. value: !0
  20631. });
  20632. exports.default = void 0;
  20633. var menuRole = {
  20634. abstract: !1,
  20635. accessibleNameRequired: !1,
  20636. baseConcepts: [],
  20637. childrenPresentational: !1,
  20638. nameFrom: ["author"],
  20639. prohibitedProps: [],
  20640. props: {
  20641. "aria-orientation": "vertical"
  20642. },
  20643. relatedConcepts: [{
  20644. concept: {
  20645. name: "MENU"
  20646. },
  20647. module: "JAPI"
  20648. }, {
  20649. concept: {
  20650. name: "list"
  20651. },
  20652. module: "ARIA"
  20653. }, {
  20654. concept: {
  20655. name: "select"
  20656. },
  20657. module: "XForms"
  20658. }, {
  20659. concept: {
  20660. name: "sidebar"
  20661. },
  20662. module: "DTB"
  20663. }],
  20664. requireContextRole: [],
  20665. requiredContextRole: [],
  20666. requiredOwnedElements: [["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"]],
  20667. requiredProps: {},
  20668. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  20669. }, _default = exports.default = menuRole;
  20670. }
  20671. });
  20672. // ../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js
  20673. var require_menubarRole = __commonJS({
  20674. "../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(exports) {
  20675. "use strict";
  20676. Object.defineProperty(exports, "__esModule", {
  20677. value: !0
  20678. });
  20679. exports.default = void 0;
  20680. var menubarRole = {
  20681. abstract: !1,
  20682. accessibleNameRequired: !1,
  20683. baseConcepts: [],
  20684. childrenPresentational: !1,
  20685. nameFrom: ["author"],
  20686. prohibitedProps: [],
  20687. props: {
  20688. "aria-orientation": "horizontal"
  20689. },
  20690. relatedConcepts: [{
  20691. concept: {
  20692. name: "toolbar"
  20693. },
  20694. module: "ARIA"
  20695. }],
  20696. requireContextRole: [],
  20697. requiredContextRole: [],
  20698. requiredOwnedElements: [["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"]],
  20699. requiredProps: {},
  20700. superClass: [["roletype", "widget", "composite", "select", "menu"], ["roletype", "structure", "section", "group", "select", "menu"]]
  20701. }, _default = exports.default = menubarRole;
  20702. }
  20703. });
  20704. // ../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js
  20705. var require_menuitemRole = __commonJS({
  20706. "../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(exports) {
  20707. "use strict";
  20708. Object.defineProperty(exports, "__esModule", {
  20709. value: !0
  20710. });
  20711. exports.default = void 0;
  20712. var menuitemRole = {
  20713. abstract: !1,
  20714. accessibleNameRequired: !0,
  20715. baseConcepts: [],
  20716. childrenPresentational: !1,
  20717. nameFrom: ["author", "contents"],
  20718. prohibitedProps: [],
  20719. props: {
  20720. "aria-disabled": null,
  20721. "aria-expanded": null,
  20722. "aria-haspopup": null,
  20723. "aria-posinset": null,
  20724. "aria-setsize": null
  20725. },
  20726. relatedConcepts: [{
  20727. concept: {
  20728. name: "MENU_ITEM"
  20729. },
  20730. module: "JAPI"
  20731. }, {
  20732. concept: {
  20733. name: "listitem"
  20734. },
  20735. module: "ARIA"
  20736. }, {
  20737. concept: {
  20738. name: "option"
  20739. },
  20740. module: "ARIA"
  20741. }],
  20742. requireContextRole: ["group", "menu", "menubar"],
  20743. requiredContextRole: ["group", "menu", "menubar"],
  20744. requiredOwnedElements: [],
  20745. requiredProps: {},
  20746. superClass: [["roletype", "widget", "command"]]
  20747. }, _default = exports.default = menuitemRole;
  20748. }
  20749. });
  20750. // ../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js
  20751. var require_menuitemcheckboxRole = __commonJS({
  20752. "../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(exports) {
  20753. "use strict";
  20754. Object.defineProperty(exports, "__esModule", {
  20755. value: !0
  20756. });
  20757. exports.default = void 0;
  20758. var menuitemcheckboxRole = {
  20759. abstract: !1,
  20760. accessibleNameRequired: !0,
  20761. baseConcepts: [],
  20762. childrenPresentational: !0,
  20763. nameFrom: ["author", "contents"],
  20764. prohibitedProps: [],
  20765. props: {},
  20766. relatedConcepts: [{
  20767. concept: {
  20768. name: "menuitem"
  20769. },
  20770. module: "ARIA"
  20771. }],
  20772. requireContextRole: ["group", "menu", "menubar"],
  20773. requiredContextRole: ["group", "menu", "menubar"],
  20774. requiredOwnedElements: [],
  20775. requiredProps: {
  20776. "aria-checked": null
  20777. },
  20778. superClass: [["roletype", "widget", "input", "checkbox"], ["roletype", "widget", "command", "menuitem"]]
  20779. }, _default = exports.default = menuitemcheckboxRole;
  20780. }
  20781. });
  20782. // ../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js
  20783. var require_menuitemradioRole = __commonJS({
  20784. "../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(exports) {
  20785. "use strict";
  20786. Object.defineProperty(exports, "__esModule", {
  20787. value: !0
  20788. });
  20789. exports.default = void 0;
  20790. var menuitemradioRole = {
  20791. abstract: !1,
  20792. accessibleNameRequired: !0,
  20793. baseConcepts: [],
  20794. childrenPresentational: !0,
  20795. nameFrom: ["author", "contents"],
  20796. prohibitedProps: [],
  20797. props: {},
  20798. relatedConcepts: [{
  20799. concept: {
  20800. name: "menuitem"
  20801. },
  20802. module: "ARIA"
  20803. }],
  20804. requireContextRole: ["group", "menu", "menubar"],
  20805. requiredContextRole: ["group", "menu", "menubar"],
  20806. requiredOwnedElements: [],
  20807. requiredProps: {
  20808. "aria-checked": null
  20809. },
  20810. superClass: [["roletype", "widget", "input", "checkbox", "menuitemcheckbox"], ["roletype", "widget", "command", "menuitem", "menuitemcheckbox"], ["roletype", "widget", "input", "radio"]]
  20811. }, _default = exports.default = menuitemradioRole;
  20812. }
  20813. });
  20814. // ../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js
  20815. var require_meterRole = __commonJS({
  20816. "../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(exports) {
  20817. "use strict";
  20818. Object.defineProperty(exports, "__esModule", {
  20819. value: !0
  20820. });
  20821. exports.default = void 0;
  20822. var meterRole = {
  20823. abstract: !1,
  20824. accessibleNameRequired: !0,
  20825. baseConcepts: [],
  20826. childrenPresentational: !0,
  20827. nameFrom: ["author"],
  20828. prohibitedProps: [],
  20829. props: {
  20830. "aria-valuetext": null,
  20831. "aria-valuemax": "100",
  20832. "aria-valuemin": "0"
  20833. },
  20834. relatedConcepts: [{
  20835. concept: {
  20836. name: "meter"
  20837. },
  20838. module: "HTML"
  20839. }],
  20840. requireContextRole: [],
  20841. requiredContextRole: [],
  20842. requiredOwnedElements: [],
  20843. requiredProps: {
  20844. "aria-valuenow": null
  20845. },
  20846. superClass: [["roletype", "structure", "range"]]
  20847. }, _default = exports.default = meterRole;
  20848. }
  20849. });
  20850. // ../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js
  20851. var require_navigationRole = __commonJS({
  20852. "../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(exports) {
  20853. "use strict";
  20854. Object.defineProperty(exports, "__esModule", {
  20855. value: !0
  20856. });
  20857. exports.default = void 0;
  20858. var navigationRole = {
  20859. abstract: !1,
  20860. accessibleNameRequired: !1,
  20861. baseConcepts: [],
  20862. childrenPresentational: !1,
  20863. nameFrom: ["author"],
  20864. prohibitedProps: [],
  20865. props: {},
  20866. relatedConcepts: [{
  20867. concept: {
  20868. name: "nav"
  20869. },
  20870. module: "HTML"
  20871. }],
  20872. requireContextRole: [],
  20873. requiredContextRole: [],
  20874. requiredOwnedElements: [],
  20875. requiredProps: {},
  20876. superClass: [["roletype", "structure", "section", "landmark"]]
  20877. }, _default = exports.default = navigationRole;
  20878. }
  20879. });
  20880. // ../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js
  20881. var require_noneRole = __commonJS({
  20882. "../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(exports) {
  20883. "use strict";
  20884. Object.defineProperty(exports, "__esModule", {
  20885. value: !0
  20886. });
  20887. exports.default = void 0;
  20888. var noneRole = {
  20889. abstract: !1,
  20890. accessibleNameRequired: !1,
  20891. baseConcepts: [],
  20892. childrenPresentational: !1,
  20893. nameFrom: [],
  20894. prohibitedProps: [],
  20895. props: {},
  20896. relatedConcepts: [],
  20897. requireContextRole: [],
  20898. requiredContextRole: [],
  20899. requiredOwnedElements: [],
  20900. requiredProps: {},
  20901. superClass: []
  20902. }, _default = exports.default = noneRole;
  20903. }
  20904. });
  20905. // ../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js
  20906. var require_noteRole = __commonJS({
  20907. "../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(exports) {
  20908. "use strict";
  20909. Object.defineProperty(exports, "__esModule", {
  20910. value: !0
  20911. });
  20912. exports.default = void 0;
  20913. var noteRole = {
  20914. abstract: !1,
  20915. accessibleNameRequired: !1,
  20916. baseConcepts: [],
  20917. childrenPresentational: !1,
  20918. nameFrom: ["author"],
  20919. prohibitedProps: [],
  20920. props: {},
  20921. relatedConcepts: [],
  20922. requireContextRole: [],
  20923. requiredContextRole: [],
  20924. requiredOwnedElements: [],
  20925. requiredProps: {},
  20926. superClass: [["roletype", "structure", "section"]]
  20927. }, _default = exports.default = noteRole;
  20928. }
  20929. });
  20930. // ../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js
  20931. var require_optionRole = __commonJS({
  20932. "../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(exports) {
  20933. "use strict";
  20934. Object.defineProperty(exports, "__esModule", {
  20935. value: !0
  20936. });
  20937. exports.default = void 0;
  20938. var optionRole = {
  20939. abstract: !1,
  20940. accessibleNameRequired: !0,
  20941. baseConcepts: [],
  20942. childrenPresentational: !0,
  20943. nameFrom: ["author", "contents"],
  20944. prohibitedProps: [],
  20945. props: {
  20946. "aria-checked": null,
  20947. "aria-posinset": null,
  20948. "aria-setsize": null,
  20949. "aria-selected": "false"
  20950. },
  20951. relatedConcepts: [{
  20952. concept: {
  20953. name: "item"
  20954. },
  20955. module: "XForms"
  20956. }, {
  20957. concept: {
  20958. name: "listitem"
  20959. },
  20960. module: "ARIA"
  20961. }, {
  20962. concept: {
  20963. name: "option"
  20964. },
  20965. module: "HTML"
  20966. }],
  20967. requireContextRole: [],
  20968. requiredContextRole: [],
  20969. requiredOwnedElements: [],
  20970. requiredProps: {
  20971. "aria-selected": "false"
  20972. },
  20973. superClass: [["roletype", "widget", "input"]]
  20974. }, _default = exports.default = optionRole;
  20975. }
  20976. });
  20977. // ../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js
  20978. var require_paragraphRole = __commonJS({
  20979. "../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(exports) {
  20980. "use strict";
  20981. Object.defineProperty(exports, "__esModule", {
  20982. value: !0
  20983. });
  20984. exports.default = void 0;
  20985. var paragraphRole = {
  20986. abstract: !1,
  20987. accessibleNameRequired: !1,
  20988. baseConcepts: [],
  20989. childrenPresentational: !1,
  20990. nameFrom: ["prohibited"],
  20991. prohibitedProps: ["aria-label", "aria-labelledby"],
  20992. props: {},
  20993. relatedConcepts: [{
  20994. concept: {
  20995. name: "p"
  20996. },
  20997. module: "HTML"
  20998. }],
  20999. requireContextRole: [],
  21000. requiredContextRole: [],
  21001. requiredOwnedElements: [],
  21002. requiredProps: {},
  21003. superClass: [["roletype", "structure", "section"]]
  21004. }, _default = exports.default = paragraphRole;
  21005. }
  21006. });
  21007. // ../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js
  21008. var require_presentationRole = __commonJS({
  21009. "../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(exports) {
  21010. "use strict";
  21011. Object.defineProperty(exports, "__esModule", {
  21012. value: !0
  21013. });
  21014. exports.default = void 0;
  21015. var presentationRole = {
  21016. abstract: !1,
  21017. accessibleNameRequired: !1,
  21018. baseConcepts: [],
  21019. childrenPresentational: !1,
  21020. nameFrom: ["prohibited"],
  21021. prohibitedProps: ["aria-label", "aria-labelledby"],
  21022. props: {},
  21023. relatedConcepts: [{
  21024. concept: {
  21025. attributes: [{
  21026. name: "alt",
  21027. value: ""
  21028. }],
  21029. name: "img"
  21030. },
  21031. module: "HTML"
  21032. }],
  21033. requireContextRole: [],
  21034. requiredContextRole: [],
  21035. requiredOwnedElements: [],
  21036. requiredProps: {},
  21037. superClass: [["roletype", "structure"]]
  21038. }, _default = exports.default = presentationRole;
  21039. }
  21040. });
  21041. // ../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js
  21042. var require_progressbarRole = __commonJS({
  21043. "../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(exports) {
  21044. "use strict";
  21045. Object.defineProperty(exports, "__esModule", {
  21046. value: !0
  21047. });
  21048. exports.default = void 0;
  21049. var progressbarRole = {
  21050. abstract: !1,
  21051. accessibleNameRequired: !0,
  21052. baseConcepts: [],
  21053. childrenPresentational: !0,
  21054. nameFrom: ["author"],
  21055. prohibitedProps: [],
  21056. props: {
  21057. "aria-valuetext": null
  21058. },
  21059. relatedConcepts: [{
  21060. concept: {
  21061. name: "progress"
  21062. },
  21063. module: "HTML"
  21064. }, {
  21065. concept: {
  21066. name: "status"
  21067. },
  21068. module: "ARIA"
  21069. }],
  21070. requireContextRole: [],
  21071. requiredContextRole: [],
  21072. requiredOwnedElements: [],
  21073. requiredProps: {},
  21074. superClass: [["roletype", "structure", "range"], ["roletype", "widget"]]
  21075. }, _default = exports.default = progressbarRole;
  21076. }
  21077. });
  21078. // ../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js
  21079. var require_radioRole = __commonJS({
  21080. "../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(exports) {
  21081. "use strict";
  21082. Object.defineProperty(exports, "__esModule", {
  21083. value: !0
  21084. });
  21085. exports.default = void 0;
  21086. var radioRole = {
  21087. abstract: !1,
  21088. accessibleNameRequired: !0,
  21089. baseConcepts: [],
  21090. childrenPresentational: !0,
  21091. nameFrom: ["author", "contents"],
  21092. prohibitedProps: [],
  21093. props: {
  21094. "aria-checked": null,
  21095. "aria-posinset": null,
  21096. "aria-setsize": null
  21097. },
  21098. relatedConcepts: [{
  21099. concept: {
  21100. attributes: [{
  21101. name: "type",
  21102. value: "radio"
  21103. }],
  21104. name: "input"
  21105. },
  21106. module: "HTML"
  21107. }],
  21108. requireContextRole: [],
  21109. requiredContextRole: [],
  21110. requiredOwnedElements: [],
  21111. requiredProps: {
  21112. "aria-checked": null
  21113. },
  21114. superClass: [["roletype", "widget", "input"]]
  21115. }, _default = exports.default = radioRole;
  21116. }
  21117. });
  21118. // ../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js
  21119. var require_radiogroupRole = __commonJS({
  21120. "../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(exports) {
  21121. "use strict";
  21122. Object.defineProperty(exports, "__esModule", {
  21123. value: !0
  21124. });
  21125. exports.default = void 0;
  21126. var radiogroupRole = {
  21127. abstract: !1,
  21128. accessibleNameRequired: !0,
  21129. baseConcepts: [],
  21130. childrenPresentational: !1,
  21131. nameFrom: ["author"],
  21132. prohibitedProps: [],
  21133. props: {
  21134. "aria-errormessage": null,
  21135. "aria-invalid": null,
  21136. "aria-readonly": null,
  21137. "aria-required": null
  21138. },
  21139. relatedConcepts: [{
  21140. concept: {
  21141. name: "list"
  21142. },
  21143. module: "ARIA"
  21144. }],
  21145. requireContextRole: [],
  21146. requiredContextRole: [],
  21147. requiredOwnedElements: [["radio"]],
  21148. requiredProps: {},
  21149. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  21150. }, _default = exports.default = radiogroupRole;
  21151. }
  21152. });
  21153. // ../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js
  21154. var require_regionRole = __commonJS({
  21155. "../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(exports) {
  21156. "use strict";
  21157. Object.defineProperty(exports, "__esModule", {
  21158. value: !0
  21159. });
  21160. exports.default = void 0;
  21161. var regionRole = {
  21162. abstract: !1,
  21163. accessibleNameRequired: !0,
  21164. baseConcepts: [],
  21165. childrenPresentational: !1,
  21166. nameFrom: ["author"],
  21167. prohibitedProps: [],
  21168. props: {},
  21169. relatedConcepts: [{
  21170. concept: {
  21171. attributes: [{
  21172. constraints: ["set"],
  21173. name: "aria-label"
  21174. }],
  21175. name: "section"
  21176. },
  21177. module: "HTML"
  21178. }, {
  21179. concept: {
  21180. attributes: [{
  21181. constraints: ["set"],
  21182. name: "aria-labelledby"
  21183. }],
  21184. name: "section"
  21185. },
  21186. module: "HTML"
  21187. }, {
  21188. concept: {
  21189. name: "Device Independence Glossart perceivable unit"
  21190. }
  21191. }],
  21192. requireContextRole: [],
  21193. requiredContextRole: [],
  21194. requiredOwnedElements: [],
  21195. requiredProps: {},
  21196. superClass: [["roletype", "structure", "section", "landmark"]]
  21197. }, _default = exports.default = regionRole;
  21198. }
  21199. });
  21200. // ../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js
  21201. var require_rowRole = __commonJS({
  21202. "../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(exports) {
  21203. "use strict";
  21204. Object.defineProperty(exports, "__esModule", {
  21205. value: !0
  21206. });
  21207. exports.default = void 0;
  21208. var rowRole = {
  21209. abstract: !1,
  21210. accessibleNameRequired: !1,
  21211. baseConcepts: [],
  21212. childrenPresentational: !1,
  21213. nameFrom: ["author", "contents"],
  21214. prohibitedProps: [],
  21215. props: {
  21216. "aria-colindex": null,
  21217. "aria-expanded": null,
  21218. "aria-level": null,
  21219. "aria-posinset": null,
  21220. "aria-rowindex": null,
  21221. "aria-selected": null,
  21222. "aria-setsize": null
  21223. },
  21224. relatedConcepts: [{
  21225. concept: {
  21226. name: "tr"
  21227. },
  21228. module: "HTML"
  21229. }],
  21230. requireContextRole: ["grid", "rowgroup", "table", "treegrid"],
  21231. requiredContextRole: ["grid", "rowgroup", "table", "treegrid"],
  21232. requiredOwnedElements: [["cell"], ["columnheader"], ["gridcell"], ["rowheader"]],
  21233. requiredProps: {},
  21234. superClass: [["roletype", "structure", "section", "group"], ["roletype", "widget"]]
  21235. }, _default = exports.default = rowRole;
  21236. }
  21237. });
  21238. // ../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js
  21239. var require_rowgroupRole = __commonJS({
  21240. "../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(exports) {
  21241. "use strict";
  21242. Object.defineProperty(exports, "__esModule", {
  21243. value: !0
  21244. });
  21245. exports.default = void 0;
  21246. var rowgroupRole = {
  21247. abstract: !1,
  21248. accessibleNameRequired: !1,
  21249. baseConcepts: [],
  21250. childrenPresentational: !1,
  21251. nameFrom: ["author", "contents"],
  21252. prohibitedProps: [],
  21253. props: {},
  21254. relatedConcepts: [{
  21255. concept: {
  21256. name: "tbody"
  21257. },
  21258. module: "HTML"
  21259. }, {
  21260. concept: {
  21261. name: "tfoot"
  21262. },
  21263. module: "HTML"
  21264. }, {
  21265. concept: {
  21266. name: "thead"
  21267. },
  21268. module: "HTML"
  21269. }],
  21270. requireContextRole: ["grid", "table", "treegrid"],
  21271. requiredContextRole: ["grid", "table", "treegrid"],
  21272. requiredOwnedElements: [["row"]],
  21273. requiredProps: {},
  21274. superClass: [["roletype", "structure"]]
  21275. }, _default = exports.default = rowgroupRole;
  21276. }
  21277. });
  21278. // ../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js
  21279. var require_rowheaderRole = __commonJS({
  21280. "../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(exports) {
  21281. "use strict";
  21282. Object.defineProperty(exports, "__esModule", {
  21283. value: !0
  21284. });
  21285. exports.default = void 0;
  21286. var rowheaderRole = {
  21287. abstract: !1,
  21288. accessibleNameRequired: !0,
  21289. baseConcepts: [],
  21290. childrenPresentational: !1,
  21291. nameFrom: ["author", "contents"],
  21292. prohibitedProps: [],
  21293. props: {
  21294. "aria-sort": null
  21295. },
  21296. relatedConcepts: [{
  21297. concept: {
  21298. attributes: [{
  21299. name: "scope",
  21300. value: "row"
  21301. }],
  21302. name: "th"
  21303. },
  21304. module: "HTML"
  21305. }, {
  21306. concept: {
  21307. attributes: [{
  21308. name: "scope",
  21309. value: "rowgroup"
  21310. }],
  21311. name: "th"
  21312. },
  21313. module: "HTML"
  21314. }],
  21315. requireContextRole: ["row", "rowgroup"],
  21316. requiredContextRole: ["row", "rowgroup"],
  21317. requiredOwnedElements: [],
  21318. requiredProps: {},
  21319. superClass: [["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"]]
  21320. }, _default = exports.default = rowheaderRole;
  21321. }
  21322. });
  21323. // ../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js
  21324. var require_scrollbarRole = __commonJS({
  21325. "../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(exports) {
  21326. "use strict";
  21327. Object.defineProperty(exports, "__esModule", {
  21328. value: !0
  21329. });
  21330. exports.default = void 0;
  21331. var scrollbarRole = {
  21332. abstract: !1,
  21333. accessibleNameRequired: !1,
  21334. baseConcepts: [],
  21335. childrenPresentational: !0,
  21336. nameFrom: ["author"],
  21337. prohibitedProps: [],
  21338. props: {
  21339. "aria-disabled": null,
  21340. "aria-valuetext": null,
  21341. "aria-orientation": "vertical",
  21342. "aria-valuemax": "100",
  21343. "aria-valuemin": "0"
  21344. },
  21345. relatedConcepts: [],
  21346. requireContextRole: [],
  21347. requiredContextRole: [],
  21348. requiredOwnedElements: [],
  21349. requiredProps: {
  21350. "aria-controls": null,
  21351. "aria-valuenow": null
  21352. },
  21353. superClass: [["roletype", "structure", "range"], ["roletype", "widget"]]
  21354. }, _default = exports.default = scrollbarRole;
  21355. }
  21356. });
  21357. // ../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js
  21358. var require_searchRole = __commonJS({
  21359. "../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(exports) {
  21360. "use strict";
  21361. Object.defineProperty(exports, "__esModule", {
  21362. value: !0
  21363. });
  21364. exports.default = void 0;
  21365. var searchRole = {
  21366. abstract: !1,
  21367. accessibleNameRequired: !1,
  21368. baseConcepts: [],
  21369. childrenPresentational: !1,
  21370. nameFrom: ["author"],
  21371. prohibitedProps: [],
  21372. props: {},
  21373. relatedConcepts: [],
  21374. requireContextRole: [],
  21375. requiredContextRole: [],
  21376. requiredOwnedElements: [],
  21377. requiredProps: {},
  21378. superClass: [["roletype", "structure", "section", "landmark"]]
  21379. }, _default = exports.default = searchRole;
  21380. }
  21381. });
  21382. // ../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js
  21383. var require_searchboxRole = __commonJS({
  21384. "../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(exports) {
  21385. "use strict";
  21386. Object.defineProperty(exports, "__esModule", {
  21387. value: !0
  21388. });
  21389. exports.default = void 0;
  21390. var searchboxRole = {
  21391. abstract: !1,
  21392. accessibleNameRequired: !0,
  21393. baseConcepts: [],
  21394. childrenPresentational: !1,
  21395. nameFrom: ["author"],
  21396. prohibitedProps: [],
  21397. props: {},
  21398. relatedConcepts: [{
  21399. concept: {
  21400. attributes: [{
  21401. constraints: ["undefined"],
  21402. name: "list"
  21403. }, {
  21404. name: "type",
  21405. value: "search"
  21406. }],
  21407. constraints: ["the list attribute is not set"],
  21408. name: "input"
  21409. },
  21410. module: "HTML"
  21411. }],
  21412. requireContextRole: [],
  21413. requiredContextRole: [],
  21414. requiredOwnedElements: [],
  21415. requiredProps: {},
  21416. superClass: [["roletype", "widget", "input", "textbox"]]
  21417. }, _default = exports.default = searchboxRole;
  21418. }
  21419. });
  21420. // ../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js
  21421. var require_separatorRole = __commonJS({
  21422. "../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(exports) {
  21423. "use strict";
  21424. Object.defineProperty(exports, "__esModule", {
  21425. value: !0
  21426. });
  21427. exports.default = void 0;
  21428. var separatorRole = {
  21429. abstract: !1,
  21430. accessibleNameRequired: !1,
  21431. baseConcepts: [],
  21432. childrenPresentational: !0,
  21433. nameFrom: ["author"],
  21434. prohibitedProps: [],
  21435. props: {
  21436. "aria-disabled": null,
  21437. "aria-orientation": "horizontal",
  21438. "aria-valuemax": "100",
  21439. "aria-valuemin": "0",
  21440. "aria-valuenow": null,
  21441. "aria-valuetext": null
  21442. },
  21443. relatedConcepts: [{
  21444. concept: {
  21445. name: "hr"
  21446. },
  21447. module: "HTML"
  21448. }],
  21449. requireContextRole: [],
  21450. requiredContextRole: [],
  21451. requiredOwnedElements: [],
  21452. requiredProps: {},
  21453. superClass: [["roletype", "structure"]]
  21454. }, _default = exports.default = separatorRole;
  21455. }
  21456. });
  21457. // ../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js
  21458. var require_sliderRole = __commonJS({
  21459. "../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(exports) {
  21460. "use strict";
  21461. Object.defineProperty(exports, "__esModule", {
  21462. value: !0
  21463. });
  21464. exports.default = void 0;
  21465. var sliderRole = {
  21466. abstract: !1,
  21467. accessibleNameRequired: !0,
  21468. baseConcepts: [],
  21469. childrenPresentational: !0,
  21470. nameFrom: ["author"],
  21471. prohibitedProps: [],
  21472. props: {
  21473. "aria-errormessage": null,
  21474. "aria-haspopup": null,
  21475. "aria-invalid": null,
  21476. "aria-readonly": null,
  21477. "aria-valuetext": null,
  21478. "aria-orientation": "horizontal",
  21479. "aria-valuemax": "100",
  21480. "aria-valuemin": "0"
  21481. },
  21482. relatedConcepts: [{
  21483. concept: {
  21484. attributes: [{
  21485. name: "type",
  21486. value: "range"
  21487. }],
  21488. name: "input"
  21489. },
  21490. module: "HTML"
  21491. }],
  21492. requireContextRole: [],
  21493. requiredContextRole: [],
  21494. requiredOwnedElements: [],
  21495. requiredProps: {
  21496. "aria-valuenow": null
  21497. },
  21498. superClass: [["roletype", "widget", "input"], ["roletype", "structure", "range"]]
  21499. }, _default = exports.default = sliderRole;
  21500. }
  21501. });
  21502. // ../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js
  21503. var require_spinbuttonRole = __commonJS({
  21504. "../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(exports) {
  21505. "use strict";
  21506. Object.defineProperty(exports, "__esModule", {
  21507. value: !0
  21508. });
  21509. exports.default = void 0;
  21510. var spinbuttonRole = {
  21511. abstract: !1,
  21512. accessibleNameRequired: !0,
  21513. baseConcepts: [],
  21514. childrenPresentational: !1,
  21515. nameFrom: ["author"],
  21516. prohibitedProps: [],
  21517. props: {
  21518. "aria-errormessage": null,
  21519. "aria-invalid": null,
  21520. "aria-readonly": null,
  21521. "aria-required": null,
  21522. "aria-valuetext": null,
  21523. "aria-valuenow": "0"
  21524. },
  21525. relatedConcepts: [{
  21526. concept: {
  21527. attributes: [{
  21528. name: "type",
  21529. value: "number"
  21530. }],
  21531. name: "input"
  21532. },
  21533. module: "HTML"
  21534. }],
  21535. requireContextRole: [],
  21536. requiredContextRole: [],
  21537. requiredOwnedElements: [],
  21538. requiredProps: {},
  21539. superClass: [["roletype", "widget", "composite"], ["roletype", "widget", "input"], ["roletype", "structure", "range"]]
  21540. }, _default = exports.default = spinbuttonRole;
  21541. }
  21542. });
  21543. // ../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js
  21544. var require_statusRole = __commonJS({
  21545. "../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(exports) {
  21546. "use strict";
  21547. Object.defineProperty(exports, "__esModule", {
  21548. value: !0
  21549. });
  21550. exports.default = void 0;
  21551. var statusRole = {
  21552. abstract: !1,
  21553. accessibleNameRequired: !1,
  21554. baseConcepts: [],
  21555. childrenPresentational: !1,
  21556. nameFrom: ["author"],
  21557. prohibitedProps: [],
  21558. props: {
  21559. "aria-atomic": "true",
  21560. "aria-live": "polite"
  21561. },
  21562. relatedConcepts: [{
  21563. concept: {
  21564. name: "output"
  21565. },
  21566. module: "HTML"
  21567. }],
  21568. requireContextRole: [],
  21569. requiredContextRole: [],
  21570. requiredOwnedElements: [],
  21571. requiredProps: {},
  21572. superClass: [["roletype", "structure", "section"]]
  21573. }, _default = exports.default = statusRole;
  21574. }
  21575. });
  21576. // ../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js
  21577. var require_strongRole = __commonJS({
  21578. "../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(exports) {
  21579. "use strict";
  21580. Object.defineProperty(exports, "__esModule", {
  21581. value: !0
  21582. });
  21583. exports.default = void 0;
  21584. var strongRole = {
  21585. abstract: !1,
  21586. accessibleNameRequired: !1,
  21587. baseConcepts: [],
  21588. childrenPresentational: !1,
  21589. nameFrom: ["prohibited"],
  21590. prohibitedProps: ["aria-label", "aria-labelledby"],
  21591. props: {},
  21592. relatedConcepts: [{
  21593. concept: {
  21594. name: "strong"
  21595. },
  21596. module: "HTML"
  21597. }],
  21598. requireContextRole: [],
  21599. requiredContextRole: [],
  21600. requiredOwnedElements: [],
  21601. requiredProps: {},
  21602. superClass: [["roletype", "structure", "section"]]
  21603. }, _default = exports.default = strongRole;
  21604. }
  21605. });
  21606. // ../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js
  21607. var require_subscriptRole = __commonJS({
  21608. "../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(exports) {
  21609. "use strict";
  21610. Object.defineProperty(exports, "__esModule", {
  21611. value: !0
  21612. });
  21613. exports.default = void 0;
  21614. var subscriptRole = {
  21615. abstract: !1,
  21616. accessibleNameRequired: !1,
  21617. baseConcepts: [],
  21618. childrenPresentational: !1,
  21619. nameFrom: ["prohibited"],
  21620. prohibitedProps: ["aria-label", "aria-labelledby"],
  21621. props: {},
  21622. relatedConcepts: [{
  21623. concept: {
  21624. name: "sub"
  21625. },
  21626. module: "HTML"
  21627. }],
  21628. requireContextRole: [],
  21629. requiredContextRole: [],
  21630. requiredOwnedElements: [],
  21631. requiredProps: {},
  21632. superClass: [["roletype", "structure", "section"]]
  21633. }, _default = exports.default = subscriptRole;
  21634. }
  21635. });
  21636. // ../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js
  21637. var require_superscriptRole = __commonJS({
  21638. "../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(exports) {
  21639. "use strict";
  21640. Object.defineProperty(exports, "__esModule", {
  21641. value: !0
  21642. });
  21643. exports.default = void 0;
  21644. var superscriptRole = {
  21645. abstract: !1,
  21646. accessibleNameRequired: !1,
  21647. baseConcepts: [],
  21648. childrenPresentational: !1,
  21649. nameFrom: ["prohibited"],
  21650. prohibitedProps: ["aria-label", "aria-labelledby"],
  21651. props: {},
  21652. relatedConcepts: [{
  21653. concept: {
  21654. name: "sup"
  21655. },
  21656. module: "HTML"
  21657. }],
  21658. requireContextRole: [],
  21659. requiredContextRole: [],
  21660. requiredOwnedElements: [],
  21661. requiredProps: {},
  21662. superClass: [["roletype", "structure", "section"]]
  21663. }, _default = exports.default = superscriptRole;
  21664. }
  21665. });
  21666. // ../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js
  21667. var require_switchRole = __commonJS({
  21668. "../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(exports) {
  21669. "use strict";
  21670. Object.defineProperty(exports, "__esModule", {
  21671. value: !0
  21672. });
  21673. exports.default = void 0;
  21674. var switchRole = {
  21675. abstract: !1,
  21676. accessibleNameRequired: !0,
  21677. baseConcepts: [],
  21678. childrenPresentational: !0,
  21679. nameFrom: ["author", "contents"],
  21680. prohibitedProps: [],
  21681. props: {},
  21682. relatedConcepts: [{
  21683. concept: {
  21684. name: "button"
  21685. },
  21686. module: "ARIA"
  21687. }],
  21688. requireContextRole: [],
  21689. requiredContextRole: [],
  21690. requiredOwnedElements: [],
  21691. requiredProps: {
  21692. "aria-checked": null
  21693. },
  21694. superClass: [["roletype", "widget", "input", "checkbox"]]
  21695. }, _default = exports.default = switchRole;
  21696. }
  21697. });
  21698. // ../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js
  21699. var require_tabRole = __commonJS({
  21700. "../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(exports) {
  21701. "use strict";
  21702. Object.defineProperty(exports, "__esModule", {
  21703. value: !0
  21704. });
  21705. exports.default = void 0;
  21706. var tabRole = {
  21707. abstract: !1,
  21708. accessibleNameRequired: !1,
  21709. baseConcepts: [],
  21710. childrenPresentational: !0,
  21711. nameFrom: ["author", "contents"],
  21712. prohibitedProps: [],
  21713. props: {
  21714. "aria-disabled": null,
  21715. "aria-expanded": null,
  21716. "aria-haspopup": null,
  21717. "aria-posinset": null,
  21718. "aria-setsize": null,
  21719. "aria-selected": "false"
  21720. },
  21721. relatedConcepts: [],
  21722. requireContextRole: ["tablist"],
  21723. requiredContextRole: ["tablist"],
  21724. requiredOwnedElements: [],
  21725. requiredProps: {},
  21726. superClass: [["roletype", "structure", "sectionhead"], ["roletype", "widget"]]
  21727. }, _default = exports.default = tabRole;
  21728. }
  21729. });
  21730. // ../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js
  21731. var require_tableRole = __commonJS({
  21732. "../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(exports) {
  21733. "use strict";
  21734. Object.defineProperty(exports, "__esModule", {
  21735. value: !0
  21736. });
  21737. exports.default = void 0;
  21738. var tableRole = {
  21739. abstract: !1,
  21740. accessibleNameRequired: !0,
  21741. baseConcepts: [],
  21742. childrenPresentational: !1,
  21743. nameFrom: ["author"],
  21744. prohibitedProps: [],
  21745. props: {
  21746. "aria-colcount": null,
  21747. "aria-rowcount": null
  21748. },
  21749. relatedConcepts: [{
  21750. concept: {
  21751. name: "table"
  21752. },
  21753. module: "HTML"
  21754. }],
  21755. requireContextRole: [],
  21756. requiredContextRole: [],
  21757. requiredOwnedElements: [["row"], ["row", "rowgroup"]],
  21758. requiredProps: {},
  21759. superClass: [["roletype", "structure", "section"]]
  21760. }, _default = exports.default = tableRole;
  21761. }
  21762. });
  21763. // ../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js
  21764. var require_tablistRole = __commonJS({
  21765. "../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(exports) {
  21766. "use strict";
  21767. Object.defineProperty(exports, "__esModule", {
  21768. value: !0
  21769. });
  21770. exports.default = void 0;
  21771. var tablistRole = {
  21772. abstract: !1,
  21773. accessibleNameRequired: !1,
  21774. baseConcepts: [],
  21775. childrenPresentational: !1,
  21776. nameFrom: ["author"],
  21777. prohibitedProps: [],
  21778. props: {
  21779. "aria-level": null,
  21780. "aria-multiselectable": null,
  21781. "aria-orientation": "horizontal"
  21782. },
  21783. relatedConcepts: [{
  21784. module: "DAISY",
  21785. concept: {
  21786. name: "guide"
  21787. }
  21788. }],
  21789. requireContextRole: [],
  21790. requiredContextRole: [],
  21791. requiredOwnedElements: [["tab"]],
  21792. requiredProps: {},
  21793. superClass: [["roletype", "widget", "composite"]]
  21794. }, _default = exports.default = tablistRole;
  21795. }
  21796. });
  21797. // ../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js
  21798. var require_tabpanelRole = __commonJS({
  21799. "../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(exports) {
  21800. "use strict";
  21801. Object.defineProperty(exports, "__esModule", {
  21802. value: !0
  21803. });
  21804. exports.default = void 0;
  21805. var tabpanelRole = {
  21806. abstract: !1,
  21807. accessibleNameRequired: !0,
  21808. baseConcepts: [],
  21809. childrenPresentational: !1,
  21810. nameFrom: ["author"],
  21811. prohibitedProps: [],
  21812. props: {},
  21813. relatedConcepts: [],
  21814. requireContextRole: [],
  21815. requiredContextRole: [],
  21816. requiredOwnedElements: [],
  21817. requiredProps: {},
  21818. superClass: [["roletype", "structure", "section"]]
  21819. }, _default = exports.default = tabpanelRole;
  21820. }
  21821. });
  21822. // ../../node_modules/aria-query/lib/etc/roles/literal/termRole.js
  21823. var require_termRole = __commonJS({
  21824. "../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(exports) {
  21825. "use strict";
  21826. Object.defineProperty(exports, "__esModule", {
  21827. value: !0
  21828. });
  21829. exports.default = void 0;
  21830. var termRole = {
  21831. abstract: !1,
  21832. accessibleNameRequired: !1,
  21833. baseConcepts: [],
  21834. childrenPresentational: !1,
  21835. nameFrom: ["author"],
  21836. prohibitedProps: [],
  21837. props: {},
  21838. relatedConcepts: [{
  21839. concept: {
  21840. name: "dfn"
  21841. },
  21842. module: "HTML"
  21843. }, {
  21844. concept: {
  21845. name: "dt"
  21846. },
  21847. module: "HTML"
  21848. }],
  21849. requireContextRole: [],
  21850. requiredContextRole: [],
  21851. requiredOwnedElements: [],
  21852. requiredProps: {},
  21853. superClass: [["roletype", "structure", "section"]]
  21854. }, _default = exports.default = termRole;
  21855. }
  21856. });
  21857. // ../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js
  21858. var require_textboxRole = __commonJS({
  21859. "../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(exports) {
  21860. "use strict";
  21861. Object.defineProperty(exports, "__esModule", {
  21862. value: !0
  21863. });
  21864. exports.default = void 0;
  21865. var textboxRole = {
  21866. abstract: !1,
  21867. accessibleNameRequired: !0,
  21868. baseConcepts: [],
  21869. childrenPresentational: !1,
  21870. nameFrom: ["author"],
  21871. prohibitedProps: [],
  21872. props: {
  21873. "aria-activedescendant": null,
  21874. "aria-autocomplete": null,
  21875. "aria-errormessage": null,
  21876. "aria-haspopup": null,
  21877. "aria-invalid": null,
  21878. "aria-multiline": null,
  21879. "aria-placeholder": null,
  21880. "aria-readonly": null,
  21881. "aria-required": null
  21882. },
  21883. relatedConcepts: [{
  21884. concept: {
  21885. attributes: [{
  21886. constraints: ["undefined"],
  21887. name: "type"
  21888. }, {
  21889. constraints: ["undefined"],
  21890. name: "list"
  21891. }],
  21892. constraints: ["the list attribute is not set"],
  21893. name: "input"
  21894. },
  21895. module: "HTML"
  21896. }, {
  21897. concept: {
  21898. attributes: [{
  21899. constraints: ["undefined"],
  21900. name: "list"
  21901. }, {
  21902. name: "type",
  21903. value: "email"
  21904. }],
  21905. constraints: ["the list attribute is not set"],
  21906. name: "input"
  21907. },
  21908. module: "HTML"
  21909. }, {
  21910. concept: {
  21911. attributes: [{
  21912. constraints: ["undefined"],
  21913. name: "list"
  21914. }, {
  21915. name: "type",
  21916. value: "tel"
  21917. }],
  21918. constraints: ["the list attribute is not set"],
  21919. name: "input"
  21920. },
  21921. module: "HTML"
  21922. }, {
  21923. concept: {
  21924. attributes: [{
  21925. constraints: ["undefined"],
  21926. name: "list"
  21927. }, {
  21928. name: "type",
  21929. value: "text"
  21930. }],
  21931. constraints: ["the list attribute is not set"],
  21932. name: "input"
  21933. },
  21934. module: "HTML"
  21935. }, {
  21936. concept: {
  21937. attributes: [{
  21938. constraints: ["undefined"],
  21939. name: "list"
  21940. }, {
  21941. name: "type",
  21942. value: "url"
  21943. }],
  21944. constraints: ["the list attribute is not set"],
  21945. name: "input"
  21946. },
  21947. module: "HTML"
  21948. }, {
  21949. concept: {
  21950. name: "input"
  21951. },
  21952. module: "XForms"
  21953. }, {
  21954. concept: {
  21955. name: "textarea"
  21956. },
  21957. module: "HTML"
  21958. }],
  21959. requireContextRole: [],
  21960. requiredContextRole: [],
  21961. requiredOwnedElements: [],
  21962. requiredProps: {},
  21963. superClass: [["roletype", "widget", "input"]]
  21964. }, _default = exports.default = textboxRole;
  21965. }
  21966. });
  21967. // ../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js
  21968. var require_timeRole = __commonJS({
  21969. "../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(exports) {
  21970. "use strict";
  21971. Object.defineProperty(exports, "__esModule", {
  21972. value: !0
  21973. });
  21974. exports.default = void 0;
  21975. var timeRole = {
  21976. abstract: !1,
  21977. accessibleNameRequired: !1,
  21978. baseConcepts: [],
  21979. childrenPresentational: !1,
  21980. nameFrom: ["author"],
  21981. prohibitedProps: [],
  21982. props: {},
  21983. relatedConcepts: [{
  21984. concept: {
  21985. name: "time"
  21986. },
  21987. module: "HTML"
  21988. }],
  21989. requireContextRole: [],
  21990. requiredContextRole: [],
  21991. requiredOwnedElements: [],
  21992. requiredProps: {},
  21993. superClass: [["roletype", "structure", "section"]]
  21994. }, _default = exports.default = timeRole;
  21995. }
  21996. });
  21997. // ../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js
  21998. var require_timerRole = __commonJS({
  21999. "../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(exports) {
  22000. "use strict";
  22001. Object.defineProperty(exports, "__esModule", {
  22002. value: !0
  22003. });
  22004. exports.default = void 0;
  22005. var timerRole = {
  22006. abstract: !1,
  22007. accessibleNameRequired: !1,
  22008. baseConcepts: [],
  22009. childrenPresentational: !1,
  22010. nameFrom: ["author"],
  22011. prohibitedProps: [],
  22012. props: {},
  22013. relatedConcepts: [],
  22014. requireContextRole: [],
  22015. requiredContextRole: [],
  22016. requiredOwnedElements: [],
  22017. requiredProps: {},
  22018. superClass: [["roletype", "structure", "section", "status"]]
  22019. }, _default = exports.default = timerRole;
  22020. }
  22021. });
  22022. // ../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js
  22023. var require_toolbarRole = __commonJS({
  22024. "../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(exports) {
  22025. "use strict";
  22026. Object.defineProperty(exports, "__esModule", {
  22027. value: !0
  22028. });
  22029. exports.default = void 0;
  22030. var toolbarRole = {
  22031. abstract: !1,
  22032. accessibleNameRequired: !1,
  22033. baseConcepts: [],
  22034. childrenPresentational: !1,
  22035. nameFrom: ["author"],
  22036. prohibitedProps: [],
  22037. props: {
  22038. "aria-orientation": "horizontal"
  22039. },
  22040. relatedConcepts: [{
  22041. concept: {
  22042. name: "menubar"
  22043. },
  22044. module: "ARIA"
  22045. }],
  22046. requireContextRole: [],
  22047. requiredContextRole: [],
  22048. requiredOwnedElements: [],
  22049. requiredProps: {},
  22050. superClass: [["roletype", "structure", "section", "group"]]
  22051. }, _default = exports.default = toolbarRole;
  22052. }
  22053. });
  22054. // ../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js
  22055. var require_tooltipRole = __commonJS({
  22056. "../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(exports) {
  22057. "use strict";
  22058. Object.defineProperty(exports, "__esModule", {
  22059. value: !0
  22060. });
  22061. exports.default = void 0;
  22062. var tooltipRole = {
  22063. abstract: !1,
  22064. accessibleNameRequired: !0,
  22065. baseConcepts: [],
  22066. childrenPresentational: !1,
  22067. nameFrom: ["author", "contents"],
  22068. prohibitedProps: [],
  22069. props: {},
  22070. relatedConcepts: [],
  22071. requireContextRole: [],
  22072. requiredContextRole: [],
  22073. requiredOwnedElements: [],
  22074. requiredProps: {},
  22075. superClass: [["roletype", "structure", "section"]]
  22076. }, _default = exports.default = tooltipRole;
  22077. }
  22078. });
  22079. // ../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js
  22080. var require_treeRole = __commonJS({
  22081. "../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(exports) {
  22082. "use strict";
  22083. Object.defineProperty(exports, "__esModule", {
  22084. value: !0
  22085. });
  22086. exports.default = void 0;
  22087. var treeRole = {
  22088. abstract: !1,
  22089. accessibleNameRequired: !0,
  22090. baseConcepts: [],
  22091. childrenPresentational: !1,
  22092. nameFrom: ["author"],
  22093. prohibitedProps: [],
  22094. props: {
  22095. "aria-errormessage": null,
  22096. "aria-invalid": null,
  22097. "aria-multiselectable": null,
  22098. "aria-required": null,
  22099. "aria-orientation": "vertical"
  22100. },
  22101. relatedConcepts: [],
  22102. requireContextRole: [],
  22103. requiredContextRole: [],
  22104. requiredOwnedElements: [["treeitem", "group"], ["treeitem"]],
  22105. requiredProps: {},
  22106. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  22107. }, _default = exports.default = treeRole;
  22108. }
  22109. });
  22110. // ../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js
  22111. var require_treegridRole = __commonJS({
  22112. "../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(exports) {
  22113. "use strict";
  22114. Object.defineProperty(exports, "__esModule", {
  22115. value: !0
  22116. });
  22117. exports.default = void 0;
  22118. var treegridRole = {
  22119. abstract: !1,
  22120. accessibleNameRequired: !0,
  22121. baseConcepts: [],
  22122. childrenPresentational: !1,
  22123. nameFrom: ["author"],
  22124. prohibitedProps: [],
  22125. props: {},
  22126. relatedConcepts: [],
  22127. requireContextRole: [],
  22128. requiredContextRole: [],
  22129. requiredOwnedElements: [["row"], ["row", "rowgroup"]],
  22130. requiredProps: {},
  22131. superClass: [["roletype", "widget", "composite", "grid"], ["roletype", "structure", "section", "table", "grid"], ["roletype", "widget", "composite", "select", "tree"], ["roletype", "structure", "section", "group", "select", "tree"]]
  22132. }, _default = exports.default = treegridRole;
  22133. }
  22134. });
  22135. // ../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js
  22136. var require_treeitemRole = __commonJS({
  22137. "../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(exports) {
  22138. "use strict";
  22139. Object.defineProperty(exports, "__esModule", {
  22140. value: !0
  22141. });
  22142. exports.default = void 0;
  22143. var treeitemRole = {
  22144. abstract: !1,
  22145. accessibleNameRequired: !0,
  22146. baseConcepts: [],
  22147. childrenPresentational: !1,
  22148. nameFrom: ["author", "contents"],
  22149. prohibitedProps: [],
  22150. props: {
  22151. "aria-expanded": null,
  22152. "aria-haspopup": null
  22153. },
  22154. relatedConcepts: [],
  22155. requireContextRole: ["group", "tree"],
  22156. requiredContextRole: ["group", "tree"],
  22157. requiredOwnedElements: [],
  22158. requiredProps: {
  22159. "aria-selected": null
  22160. },
  22161. superClass: [["roletype", "structure", "section", "listitem"], ["roletype", "widget", "input", "option"]]
  22162. }, _default = exports.default = treeitemRole;
  22163. }
  22164. });
  22165. // ../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js
  22166. var require_ariaLiteralRoles = __commonJS({
  22167. "../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(exports) {
  22168. "use strict";
  22169. Object.defineProperty(exports, "__esModule", {
  22170. value: !0
  22171. });
  22172. exports.default = void 0;
  22173. var _alertRole = _interopRequireDefault(require_alertRole()), _alertdialogRole = _interopRequireDefault(require_alertdialogRole()), _applicationRole = _interopRequireDefault(require_applicationRole()), _articleRole = _interopRequireDefault(require_articleRole()), _bannerRole = _interopRequireDefault(require_bannerRole()), _blockquoteRole = _interopRequireDefault(require_blockquoteRole()), _buttonRole = _interopRequireDefault(require_buttonRole()), _captionRole = _interopRequireDefault(require_captionRole()), _cellRole = _interopRequireDefault(require_cellRole()), _checkboxRole = _interopRequireDefault(require_checkboxRole()), _codeRole = _interopRequireDefault(require_codeRole()), _columnheaderRole = _interopRequireDefault(require_columnheaderRole()), _comboboxRole = _interopRequireDefault(require_comboboxRole()), _complementaryRole = _interopRequireDefault(require_complementaryRole()), _contentinfoRole = _interopRequireDefault(require_contentinfoRole()), _definitionRole = _interopRequireDefault(require_definitionRole()), _deletionRole = _interopRequireDefault(require_deletionRole()), _dialogRole = _interopRequireDefault(require_dialogRole()), _directoryRole = _interopRequireDefault(require_directoryRole()), _documentRole = _interopRequireDefault(require_documentRole()), _emphasisRole = _interopRequireDefault(require_emphasisRole()), _feedRole = _interopRequireDefault(require_feedRole()), _figureRole = _interopRequireDefault(require_figureRole()), _formRole = _interopRequireDefault(require_formRole()), _genericRole = _interopRequireDefault(require_genericRole()), _gridRole = _interopRequireDefault(require_gridRole()), _gridcellRole = _interopRequireDefault(require_gridcellRole()), _groupRole = _interopRequireDefault(require_groupRole()), _headingRole = _interopRequireDefault(require_headingRole()), _imgRole = _interopRequireDefault(require_imgRole()), _insertionRole = _interopRequireDefault(require_insertionRole()), _linkRole = _interopRequireDefault(require_linkRole()), _listRole = _interopRequireDefault(require_listRole()), _listboxRole = _interopRequireDefault(require_listboxRole()), _listitemRole = _interopRequireDefault(require_listitemRole()), _logRole = _interopRequireDefault(require_logRole()), _mainRole = _interopRequireDefault(require_mainRole()), _markRole = _interopRequireDefault(require_markRole()), _marqueeRole = _interopRequireDefault(require_marqueeRole()), _mathRole = _interopRequireDefault(require_mathRole()), _menuRole = _interopRequireDefault(require_menuRole()), _menubarRole = _interopRequireDefault(require_menubarRole()), _menuitemRole = _interopRequireDefault(require_menuitemRole()), _menuitemcheckboxRole = _interopRequireDefault(require_menuitemcheckboxRole()), _menuitemradioRole = _interopRequireDefault(require_menuitemradioRole()), _meterRole = _interopRequireDefault(require_meterRole()), _navigationRole = _interopRequireDefault(require_navigationRole()), _noneRole = _interopRequireDefault(require_noneRole()), _noteRole = _interopRequireDefault(require_noteRole()), _optionRole = _interopRequireDefault(require_optionRole()), _paragraphRole = _interopRequireDefault(require_paragraphRole()), _presentationRole = _interopRequireDefault(require_presentationRole()), _progressbarRole = _interopRequireDefault(require_progressbarRole()), _radioRole = _interopRequireDefault(require_radioRole()), _radiogroupRole = _interopRequireDefault(require_radiogroupRole()), _regionRole = _interopRequireDefault(require_regionRole()), _rowRole = _interopRequireDefault(require_rowRole()), _rowgroupRole = _interopRequireDefault(require_rowgroupRole()), _rowheaderRole = _interopRequireDefault(require_rowheaderRole()), _scrollbarRole = _interopRequireDefault(require_scrollbarRole()), _searchRole = _interopRequireDefault(require_searchRole()), _searchboxRole = _interopRequireDefault(require_searchboxRole()), _separatorRole = _interopRequireDefault(require_separatorRole()), _sliderRole = _interopRequireDefault(require_sliderRole()), _spinbuttonRole = _interopRequireDefault(require_spinbuttonRole()), _statusRole = _interopRequireDefault(require_statusRole()), _strongRole = _interopRequireDefault(require_strongRole()), _subscriptRole = _interopRequireDefault(require_subscriptRole()), _superscriptRole = _interopRequireDefault(require_superscriptRole()), _switchRole = _interopRequireDefault(require_switchRole()), _tabRole = _interopRequireDefault(require_tabRole()), _tableRole = _interopRequireDefault(require_tableRole()), _tablistRole = _interopRequireDefault(require_tablistRole()), _tabpanelRole = _interopRequireDefault(require_tabpanelRole()), _termRole = _interopRequireDefault(require_termRole()), _textboxRole = _interopRequireDefault(require_textboxRole()), _timeRole = _interopRequireDefault(require_timeRole()), _timerRole = _interopRequireDefault(require_timerRole()), _toolbarRole = _interopRequireDefault(require_toolbarRole()), _tooltipRole = _interopRequireDefault(require_tooltipRole()), _treeRole = _interopRequireDefault(require_treeRole()), _treegridRole = _interopRequireDefault(require_treegridRole()), _treeitemRole = _interopRequireDefault(require_treeitemRole());
  22174. function _interopRequireDefault(e) {
  22175. return e && e.__esModule ? e : { default: e };
  22176. }
  22177. var ariaLiteralRoles = [["alert", _alertRole.default], ["alertdialog", _alertdialogRole.default], ["application", _applicationRole.default], ["article", _articleRole.default], ["banner", _bannerRole.default], ["blockquote", _blockquoteRole.default], ["button", _buttonRole.default], ["caption", _captionRole.default], ["cell", _cellRole.default], ["checkbox", _checkboxRole.default], ["code", _codeRole.default], ["columnheader", _columnheaderRole.default], ["combobox", _comboboxRole.default], ["complementary", _complementaryRole.default], ["contentinfo", _contentinfoRole.default], ["definition", _definitionRole.default], ["deletion", _deletionRole.default], ["dialog", _dialogRole.default], ["directory", _directoryRole.default], ["document", _documentRole.default], ["emphasis", _emphasisRole.default], ["feed", _feedRole.default], ["figure", _figureRole.default], ["form", _formRole.default], ["generic", _genericRole.default], ["grid", _gridRole.default], ["gridcell", _gridcellRole.default], ["group", _groupRole.default], ["heading", _headingRole.default], ["img", _imgRole.default], ["insertion", _insertionRole.default], ["link", _linkRole.default], ["list", _listRole.default], ["listbox", _listboxRole.default], ["listitem", _listitemRole.default], ["log", _logRole.default], ["main", _mainRole.default], ["mark", _markRole.default], ["marquee", _marqueeRole.default], ["math", _mathRole.default], ["menu", _menuRole.default], ["menubar", _menubarRole.default], ["menuitem", _menuitemRole.default], ["menuitemcheckbox", _menuitemcheckboxRole.default], ["menuitemradio", _menuitemradioRole.default], ["meter", _meterRole.default], ["navigation", _navigationRole.default], ["none", _noneRole.default], ["note", _noteRole.default], ["option", _optionRole.default], ["paragraph", _paragraphRole.default], ["presentation", _presentationRole.default], ["progressbar", _progressbarRole.default], ["radio", _radioRole.default], ["radiogroup", _radiogroupRole.default], ["region", _regionRole.default], ["row", _rowRole.default], ["rowgroup", _rowgroupRole.default], ["rowheader", _rowheaderRole.default], ["scrollbar", _scrollbarRole.default], ["search", _searchRole.default], ["searchbox", _searchboxRole.default], ["separator", _separatorRole.default], ["slider", _sliderRole.default], ["spinbutton", _spinbuttonRole.default], ["status", _statusRole.default], ["strong", _strongRole.default], ["subscript", _subscriptRole.default], ["superscript", _superscriptRole.default], ["switch", _switchRole.default], ["tab", _tabRole.default], ["table", _tableRole.default], ["tablist", _tablistRole.default], ["tabpanel", _tabpanelRole.default], ["term", _termRole.default], ["textbox", _textboxRole.default], ["time", _timeRole.default], ["timer", _timerRole.default], ["toolbar", _toolbarRole.default], ["tooltip", _tooltipRole.default], ["tree", _treeRole.default], ["treegrid", _treegridRole.default], ["treeitem", _treeitemRole.default]], _default = exports.default = ariaLiteralRoles;
  22178. }
  22179. });
  22180. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js
  22181. var require_docAbstractRole = __commonJS({
  22182. "../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(exports) {
  22183. "use strict";
  22184. Object.defineProperty(exports, "__esModule", {
  22185. value: !0
  22186. });
  22187. exports.default = void 0;
  22188. var docAbstractRole = {
  22189. abstract: !1,
  22190. accessibleNameRequired: !1,
  22191. baseConcepts: [],
  22192. childrenPresentational: !1,
  22193. nameFrom: ["author"],
  22194. prohibitedProps: [],
  22195. props: {
  22196. "aria-disabled": null,
  22197. "aria-errormessage": null,
  22198. "aria-expanded": null,
  22199. "aria-haspopup": null,
  22200. "aria-invalid": null
  22201. },
  22202. relatedConcepts: [{
  22203. concept: {
  22204. name: "abstract [EPUB-SSV]"
  22205. },
  22206. module: "EPUB"
  22207. }],
  22208. requireContextRole: [],
  22209. requiredContextRole: [],
  22210. requiredOwnedElements: [],
  22211. requiredProps: {},
  22212. superClass: [["roletype", "structure", "section"]]
  22213. }, _default = exports.default = docAbstractRole;
  22214. }
  22215. });
  22216. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js
  22217. var require_docAcknowledgmentsRole = __commonJS({
  22218. "../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(exports) {
  22219. "use strict";
  22220. Object.defineProperty(exports, "__esModule", {
  22221. value: !0
  22222. });
  22223. exports.default = void 0;
  22224. var docAcknowledgmentsRole = {
  22225. abstract: !1,
  22226. accessibleNameRequired: !1,
  22227. baseConcepts: [],
  22228. childrenPresentational: !1,
  22229. nameFrom: ["author"],
  22230. prohibitedProps: [],
  22231. props: {
  22232. "aria-disabled": null,
  22233. "aria-errormessage": null,
  22234. "aria-expanded": null,
  22235. "aria-haspopup": null,
  22236. "aria-invalid": null
  22237. },
  22238. relatedConcepts: [{
  22239. concept: {
  22240. name: "acknowledgments [EPUB-SSV]"
  22241. },
  22242. module: "EPUB"
  22243. }],
  22244. requireContextRole: [],
  22245. requiredContextRole: [],
  22246. requiredOwnedElements: [],
  22247. requiredProps: {},
  22248. superClass: [["roletype", "structure", "section", "landmark"]]
  22249. }, _default = exports.default = docAcknowledgmentsRole;
  22250. }
  22251. });
  22252. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js
  22253. var require_docAfterwordRole = __commonJS({
  22254. "../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(exports) {
  22255. "use strict";
  22256. Object.defineProperty(exports, "__esModule", {
  22257. value: !0
  22258. });
  22259. exports.default = void 0;
  22260. var docAfterwordRole = {
  22261. abstract: !1,
  22262. accessibleNameRequired: !1,
  22263. baseConcepts: [],
  22264. childrenPresentational: !1,
  22265. nameFrom: ["author"],
  22266. prohibitedProps: [],
  22267. props: {
  22268. "aria-disabled": null,
  22269. "aria-errormessage": null,
  22270. "aria-expanded": null,
  22271. "aria-haspopup": null,
  22272. "aria-invalid": null
  22273. },
  22274. relatedConcepts: [{
  22275. concept: {
  22276. name: "afterword [EPUB-SSV]"
  22277. },
  22278. module: "EPUB"
  22279. }],
  22280. requireContextRole: [],
  22281. requiredContextRole: [],
  22282. requiredOwnedElements: [],
  22283. requiredProps: {},
  22284. superClass: [["roletype", "structure", "section", "landmark"]]
  22285. }, _default = exports.default = docAfterwordRole;
  22286. }
  22287. });
  22288. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js
  22289. var require_docAppendixRole = __commonJS({
  22290. "../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(exports) {
  22291. "use strict";
  22292. Object.defineProperty(exports, "__esModule", {
  22293. value: !0
  22294. });
  22295. exports.default = void 0;
  22296. var docAppendixRole = {
  22297. abstract: !1,
  22298. accessibleNameRequired: !1,
  22299. baseConcepts: [],
  22300. childrenPresentational: !1,
  22301. nameFrom: ["author"],
  22302. prohibitedProps: [],
  22303. props: {
  22304. "aria-disabled": null,
  22305. "aria-errormessage": null,
  22306. "aria-expanded": null,
  22307. "aria-haspopup": null,
  22308. "aria-invalid": null
  22309. },
  22310. relatedConcepts: [{
  22311. concept: {
  22312. name: "appendix [EPUB-SSV]"
  22313. },
  22314. module: "EPUB"
  22315. }],
  22316. requireContextRole: [],
  22317. requiredContextRole: [],
  22318. requiredOwnedElements: [],
  22319. requiredProps: {},
  22320. superClass: [["roletype", "structure", "section", "landmark"]]
  22321. }, _default = exports.default = docAppendixRole;
  22322. }
  22323. });
  22324. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js
  22325. var require_docBacklinkRole = __commonJS({
  22326. "../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(exports) {
  22327. "use strict";
  22328. Object.defineProperty(exports, "__esModule", {
  22329. value: !0
  22330. });
  22331. exports.default = void 0;
  22332. var docBacklinkRole = {
  22333. abstract: !1,
  22334. accessibleNameRequired: !0,
  22335. baseConcepts: [],
  22336. childrenPresentational: !1,
  22337. nameFrom: ["author", "contents"],
  22338. prohibitedProps: [],
  22339. props: {
  22340. "aria-errormessage": null,
  22341. "aria-invalid": null
  22342. },
  22343. relatedConcepts: [{
  22344. concept: {
  22345. name: "referrer [EPUB-SSV]"
  22346. },
  22347. module: "EPUB"
  22348. }],
  22349. requireContextRole: [],
  22350. requiredContextRole: [],
  22351. requiredOwnedElements: [],
  22352. requiredProps: {},
  22353. superClass: [["roletype", "widget", "command", "link"]]
  22354. }, _default = exports.default = docBacklinkRole;
  22355. }
  22356. });
  22357. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js
  22358. var require_docBiblioentryRole = __commonJS({
  22359. "../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(exports) {
  22360. "use strict";
  22361. Object.defineProperty(exports, "__esModule", {
  22362. value: !0
  22363. });
  22364. exports.default = void 0;
  22365. var docBiblioentryRole = {
  22366. abstract: !1,
  22367. accessibleNameRequired: !0,
  22368. baseConcepts: [],
  22369. childrenPresentational: !1,
  22370. nameFrom: ["author"],
  22371. prohibitedProps: [],
  22372. props: {
  22373. "aria-disabled": null,
  22374. "aria-errormessage": null,
  22375. "aria-expanded": null,
  22376. "aria-haspopup": null,
  22377. "aria-invalid": null
  22378. },
  22379. relatedConcepts: [{
  22380. concept: {
  22381. name: "EPUB biblioentry [EPUB-SSV]"
  22382. },
  22383. module: "EPUB"
  22384. }],
  22385. requireContextRole: ["doc-bibliography"],
  22386. requiredContextRole: ["doc-bibliography"],
  22387. requiredOwnedElements: [],
  22388. requiredProps: {},
  22389. superClass: [["roletype", "structure", "section", "listitem"]]
  22390. }, _default = exports.default = docBiblioentryRole;
  22391. }
  22392. });
  22393. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js
  22394. var require_docBibliographyRole = __commonJS({
  22395. "../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(exports) {
  22396. "use strict";
  22397. Object.defineProperty(exports, "__esModule", {
  22398. value: !0
  22399. });
  22400. exports.default = void 0;
  22401. var docBibliographyRole = {
  22402. abstract: !1,
  22403. accessibleNameRequired: !1,
  22404. baseConcepts: [],
  22405. childrenPresentational: !1,
  22406. nameFrom: ["author"],
  22407. prohibitedProps: [],
  22408. props: {
  22409. "aria-disabled": null,
  22410. "aria-errormessage": null,
  22411. "aria-expanded": null,
  22412. "aria-haspopup": null,
  22413. "aria-invalid": null
  22414. },
  22415. relatedConcepts: [{
  22416. concept: {
  22417. name: "bibliography [EPUB-SSV]"
  22418. },
  22419. module: "EPUB"
  22420. }],
  22421. requireContextRole: [],
  22422. requiredContextRole: [],
  22423. requiredOwnedElements: [["doc-biblioentry"]],
  22424. requiredProps: {},
  22425. superClass: [["roletype", "structure", "section", "landmark"]]
  22426. }, _default = exports.default = docBibliographyRole;
  22427. }
  22428. });
  22429. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js
  22430. var require_docBibliorefRole = __commonJS({
  22431. "../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(exports) {
  22432. "use strict";
  22433. Object.defineProperty(exports, "__esModule", {
  22434. value: !0
  22435. });
  22436. exports.default = void 0;
  22437. var docBibliorefRole = {
  22438. abstract: !1,
  22439. accessibleNameRequired: !0,
  22440. baseConcepts: [],
  22441. childrenPresentational: !1,
  22442. nameFrom: ["author", "contents"],
  22443. prohibitedProps: [],
  22444. props: {
  22445. "aria-errormessage": null,
  22446. "aria-invalid": null
  22447. },
  22448. relatedConcepts: [{
  22449. concept: {
  22450. name: "biblioref [EPUB-SSV]"
  22451. },
  22452. module: "EPUB"
  22453. }],
  22454. requireContextRole: [],
  22455. requiredContextRole: [],
  22456. requiredOwnedElements: [],
  22457. requiredProps: {},
  22458. superClass: [["roletype", "widget", "command", "link"]]
  22459. }, _default = exports.default = docBibliorefRole;
  22460. }
  22461. });
  22462. // ../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js
  22463. var require_docChapterRole = __commonJS({
  22464. "../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(exports) {
  22465. "use strict";
  22466. Object.defineProperty(exports, "__esModule", {
  22467. value: !0
  22468. });
  22469. exports.default = void 0;
  22470. var docChapterRole = {
  22471. abstract: !1,
  22472. accessibleNameRequired: !1,
  22473. baseConcepts: [],
  22474. childrenPresentational: !1,
  22475. nameFrom: ["author"],
  22476. prohibitedProps: [],
  22477. props: {
  22478. "aria-disabled": null,
  22479. "aria-errormessage": null,
  22480. "aria-expanded": null,
  22481. "aria-haspopup": null,
  22482. "aria-invalid": null
  22483. },
  22484. relatedConcepts: [{
  22485. concept: {
  22486. name: "chapter [EPUB-SSV]"
  22487. },
  22488. module: "EPUB"
  22489. }],
  22490. requireContextRole: [],
  22491. requiredContextRole: [],
  22492. requiredOwnedElements: [],
  22493. requiredProps: {},
  22494. superClass: [["roletype", "structure", "section", "landmark"]]
  22495. }, _default = exports.default = docChapterRole;
  22496. }
  22497. });
  22498. // ../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js
  22499. var require_docColophonRole = __commonJS({
  22500. "../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(exports) {
  22501. "use strict";
  22502. Object.defineProperty(exports, "__esModule", {
  22503. value: !0
  22504. });
  22505. exports.default = void 0;
  22506. var docColophonRole = {
  22507. abstract: !1,
  22508. accessibleNameRequired: !1,
  22509. baseConcepts: [],
  22510. childrenPresentational: !1,
  22511. nameFrom: ["author"],
  22512. prohibitedProps: [],
  22513. props: {
  22514. "aria-disabled": null,
  22515. "aria-errormessage": null,
  22516. "aria-expanded": null,
  22517. "aria-haspopup": null,
  22518. "aria-invalid": null
  22519. },
  22520. relatedConcepts: [{
  22521. concept: {
  22522. name: "colophon [EPUB-SSV]"
  22523. },
  22524. module: "EPUB"
  22525. }],
  22526. requireContextRole: [],
  22527. requiredContextRole: [],
  22528. requiredOwnedElements: [],
  22529. requiredProps: {},
  22530. superClass: [["roletype", "structure", "section"]]
  22531. }, _default = exports.default = docColophonRole;
  22532. }
  22533. });
  22534. // ../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js
  22535. var require_docConclusionRole = __commonJS({
  22536. "../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(exports) {
  22537. "use strict";
  22538. Object.defineProperty(exports, "__esModule", {
  22539. value: !0
  22540. });
  22541. exports.default = void 0;
  22542. var docConclusionRole = {
  22543. abstract: !1,
  22544. accessibleNameRequired: !1,
  22545. baseConcepts: [],
  22546. childrenPresentational: !1,
  22547. nameFrom: ["author"],
  22548. prohibitedProps: [],
  22549. props: {
  22550. "aria-disabled": null,
  22551. "aria-errormessage": null,
  22552. "aria-expanded": null,
  22553. "aria-haspopup": null,
  22554. "aria-invalid": null
  22555. },
  22556. relatedConcepts: [{
  22557. concept: {
  22558. name: "conclusion [EPUB-SSV]"
  22559. },
  22560. module: "EPUB"
  22561. }],
  22562. requireContextRole: [],
  22563. requiredContextRole: [],
  22564. requiredOwnedElements: [],
  22565. requiredProps: {},
  22566. superClass: [["roletype", "structure", "section", "landmark"]]
  22567. }, _default = exports.default = docConclusionRole;
  22568. }
  22569. });
  22570. // ../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js
  22571. var require_docCoverRole = __commonJS({
  22572. "../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(exports) {
  22573. "use strict";
  22574. Object.defineProperty(exports, "__esModule", {
  22575. value: !0
  22576. });
  22577. exports.default = void 0;
  22578. var docCoverRole = {
  22579. abstract: !1,
  22580. accessibleNameRequired: !1,
  22581. baseConcepts: [],
  22582. childrenPresentational: !1,
  22583. nameFrom: ["author"],
  22584. prohibitedProps: [],
  22585. props: {
  22586. "aria-disabled": null,
  22587. "aria-errormessage": null,
  22588. "aria-expanded": null,
  22589. "aria-haspopup": null,
  22590. "aria-invalid": null
  22591. },
  22592. relatedConcepts: [{
  22593. concept: {
  22594. name: "cover [EPUB-SSV]"
  22595. },
  22596. module: "EPUB"
  22597. }],
  22598. requireContextRole: [],
  22599. requiredContextRole: [],
  22600. requiredOwnedElements: [],
  22601. requiredProps: {},
  22602. superClass: [["roletype", "structure", "section", "img"]]
  22603. }, _default = exports.default = docCoverRole;
  22604. }
  22605. });
  22606. // ../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js
  22607. var require_docCreditRole = __commonJS({
  22608. "../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(exports) {
  22609. "use strict";
  22610. Object.defineProperty(exports, "__esModule", {
  22611. value: !0
  22612. });
  22613. exports.default = void 0;
  22614. var docCreditRole = {
  22615. abstract: !1,
  22616. accessibleNameRequired: !1,
  22617. baseConcepts: [],
  22618. childrenPresentational: !1,
  22619. nameFrom: ["author"],
  22620. prohibitedProps: [],
  22621. props: {
  22622. "aria-disabled": null,
  22623. "aria-errormessage": null,
  22624. "aria-expanded": null,
  22625. "aria-haspopup": null,
  22626. "aria-invalid": null
  22627. },
  22628. relatedConcepts: [{
  22629. concept: {
  22630. name: "credit [EPUB-SSV]"
  22631. },
  22632. module: "EPUB"
  22633. }],
  22634. requireContextRole: [],
  22635. requiredContextRole: [],
  22636. requiredOwnedElements: [],
  22637. requiredProps: {},
  22638. superClass: [["roletype", "structure", "section"]]
  22639. }, _default = exports.default = docCreditRole;
  22640. }
  22641. });
  22642. // ../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js
  22643. var require_docCreditsRole = __commonJS({
  22644. "../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(exports) {
  22645. "use strict";
  22646. Object.defineProperty(exports, "__esModule", {
  22647. value: !0
  22648. });
  22649. exports.default = void 0;
  22650. var docCreditsRole = {
  22651. abstract: !1,
  22652. accessibleNameRequired: !1,
  22653. baseConcepts: [],
  22654. childrenPresentational: !1,
  22655. nameFrom: ["author"],
  22656. prohibitedProps: [],
  22657. props: {
  22658. "aria-disabled": null,
  22659. "aria-errormessage": null,
  22660. "aria-expanded": null,
  22661. "aria-haspopup": null,
  22662. "aria-invalid": null
  22663. },
  22664. relatedConcepts: [{
  22665. concept: {
  22666. name: "credits [EPUB-SSV]"
  22667. },
  22668. module: "EPUB"
  22669. }],
  22670. requireContextRole: [],
  22671. requiredContextRole: [],
  22672. requiredOwnedElements: [],
  22673. requiredProps: {},
  22674. superClass: [["roletype", "structure", "section", "landmark"]]
  22675. }, _default = exports.default = docCreditsRole;
  22676. }
  22677. });
  22678. // ../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js
  22679. var require_docDedicationRole = __commonJS({
  22680. "../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(exports) {
  22681. "use strict";
  22682. Object.defineProperty(exports, "__esModule", {
  22683. value: !0
  22684. });
  22685. exports.default = void 0;
  22686. var docDedicationRole = {
  22687. abstract: !1,
  22688. accessibleNameRequired: !1,
  22689. baseConcepts: [],
  22690. childrenPresentational: !1,
  22691. nameFrom: ["author"],
  22692. prohibitedProps: [],
  22693. props: {
  22694. "aria-disabled": null,
  22695. "aria-errormessage": null,
  22696. "aria-expanded": null,
  22697. "aria-haspopup": null,
  22698. "aria-invalid": null
  22699. },
  22700. relatedConcepts: [{
  22701. concept: {
  22702. name: "dedication [EPUB-SSV]"
  22703. },
  22704. module: "EPUB"
  22705. }],
  22706. requireContextRole: [],
  22707. requiredContextRole: [],
  22708. requiredOwnedElements: [],
  22709. requiredProps: {},
  22710. superClass: [["roletype", "structure", "section"]]
  22711. }, _default = exports.default = docDedicationRole;
  22712. }
  22713. });
  22714. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js
  22715. var require_docEndnoteRole = __commonJS({
  22716. "../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(exports) {
  22717. "use strict";
  22718. Object.defineProperty(exports, "__esModule", {
  22719. value: !0
  22720. });
  22721. exports.default = void 0;
  22722. var docEndnoteRole = {
  22723. abstract: !1,
  22724. accessibleNameRequired: !1,
  22725. baseConcepts: [],
  22726. childrenPresentational: !1,
  22727. nameFrom: ["author"],
  22728. prohibitedProps: [],
  22729. props: {
  22730. "aria-disabled": null,
  22731. "aria-errormessage": null,
  22732. "aria-expanded": null,
  22733. "aria-haspopup": null,
  22734. "aria-invalid": null
  22735. },
  22736. relatedConcepts: [{
  22737. concept: {
  22738. name: "rearnote [EPUB-SSV]"
  22739. },
  22740. module: "EPUB"
  22741. }],
  22742. requireContextRole: ["doc-endnotes"],
  22743. requiredContextRole: ["doc-endnotes"],
  22744. requiredOwnedElements: [],
  22745. requiredProps: {},
  22746. superClass: [["roletype", "structure", "section", "listitem"]]
  22747. }, _default = exports.default = docEndnoteRole;
  22748. }
  22749. });
  22750. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js
  22751. var require_docEndnotesRole = __commonJS({
  22752. "../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(exports) {
  22753. "use strict";
  22754. Object.defineProperty(exports, "__esModule", {
  22755. value: !0
  22756. });
  22757. exports.default = void 0;
  22758. var docEndnotesRole = {
  22759. abstract: !1,
  22760. accessibleNameRequired: !1,
  22761. baseConcepts: [],
  22762. childrenPresentational: !1,
  22763. nameFrom: ["author"],
  22764. prohibitedProps: [],
  22765. props: {
  22766. "aria-disabled": null,
  22767. "aria-errormessage": null,
  22768. "aria-expanded": null,
  22769. "aria-haspopup": null,
  22770. "aria-invalid": null
  22771. },
  22772. relatedConcepts: [{
  22773. concept: {
  22774. name: "rearnotes [EPUB-SSV]"
  22775. },
  22776. module: "EPUB"
  22777. }],
  22778. requireContextRole: [],
  22779. requiredContextRole: [],
  22780. requiredOwnedElements: [["doc-endnote"]],
  22781. requiredProps: {},
  22782. superClass: [["roletype", "structure", "section", "landmark"]]
  22783. }, _default = exports.default = docEndnotesRole;
  22784. }
  22785. });
  22786. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js
  22787. var require_docEpigraphRole = __commonJS({
  22788. "../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(exports) {
  22789. "use strict";
  22790. Object.defineProperty(exports, "__esModule", {
  22791. value: !0
  22792. });
  22793. exports.default = void 0;
  22794. var docEpigraphRole = {
  22795. abstract: !1,
  22796. accessibleNameRequired: !1,
  22797. baseConcepts: [],
  22798. childrenPresentational: !1,
  22799. nameFrom: ["author"],
  22800. prohibitedProps: [],
  22801. props: {
  22802. "aria-disabled": null,
  22803. "aria-errormessage": null,
  22804. "aria-expanded": null,
  22805. "aria-haspopup": null,
  22806. "aria-invalid": null
  22807. },
  22808. relatedConcepts: [{
  22809. concept: {
  22810. name: "epigraph [EPUB-SSV]"
  22811. },
  22812. module: "EPUB"
  22813. }],
  22814. requireContextRole: [],
  22815. requiredContextRole: [],
  22816. requiredOwnedElements: [],
  22817. requiredProps: {},
  22818. superClass: [["roletype", "structure", "section"]]
  22819. }, _default = exports.default = docEpigraphRole;
  22820. }
  22821. });
  22822. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js
  22823. var require_docEpilogueRole = __commonJS({
  22824. "../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(exports) {
  22825. "use strict";
  22826. Object.defineProperty(exports, "__esModule", {
  22827. value: !0
  22828. });
  22829. exports.default = void 0;
  22830. var docEpilogueRole = {
  22831. abstract: !1,
  22832. accessibleNameRequired: !1,
  22833. baseConcepts: [],
  22834. childrenPresentational: !1,
  22835. nameFrom: ["author"],
  22836. prohibitedProps: [],
  22837. props: {
  22838. "aria-disabled": null,
  22839. "aria-errormessage": null,
  22840. "aria-expanded": null,
  22841. "aria-haspopup": null,
  22842. "aria-invalid": null
  22843. },
  22844. relatedConcepts: [{
  22845. concept: {
  22846. name: "epilogue [EPUB-SSV]"
  22847. },
  22848. module: "EPUB"
  22849. }],
  22850. requireContextRole: [],
  22851. requiredContextRole: [],
  22852. requiredOwnedElements: [],
  22853. requiredProps: {},
  22854. superClass: [["roletype", "structure", "section", "landmark"]]
  22855. }, _default = exports.default = docEpilogueRole;
  22856. }
  22857. });
  22858. // ../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js
  22859. var require_docErrataRole = __commonJS({
  22860. "../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(exports) {
  22861. "use strict";
  22862. Object.defineProperty(exports, "__esModule", {
  22863. value: !0
  22864. });
  22865. exports.default = void 0;
  22866. var docErrataRole = {
  22867. abstract: !1,
  22868. accessibleNameRequired: !1,
  22869. baseConcepts: [],
  22870. childrenPresentational: !1,
  22871. nameFrom: ["author"],
  22872. prohibitedProps: [],
  22873. props: {
  22874. "aria-disabled": null,
  22875. "aria-errormessage": null,
  22876. "aria-expanded": null,
  22877. "aria-haspopup": null,
  22878. "aria-invalid": null
  22879. },
  22880. relatedConcepts: [{
  22881. concept: {
  22882. name: "errata [EPUB-SSV]"
  22883. },
  22884. module: "EPUB"
  22885. }],
  22886. requireContextRole: [],
  22887. requiredContextRole: [],
  22888. requiredOwnedElements: [],
  22889. requiredProps: {},
  22890. superClass: [["roletype", "structure", "section", "landmark"]]
  22891. }, _default = exports.default = docErrataRole;
  22892. }
  22893. });
  22894. // ../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js
  22895. var require_docExampleRole = __commonJS({
  22896. "../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(exports) {
  22897. "use strict";
  22898. Object.defineProperty(exports, "__esModule", {
  22899. value: !0
  22900. });
  22901. exports.default = void 0;
  22902. var docExampleRole = {
  22903. abstract: !1,
  22904. accessibleNameRequired: !1,
  22905. baseConcepts: [],
  22906. childrenPresentational: !1,
  22907. nameFrom: ["author"],
  22908. prohibitedProps: [],
  22909. props: {
  22910. "aria-disabled": null,
  22911. "aria-errormessage": null,
  22912. "aria-expanded": null,
  22913. "aria-haspopup": null,
  22914. "aria-invalid": null
  22915. },
  22916. relatedConcepts: [],
  22917. requireContextRole: [],
  22918. requiredContextRole: [],
  22919. requiredOwnedElements: [],
  22920. requiredProps: {},
  22921. superClass: [["roletype", "structure", "section"]]
  22922. }, _default = exports.default = docExampleRole;
  22923. }
  22924. });
  22925. // ../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js
  22926. var require_docFootnoteRole = __commonJS({
  22927. "../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(exports) {
  22928. "use strict";
  22929. Object.defineProperty(exports, "__esModule", {
  22930. value: !0
  22931. });
  22932. exports.default = void 0;
  22933. var docFootnoteRole = {
  22934. abstract: !1,
  22935. accessibleNameRequired: !1,
  22936. baseConcepts: [],
  22937. childrenPresentational: !1,
  22938. nameFrom: ["author"],
  22939. prohibitedProps: [],
  22940. props: {
  22941. "aria-disabled": null,
  22942. "aria-errormessage": null,
  22943. "aria-expanded": null,
  22944. "aria-haspopup": null,
  22945. "aria-invalid": null
  22946. },
  22947. relatedConcepts: [{
  22948. concept: {
  22949. name: "footnote [EPUB-SSV]"
  22950. },
  22951. module: "EPUB"
  22952. }],
  22953. requireContextRole: [],
  22954. requiredContextRole: [],
  22955. requiredOwnedElements: [],
  22956. requiredProps: {},
  22957. superClass: [["roletype", "structure", "section"]]
  22958. }, _default = exports.default = docFootnoteRole;
  22959. }
  22960. });
  22961. // ../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js
  22962. var require_docForewordRole = __commonJS({
  22963. "../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(exports) {
  22964. "use strict";
  22965. Object.defineProperty(exports, "__esModule", {
  22966. value: !0
  22967. });
  22968. exports.default = void 0;
  22969. var docForewordRole = {
  22970. abstract: !1,
  22971. accessibleNameRequired: !1,
  22972. baseConcepts: [],
  22973. childrenPresentational: !1,
  22974. nameFrom: ["author"],
  22975. prohibitedProps: [],
  22976. props: {
  22977. "aria-disabled": null,
  22978. "aria-errormessage": null,
  22979. "aria-expanded": null,
  22980. "aria-haspopup": null,
  22981. "aria-invalid": null
  22982. },
  22983. relatedConcepts: [{
  22984. concept: {
  22985. name: "foreword [EPUB-SSV]"
  22986. },
  22987. module: "EPUB"
  22988. }],
  22989. requireContextRole: [],
  22990. requiredContextRole: [],
  22991. requiredOwnedElements: [],
  22992. requiredProps: {},
  22993. superClass: [["roletype", "structure", "section", "landmark"]]
  22994. }, _default = exports.default = docForewordRole;
  22995. }
  22996. });
  22997. // ../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js
  22998. var require_docGlossaryRole = __commonJS({
  22999. "../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(exports) {
  23000. "use strict";
  23001. Object.defineProperty(exports, "__esModule", {
  23002. value: !0
  23003. });
  23004. exports.default = void 0;
  23005. var docGlossaryRole = {
  23006. abstract: !1,
  23007. accessibleNameRequired: !1,
  23008. baseConcepts: [],
  23009. childrenPresentational: !1,
  23010. nameFrom: ["author"],
  23011. prohibitedProps: [],
  23012. props: {
  23013. "aria-disabled": null,
  23014. "aria-errormessage": null,
  23015. "aria-expanded": null,
  23016. "aria-haspopup": null,
  23017. "aria-invalid": null
  23018. },
  23019. relatedConcepts: [{
  23020. concept: {
  23021. name: "glossary [EPUB-SSV]"
  23022. },
  23023. module: "EPUB"
  23024. }],
  23025. requireContextRole: [],
  23026. requiredContextRole: [],
  23027. requiredOwnedElements: [["definition"], ["term"]],
  23028. requiredProps: {},
  23029. superClass: [["roletype", "structure", "section", "landmark"]]
  23030. }, _default = exports.default = docGlossaryRole;
  23031. }
  23032. });
  23033. // ../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js
  23034. var require_docGlossrefRole = __commonJS({
  23035. "../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(exports) {
  23036. "use strict";
  23037. Object.defineProperty(exports, "__esModule", {
  23038. value: !0
  23039. });
  23040. exports.default = void 0;
  23041. var docGlossrefRole = {
  23042. abstract: !1,
  23043. accessibleNameRequired: !0,
  23044. baseConcepts: [],
  23045. childrenPresentational: !1,
  23046. nameFrom: ["author", "contents"],
  23047. prohibitedProps: [],
  23048. props: {
  23049. "aria-errormessage": null,
  23050. "aria-invalid": null
  23051. },
  23052. relatedConcepts: [{
  23053. concept: {
  23054. name: "glossref [EPUB-SSV]"
  23055. },
  23056. module: "EPUB"
  23057. }],
  23058. requireContextRole: [],
  23059. requiredContextRole: [],
  23060. requiredOwnedElements: [],
  23061. requiredProps: {},
  23062. superClass: [["roletype", "widget", "command", "link"]]
  23063. }, _default = exports.default = docGlossrefRole;
  23064. }
  23065. });
  23066. // ../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js
  23067. var require_docIndexRole = __commonJS({
  23068. "../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(exports) {
  23069. "use strict";
  23070. Object.defineProperty(exports, "__esModule", {
  23071. value: !0
  23072. });
  23073. exports.default = void 0;
  23074. var docIndexRole = {
  23075. abstract: !1,
  23076. accessibleNameRequired: !1,
  23077. baseConcepts: [],
  23078. childrenPresentational: !1,
  23079. nameFrom: ["author"],
  23080. prohibitedProps: [],
  23081. props: {
  23082. "aria-disabled": null,
  23083. "aria-errormessage": null,
  23084. "aria-expanded": null,
  23085. "aria-haspopup": null,
  23086. "aria-invalid": null
  23087. },
  23088. relatedConcepts: [{
  23089. concept: {
  23090. name: "index [EPUB-SSV]"
  23091. },
  23092. module: "EPUB"
  23093. }],
  23094. requireContextRole: [],
  23095. requiredContextRole: [],
  23096. requiredOwnedElements: [],
  23097. requiredProps: {},
  23098. superClass: [["roletype", "structure", "section", "landmark", "navigation"]]
  23099. }, _default = exports.default = docIndexRole;
  23100. }
  23101. });
  23102. // ../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js
  23103. var require_docIntroductionRole = __commonJS({
  23104. "../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(exports) {
  23105. "use strict";
  23106. Object.defineProperty(exports, "__esModule", {
  23107. value: !0
  23108. });
  23109. exports.default = void 0;
  23110. var docIntroductionRole = {
  23111. abstract: !1,
  23112. accessibleNameRequired: !1,
  23113. baseConcepts: [],
  23114. childrenPresentational: !1,
  23115. nameFrom: ["author"],
  23116. prohibitedProps: [],
  23117. props: {
  23118. "aria-disabled": null,
  23119. "aria-errormessage": null,
  23120. "aria-expanded": null,
  23121. "aria-haspopup": null,
  23122. "aria-invalid": null
  23123. },
  23124. relatedConcepts: [{
  23125. concept: {
  23126. name: "introduction [EPUB-SSV]"
  23127. },
  23128. module: "EPUB"
  23129. }],
  23130. requireContextRole: [],
  23131. requiredContextRole: [],
  23132. requiredOwnedElements: [],
  23133. requiredProps: {},
  23134. superClass: [["roletype", "structure", "section", "landmark"]]
  23135. }, _default = exports.default = docIntroductionRole;
  23136. }
  23137. });
  23138. // ../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js
  23139. var require_docNoterefRole = __commonJS({
  23140. "../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(exports) {
  23141. "use strict";
  23142. Object.defineProperty(exports, "__esModule", {
  23143. value: !0
  23144. });
  23145. exports.default = void 0;
  23146. var docNoterefRole = {
  23147. abstract: !1,
  23148. accessibleNameRequired: !0,
  23149. baseConcepts: [],
  23150. childrenPresentational: !1,
  23151. nameFrom: ["author", "contents"],
  23152. prohibitedProps: [],
  23153. props: {
  23154. "aria-errormessage": null,
  23155. "aria-invalid": null
  23156. },
  23157. relatedConcepts: [{
  23158. concept: {
  23159. name: "noteref [EPUB-SSV]"
  23160. },
  23161. module: "EPUB"
  23162. }],
  23163. requireContextRole: [],
  23164. requiredContextRole: [],
  23165. requiredOwnedElements: [],
  23166. requiredProps: {},
  23167. superClass: [["roletype", "widget", "command", "link"]]
  23168. }, _default = exports.default = docNoterefRole;
  23169. }
  23170. });
  23171. // ../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js
  23172. var require_docNoticeRole = __commonJS({
  23173. "../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(exports) {
  23174. "use strict";
  23175. Object.defineProperty(exports, "__esModule", {
  23176. value: !0
  23177. });
  23178. exports.default = void 0;
  23179. var docNoticeRole = {
  23180. abstract: !1,
  23181. accessibleNameRequired: !1,
  23182. baseConcepts: [],
  23183. childrenPresentational: !1,
  23184. nameFrom: ["author"],
  23185. prohibitedProps: [],
  23186. props: {
  23187. "aria-disabled": null,
  23188. "aria-errormessage": null,
  23189. "aria-expanded": null,
  23190. "aria-haspopup": null,
  23191. "aria-invalid": null
  23192. },
  23193. relatedConcepts: [{
  23194. concept: {
  23195. name: "notice [EPUB-SSV]"
  23196. },
  23197. module: "EPUB"
  23198. }],
  23199. requireContextRole: [],
  23200. requiredContextRole: [],
  23201. requiredOwnedElements: [],
  23202. requiredProps: {},
  23203. superClass: [["roletype", "structure", "section", "note"]]
  23204. }, _default = exports.default = docNoticeRole;
  23205. }
  23206. });
  23207. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js
  23208. var require_docPagebreakRole = __commonJS({
  23209. "../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(exports) {
  23210. "use strict";
  23211. Object.defineProperty(exports, "__esModule", {
  23212. value: !0
  23213. });
  23214. exports.default = void 0;
  23215. var docPagebreakRole = {
  23216. abstract: !1,
  23217. accessibleNameRequired: !0,
  23218. baseConcepts: [],
  23219. childrenPresentational: !0,
  23220. nameFrom: ["author"],
  23221. prohibitedProps: [],
  23222. props: {
  23223. "aria-errormessage": null,
  23224. "aria-expanded": null,
  23225. "aria-haspopup": null,
  23226. "aria-invalid": null
  23227. },
  23228. relatedConcepts: [{
  23229. concept: {
  23230. name: "pagebreak [EPUB-SSV]"
  23231. },
  23232. module: "EPUB"
  23233. }],
  23234. requireContextRole: [],
  23235. requiredContextRole: [],
  23236. requiredOwnedElements: [],
  23237. requiredProps: {},
  23238. superClass: [["roletype", "structure", "separator"]]
  23239. }, _default = exports.default = docPagebreakRole;
  23240. }
  23241. });
  23242. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js
  23243. var require_docPagefooterRole = __commonJS({
  23244. "../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(exports) {
  23245. "use strict";
  23246. Object.defineProperty(exports, "__esModule", {
  23247. value: !0
  23248. });
  23249. exports.default = void 0;
  23250. var docPagefooterRole = {
  23251. abstract: !1,
  23252. accessibleNameRequired: !1,
  23253. baseConcepts: [],
  23254. childrenPresentational: !1,
  23255. nameFrom: ["prohibited"],
  23256. prohibitedProps: [],
  23257. props: {
  23258. "aria-braillelabel": null,
  23259. "aria-brailleroledescription": null,
  23260. "aria-description": null,
  23261. "aria-disabled": null,
  23262. "aria-errormessage": null,
  23263. "aria-haspopup": null,
  23264. "aria-invalid": null
  23265. },
  23266. relatedConcepts: [],
  23267. requireContextRole: [],
  23268. requiredContextRole: [],
  23269. requiredOwnedElements: [],
  23270. requiredProps: {},
  23271. superClass: [["roletype", "structure", "section"]]
  23272. }, _default = exports.default = docPagefooterRole;
  23273. }
  23274. });
  23275. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js
  23276. var require_docPageheaderRole = __commonJS({
  23277. "../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(exports) {
  23278. "use strict";
  23279. Object.defineProperty(exports, "__esModule", {
  23280. value: !0
  23281. });
  23282. exports.default = void 0;
  23283. var docPageheaderRole = {
  23284. abstract: !1,
  23285. accessibleNameRequired: !1,
  23286. baseConcepts: [],
  23287. childrenPresentational: !1,
  23288. nameFrom: ["prohibited"],
  23289. prohibitedProps: [],
  23290. props: {
  23291. "aria-braillelabel": null,
  23292. "aria-brailleroledescription": null,
  23293. "aria-description": null,
  23294. "aria-disabled": null,
  23295. "aria-errormessage": null,
  23296. "aria-haspopup": null,
  23297. "aria-invalid": null
  23298. },
  23299. relatedConcepts: [],
  23300. requireContextRole: [],
  23301. requiredContextRole: [],
  23302. requiredOwnedElements: [],
  23303. requiredProps: {},
  23304. superClass: [["roletype", "structure", "section"]]
  23305. }, _default = exports.default = docPageheaderRole;
  23306. }
  23307. });
  23308. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js
  23309. var require_docPagelistRole = __commonJS({
  23310. "../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(exports) {
  23311. "use strict";
  23312. Object.defineProperty(exports, "__esModule", {
  23313. value: !0
  23314. });
  23315. exports.default = void 0;
  23316. var docPagelistRole = {
  23317. abstract: !1,
  23318. accessibleNameRequired: !1,
  23319. baseConcepts: [],
  23320. childrenPresentational: !1,
  23321. nameFrom: ["author"],
  23322. prohibitedProps: [],
  23323. props: {
  23324. "aria-disabled": null,
  23325. "aria-errormessage": null,
  23326. "aria-expanded": null,
  23327. "aria-haspopup": null,
  23328. "aria-invalid": null
  23329. },
  23330. relatedConcepts: [{
  23331. concept: {
  23332. name: "page-list [EPUB-SSV]"
  23333. },
  23334. module: "EPUB"
  23335. }],
  23336. requireContextRole: [],
  23337. requiredContextRole: [],
  23338. requiredOwnedElements: [],
  23339. requiredProps: {},
  23340. superClass: [["roletype", "structure", "section", "landmark", "navigation"]]
  23341. }, _default = exports.default = docPagelistRole;
  23342. }
  23343. });
  23344. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js
  23345. var require_docPartRole = __commonJS({
  23346. "../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(exports) {
  23347. "use strict";
  23348. Object.defineProperty(exports, "__esModule", {
  23349. value: !0
  23350. });
  23351. exports.default = void 0;
  23352. var docPartRole = {
  23353. abstract: !1,
  23354. accessibleNameRequired: !0,
  23355. baseConcepts: [],
  23356. childrenPresentational: !1,
  23357. nameFrom: ["author"],
  23358. prohibitedProps: [],
  23359. props: {
  23360. "aria-disabled": null,
  23361. "aria-errormessage": null,
  23362. "aria-expanded": null,
  23363. "aria-haspopup": null,
  23364. "aria-invalid": null
  23365. },
  23366. relatedConcepts: [{
  23367. concept: {
  23368. name: "part [EPUB-SSV]"
  23369. },
  23370. module: "EPUB"
  23371. }],
  23372. requireContextRole: [],
  23373. requiredContextRole: [],
  23374. requiredOwnedElements: [],
  23375. requiredProps: {},
  23376. superClass: [["roletype", "structure", "section", "landmark"]]
  23377. }, _default = exports.default = docPartRole;
  23378. }
  23379. });
  23380. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js
  23381. var require_docPrefaceRole = __commonJS({
  23382. "../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(exports) {
  23383. "use strict";
  23384. Object.defineProperty(exports, "__esModule", {
  23385. value: !0
  23386. });
  23387. exports.default = void 0;
  23388. var docPrefaceRole = {
  23389. abstract: !1,
  23390. accessibleNameRequired: !1,
  23391. baseConcepts: [],
  23392. childrenPresentational: !1,
  23393. nameFrom: ["author"],
  23394. prohibitedProps: [],
  23395. props: {
  23396. "aria-disabled": null,
  23397. "aria-errormessage": null,
  23398. "aria-expanded": null,
  23399. "aria-haspopup": null,
  23400. "aria-invalid": null
  23401. },
  23402. relatedConcepts: [{
  23403. concept: {
  23404. name: "preface [EPUB-SSV]"
  23405. },
  23406. module: "EPUB"
  23407. }],
  23408. requireContextRole: [],
  23409. requiredContextRole: [],
  23410. requiredOwnedElements: [],
  23411. requiredProps: {},
  23412. superClass: [["roletype", "structure", "section", "landmark"]]
  23413. }, _default = exports.default = docPrefaceRole;
  23414. }
  23415. });
  23416. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js
  23417. var require_docPrologueRole = __commonJS({
  23418. "../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(exports) {
  23419. "use strict";
  23420. Object.defineProperty(exports, "__esModule", {
  23421. value: !0
  23422. });
  23423. exports.default = void 0;
  23424. var docPrologueRole = {
  23425. abstract: !1,
  23426. accessibleNameRequired: !1,
  23427. baseConcepts: [],
  23428. childrenPresentational: !1,
  23429. nameFrom: ["author"],
  23430. prohibitedProps: [],
  23431. props: {
  23432. "aria-disabled": null,
  23433. "aria-errormessage": null,
  23434. "aria-expanded": null,
  23435. "aria-haspopup": null,
  23436. "aria-invalid": null
  23437. },
  23438. relatedConcepts: [{
  23439. concept: {
  23440. name: "prologue [EPUB-SSV]"
  23441. },
  23442. module: "EPUB"
  23443. }],
  23444. requireContextRole: [],
  23445. requiredContextRole: [],
  23446. requiredOwnedElements: [],
  23447. requiredProps: {},
  23448. superClass: [["roletype", "structure", "section", "landmark"]]
  23449. }, _default = exports.default = docPrologueRole;
  23450. }
  23451. });
  23452. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js
  23453. var require_docPullquoteRole = __commonJS({
  23454. "../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(exports) {
  23455. "use strict";
  23456. Object.defineProperty(exports, "__esModule", {
  23457. value: !0
  23458. });
  23459. exports.default = void 0;
  23460. var docPullquoteRole = {
  23461. abstract: !1,
  23462. accessibleNameRequired: !1,
  23463. baseConcepts: [],
  23464. childrenPresentational: !1,
  23465. nameFrom: ["author"],
  23466. prohibitedProps: [],
  23467. props: {},
  23468. relatedConcepts: [{
  23469. concept: {
  23470. name: "pullquote [EPUB-SSV]"
  23471. },
  23472. module: "EPUB"
  23473. }],
  23474. requireContextRole: [],
  23475. requiredContextRole: [],
  23476. requiredOwnedElements: [],
  23477. requiredProps: {},
  23478. superClass: [["none"]]
  23479. }, _default = exports.default = docPullquoteRole;
  23480. }
  23481. });
  23482. // ../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js
  23483. var require_docQnaRole = __commonJS({
  23484. "../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(exports) {
  23485. "use strict";
  23486. Object.defineProperty(exports, "__esModule", {
  23487. value: !0
  23488. });
  23489. exports.default = void 0;
  23490. var docQnaRole = {
  23491. abstract: !1,
  23492. accessibleNameRequired: !1,
  23493. baseConcepts: [],
  23494. childrenPresentational: !1,
  23495. nameFrom: ["author"],
  23496. prohibitedProps: [],
  23497. props: {
  23498. "aria-disabled": null,
  23499. "aria-errormessage": null,
  23500. "aria-expanded": null,
  23501. "aria-haspopup": null,
  23502. "aria-invalid": null
  23503. },
  23504. relatedConcepts: [{
  23505. concept: {
  23506. name: "qna [EPUB-SSV]"
  23507. },
  23508. module: "EPUB"
  23509. }],
  23510. requireContextRole: [],
  23511. requiredContextRole: [],
  23512. requiredOwnedElements: [],
  23513. requiredProps: {},
  23514. superClass: [["roletype", "structure", "section"]]
  23515. }, _default = exports.default = docQnaRole;
  23516. }
  23517. });
  23518. // ../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js
  23519. var require_docSubtitleRole = __commonJS({
  23520. "../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(exports) {
  23521. "use strict";
  23522. Object.defineProperty(exports, "__esModule", {
  23523. value: !0
  23524. });
  23525. exports.default = void 0;
  23526. var docSubtitleRole = {
  23527. abstract: !1,
  23528. accessibleNameRequired: !1,
  23529. baseConcepts: [],
  23530. childrenPresentational: !1,
  23531. nameFrom: ["author"],
  23532. prohibitedProps: [],
  23533. props: {
  23534. "aria-disabled": null,
  23535. "aria-errormessage": null,
  23536. "aria-expanded": null,
  23537. "aria-haspopup": null,
  23538. "aria-invalid": null
  23539. },
  23540. relatedConcepts: [{
  23541. concept: {
  23542. name: "subtitle [EPUB-SSV]"
  23543. },
  23544. module: "EPUB"
  23545. }],
  23546. requireContextRole: [],
  23547. requiredContextRole: [],
  23548. requiredOwnedElements: [],
  23549. requiredProps: {},
  23550. superClass: [["roletype", "structure", "sectionhead"]]
  23551. }, _default = exports.default = docSubtitleRole;
  23552. }
  23553. });
  23554. // ../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js
  23555. var require_docTipRole = __commonJS({
  23556. "../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(exports) {
  23557. "use strict";
  23558. Object.defineProperty(exports, "__esModule", {
  23559. value: !0
  23560. });
  23561. exports.default = void 0;
  23562. var docTipRole = {
  23563. abstract: !1,
  23564. accessibleNameRequired: !1,
  23565. baseConcepts: [],
  23566. childrenPresentational: !1,
  23567. nameFrom: ["author"],
  23568. prohibitedProps: [],
  23569. props: {
  23570. "aria-disabled": null,
  23571. "aria-errormessage": null,
  23572. "aria-expanded": null,
  23573. "aria-haspopup": null,
  23574. "aria-invalid": null
  23575. },
  23576. relatedConcepts: [{
  23577. concept: {
  23578. name: "help [EPUB-SSV]"
  23579. },
  23580. module: "EPUB"
  23581. }],
  23582. requireContextRole: [],
  23583. requiredContextRole: [],
  23584. requiredOwnedElements: [],
  23585. requiredProps: {},
  23586. superClass: [["roletype", "structure", "section", "note"]]
  23587. }, _default = exports.default = docTipRole;
  23588. }
  23589. });
  23590. // ../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js
  23591. var require_docTocRole = __commonJS({
  23592. "../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(exports) {
  23593. "use strict";
  23594. Object.defineProperty(exports, "__esModule", {
  23595. value: !0
  23596. });
  23597. exports.default = void 0;
  23598. var docTocRole = {
  23599. abstract: !1,
  23600. accessibleNameRequired: !1,
  23601. baseConcepts: [],
  23602. childrenPresentational: !1,
  23603. nameFrom: ["author"],
  23604. prohibitedProps: [],
  23605. props: {
  23606. "aria-disabled": null,
  23607. "aria-errormessage": null,
  23608. "aria-expanded": null,
  23609. "aria-haspopup": null,
  23610. "aria-invalid": null
  23611. },
  23612. relatedConcepts: [{
  23613. concept: {
  23614. name: "toc [EPUB-SSV]"
  23615. },
  23616. module: "EPUB"
  23617. }],
  23618. requireContextRole: [],
  23619. requiredContextRole: [],
  23620. requiredOwnedElements: [],
  23621. requiredProps: {},
  23622. superClass: [["roletype", "structure", "section", "landmark", "navigation"]]
  23623. }, _default = exports.default = docTocRole;
  23624. }
  23625. });
  23626. // ../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js
  23627. var require_ariaDpubRoles = __commonJS({
  23628. "../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(exports) {
  23629. "use strict";
  23630. Object.defineProperty(exports, "__esModule", {
  23631. value: !0
  23632. });
  23633. exports.default = void 0;
  23634. var _docAbstractRole = _interopRequireDefault(require_docAbstractRole()), _docAcknowledgmentsRole = _interopRequireDefault(require_docAcknowledgmentsRole()), _docAfterwordRole = _interopRequireDefault(require_docAfterwordRole()), _docAppendixRole = _interopRequireDefault(require_docAppendixRole()), _docBacklinkRole = _interopRequireDefault(require_docBacklinkRole()), _docBiblioentryRole = _interopRequireDefault(require_docBiblioentryRole()), _docBibliographyRole = _interopRequireDefault(require_docBibliographyRole()), _docBibliorefRole = _interopRequireDefault(require_docBibliorefRole()), _docChapterRole = _interopRequireDefault(require_docChapterRole()), _docColophonRole = _interopRequireDefault(require_docColophonRole()), _docConclusionRole = _interopRequireDefault(require_docConclusionRole()), _docCoverRole = _interopRequireDefault(require_docCoverRole()), _docCreditRole = _interopRequireDefault(require_docCreditRole()), _docCreditsRole = _interopRequireDefault(require_docCreditsRole()), _docDedicationRole = _interopRequireDefault(require_docDedicationRole()), _docEndnoteRole = _interopRequireDefault(require_docEndnoteRole()), _docEndnotesRole = _interopRequireDefault(require_docEndnotesRole()), _docEpigraphRole = _interopRequireDefault(require_docEpigraphRole()), _docEpilogueRole = _interopRequireDefault(require_docEpilogueRole()), _docErrataRole = _interopRequireDefault(require_docErrataRole()), _docExampleRole = _interopRequireDefault(require_docExampleRole()), _docFootnoteRole = _interopRequireDefault(require_docFootnoteRole()), _docForewordRole = _interopRequireDefault(require_docForewordRole()), _docGlossaryRole = _interopRequireDefault(require_docGlossaryRole()), _docGlossrefRole = _interopRequireDefault(require_docGlossrefRole()), _docIndexRole = _interopRequireDefault(require_docIndexRole()), _docIntroductionRole = _interopRequireDefault(require_docIntroductionRole()), _docNoterefRole = _interopRequireDefault(require_docNoterefRole()), _docNoticeRole = _interopRequireDefault(require_docNoticeRole()), _docPagebreakRole = _interopRequireDefault(require_docPagebreakRole()), _docPagefooterRole = _interopRequireDefault(require_docPagefooterRole()), _docPageheaderRole = _interopRequireDefault(require_docPageheaderRole()), _docPagelistRole = _interopRequireDefault(require_docPagelistRole()), _docPartRole = _interopRequireDefault(require_docPartRole()), _docPrefaceRole = _interopRequireDefault(require_docPrefaceRole()), _docPrologueRole = _interopRequireDefault(require_docPrologueRole()), _docPullquoteRole = _interopRequireDefault(require_docPullquoteRole()), _docQnaRole = _interopRequireDefault(require_docQnaRole()), _docSubtitleRole = _interopRequireDefault(require_docSubtitleRole()), _docTipRole = _interopRequireDefault(require_docTipRole()), _docTocRole = _interopRequireDefault(require_docTocRole());
  23635. function _interopRequireDefault(e) {
  23636. return e && e.__esModule ? e : { default: e };
  23637. }
  23638. var ariaDpubRoles = [["doc-abstract", _docAbstractRole.default], ["doc-acknowledgments", _docAcknowledgmentsRole.default], ["doc-afterword", _docAfterwordRole.default], ["doc-appendix", _docAppendixRole.default], ["doc-backlink", _docBacklinkRole.default], ["doc-biblioentry", _docBiblioentryRole.default], ["doc-bibliography", _docBibliographyRole.default], ["doc-biblioref", _docBibliorefRole.default], ["doc-chapter", _docChapterRole.default], ["doc-colophon", _docColophonRole.default], ["doc-conclusion", _docConclusionRole.default], ["doc-cover", _docCoverRole.default], ["doc-credit", _docCreditRole.default], ["doc-credits", _docCreditsRole.default], ["doc-dedication", _docDedicationRole.default], ["doc-endnote", _docEndnoteRole.default], ["doc-endnotes", _docEndnotesRole.default], ["doc-epigraph", _docEpigraphRole.default], ["doc-epilogue", _docEpilogueRole.default], ["doc-errata", _docErrataRole.default], ["doc-example", _docExampleRole.default], ["doc-footnote", _docFootnoteRole.default], ["doc-foreword", _docForewordRole.default], ["doc-glossary", _docGlossaryRole.default], ["doc-glossref", _docGlossrefRole.default], ["doc-index", _docIndexRole.default], ["doc-introduction", _docIntroductionRole.default], ["doc-noteref", _docNoterefRole.default], ["doc-notice", _docNoticeRole.default], ["doc-pagebreak", _docPagebreakRole.default], ["doc-pagefooter", _docPagefooterRole.default], ["doc-pageheader", _docPageheaderRole.default], ["doc-pagelist", _docPagelistRole.default], ["doc-part", _docPartRole.default], ["doc-preface", _docPrefaceRole.default], ["doc-prologue", _docPrologueRole.default], ["doc-pullquote", _docPullquoteRole.default], ["doc-qna", _docQnaRole.default], ["doc-subtitle", _docSubtitleRole.default], ["doc-tip", _docTipRole.default], ["doc-toc", _docTocRole.default]], _default = exports.default = ariaDpubRoles;
  23639. }
  23640. });
  23641. // ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js
  23642. var require_graphicsDocumentRole = __commonJS({
  23643. "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(exports) {
  23644. "use strict";
  23645. Object.defineProperty(exports, "__esModule", {
  23646. value: !0
  23647. });
  23648. exports.default = void 0;
  23649. var graphicsDocumentRole = {
  23650. abstract: !1,
  23651. accessibleNameRequired: !0,
  23652. baseConcepts: [],
  23653. childrenPresentational: !1,
  23654. nameFrom: ["author"],
  23655. prohibitedProps: [],
  23656. props: {
  23657. "aria-disabled": null,
  23658. "aria-errormessage": null,
  23659. "aria-expanded": null,
  23660. "aria-haspopup": null,
  23661. "aria-invalid": null
  23662. },
  23663. relatedConcepts: [{
  23664. module: "GRAPHICS",
  23665. concept: {
  23666. name: "graphics-object"
  23667. }
  23668. }, {
  23669. module: "ARIA",
  23670. concept: {
  23671. name: "img"
  23672. }
  23673. }, {
  23674. module: "ARIA",
  23675. concept: {
  23676. name: "article"
  23677. }
  23678. }],
  23679. requireContextRole: [],
  23680. requiredContextRole: [],
  23681. requiredOwnedElements: [],
  23682. requiredProps: {},
  23683. superClass: [["roletype", "structure", "document"]]
  23684. }, _default = exports.default = graphicsDocumentRole;
  23685. }
  23686. });
  23687. // ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js
  23688. var require_graphicsObjectRole = __commonJS({
  23689. "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(exports) {
  23690. "use strict";
  23691. Object.defineProperty(exports, "__esModule", {
  23692. value: !0
  23693. });
  23694. exports.default = void 0;
  23695. var graphicsObjectRole = {
  23696. abstract: !1,
  23697. accessibleNameRequired: !1,
  23698. baseConcepts: [],
  23699. childrenPresentational: !1,
  23700. nameFrom: ["author", "contents"],
  23701. prohibitedProps: [],
  23702. props: {
  23703. "aria-errormessage": null,
  23704. "aria-expanded": null,
  23705. "aria-haspopup": null,
  23706. "aria-invalid": null
  23707. },
  23708. relatedConcepts: [{
  23709. module: "GRAPHICS",
  23710. concept: {
  23711. name: "graphics-document"
  23712. }
  23713. }, {
  23714. module: "ARIA",
  23715. concept: {
  23716. name: "group"
  23717. }
  23718. }, {
  23719. module: "ARIA",
  23720. concept: {
  23721. name: "img"
  23722. }
  23723. }, {
  23724. module: "GRAPHICS",
  23725. concept: {
  23726. name: "graphics-symbol"
  23727. }
  23728. }],
  23729. requireContextRole: [],
  23730. requiredContextRole: [],
  23731. requiredOwnedElements: [],
  23732. requiredProps: {},
  23733. superClass: [["roletype", "structure", "section", "group"]]
  23734. }, _default = exports.default = graphicsObjectRole;
  23735. }
  23736. });
  23737. // ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js
  23738. var require_graphicsSymbolRole = __commonJS({
  23739. "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(exports) {
  23740. "use strict";
  23741. Object.defineProperty(exports, "__esModule", {
  23742. value: !0
  23743. });
  23744. exports.default = void 0;
  23745. var graphicsSymbolRole = {
  23746. abstract: !1,
  23747. accessibleNameRequired: !0,
  23748. baseConcepts: [],
  23749. childrenPresentational: !0,
  23750. nameFrom: ["author"],
  23751. prohibitedProps: [],
  23752. props: {
  23753. "aria-disabled": null,
  23754. "aria-errormessage": null,
  23755. "aria-expanded": null,
  23756. "aria-haspopup": null,
  23757. "aria-invalid": null
  23758. },
  23759. relatedConcepts: [],
  23760. requireContextRole: [],
  23761. requiredContextRole: [],
  23762. requiredOwnedElements: [],
  23763. requiredProps: {},
  23764. superClass: [["roletype", "structure", "section", "img"]]
  23765. }, _default = exports.default = graphicsSymbolRole;
  23766. }
  23767. });
  23768. // ../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js
  23769. var require_ariaGraphicsRoles = __commonJS({
  23770. "../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(exports) {
  23771. "use strict";
  23772. Object.defineProperty(exports, "__esModule", {
  23773. value: !0
  23774. });
  23775. exports.default = void 0;
  23776. var _graphicsDocumentRole = _interopRequireDefault(require_graphicsDocumentRole()), _graphicsObjectRole = _interopRequireDefault(require_graphicsObjectRole()), _graphicsSymbolRole = _interopRequireDefault(require_graphicsSymbolRole());
  23777. function _interopRequireDefault(e) {
  23778. return e && e.__esModule ? e : { default: e };
  23779. }
  23780. var ariaGraphicsRoles = [["graphics-document", _graphicsDocumentRole.default], ["graphics-object", _graphicsObjectRole.default], ["graphics-symbol", _graphicsSymbolRole.default]], _default = exports.default = ariaGraphicsRoles;
  23781. }
  23782. });
  23783. // ../../node_modules/aria-query/lib/rolesMap.js
  23784. var require_rolesMap = __commonJS({
  23785. "../../node_modules/aria-query/lib/rolesMap.js"(exports) {
  23786. "use strict";
  23787. Object.defineProperty(exports, "__esModule", {
  23788. value: !0
  23789. });
  23790. exports.default = void 0;
  23791. var _ariaAbstractRoles = _interopRequireDefault(require_ariaAbstractRoles()), _ariaLiteralRoles = _interopRequireDefault(require_ariaLiteralRoles()), _ariaDpubRoles = _interopRequireDefault(require_ariaDpubRoles()), _ariaGraphicsRoles = _interopRequireDefault(require_ariaGraphicsRoles()), _iterationDecorator = _interopRequireDefault(require_iterationDecorator());
  23792. function _interopRequireDefault(e) {
  23793. return e && e.__esModule ? e : { default: e };
  23794. }
  23795. function _createForOfIteratorHelper(r2, e) {
  23796. var t = typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  23797. if (!t) {
  23798. if (Array.isArray(r2) || (t = _unsupportedIterableToArray2(r2)) || e && r2 && typeof r2.length == "number") {
  23799. t && (r2 = t);
  23800. var _n = 0, F = function() {
  23801. };
  23802. return { s: F, n: function() {
  23803. return _n >= r2.length ? { done: !0 } : { done: !1, value: r2[_n++] };
  23804. }, e: function(r3) {
  23805. throw r3;
  23806. }, f: F };
  23807. }
  23808. throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  23809. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  23810. }
  23811. var o, a3 = !0, u2 = !1;
  23812. return { s: function() {
  23813. t = t.call(r2);
  23814. }, n: function() {
  23815. var r3 = t.next();
  23816. return a3 = r3.done, r3;
  23817. }, e: function(r3) {
  23818. u2 = !0, o = r3;
  23819. }, f: function() {
  23820. try {
  23821. a3 || t.return == null || t.return();
  23822. } finally {
  23823. if (u2) throw o;
  23824. }
  23825. } };
  23826. }
  23827. function _slicedToArray(r2, e) {
  23828. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  23829. }
  23830. function _nonIterableRest() {
  23831. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  23832. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  23833. }
  23834. function _unsupportedIterableToArray2(r2, a3) {
  23835. if (r2) {
  23836. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  23837. var t = {}.toString.call(r2).slice(8, -1);
  23838. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  23839. }
  23840. }
  23841. function _arrayLikeToArray2(r2, a3) {
  23842. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  23843. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  23844. return n;
  23845. }
  23846. function _iterableToArrayLimit(r2, l) {
  23847. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  23848. if (t != null) {
  23849. var e, n, i, u2, a3 = [], f4 = !0, o = !1;
  23850. try {
  23851. if (i = (t = t.call(r2)).next, l === 0) {
  23852. if (Object(t) !== t) return;
  23853. f4 = !1;
  23854. } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  23855. } catch (r3) {
  23856. o = !0, n = r3;
  23857. } finally {
  23858. try {
  23859. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  23860. } finally {
  23861. if (o) throw n;
  23862. }
  23863. }
  23864. return a3;
  23865. }
  23866. }
  23867. function _arrayWithHoles(r2) {
  23868. if (Array.isArray(r2)) return r2;
  23869. }
  23870. var roles3 = [].concat(_ariaAbstractRoles.default, _ariaLiteralRoles.default, _ariaDpubRoles.default, _ariaGraphicsRoles.default);
  23871. roles3.forEach(function(_ref) {
  23872. var _ref2 = _slicedToArray(_ref, 2), roleDefinition = _ref2[1], _iterator = _createForOfIteratorHelper(roleDefinition.superClass), _step;
  23873. try {
  23874. for (_iterator.s(); !(_step = _iterator.n()).done; ) {
  23875. var superClassIter = _step.value, _iterator2 = _createForOfIteratorHelper(superClassIter), _step2;
  23876. try {
  23877. var _loop = function() {
  23878. var superClassName = _step2.value, superClassRoleTuple = roles3.filter(function(_ref3) {
  23879. var _ref4 = _slicedToArray(_ref3, 1), name = _ref4[0];
  23880. return name === superClassName;
  23881. })[0];
  23882. if (superClassRoleTuple)
  23883. for (var superClassDefinition = superClassRoleTuple[1], _i = 0, _Object$keys = Object.keys(superClassDefinition.props); _i < _Object$keys.length; _i++) {
  23884. var prop = _Object$keys[_i];
  23885. Object.prototype.hasOwnProperty.call(roleDefinition.props, prop) || (roleDefinition.props[prop] = superClassDefinition.props[prop]);
  23886. }
  23887. };
  23888. for (_iterator2.s(); !(_step2 = _iterator2.n()).done; )
  23889. _loop();
  23890. } catch (err) {
  23891. _iterator2.e(err);
  23892. } finally {
  23893. _iterator2.f();
  23894. }
  23895. }
  23896. } catch (err) {
  23897. _iterator.e(err);
  23898. } finally {
  23899. _iterator.f();
  23900. }
  23901. });
  23902. var rolesMap = {
  23903. entries: function() {
  23904. return roles3;
  23905. },
  23906. forEach: function(fn4) {
  23907. var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _iterator3 = _createForOfIteratorHelper(roles3), _step3;
  23908. try {
  23909. for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
  23910. var _step3$value = _slicedToArray(_step3.value, 2), key = _step3$value[0], values = _step3$value[1];
  23911. fn4.call(thisArg, values, key, roles3);
  23912. }
  23913. } catch (err) {
  23914. _iterator3.e(err);
  23915. } finally {
  23916. _iterator3.f();
  23917. }
  23918. },
  23919. get: function(key) {
  23920. var item = roles3.filter(function(tuple) {
  23921. return tuple[0] === key;
  23922. })[0];
  23923. return item && item[1];
  23924. },
  23925. has: function(key) {
  23926. return !!rolesMap.get(key);
  23927. },
  23928. keys: function() {
  23929. return roles3.map(function(_ref5) {
  23930. var _ref6 = _slicedToArray(_ref5, 1), key = _ref6[0];
  23931. return key;
  23932. });
  23933. },
  23934. values: function() {
  23935. return roles3.map(function(_ref7) {
  23936. var _ref8 = _slicedToArray(_ref7, 2), values2 = _ref8[1];
  23937. return values2;
  23938. });
  23939. }
  23940. }, _default = exports.default = (0, _iterationDecorator.default)(rolesMap, rolesMap.entries());
  23941. }
  23942. });
  23943. // ../../node_modules/aria-query/lib/elementRoleMap.js
  23944. var require_elementRoleMap = __commonJS({
  23945. "../../node_modules/aria-query/lib/elementRoleMap.js"(exports) {
  23946. "use strict";
  23947. Object.defineProperty(exports, "__esModule", {
  23948. value: !0
  23949. });
  23950. exports.default = void 0;
  23951. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()), _rolesMap = _interopRequireDefault(require_rolesMap());
  23952. function _interopRequireDefault(e) {
  23953. return e && e.__esModule ? e : { default: e };
  23954. }
  23955. function _slicedToArray(r2, e) {
  23956. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  23957. }
  23958. function _nonIterableRest() {
  23959. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  23960. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  23961. }
  23962. function _unsupportedIterableToArray2(r2, a3) {
  23963. if (r2) {
  23964. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  23965. var t = {}.toString.call(r2).slice(8, -1);
  23966. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  23967. }
  23968. }
  23969. function _arrayLikeToArray2(r2, a3) {
  23970. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  23971. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  23972. return n;
  23973. }
  23974. function _iterableToArrayLimit(r2, l) {
  23975. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  23976. if (t != null) {
  23977. var e, n, i2, u2, a3 = [], f4 = !0, o = !1;
  23978. try {
  23979. if (i2 = (t = t.call(r2)).next, l === 0) {
  23980. if (Object(t) !== t) return;
  23981. f4 = !1;
  23982. } else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  23983. } catch (r3) {
  23984. o = !0, n = r3;
  23985. } finally {
  23986. try {
  23987. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  23988. } finally {
  23989. if (o) throw n;
  23990. }
  23991. }
  23992. return a3;
  23993. }
  23994. }
  23995. function _arrayWithHoles(r2) {
  23996. if (Array.isArray(r2)) return r2;
  23997. }
  23998. var elementRoles3 = [], keys3 = _rolesMap.default.keys();
  23999. for (i = 0; i < keys3.length; i++)
  24000. if (key = keys3[i], role = _rolesMap.default.get(key), role)
  24001. for (concepts = [].concat(role.baseConcepts, role.relatedConcepts), _loop = function() {
  24002. var relation = concepts[k];
  24003. if (relation.module === "HTML") {
  24004. var concept = relation.concept;
  24005. if (concept) {
  24006. var elementRoleRelation = elementRoles3.filter(function(relation2) {
  24007. return ariaRoleRelationConceptEquals(relation2[0], concept);
  24008. })[0], roles3;
  24009. elementRoleRelation ? roles3 = elementRoleRelation[1] : roles3 = [];
  24010. for (var isUnique = !0, _i = 0; _i < roles3.length; _i++)
  24011. if (roles3[_i] === key) {
  24012. isUnique = !1;
  24013. break;
  24014. }
  24015. isUnique && roles3.push(key), elementRoleRelation || elementRoles3.push([concept, roles3]);
  24016. }
  24017. }
  24018. }, k = 0; k < concepts.length; k++)
  24019. _loop();
  24020. var key, role, concepts, _loop, k, i, elementRoleMap = {
  24021. entries: function() {
  24022. return elementRoles3;
  24023. },
  24024. forEach: function(fn4) {
  24025. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i2 = 0, _elementRoles = elementRoles3; _i2 < _elementRoles.length; _i2++) {
  24026. var _elementRoles$_i = _slicedToArray(_elementRoles[_i2], 2), _key = _elementRoles$_i[0], values = _elementRoles$_i[1];
  24027. fn4.call(thisArg, values, _key, elementRoles3);
  24028. }
  24029. },
  24030. get: function(key2) {
  24031. var item = elementRoles3.filter(function(tuple) {
  24032. return key2.name === tuple[0].name && ariaRoleRelationConceptAttributeEquals(key2.attributes, tuple[0].attributes);
  24033. })[0];
  24034. return item && item[1];
  24035. },
  24036. has: function(key2) {
  24037. return !!elementRoleMap.get(key2);
  24038. },
  24039. keys: function() {
  24040. return elementRoles3.map(function(_ref) {
  24041. var _ref2 = _slicedToArray(_ref, 1), key2 = _ref2[0];
  24042. return key2;
  24043. });
  24044. },
  24045. values: function() {
  24046. return elementRoles3.map(function(_ref3) {
  24047. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  24048. return values2;
  24049. });
  24050. }
  24051. };
  24052. function ariaRoleRelationConceptEquals(a3, b) {
  24053. return a3.name === b.name && ariaRoleRelationConstraintsEquals(a3.constraints, b.constraints) && ariaRoleRelationConceptAttributeEquals(a3.attributes, b.attributes);
  24054. }
  24055. function ariaRoleRelationConstraintsEquals(a3, b) {
  24056. if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0)
  24057. return !1;
  24058. if (a3 !== void 0 && b !== void 0) {
  24059. if (a3.length !== b.length)
  24060. return !1;
  24061. for (var _i3 = 0; _i3 < a3.length; _i3++)
  24062. if (a3[_i3] !== b[_i3])
  24063. return !1;
  24064. }
  24065. return !0;
  24066. }
  24067. function ariaRoleRelationConceptAttributeEquals(a3, b) {
  24068. if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0)
  24069. return !1;
  24070. if (a3 !== void 0 && b !== void 0) {
  24071. if (a3.length !== b.length)
  24072. return !1;
  24073. for (var _i4 = 0; _i4 < a3.length; _i4++) {
  24074. if (a3[_i4].name !== b[_i4].name || a3[_i4].value !== b[_i4].value || a3[_i4].constraints === void 0 && b[_i4].constraints !== void 0 || a3[_i4].constraints !== void 0 && b[_i4].constraints === void 0)
  24075. return !1;
  24076. if (a3[_i4].constraints !== void 0 && b[_i4].constraints !== void 0) {
  24077. if (a3[_i4].constraints.length !== b[_i4].constraints.length)
  24078. return !1;
  24079. for (var j = 0; j < a3[_i4].constraints.length; j++)
  24080. if (a3[_i4].constraints[j] !== b[_i4].constraints[j])
  24081. return !1;
  24082. }
  24083. }
  24084. }
  24085. return !0;
  24086. }
  24087. var _default = exports.default = (0, _iterationDecorator.default)(elementRoleMap, elementRoleMap.entries());
  24088. }
  24089. });
  24090. // ../../node_modules/aria-query/lib/roleElementMap.js
  24091. var require_roleElementMap = __commonJS({
  24092. "../../node_modules/aria-query/lib/roleElementMap.js"(exports) {
  24093. "use strict";
  24094. Object.defineProperty(exports, "__esModule", {
  24095. value: !0
  24096. });
  24097. exports.default = void 0;
  24098. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()), _rolesMap = _interopRequireDefault(require_rolesMap());
  24099. function _interopRequireDefault(e) {
  24100. return e && e.__esModule ? e : { default: e };
  24101. }
  24102. function _slicedToArray(r2, e) {
  24103. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  24104. }
  24105. function _nonIterableRest() {
  24106. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  24107. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  24108. }
  24109. function _unsupportedIterableToArray2(r2, a3) {
  24110. if (r2) {
  24111. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  24112. var t = {}.toString.call(r2).slice(8, -1);
  24113. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  24114. }
  24115. }
  24116. function _arrayLikeToArray2(r2, a3) {
  24117. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  24118. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  24119. return n;
  24120. }
  24121. function _iterableToArrayLimit(r2, l) {
  24122. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  24123. if (t != null) {
  24124. var e, n, i2, u2, a3 = [], f4 = !0, o = !1;
  24125. try {
  24126. if (i2 = (t = t.call(r2)).next, l === 0) {
  24127. if (Object(t) !== t) return;
  24128. f4 = !1;
  24129. } else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  24130. } catch (r3) {
  24131. o = !0, n = r3;
  24132. } finally {
  24133. try {
  24134. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  24135. } finally {
  24136. if (o) throw n;
  24137. }
  24138. }
  24139. return a3;
  24140. }
  24141. }
  24142. function _arrayWithHoles(r2) {
  24143. if (Array.isArray(r2)) return r2;
  24144. }
  24145. var roleElement = [], keys3 = _rolesMap.default.keys();
  24146. for (i = 0; i < keys3.length; i++)
  24147. if (key = keys3[i], role = _rolesMap.default.get(key), relationConcepts = [], role) {
  24148. for (concepts = [].concat(role.baseConcepts, role.relatedConcepts), k = 0; k < concepts.length; k++)
  24149. relation = concepts[k], relation.module === "HTML" && (concept = relation.concept, concept != null && relationConcepts.push(concept));
  24150. relationConcepts.length > 0 && roleElement.push([key, relationConcepts]);
  24151. }
  24152. var key, role, relationConcepts, concepts, relation, concept, k, i, roleElementMap = {
  24153. entries: function() {
  24154. return roleElement;
  24155. },
  24156. forEach: function(fn4) {
  24157. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _roleElement = roleElement; _i < _roleElement.length; _i++) {
  24158. var _roleElement$_i = _slicedToArray(_roleElement[_i], 2), _key = _roleElement$_i[0], values = _roleElement$_i[1];
  24159. fn4.call(thisArg, values, _key, roleElement);
  24160. }
  24161. },
  24162. get: function(key2) {
  24163. var item = roleElement.filter(function(tuple) {
  24164. return tuple[0] === key2;
  24165. })[0];
  24166. return item && item[1];
  24167. },
  24168. has: function(key2) {
  24169. return !!roleElementMap.get(key2);
  24170. },
  24171. keys: function() {
  24172. return roleElement.map(function(_ref) {
  24173. var _ref2 = _slicedToArray(_ref, 1), key2 = _ref2[0];
  24174. return key2;
  24175. });
  24176. },
  24177. values: function() {
  24178. return roleElement.map(function(_ref3) {
  24179. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  24180. return values2;
  24181. });
  24182. }
  24183. }, _default = exports.default = (0, _iterationDecorator.default)(roleElementMap, roleElementMap.entries());
  24184. }
  24185. });
  24186. // ../../node_modules/aria-query/lib/index.js
  24187. var require_lib2 = __commonJS({
  24188. "../../node_modules/aria-query/lib/index.js"(exports) {
  24189. "use strict";
  24190. Object.defineProperty(exports, "__esModule", {
  24191. value: !0
  24192. });
  24193. exports.roles = exports.roleElements = exports.elementRoles = exports.dom = exports.aria = void 0;
  24194. var _ariaPropsMap = _interopRequireDefault(require_ariaPropsMap()), _domMap = _interopRequireDefault(require_domMap()), _rolesMap = _interopRequireDefault(require_rolesMap()), _elementRoleMap = _interopRequireDefault(require_elementRoleMap()), _roleElementMap = _interopRequireDefault(require_roleElementMap());
  24195. function _interopRequireDefault(e) {
  24196. return e && e.__esModule ? e : { default: e };
  24197. }
  24198. var aria = exports.aria = _ariaPropsMap.default, dom = exports.dom = _domMap.default, roles3 = exports.roles = _rolesMap.default, elementRoles3 = exports.elementRoles = _elementRoleMap.default, roleElements2 = exports.roleElements = _roleElementMap.default;
  24199. }
  24200. });
  24201. // ../../node_modules/css.escape/css.escape.js
  24202. var require_css_escape = __commonJS({
  24203. "../../node_modules/css.escape/css.escape.js"(exports, module2) {
  24204. (function(root2, factory) {
  24205. typeof exports == "object" ? module2.exports = factory(root2) : typeof define == "function" && define.amd ? define([], factory.bind(root2, root2)) : factory(root2);
  24206. })(typeof global < "u" ? global : exports, function(root2) {
  24207. if (root2.CSS && root2.CSS.escape)
  24208. return root2.CSS.escape;
  24209. var cssEscape = function(value) {
  24210. if (arguments.length == 0)
  24211. throw new TypeError("`CSS.escape` requires an argument.");
  24212. for (var string = String(value), length2 = string.length, index4 = -1, codeUnit, result = "", firstCodeUnit = string.charCodeAt(0); ++index4 < length2; ) {
  24213. if (codeUnit = string.charCodeAt(index4), codeUnit == 0) {
  24214. result += "\uFFFD";
  24215. continue;
  24216. }
  24217. if (
  24218. // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
  24219. // U+007F, […]
  24220. codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || // If the character is the first character and is in the range [0-9]
  24221. // (U+0030 to U+0039), […]
  24222. index4 == 0 && codeUnit >= 48 && codeUnit <= 57 || // If the character is the second character and is in the range [0-9]
  24223. // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
  24224. index4 == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45
  24225. ) {
  24226. result += "\\" + codeUnit.toString(16) + " ";
  24227. continue;
  24228. }
  24229. if (
  24230. // If the character is the first character and is a `-` (U+002D), and
  24231. // there is no second character, […]
  24232. index4 == 0 && length2 == 1 && codeUnit == 45
  24233. ) {
  24234. result += "\\" + string.charAt(index4);
  24235. continue;
  24236. }
  24237. if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
  24238. result += string.charAt(index4);
  24239. continue;
  24240. }
  24241. result += "\\" + string.charAt(index4);
  24242. }
  24243. return result;
  24244. };
  24245. return root2.CSS || (root2.CSS = {}), root2.CSS.escape = cssEscape, cssEscape;
  24246. });
  24247. }
  24248. });
  24249. // ../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js
  24250. var require_ansi_styles = __commonJS({
  24251. "../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(exports, module2) {
  24252. "use strict";
  24253. var wrapAnsi256 = (offset3 = 0) => (code) => `\x1B[${38 + offset3};5;${code}m`, wrapAnsi16m = (offset3 = 0) => (red, green, blue) => `\x1B[${38 + offset3};2;${red};${green};${blue}m`;
  24254. function assembleStyles() {
  24255. let codes = /* @__PURE__ */ new Map(), styles4 = {
  24256. modifier: {
  24257. reset: [0, 0],
  24258. // 21 isn't widely supported and 22 does the same thing
  24259. bold: [1, 22],
  24260. dim: [2, 22],
  24261. italic: [3, 23],
  24262. underline: [4, 24],
  24263. overline: [53, 55],
  24264. inverse: [7, 27],
  24265. hidden: [8, 28],
  24266. strikethrough: [9, 29]
  24267. },
  24268. color: {
  24269. black: [30, 39],
  24270. red: [31, 39],
  24271. green: [32, 39],
  24272. yellow: [33, 39],
  24273. blue: [34, 39],
  24274. magenta: [35, 39],
  24275. cyan: [36, 39],
  24276. white: [37, 39],
  24277. // Bright color
  24278. blackBright: [90, 39],
  24279. redBright: [91, 39],
  24280. greenBright: [92, 39],
  24281. yellowBright: [93, 39],
  24282. blueBright: [94, 39],
  24283. magentaBright: [95, 39],
  24284. cyanBright: [96, 39],
  24285. whiteBright: [97, 39]
  24286. },
  24287. bgColor: {
  24288. bgBlack: [40, 49],
  24289. bgRed: [41, 49],
  24290. bgGreen: [42, 49],
  24291. bgYellow: [43, 49],
  24292. bgBlue: [44, 49],
  24293. bgMagenta: [45, 49],
  24294. bgCyan: [46, 49],
  24295. bgWhite: [47, 49],
  24296. // Bright color
  24297. bgBlackBright: [100, 49],
  24298. bgRedBright: [101, 49],
  24299. bgGreenBright: [102, 49],
  24300. bgYellowBright: [103, 49],
  24301. bgBlueBright: [104, 49],
  24302. bgMagentaBright: [105, 49],
  24303. bgCyanBright: [106, 49],
  24304. bgWhiteBright: [107, 49]
  24305. }
  24306. };
  24307. styles4.color.gray = styles4.color.blackBright, styles4.bgColor.bgGray = styles4.bgColor.bgBlackBright, styles4.color.grey = styles4.color.blackBright, styles4.bgColor.bgGrey = styles4.bgColor.bgBlackBright;
  24308. for (let [groupName, group] of Object.entries(styles4)) {
  24309. for (let [styleName, style] of Object.entries(group))
  24310. styles4[styleName] = {
  24311. open: `\x1B[${style[0]}m`,
  24312. close: `\x1B[${style[1]}m`
  24313. }, group[styleName] = styles4[styleName], codes.set(style[0], style[1]);
  24314. Object.defineProperty(styles4, groupName, {
  24315. value: group,
  24316. enumerable: !1
  24317. });
  24318. }
  24319. return Object.defineProperty(styles4, "codes", {
  24320. value: codes,
  24321. enumerable: !1
  24322. }), styles4.color.close = "\x1B[39m", styles4.bgColor.close = "\x1B[49m", styles4.color.ansi256 = wrapAnsi256(), styles4.color.ansi16m = wrapAnsi16m(), styles4.bgColor.ansi256 = wrapAnsi256(10), styles4.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles4, {
  24323. rgbToAnsi256: {
  24324. value: (red, green, blue) => red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5),
  24325. enumerable: !1
  24326. },
  24327. hexToRgb: {
  24328. value: (hex3) => {
  24329. let matches4 = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex3.toString(16));
  24330. if (!matches4)
  24331. return [0, 0, 0];
  24332. let { colorString } = matches4.groups;
  24333. colorString.length === 3 && (colorString = colorString.split("").map((character2) => character2 + character2).join(""));
  24334. let integer = Number.parseInt(colorString, 16);
  24335. return [
  24336. integer >> 16 & 255,
  24337. integer >> 8 & 255,
  24338. integer & 255
  24339. ];
  24340. },
  24341. enumerable: !1
  24342. },
  24343. hexToAnsi256: {
  24344. value: (hex3) => styles4.rgbToAnsi256(...styles4.hexToRgb(hex3)),
  24345. enumerable: !1
  24346. }
  24347. }), styles4;
  24348. }
  24349. Object.defineProperty(module2, "exports", {
  24350. enumerable: !0,
  24351. get: assembleStyles
  24352. });
  24353. }
  24354. });
  24355. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js
  24356. var require_collections = __commonJS({
  24357. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(exports) {
  24358. "use strict";
  24359. Object.defineProperty(exports, "__esModule", {
  24360. value: !0
  24361. });
  24362. exports.printIteratorEntries = printIteratorEntries2;
  24363. exports.printIteratorValues = printIteratorValues2;
  24364. exports.printListItems = printListItems2;
  24365. exports.printObjectProperties = printObjectProperties2;
  24366. var getKeysOfEnumerableProperties2 = (object, compareKeys) => {
  24367. let keys3 = Object.keys(object).sort(compareKeys);
  24368. return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(object).forEach((symbol) => {
  24369. Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys3.push(symbol);
  24370. }), keys3;
  24371. };
  24372. function printIteratorEntries2(iterator, config4, indentation, depth, refs, printer2, separator = ": ") {
  24373. let result = "", current = iterator.next();
  24374. if (!current.done) {
  24375. result += config4.spacingOuter;
  24376. let indentationNext = indentation + config4.indent;
  24377. for (; !current.done; ) {
  24378. let name = printer2(
  24379. current.value[0],
  24380. config4,
  24381. indentationNext,
  24382. depth,
  24383. refs
  24384. ), value = printer2(
  24385. current.value[1],
  24386. config4,
  24387. indentationNext,
  24388. depth,
  24389. refs
  24390. );
  24391. result += indentationNext + name + separator + value, current = iterator.next(), current.done ? config4.min || (result += ",") : result += "," + config4.spacingInner;
  24392. }
  24393. result += config4.spacingOuter + indentation;
  24394. }
  24395. return result;
  24396. }
  24397. function printIteratorValues2(iterator, config4, indentation, depth, refs, printer2) {
  24398. let result = "", current = iterator.next();
  24399. if (!current.done) {
  24400. result += config4.spacingOuter;
  24401. let indentationNext = indentation + config4.indent;
  24402. for (; !current.done; )
  24403. result += indentationNext + printer2(current.value, config4, indentationNext, depth, refs), current = iterator.next(), current.done ? config4.min || (result += ",") : result += "," + config4.spacingInner;
  24404. result += config4.spacingOuter + indentation;
  24405. }
  24406. return result;
  24407. }
  24408. function printListItems2(list, config4, indentation, depth, refs, printer2) {
  24409. let result = "";
  24410. if (list.length) {
  24411. result += config4.spacingOuter;
  24412. let indentationNext = indentation + config4.indent;
  24413. for (let i = 0; i < list.length; i++)
  24414. result += indentationNext, i in list && (result += printer2(list[i], config4, indentationNext, depth, refs)), i < list.length - 1 ? result += "," + config4.spacingInner : config4.min || (result += ",");
  24415. result += config4.spacingOuter + indentation;
  24416. }
  24417. return result;
  24418. }
  24419. function printObjectProperties2(val, config4, indentation, depth, refs, printer2) {
  24420. let result = "", keys3 = getKeysOfEnumerableProperties2(val, config4.compareKeys);
  24421. if (keys3.length) {
  24422. result += config4.spacingOuter;
  24423. let indentationNext = indentation + config4.indent;
  24424. for (let i = 0; i < keys3.length; i++) {
  24425. let key = keys3[i], name = printer2(key, config4, indentationNext, depth, refs), value = printer2(val[key], config4, indentationNext, depth, refs);
  24426. result += indentationNext + name + ": " + value, i < keys3.length - 1 ? result += "," + config4.spacingInner : config4.min || (result += ",");
  24427. }
  24428. result += config4.spacingOuter + indentation;
  24429. }
  24430. return result;
  24431. }
  24432. }
  24433. });
  24434. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
  24435. var require_AsymmetricMatcher = __commonJS({
  24436. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
  24437. "use strict";
  24438. Object.defineProperty(exports, "__esModule", {
  24439. value: !0
  24440. });
  24441. exports.test = exports.serialize = exports.default = void 0;
  24442. var _collections = require_collections(), global2 = (function() {
  24443. return typeof globalThis < "u" ? globalThis : typeof global2 < "u" ? global2 : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
  24444. })(), Symbol3 = global2["jest-symbol-do-not-touch"] || global2.Symbol, asymmetricMatcher2 = typeof Symbol3 == "function" && Symbol3.for ? Symbol3.for("jest.asymmetricMatcher") : 1267621, SPACE2 = " ", serialize3 = (val, config4, indentation, depth, refs, printer2) => {
  24445. let stringedValue = val.toString();
  24446. return stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining" ? ++depth > config4.maxDepth ? "[" + stringedValue + "]" : stringedValue + SPACE2 + "[" + (0, _collections.printListItems)(
  24447. val.sample,
  24448. config4,
  24449. indentation,
  24450. depth,
  24451. refs,
  24452. printer2
  24453. ) + "]" : stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining" ? ++depth > config4.maxDepth ? "[" + stringedValue + "]" : stringedValue + SPACE2 + "{" + (0, _collections.printObjectProperties)(
  24454. val.sample,
  24455. config4,
  24456. indentation,
  24457. depth,
  24458. refs,
  24459. printer2
  24460. ) + "}" : stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining" ? stringedValue + SPACE2 + printer2(val.sample, config4, indentation, depth, refs) : val.toAsymmetricMatcher();
  24461. };
  24462. exports.serialize = serialize3;
  24463. var test3 = (val) => val && val.$$typeof === asymmetricMatcher2;
  24464. exports.test = test3;
  24465. var plugin2 = {
  24466. serialize: serialize3,
  24467. test: test3
  24468. }, _default = plugin2;
  24469. exports.default = _default;
  24470. }
  24471. });
  24472. // ../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js
  24473. var require_ansi_regex = __commonJS({
  24474. "../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(exports, module2) {
  24475. "use strict";
  24476. module2.exports = ({ onlyFirst = !1 } = {}) => {
  24477. let pattern = [
  24478. "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
  24479. "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
  24480. ].join("|");
  24481. return new RegExp(pattern, onlyFirst ? void 0 : "g");
  24482. };
  24483. }
  24484. });
  24485. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js
  24486. var require_ConvertAnsi = __commonJS({
  24487. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
  24488. "use strict";
  24489. Object.defineProperty(exports, "__esModule", {
  24490. value: !0
  24491. });
  24492. exports.test = exports.serialize = exports.default = void 0;
  24493. var _ansiRegex = _interopRequireDefault(require_ansi_regex()), _ansiStyles = _interopRequireDefault(require_ansi_styles());
  24494. function _interopRequireDefault(obj) {
  24495. return obj && obj.__esModule ? obj : { default: obj };
  24496. }
  24497. var toHumanReadableAnsi = (text) => text.replace((0, _ansiRegex.default)(), (match3) => {
  24498. switch (match3) {
  24499. case _ansiStyles.default.red.close:
  24500. case _ansiStyles.default.green.close:
  24501. case _ansiStyles.default.cyan.close:
  24502. case _ansiStyles.default.gray.close:
  24503. case _ansiStyles.default.white.close:
  24504. case _ansiStyles.default.yellow.close:
  24505. case _ansiStyles.default.bgRed.close:
  24506. case _ansiStyles.default.bgGreen.close:
  24507. case _ansiStyles.default.bgYellow.close:
  24508. case _ansiStyles.default.inverse.close:
  24509. case _ansiStyles.default.dim.close:
  24510. case _ansiStyles.default.bold.close:
  24511. case _ansiStyles.default.reset.open:
  24512. case _ansiStyles.default.reset.close:
  24513. return "</>";
  24514. case _ansiStyles.default.red.open:
  24515. return "<red>";
  24516. case _ansiStyles.default.green.open:
  24517. return "<green>";
  24518. case _ansiStyles.default.cyan.open:
  24519. return "<cyan>";
  24520. case _ansiStyles.default.gray.open:
  24521. return "<gray>";
  24522. case _ansiStyles.default.white.open:
  24523. return "<white>";
  24524. case _ansiStyles.default.yellow.open:
  24525. return "<yellow>";
  24526. case _ansiStyles.default.bgRed.open:
  24527. return "<bgRed>";
  24528. case _ansiStyles.default.bgGreen.open:
  24529. return "<bgGreen>";
  24530. case _ansiStyles.default.bgYellow.open:
  24531. return "<bgYellow>";
  24532. case _ansiStyles.default.inverse.open:
  24533. return "<inverse>";
  24534. case _ansiStyles.default.dim.open:
  24535. return "<dim>";
  24536. case _ansiStyles.default.bold.open:
  24537. return "<bold>";
  24538. default:
  24539. return "";
  24540. }
  24541. }), test3 = (val) => typeof val == "string" && !!val.match((0, _ansiRegex.default)());
  24542. exports.test = test3;
  24543. var serialize3 = (val, config4, indentation, depth, refs, printer2) => printer2(toHumanReadableAnsi(val), config4, indentation, depth, refs);
  24544. exports.serialize = serialize3;
  24545. var plugin2 = {
  24546. serialize: serialize3,
  24547. test: test3
  24548. }, _default = plugin2;
  24549. exports.default = _default;
  24550. }
  24551. });
  24552. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js
  24553. var require_DOMCollection = __commonJS({
  24554. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
  24555. "use strict";
  24556. Object.defineProperty(exports, "__esModule", {
  24557. value: !0
  24558. });
  24559. exports.test = exports.serialize = exports.default = void 0;
  24560. var _collections = require_collections(), SPACE2 = " ", OBJECT_NAMES2 = ["DOMStringMap", "NamedNodeMap"], ARRAY_REGEXP2 = /^(HTML\w*Collection|NodeList)$/, testName2 = (name) => OBJECT_NAMES2.indexOf(name) !== -1 || ARRAY_REGEXP2.test(name), test3 = (val) => val && val.constructor && !!val.constructor.name && testName2(val.constructor.name);
  24561. exports.test = test3;
  24562. var isNamedNodeMap2 = (collection) => collection.constructor.name === "NamedNodeMap", serialize3 = (collection, config4, indentation, depth, refs, printer2) => {
  24563. let name = collection.constructor.name;
  24564. return ++depth > config4.maxDepth ? "[" + name + "]" : (config4.min ? "" : name + SPACE2) + (OBJECT_NAMES2.indexOf(name) !== -1 ? "{" + (0, _collections.printObjectProperties)(
  24565. isNamedNodeMap2(collection) ? Array.from(collection).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection },
  24566. config4,
  24567. indentation,
  24568. depth,
  24569. refs,
  24570. printer2
  24571. ) + "}" : "[" + (0, _collections.printListItems)(
  24572. Array.from(collection),
  24573. config4,
  24574. indentation,
  24575. depth,
  24576. refs,
  24577. printer2
  24578. ) + "]");
  24579. };
  24580. exports.serialize = serialize3;
  24581. var plugin2 = {
  24582. serialize: serialize3,
  24583. test: test3
  24584. }, _default = plugin2;
  24585. exports.default = _default;
  24586. }
  24587. });
  24588. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
  24589. var require_escapeHTML = __commonJS({
  24590. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
  24591. "use strict";
  24592. Object.defineProperty(exports, "__esModule", {
  24593. value: !0
  24594. });
  24595. exports.default = escapeHTML3;
  24596. function escapeHTML3(str2) {
  24597. return str2.replace(/</g, "&lt;").replace(/>/g, "&gt;");
  24598. }
  24599. }
  24600. });
  24601. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js
  24602. var require_markup2 = __commonJS({
  24603. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
  24604. "use strict";
  24605. Object.defineProperty(exports, "__esModule", {
  24606. value: !0
  24607. });
  24608. exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
  24609. var _escapeHTML = _interopRequireDefault(require_escapeHTML());
  24610. function _interopRequireDefault(obj) {
  24611. return obj && obj.__esModule ? obj : { default: obj };
  24612. }
  24613. var printProps3 = (keys3, props, config4, indentation, depth, refs, printer2) => {
  24614. let indentationNext = indentation + config4.indent, colors3 = config4.colors;
  24615. return keys3.map((key) => {
  24616. let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs);
  24617. return typeof value != "string" && (printed.indexOf(`
  24618. `) !== -1 && (printed = config4.spacingOuter + indentationNext + printed + config4.spacingOuter + indentation), printed = "{" + printed + "}"), config4.spacingInner + indentation + colors3.prop.open + key + colors3.prop.close + "=" + colors3.value.open + printed + colors3.value.close;
  24619. }).join("");
  24620. };
  24621. exports.printProps = printProps3;
  24622. var printChildren3 = (children, config4, indentation, depth, refs, printer2) => children.map(
  24623. (child) => config4.spacingOuter + indentation + (typeof child == "string" ? printText3(child, config4) : printer2(child, config4, indentation, depth, refs))
  24624. ).join("");
  24625. exports.printChildren = printChildren3;
  24626. var printText3 = (text, config4) => {
  24627. let contentColor = config4.colors.content;
  24628. return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
  24629. };
  24630. exports.printText = printText3;
  24631. var printComment3 = (comment2, config4) => {
  24632. let commentColor = config4.colors.comment;
  24633. return commentColor.open + "<!--" + (0, _escapeHTML.default)(comment2) + "-->" + commentColor.close;
  24634. };
  24635. exports.printComment = printComment3;
  24636. var printElement3 = (type5, printedProps, printedChildren, config4, indentation) => {
  24637. let tagColor = config4.colors.tag;
  24638. return tagColor.open + "<" + type5 + (printedProps && tagColor.close + printedProps + config4.spacingOuter + indentation + tagColor.open) + (printedChildren ? ">" + tagColor.close + printedChildren + config4.spacingOuter + indentation + tagColor.open + "</" + type5 : (printedProps && !config4.min ? "" : " ") + "/") + ">" + tagColor.close;
  24639. };
  24640. exports.printElement = printElement3;
  24641. var printElementAsLeaf3 = (type5, config4) => {
  24642. let tagColor = config4.colors.tag;
  24643. return tagColor.open + "<" + type5 + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close;
  24644. };
  24645. exports.printElementAsLeaf = printElementAsLeaf3;
  24646. }
  24647. });
  24648. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js
  24649. var require_DOMElement = __commonJS({
  24650. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
  24651. "use strict";
  24652. Object.defineProperty(exports, "__esModule", {
  24653. value: !0
  24654. });
  24655. exports.test = exports.serialize = exports.default = void 0;
  24656. var _markup = require_markup2(), ELEMENT_NODE3 = 1, TEXT_NODE3 = 3, COMMENT_NODE3 = 8, FRAGMENT_NODE3 = 11, ELEMENT_REGEXP3 = /^((HTML|SVG)\w*)?Element$/, testHasAttribute2 = (val) => {
  24657. try {
  24658. return typeof val.hasAttribute == "function" && val.hasAttribute("is");
  24659. } catch {
  24660. return !1;
  24661. }
  24662. }, testNode3 = (val) => {
  24663. let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement3 = typeof tagName == "string" && tagName.includes("-") || testHasAttribute2(val);
  24664. return nodeType === ELEMENT_NODE3 && (ELEMENT_REGEXP3.test(constructorName) || isCustomElement3) || nodeType === TEXT_NODE3 && constructorName === "Text" || nodeType === COMMENT_NODE3 && constructorName === "Comment" || nodeType === FRAGMENT_NODE3 && constructorName === "DocumentFragment";
  24665. }, test3 = (val) => {
  24666. var _val$constructor;
  24667. return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode3(val);
  24668. };
  24669. exports.test = test3;
  24670. function nodeIsText3(node2) {
  24671. return node2.nodeType === TEXT_NODE3;
  24672. }
  24673. function nodeIsComment3(node2) {
  24674. return node2.nodeType === COMMENT_NODE3;
  24675. }
  24676. function nodeIsFragment3(node2) {
  24677. return node2.nodeType === FRAGMENT_NODE3;
  24678. }
  24679. var serialize3 = (node2, config4, indentation, depth, refs, printer2) => {
  24680. if (nodeIsText3(node2))
  24681. return (0, _markup.printText)(node2.data, config4);
  24682. if (nodeIsComment3(node2))
  24683. return (0, _markup.printComment)(node2.data, config4);
  24684. let type5 = nodeIsFragment3(node2) ? "DocumentFragment" : node2.tagName.toLowerCase();
  24685. return ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(type5, config4) : (0, _markup.printElement)(
  24686. type5,
  24687. (0, _markup.printProps)(
  24688. nodeIsFragment3(node2) ? [] : Array.from(node2.attributes).map((attr) => attr.name).sort(),
  24689. nodeIsFragment3(node2) ? {} : Array.from(node2.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}),
  24690. config4,
  24691. indentation + config4.indent,
  24692. depth,
  24693. refs,
  24694. printer2
  24695. ),
  24696. (0, _markup.printChildren)(
  24697. Array.prototype.slice.call(node2.childNodes || node2.children),
  24698. config4,
  24699. indentation + config4.indent,
  24700. depth,
  24701. refs,
  24702. printer2
  24703. ),
  24704. config4,
  24705. indentation
  24706. );
  24707. };
  24708. exports.serialize = serialize3;
  24709. var plugin2 = {
  24710. serialize: serialize3,
  24711. test: test3
  24712. }, _default = plugin2;
  24713. exports.default = _default;
  24714. }
  24715. });
  24716. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js
  24717. var require_Immutable = __commonJS({
  24718. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
  24719. "use strict";
  24720. Object.defineProperty(exports, "__esModule", {
  24721. value: !0
  24722. });
  24723. exports.test = exports.serialize = exports.default = void 0;
  24724. var _collections = require_collections(), IS_ITERABLE_SENTINEL2 = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL3 = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL3 = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL2 = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL3 = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL2 = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL2 = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL3 = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL2 = "@@__IMMUTABLE_STACK__@@", getImmutableName2 = (name) => "Immutable." + name, printAsLeaf2 = (name) => "[" + name + "]", SPACE2 = " ", LAZY2 = "\u2026", printImmutableEntries2 = (val, config4, indentation, depth, refs, printer2, type5) => ++depth > config4.maxDepth ? printAsLeaf2(getImmutableName2(type5)) : getImmutableName2(type5) + SPACE2 + "{" + (0, _collections.printIteratorEntries)(
  24725. val.entries(),
  24726. config4,
  24727. indentation,
  24728. depth,
  24729. refs,
  24730. printer2
  24731. ) + "}";
  24732. function getRecordEntries2(val) {
  24733. let i = 0;
  24734. return {
  24735. next() {
  24736. if (i < val._keys.length) {
  24737. let key = val._keys[i++];
  24738. return {
  24739. done: !1,
  24740. value: [key, val.get(key)]
  24741. };
  24742. }
  24743. return {
  24744. done: !0,
  24745. value: void 0
  24746. };
  24747. }
  24748. };
  24749. }
  24750. var printImmutableRecord2 = (val, config4, indentation, depth, refs, printer2) => {
  24751. let name = getImmutableName2(val._name || "Record");
  24752. return ++depth > config4.maxDepth ? printAsLeaf2(name) : name + SPACE2 + "{" + (0, _collections.printIteratorEntries)(
  24753. getRecordEntries2(val),
  24754. config4,
  24755. indentation,
  24756. depth,
  24757. refs,
  24758. printer2
  24759. ) + "}";
  24760. }, printImmutableSeq2 = (val, config4, indentation, depth, refs, printer2) => {
  24761. let name = getImmutableName2("Seq");
  24762. return ++depth > config4.maxDepth ? printAsLeaf2(name) : val[IS_KEYED_SENTINEL3] ? name + SPACE2 + "{" + // from Immutable collection of entries or from ECMAScript object
  24763. (val._iter || val._object ? (0, _collections.printIteratorEntries)(
  24764. val.entries(),
  24765. config4,
  24766. indentation,
  24767. depth,
  24768. refs,
  24769. printer2
  24770. ) : LAZY2) + "}" : name + SPACE2 + "[" + (val._iter || // from Immutable collection of values
  24771. val._array || // from ECMAScript array
  24772. val._collection || // from ECMAScript collection in immutable v4
  24773. val._iterable ? (0, _collections.printIteratorValues)(
  24774. val.values(),
  24775. config4,
  24776. indentation,
  24777. depth,
  24778. refs,
  24779. printer2
  24780. ) : LAZY2) + "]";
  24781. }, printImmutableValues2 = (val, config4, indentation, depth, refs, printer2, type5) => ++depth > config4.maxDepth ? printAsLeaf2(getImmutableName2(type5)) : getImmutableName2(type5) + SPACE2 + "[" + (0, _collections.printIteratorValues)(
  24782. val.values(),
  24783. config4,
  24784. indentation,
  24785. depth,
  24786. refs,
  24787. printer2
  24788. ) + "]", serialize3 = (val, config4, indentation, depth, refs, printer2) => val[IS_MAP_SENTINEL2] ? printImmutableEntries2(
  24789. val,
  24790. config4,
  24791. indentation,
  24792. depth,
  24793. refs,
  24794. printer2,
  24795. val[IS_ORDERED_SENTINEL3] ? "OrderedMap" : "Map"
  24796. ) : val[IS_LIST_SENTINEL3] ? printImmutableValues2(
  24797. val,
  24798. config4,
  24799. indentation,
  24800. depth,
  24801. refs,
  24802. printer2,
  24803. "List"
  24804. ) : val[IS_SET_SENTINEL3] ? printImmutableValues2(
  24805. val,
  24806. config4,
  24807. indentation,
  24808. depth,
  24809. refs,
  24810. printer2,
  24811. val[IS_ORDERED_SENTINEL3] ? "OrderedSet" : "Set"
  24812. ) : val[IS_STACK_SENTINEL2] ? printImmutableValues2(
  24813. val,
  24814. config4,
  24815. indentation,
  24816. depth,
  24817. refs,
  24818. printer2,
  24819. "Stack"
  24820. ) : val[IS_SEQ_SENTINEL2] ? printImmutableSeq2(val, config4, indentation, depth, refs, printer2) : printImmutableRecord2(val, config4, indentation, depth, refs, printer2);
  24821. exports.serialize = serialize3;
  24822. var test3 = (val) => val && (val[IS_ITERABLE_SENTINEL2] === !0 || val[IS_RECORD_SENTINEL2] === !0);
  24823. exports.test = test3;
  24824. var plugin2 = {
  24825. serialize: serialize3,
  24826. test: test3
  24827. }, _default = plugin2;
  24828. exports.default = _default;
  24829. }
  24830. });
  24831. // ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js
  24832. var require_react_is_production_min2 = __commonJS({
  24833. "../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
  24834. "use strict";
  24835. var b = 60103, c = 60106, d = 60107, e = 60108, f4 = 60114, g2 = 60109, h3 = 60110, k = 60112, l = 60113, m3 = 60120, n = 60115, p3 = 60116, q = 60121, r2 = 60122, u2 = 60117, v = 60129, w = 60131;
  24836. typeof Symbol == "function" && Symbol.for && (x = Symbol.for, b = x("react.element"), c = x("react.portal"), d = x("react.fragment"), e = x("react.strict_mode"), f4 = x("react.profiler"), g2 = x("react.provider"), h3 = x("react.context"), k = x("react.forward_ref"), l = x("react.suspense"), m3 = x("react.suspense_list"), n = x("react.memo"), p3 = x("react.lazy"), q = x("react.block"), r2 = x("react.server.block"), u2 = x("react.fundamental"), v = x("react.debug_trace_mode"), w = x("react.legacy_hidden"));
  24837. var x;
  24838. function y(a3) {
  24839. if (typeof a3 == "object" && a3 !== null) {
  24840. var t = a3.$$typeof;
  24841. switch (t) {
  24842. case b:
  24843. switch (a3 = a3.type, a3) {
  24844. case d:
  24845. case f4:
  24846. case e:
  24847. case l:
  24848. case m3:
  24849. return a3;
  24850. default:
  24851. switch (a3 = a3 && a3.$$typeof, a3) {
  24852. case h3:
  24853. case k:
  24854. case p3:
  24855. case n:
  24856. case g2:
  24857. return a3;
  24858. default:
  24859. return t;
  24860. }
  24861. }
  24862. case c:
  24863. return t;
  24864. }
  24865. }
  24866. }
  24867. var z = g2, A3 = b, B3 = k, C3 = d, D = p3, E = n, F = c, G = f4, H = e, I = l;
  24868. exports.ContextConsumer = h3;
  24869. exports.ContextProvider = z;
  24870. exports.Element = A3;
  24871. exports.ForwardRef = B3;
  24872. exports.Fragment = C3;
  24873. exports.Lazy = D;
  24874. exports.Memo = E;
  24875. exports.Portal = F;
  24876. exports.Profiler = G;
  24877. exports.StrictMode = H;
  24878. exports.Suspense = I;
  24879. exports.isAsyncMode = function() {
  24880. return !1;
  24881. };
  24882. exports.isConcurrentMode = function() {
  24883. return !1;
  24884. };
  24885. exports.isContextConsumer = function(a3) {
  24886. return y(a3) === h3;
  24887. };
  24888. exports.isContextProvider = function(a3) {
  24889. return y(a3) === g2;
  24890. };
  24891. exports.isElement = function(a3) {
  24892. return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
  24893. };
  24894. exports.isForwardRef = function(a3) {
  24895. return y(a3) === k;
  24896. };
  24897. exports.isFragment = function(a3) {
  24898. return y(a3) === d;
  24899. };
  24900. exports.isLazy = function(a3) {
  24901. return y(a3) === p3;
  24902. };
  24903. exports.isMemo = function(a3) {
  24904. return y(a3) === n;
  24905. };
  24906. exports.isPortal = function(a3) {
  24907. return y(a3) === c;
  24908. };
  24909. exports.isProfiler = function(a3) {
  24910. return y(a3) === f4;
  24911. };
  24912. exports.isStrictMode = function(a3) {
  24913. return y(a3) === e;
  24914. };
  24915. exports.isSuspense = function(a3) {
  24916. return y(a3) === l;
  24917. };
  24918. exports.isValidElementType = function(a3) {
  24919. return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f4 || a3 === v || a3 === e || a3 === l || a3 === m3 || a3 === w || typeof a3 == "object" && a3 !== null && (a3.$$typeof === p3 || a3.$$typeof === n || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === k || a3.$$typeof === u2 || a3.$$typeof === q || a3[0] === r2);
  24920. };
  24921. exports.typeOf = y;
  24922. }
  24923. });
  24924. // ../../node_modules/@testing-library/dom/node_modules/react-is/index.js
  24925. var require_react_is2 = __commonJS({
  24926. "../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(exports, module2) {
  24927. "use strict";
  24928. module2.exports = require_react_is_production_min2();
  24929. }
  24930. });
  24931. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js
  24932. var require_ReactElement = __commonJS({
  24933. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
  24934. "use strict";
  24935. Object.defineProperty(exports, "__esModule", {
  24936. value: !0
  24937. });
  24938. exports.test = exports.serialize = exports.default = void 0;
  24939. var ReactIs2 = _interopRequireWildcard(require_react_is2()), _markup = require_markup2();
  24940. function _getRequireWildcardCache(nodeInterop) {
  24941. if (typeof WeakMap != "function") return null;
  24942. var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap();
  24943. return (_getRequireWildcardCache = function(nodeInterop2) {
  24944. return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
  24945. })(nodeInterop);
  24946. }
  24947. function _interopRequireWildcard(obj, nodeInterop) {
  24948. if (!nodeInterop && obj && obj.__esModule)
  24949. return obj;
  24950. if (obj === null || typeof obj != "object" && typeof obj != "function")
  24951. return { default: obj };
  24952. var cache = _getRequireWildcardCache(nodeInterop);
  24953. if (cache && cache.has(obj))
  24954. return cache.get(obj);
  24955. var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  24956. for (var key in obj)
  24957. if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
  24958. var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
  24959. desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
  24960. }
  24961. return newObj.default = obj, cache && cache.set(obj, newObj), newObj;
  24962. }
  24963. var getChildren2 = (arg, children = []) => (Array.isArray(arg) ? arg.forEach((item) => {
  24964. getChildren2(item, children);
  24965. }) : arg != null && arg !== !1 && children.push(arg), children), getType4 = (element) => {
  24966. let type5 = element.type;
  24967. if (typeof type5 == "string")
  24968. return type5;
  24969. if (typeof type5 == "function")
  24970. return type5.displayName || type5.name || "Unknown";
  24971. if (ReactIs2.isFragment(element))
  24972. return "React.Fragment";
  24973. if (ReactIs2.isSuspense(element))
  24974. return "React.Suspense";
  24975. if (typeof type5 == "object" && type5 !== null) {
  24976. if (ReactIs2.isContextProvider(element))
  24977. return "Context.Provider";
  24978. if (ReactIs2.isContextConsumer(element))
  24979. return "Context.Consumer";
  24980. if (ReactIs2.isForwardRef(element)) {
  24981. if (type5.displayName)
  24982. return type5.displayName;
  24983. let functionName = type5.render.displayName || type5.render.name || "";
  24984. return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef";
  24985. }
  24986. if (ReactIs2.isMemo(element)) {
  24987. let functionName = type5.displayName || type5.type.displayName || type5.type.name || "";
  24988. return functionName !== "" ? "Memo(" + functionName + ")" : "Memo";
  24989. }
  24990. }
  24991. return "UNDEFINED";
  24992. }, getPropKeys2 = (element) => {
  24993. let { props } = element;
  24994. return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
  24995. }, serialize3 = (element, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(getType4(element), config4) : (0, _markup.printElement)(
  24996. getType4(element),
  24997. (0, _markup.printProps)(
  24998. getPropKeys2(element),
  24999. element.props,
  25000. config4,
  25001. indentation + config4.indent,
  25002. depth,
  25003. refs,
  25004. printer2
  25005. ),
  25006. (0, _markup.printChildren)(
  25007. getChildren2(element.props.children),
  25008. config4,
  25009. indentation + config4.indent,
  25010. depth,
  25011. refs,
  25012. printer2
  25013. ),
  25014. config4,
  25015. indentation
  25016. );
  25017. exports.serialize = serialize3;
  25018. var test3 = (val) => val != null && ReactIs2.isElement(val);
  25019. exports.test = test3;
  25020. var plugin2 = {
  25021. serialize: serialize3,
  25022. test: test3
  25023. }, _default = plugin2;
  25024. exports.default = _default;
  25025. }
  25026. });
  25027. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js
  25028. var require_ReactTestComponent = __commonJS({
  25029. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
  25030. "use strict";
  25031. Object.defineProperty(exports, "__esModule", {
  25032. value: !0
  25033. });
  25034. exports.test = exports.serialize = exports.default = void 0;
  25035. var _markup = require_markup2(), global2 = (function() {
  25036. return typeof globalThis < "u" ? globalThis : typeof global2 < "u" ? global2 : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
  25037. })(), Symbol3 = global2["jest-symbol-do-not-touch"] || global2.Symbol, testSymbol2 = typeof Symbol3 == "function" && Symbol3.for ? Symbol3.for("react.test.json") : 245830487, getPropKeys2 = (object) => {
  25038. let { props } = object;
  25039. return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
  25040. }, serialize3 = (object, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config4) : (0, _markup.printElement)(
  25041. object.type,
  25042. object.props ? (0, _markup.printProps)(
  25043. getPropKeys2(object),
  25044. object.props,
  25045. config4,
  25046. indentation + config4.indent,
  25047. depth,
  25048. refs,
  25049. printer2
  25050. ) : "",
  25051. object.children ? (0, _markup.printChildren)(
  25052. object.children,
  25053. config4,
  25054. indentation + config4.indent,
  25055. depth,
  25056. refs,
  25057. printer2
  25058. ) : "",
  25059. config4,
  25060. indentation
  25061. );
  25062. exports.serialize = serialize3;
  25063. var test3 = (val) => val && val.$$typeof === testSymbol2;
  25064. exports.test = test3;
  25065. var plugin2 = {
  25066. serialize: serialize3,
  25067. test: test3
  25068. }, _default = plugin2;
  25069. exports.default = _default;
  25070. }
  25071. });
  25072. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js
  25073. var require_build = __commonJS({
  25074. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(exports) {
  25075. "use strict";
  25076. Object.defineProperty(exports, "__esModule", {
  25077. value: !0
  25078. });
  25079. exports.default = exports.DEFAULT_OPTIONS = void 0;
  25080. exports.format = format4;
  25081. exports.plugins = void 0;
  25082. var _ansiStyles = _interopRequireDefault(require_ansi_styles()), _collections = require_collections(), _AsymmetricMatcher = _interopRequireDefault(
  25083. require_AsymmetricMatcher()
  25084. ), _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi()), _DOMCollection = _interopRequireDefault(require_DOMCollection()), _DOMElement = _interopRequireDefault(require_DOMElement()), _Immutable = _interopRequireDefault(require_Immutable()), _ReactElement = _interopRequireDefault(require_ReactElement()), _ReactTestComponent = _interopRequireDefault(
  25085. require_ReactTestComponent()
  25086. );
  25087. function _interopRequireDefault(obj) {
  25088. return obj && obj.__esModule ? obj : { default: obj };
  25089. }
  25090. var toString5 = Object.prototype.toString, toISOString2 = Date.prototype.toISOString, errorToString2 = Error.prototype.toString, regExpToString2 = RegExp.prototype.toString, getConstructorName3 = (val) => typeof val.constructor == "function" && val.constructor.name || "Object", isWindow2 = (val) => typeof window < "u" && val === window, SYMBOL_REGEXP2 = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP2 = /\n/gi, PrettyFormatPluginError2 = class extends Error {
  25091. constructor(message, stack) {
  25092. super(message), this.stack = stack, this.name = this.constructor.name;
  25093. }
  25094. };
  25095. function isToStringedArrayType2(toStringed) {
  25096. return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
  25097. }
  25098. function printNumber2(val) {
  25099. return Object.is(val, -0) ? "-0" : String(val);
  25100. }
  25101. function printBigInt2(val) {
  25102. return `${val}n`;
  25103. }
  25104. function printFunction2(val, printFunctionName) {
  25105. return printFunctionName ? "[Function " + (val.name || "anonymous") + "]" : "[Function]";
  25106. }
  25107. function printSymbol2(val) {
  25108. return String(val).replace(SYMBOL_REGEXP2, "Symbol($1)");
  25109. }
  25110. function printError2(val) {
  25111. return "[" + errorToString2.call(val) + "]";
  25112. }
  25113. function printBasicValue2(val, printFunctionName, escapeRegex, escapeString) {
  25114. if (val === !0 || val === !1)
  25115. return "" + val;
  25116. if (val === void 0)
  25117. return "undefined";
  25118. if (val === null)
  25119. return "null";
  25120. let typeOf = typeof val;
  25121. if (typeOf === "number")
  25122. return printNumber2(val);
  25123. if (typeOf === "bigint")
  25124. return printBigInt2(val);
  25125. if (typeOf === "string")
  25126. return escapeString ? '"' + val.replace(/"|\\/g, "\\$&") + '"' : '"' + val + '"';
  25127. if (typeOf === "function")
  25128. return printFunction2(val, printFunctionName);
  25129. if (typeOf === "symbol")
  25130. return printSymbol2(val);
  25131. let toStringed = toString5.call(val);
  25132. return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction2(val, printFunctionName) : toStringed === "[object Symbol]" ? printSymbol2(val) : toStringed === "[object Date]" ? isNaN(+val) ? "Date { NaN }" : toISOString2.call(val) : toStringed === "[object Error]" ? printError2(val) : toStringed === "[object RegExp]" ? escapeRegex ? regExpToString2.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : regExpToString2.call(val) : val instanceof Error ? printError2(val) : null;
  25133. }
  25134. function printComplexValue2(val, config4, indentation, depth, refs, hasCalledToJSON) {
  25135. if (refs.indexOf(val) !== -1)
  25136. return "[Circular]";
  25137. refs = refs.slice(), refs.push(val);
  25138. let hitMaxDepth = ++depth > config4.maxDepth, min2 = config4.min;
  25139. if (config4.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
  25140. return printer2(val.toJSON(), config4, indentation, depth, refs, !0);
  25141. let toStringed = toString5.call(val);
  25142. return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : (min2 ? "" : "Arguments ") + "[" + (0, _collections.printListItems)(
  25143. val,
  25144. config4,
  25145. indentation,
  25146. depth,
  25147. refs,
  25148. printer2
  25149. ) + "]" : isToStringedArrayType2(toStringed) ? hitMaxDepth ? "[" + val.constructor.name + "]" : (min2 || !config4.printBasicPrototype && val.constructor.name === "Array" ? "" : val.constructor.name + " ") + "[" + (0, _collections.printListItems)(
  25150. val,
  25151. config4,
  25152. indentation,
  25153. depth,
  25154. refs,
  25155. printer2
  25156. ) + "]" : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : "Map {" + (0, _collections.printIteratorEntries)(
  25157. val.entries(),
  25158. config4,
  25159. indentation,
  25160. depth,
  25161. refs,
  25162. printer2,
  25163. " => "
  25164. ) + "}" : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : "Set {" + (0, _collections.printIteratorValues)(
  25165. val.values(),
  25166. config4,
  25167. indentation,
  25168. depth,
  25169. refs,
  25170. printer2
  25171. ) + "}" : hitMaxDepth || isWindow2(val) ? "[" + getConstructorName3(val) + "]" : (min2 || !config4.printBasicPrototype && getConstructorName3(val) === "Object" ? "" : getConstructorName3(val) + " ") + "{" + (0, _collections.printObjectProperties)(
  25172. val,
  25173. config4,
  25174. indentation,
  25175. depth,
  25176. refs,
  25177. printer2
  25178. ) + "}";
  25179. }
  25180. function isNewPlugin2(plugin2) {
  25181. return plugin2.serialize != null;
  25182. }
  25183. function printPlugin2(plugin2, val, config4, indentation, depth, refs) {
  25184. let printed;
  25185. try {
  25186. printed = isNewPlugin2(plugin2) ? plugin2.serialize(val, config4, indentation, depth, refs, printer2) : plugin2.print(
  25187. val,
  25188. (valChild) => printer2(valChild, config4, indentation, depth, refs),
  25189. (str2) => {
  25190. let indentationNext = indentation + config4.indent;
  25191. return indentationNext + str2.replace(NEWLINE_REGEXP2, `
  25192. ` + indentationNext);
  25193. },
  25194. {
  25195. edgeSpacing: config4.spacingOuter,
  25196. min: config4.min,
  25197. spacing: config4.spacingInner
  25198. },
  25199. config4.colors
  25200. );
  25201. } catch (error) {
  25202. throw new PrettyFormatPluginError2(error.message, error.stack);
  25203. }
  25204. if (typeof printed != "string")
  25205. throw new Error(
  25206. `pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`
  25207. );
  25208. return printed;
  25209. }
  25210. function findPlugin2(plugins4, val) {
  25211. for (let p3 = 0; p3 < plugins4.length; p3++)
  25212. try {
  25213. if (plugins4[p3].test(val))
  25214. return plugins4[p3];
  25215. } catch (error) {
  25216. throw new PrettyFormatPluginError2(error.message, error.stack);
  25217. }
  25218. return null;
  25219. }
  25220. function printer2(val, config4, indentation, depth, refs, hasCalledToJSON) {
  25221. let plugin2 = findPlugin2(config4.plugins, val);
  25222. if (plugin2 !== null)
  25223. return printPlugin2(plugin2, val, config4, indentation, depth, refs);
  25224. let basicResult = printBasicValue2(
  25225. val,
  25226. config4.printFunctionName,
  25227. config4.escapeRegex,
  25228. config4.escapeString
  25229. );
  25230. return basicResult !== null ? basicResult : printComplexValue2(
  25231. val,
  25232. config4,
  25233. indentation,
  25234. depth,
  25235. refs,
  25236. hasCalledToJSON
  25237. );
  25238. }
  25239. var DEFAULT_THEME2 = {
  25240. comment: "gray",
  25241. content: "reset",
  25242. prop: "yellow",
  25243. tag: "cyan",
  25244. value: "green"
  25245. }, DEFAULT_THEME_KEYS2 = Object.keys(DEFAULT_THEME2), DEFAULT_OPTIONS3 = {
  25246. callToJSON: !0,
  25247. compareKeys: void 0,
  25248. escapeRegex: !1,
  25249. escapeString: !0,
  25250. highlight: !1,
  25251. indent: 2,
  25252. maxDepth: 1 / 0,
  25253. min: !1,
  25254. plugins: [],
  25255. printBasicPrototype: !0,
  25256. printFunctionName: !0,
  25257. theme: DEFAULT_THEME2
  25258. };
  25259. exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS3;
  25260. function validateOptions3(options) {
  25261. if (Object.keys(options).forEach((key) => {
  25262. if (!DEFAULT_OPTIONS3.hasOwnProperty(key))
  25263. throw new Error(`pretty-format: Unknown option "${key}".`);
  25264. }), options.min && options.indent !== void 0 && options.indent !== 0)
  25265. throw new Error(
  25266. 'pretty-format: Options "min" and "indent" cannot be used together.'
  25267. );
  25268. if (options.theme !== void 0) {
  25269. if (options.theme === null)
  25270. throw new Error('pretty-format: Option "theme" must not be null.');
  25271. if (typeof options.theme != "object")
  25272. throw new Error(
  25273. `pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`
  25274. );
  25275. }
  25276. }
  25277. var getColorsHighlight2 = (options) => DEFAULT_THEME_KEYS2.reduce((colors3, key) => {
  25278. let value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME2[key], color2 = value && _ansiStyles.default[value];
  25279. if (color2 && typeof color2.close == "string" && typeof color2.open == "string")
  25280. colors3[key] = color2;
  25281. else
  25282. throw new Error(
  25283. `pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`
  25284. );
  25285. return colors3;
  25286. }, /* @__PURE__ */ Object.create(null)), getColorsEmpty2 = () => DEFAULT_THEME_KEYS2.reduce((colors3, key) => (colors3[key] = {
  25287. close: "",
  25288. open: ""
  25289. }, colors3), /* @__PURE__ */ Object.create(null)), getPrintFunctionName2 = (options) => options && options.printFunctionName !== void 0 ? options.printFunctionName : DEFAULT_OPTIONS3.printFunctionName, getEscapeRegex2 = (options) => options && options.escapeRegex !== void 0 ? options.escapeRegex : DEFAULT_OPTIONS3.escapeRegex, getEscapeString2 = (options) => options && options.escapeString !== void 0 ? options.escapeString : DEFAULT_OPTIONS3.escapeString, getConfig4 = (options) => {
  25290. var _options$printBasicPr;
  25291. return {
  25292. callToJSON: options && options.callToJSON !== void 0 ? options.callToJSON : DEFAULT_OPTIONS3.callToJSON,
  25293. colors: options && options.highlight ? getColorsHighlight2(options) : getColorsEmpty2(),
  25294. compareKeys: options && typeof options.compareKeys == "function" ? options.compareKeys : DEFAULT_OPTIONS3.compareKeys,
  25295. escapeRegex: getEscapeRegex2(options),
  25296. escapeString: getEscapeString2(options),
  25297. indent: options && options.min ? "" : createIndent2(
  25298. options && options.indent !== void 0 ? options.indent : DEFAULT_OPTIONS3.indent
  25299. ),
  25300. maxDepth: options && options.maxDepth !== void 0 ? options.maxDepth : DEFAULT_OPTIONS3.maxDepth,
  25301. min: options && options.min !== void 0 ? options.min : DEFAULT_OPTIONS3.min,
  25302. plugins: options && options.plugins !== void 0 ? options.plugins : DEFAULT_OPTIONS3.plugins,
  25303. printBasicPrototype: (_options$printBasicPr = options?.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : !0,
  25304. printFunctionName: getPrintFunctionName2(options),
  25305. spacingInner: options && options.min ? " " : `
  25306. `,
  25307. spacingOuter: options && options.min ? "" : `
  25308. `
  25309. };
  25310. };
  25311. function createIndent2(indent2) {
  25312. return new Array(indent2 + 1).join(" ");
  25313. }
  25314. function format4(val, options) {
  25315. if (options && (validateOptions3(options), options.plugins)) {
  25316. let plugin2 = findPlugin2(options.plugins, val);
  25317. if (plugin2 !== null)
  25318. return printPlugin2(plugin2, val, getConfig4(options), "", 0, []);
  25319. }
  25320. let basicResult = printBasicValue2(
  25321. val,
  25322. getPrintFunctionName2(options),
  25323. getEscapeRegex2(options),
  25324. getEscapeString2(options)
  25325. );
  25326. return basicResult !== null ? basicResult : printComplexValue2(val, getConfig4(options), "", 0, []);
  25327. }
  25328. var plugins3 = {
  25329. AsymmetricMatcher: _AsymmetricMatcher.default,
  25330. ConvertAnsi: _ConvertAnsi.default,
  25331. DOMCollection: _DOMCollection.default,
  25332. DOMElement: _DOMElement.default,
  25333. Immutable: _Immutable.default,
  25334. ReactElement: _ReactElement.default,
  25335. ReactTestComponent: _ReactTestComponent.default
  25336. };
  25337. exports.plugins = plugins3;
  25338. var _default = format4;
  25339. exports.default = _default;
  25340. }
  25341. });
  25342. // ../../node_modules/lz-string/libs/lz-string.js
  25343. var require_lz_string = __commonJS({
  25344. "../../node_modules/lz-string/libs/lz-string.js"(exports, module2) {
  25345. var LZString = (function() {
  25346. var f4 = String.fromCharCode, keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", baseReverseDic = {};
  25347. function getBaseValue(alphabet, character2) {
  25348. if (!baseReverseDic[alphabet]) {
  25349. baseReverseDic[alphabet] = {};
  25350. for (var i = 0; i < alphabet.length; i++)
  25351. baseReverseDic[alphabet][alphabet.charAt(i)] = i;
  25352. }
  25353. return baseReverseDic[alphabet][character2];
  25354. }
  25355. var LZString2 = {
  25356. compressToBase64: function(input2) {
  25357. if (input2 == null) return "";
  25358. var res = LZString2._compress(input2, 6, function(a3) {
  25359. return keyStrBase64.charAt(a3);
  25360. });
  25361. switch (res.length % 4) {
  25362. // To produce valid Base64
  25363. default:
  25364. // When could this happen ?
  25365. case 0:
  25366. return res;
  25367. case 1:
  25368. return res + "===";
  25369. case 2:
  25370. return res + "==";
  25371. case 3:
  25372. return res + "=";
  25373. }
  25374. },
  25375. decompressFromBase64: function(input2) {
  25376. return input2 == null ? "" : input2 == "" ? null : LZString2._decompress(input2.length, 32, function(index4) {
  25377. return getBaseValue(keyStrBase64, input2.charAt(index4));
  25378. });
  25379. },
  25380. compressToUTF16: function(input2) {
  25381. return input2 == null ? "" : LZString2._compress(input2, 15, function(a3) {
  25382. return f4(a3 + 32);
  25383. }) + " ";
  25384. },
  25385. decompressFromUTF16: function(compressed) {
  25386. return compressed == null ? "" : compressed == "" ? null : LZString2._decompress(compressed.length, 16384, function(index4) {
  25387. return compressed.charCodeAt(index4) - 32;
  25388. });
  25389. },
  25390. //compress into uint8array (UCS-2 big endian format)
  25391. compressToUint8Array: function(uncompressed) {
  25392. for (var compressed = LZString2.compress(uncompressed), buf = new Uint8Array(compressed.length * 2), i = 0, TotalLen = compressed.length; i < TotalLen; i++) {
  25393. var current_value = compressed.charCodeAt(i);
  25394. buf[i * 2] = current_value >>> 8, buf[i * 2 + 1] = current_value % 256;
  25395. }
  25396. return buf;
  25397. },
  25398. //decompress from uint8array (UCS-2 big endian format)
  25399. decompressFromUint8Array: function(compressed) {
  25400. if (compressed == null)
  25401. return LZString2.decompress(compressed);
  25402. for (var buf = new Array(compressed.length / 2), i = 0, TotalLen = buf.length; i < TotalLen; i++)
  25403. buf[i] = compressed[i * 2] * 256 + compressed[i * 2 + 1];
  25404. var result = [];
  25405. return buf.forEach(function(c) {
  25406. result.push(f4(c));
  25407. }), LZString2.decompress(result.join(""));
  25408. },
  25409. //compress into a string that is already URI encoded
  25410. compressToEncodedURIComponent: function(input2) {
  25411. return input2 == null ? "" : LZString2._compress(input2, 6, function(a3) {
  25412. return keyStrUriSafe.charAt(a3);
  25413. });
  25414. },
  25415. //decompress from an output of compressToEncodedURIComponent
  25416. decompressFromEncodedURIComponent: function(input2) {
  25417. return input2 == null ? "" : input2 == "" ? null : (input2 = input2.replace(/ /g, "+"), LZString2._decompress(input2.length, 32, function(index4) {
  25418. return getBaseValue(keyStrUriSafe, input2.charAt(index4));
  25419. }));
  25420. },
  25421. compress: function(uncompressed) {
  25422. return LZString2._compress(uncompressed, 16, function(a3) {
  25423. return f4(a3);
  25424. });
  25425. },
  25426. _compress: function(uncompressed, bitsPerChar, getCharFromInt) {
  25427. if (uncompressed == null) return "";
  25428. var i, value, context_dictionary = {}, context_dictionaryToCreate = {}, context_c = "", context_wc = "", context_w = "", context_enlargeIn = 2, context_dictSize = 3, context_numBits = 2, context_data = [], context_data_val = 0, context_data_position = 0, ii;
  25429. for (ii = 0; ii < uncompressed.length; ii += 1)
  25430. if (context_c = uncompressed.charAt(ii), Object.prototype.hasOwnProperty.call(context_dictionary, context_c) || (context_dictionary[context_c] = context_dictSize++, context_dictionaryToCreate[context_c] = !0), context_wc = context_w + context_c, Object.prototype.hasOwnProperty.call(context_dictionary, context_wc))
  25431. context_w = context_wc;
  25432. else {
  25433. if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
  25434. if (context_w.charCodeAt(0) < 256) {
  25435. for (i = 0; i < context_numBits; i++)
  25436. context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++;
  25437. for (value = context_w.charCodeAt(0), i = 0; i < 8; i++)
  25438. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25439. } else {
  25440. for (value = 1, i = 0; i < context_numBits; i++)
  25441. context_data_val = context_data_val << 1 | value, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = 0;
  25442. for (value = context_w.charCodeAt(0), i = 0; i < 16; i++)
  25443. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25444. }
  25445. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), delete context_dictionaryToCreate[context_w];
  25446. } else
  25447. for (value = context_dictionary[context_w], i = 0; i < context_numBits; i++)
  25448. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25449. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), context_dictionary[context_wc] = context_dictSize++, context_w = String(context_c);
  25450. }
  25451. if (context_w !== "") {
  25452. if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
  25453. if (context_w.charCodeAt(0) < 256) {
  25454. for (i = 0; i < context_numBits; i++)
  25455. context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++;
  25456. for (value = context_w.charCodeAt(0), i = 0; i < 8; i++)
  25457. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25458. } else {
  25459. for (value = 1, i = 0; i < context_numBits; i++)
  25460. context_data_val = context_data_val << 1 | value, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = 0;
  25461. for (value = context_w.charCodeAt(0), i = 0; i < 16; i++)
  25462. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25463. }
  25464. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), delete context_dictionaryToCreate[context_w];
  25465. } else
  25466. for (value = context_dictionary[context_w], i = 0; i < context_numBits; i++)
  25467. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25468. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++);
  25469. }
  25470. for (value = 2, i = 0; i < context_numBits; i++)
  25471. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25472. for (; ; )
  25473. if (context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1) {
  25474. context_data.push(getCharFromInt(context_data_val));
  25475. break;
  25476. } else context_data_position++;
  25477. return context_data.join("");
  25478. },
  25479. decompress: function(compressed) {
  25480. return compressed == null ? "" : compressed == "" ? null : LZString2._decompress(compressed.length, 32768, function(index4) {
  25481. return compressed.charCodeAt(index4);
  25482. });
  25483. },
  25484. _decompress: function(length2, resetValue, getNextValue) {
  25485. var dictionary = [], next2, enlargeIn = 4, dictSize = 4, numBits = 3, entry = "", result = [], i, w, bits, resb, maxpower, power, c, data = { val: getNextValue(0), position: resetValue, index: 1 };
  25486. for (i = 0; i < 3; i += 1)
  25487. dictionary[i] = i;
  25488. for (bits = 0, maxpower = Math.pow(2, 2), power = 1; power != maxpower; )
  25489. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25490. switch (next2 = bits) {
  25491. case 0:
  25492. for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; )
  25493. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25494. c = f4(bits);
  25495. break;
  25496. case 1:
  25497. for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; )
  25498. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25499. c = f4(bits);
  25500. break;
  25501. case 2:
  25502. return "";
  25503. }
  25504. for (dictionary[3] = c, w = c, result.push(c); ; ) {
  25505. if (data.index > length2)
  25506. return "";
  25507. for (bits = 0, maxpower = Math.pow(2, numBits), power = 1; power != maxpower; )
  25508. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25509. switch (c = bits) {
  25510. case 0:
  25511. for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; )
  25512. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25513. dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--;
  25514. break;
  25515. case 1:
  25516. for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; )
  25517. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25518. dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--;
  25519. break;
  25520. case 2:
  25521. return result.join("");
  25522. }
  25523. if (enlargeIn == 0 && (enlargeIn = Math.pow(2, numBits), numBits++), dictionary[c])
  25524. entry = dictionary[c];
  25525. else if (c === dictSize)
  25526. entry = w + w.charAt(0);
  25527. else
  25528. return null;
  25529. result.push(entry), dictionary[dictSize++] = w + entry.charAt(0), enlargeIn--, w = entry, enlargeIn == 0 && (enlargeIn = Math.pow(2, numBits), numBits++);
  25530. }
  25531. }
  25532. };
  25533. return LZString2;
  25534. })();
  25535. typeof define == "function" && define.amd ? define(function() {
  25536. return LZString;
  25537. }) : typeof module2 < "u" && module2 != null ? module2.exports = LZString : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
  25538. return LZString;
  25539. });
  25540. }
  25541. });
  25542. // ../../node_modules/toggle-selection/index.js
  25543. var require_toggle_selection = __commonJS({
  25544. "../../node_modules/toggle-selection/index.js"(exports, module2) {
  25545. module2.exports = function() {
  25546. var selection = document.getSelection();
  25547. if (!selection.rangeCount)
  25548. return function() {
  25549. };
  25550. for (var active = document.activeElement, ranges = [], i = 0; i < selection.rangeCount; i++)
  25551. ranges.push(selection.getRangeAt(i));
  25552. switch (active.tagName.toUpperCase()) {
  25553. // .toUpperCase handles XHTML
  25554. case "INPUT":
  25555. case "TEXTAREA":
  25556. active.blur();
  25557. break;
  25558. default:
  25559. active = null;
  25560. break;
  25561. }
  25562. return selection.removeAllRanges(), function() {
  25563. selection.type === "Caret" && selection.removeAllRanges(), selection.rangeCount || ranges.forEach(function(range) {
  25564. selection.addRange(range);
  25565. }), active && active.focus();
  25566. };
  25567. };
  25568. }
  25569. });
  25570. // ../../node_modules/copy-to-clipboard/index.js
  25571. var require_copy_to_clipboard = __commonJS({
  25572. "../../node_modules/copy-to-clipboard/index.js"(exports, module2) {
  25573. "use strict";
  25574. var deselectCurrent = require_toggle_selection(), clipboardToIE11Formatting = {
  25575. "text/plain": "Text",
  25576. "text/html": "Url",
  25577. default: "Text"
  25578. }, defaultMessage = "Copy to clipboard: #{key}, Enter";
  25579. function format4(message) {
  25580. var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
  25581. return message.replace(/#{\s*key\s*}/g, copyKey);
  25582. }
  25583. function copy5(text, options) {
  25584. var debug2, message, reselectPrevious, range, selection, mark, success = !1;
  25585. options || (options = {}), debug2 = options.debug || !1;
  25586. try {
  25587. reselectPrevious = deselectCurrent(), range = document.createRange(), selection = document.getSelection(), mark = document.createElement("span"), mark.textContent = text, mark.ariaHidden = "true", mark.style.all = "unset", mark.style.position = "fixed", mark.style.top = 0, mark.style.clip = "rect(0, 0, 0, 0)", mark.style.whiteSpace = "pre", mark.style.webkitUserSelect = "text", mark.style.MozUserSelect = "text", mark.style.msUserSelect = "text", mark.style.userSelect = "text", mark.addEventListener("copy", function(e) {
  25588. if (e.stopPropagation(), options.format)
  25589. if (e.preventDefault(), typeof e.clipboardData > "u") {
  25590. debug2 && console.warn("unable to use e.clipboardData"), debug2 && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
  25591. var format5 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting.default;
  25592. window.clipboardData.setData(format5, text);
  25593. } else
  25594. e.clipboardData.clearData(), e.clipboardData.setData(options.format, text);
  25595. options.onCopy && (e.preventDefault(), options.onCopy(e.clipboardData));
  25596. }), document.body.appendChild(mark), range.selectNodeContents(mark), selection.addRange(range);
  25597. var successful = document.execCommand("copy");
  25598. if (!successful)
  25599. throw new Error("copy command was unsuccessful");
  25600. success = !0;
  25601. } catch (err) {
  25602. debug2 && console.error("unable to copy using execCommand: ", err), debug2 && console.warn("trying IE specific stuff");
  25603. try {
  25604. window.clipboardData.setData(options.format || "text", text), options.onCopy && options.onCopy(window.clipboardData), success = !0;
  25605. } catch (err2) {
  25606. debug2 && console.error("unable to copy using clipboardData: ", err2), debug2 && console.error("falling back to prompt"), message = format4("message" in options ? options.message : defaultMessage), window.prompt(message, text);
  25607. }
  25608. } finally {
  25609. selection && (typeof selection.removeRange == "function" ? selection.removeRange(range) : selection.removeAllRanges()), mark && document.body.removeChild(mark), reselectPrevious();
  25610. }
  25611. return success;
  25612. }
  25613. module2.exports = copy5;
  25614. }
  25615. });
  25616. // ../../node_modules/semver/internal/constants.js
  25617. var require_constants = __commonJS({
  25618. "../../node_modules/semver/internal/constants.js"(exports, module2) {
  25619. "use strict";
  25620. var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
  25621. 9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
  25622. "major",
  25623. "premajor",
  25624. "minor",
  25625. "preminor",
  25626. "patch",
  25627. "prepatch",
  25628. "prerelease"
  25629. ];
  25630. module2.exports = {
  25631. MAX_LENGTH: 256,
  25632. MAX_SAFE_COMPONENT_LENGTH,
  25633. MAX_SAFE_BUILD_LENGTH,
  25634. MAX_SAFE_INTEGER,
  25635. RELEASE_TYPES,
  25636. SEMVER_SPEC_VERSION,
  25637. FLAG_INCLUDE_PRERELEASE: 1,
  25638. FLAG_LOOSE: 2
  25639. };
  25640. }
  25641. });
  25642. // ../../node_modules/semver/internal/debug.js
  25643. var require_debug = __commonJS({
  25644. "../../node_modules/semver/internal/debug.js"(exports, module2) {
  25645. "use strict";
  25646. var debug2 = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
  25647. };
  25648. module2.exports = debug2;
  25649. }
  25650. });
  25651. // ../../node_modules/semver/internal/re.js
  25652. var require_re = __commonJS({
  25653. "../../node_modules/semver/internal/re.js"(exports, module2) {
  25654. "use strict";
  25655. var {
  25656. MAX_SAFE_COMPONENT_LENGTH,
  25657. MAX_SAFE_BUILD_LENGTH,
  25658. MAX_LENGTH
  25659. } = require_constants(), debug2 = require_debug();
  25660. exports = module2.exports = {};
  25661. var re2 = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
  25662. ["\\s", 1],
  25663. ["\\d", MAX_LENGTH],
  25664. [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
  25665. ], makeSafeRegex = (value) => {
  25666. for (let [token2, max2] of safeRegexReplacements)
  25667. value = value.split(`${token2}*`).join(`${token2}{0,${max2}}`).split(`${token2}+`).join(`${token2}{1,${max2}}`);
  25668. return value;
  25669. }, createToken = (name, value, isGlobal) => {
  25670. let safe2 = makeSafeRegex(value), index4 = R++;
  25671. debug2(name, index4, value), t[name] = index4, src[index4] = value, safeSrc[index4] = safe2, re2[index4] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index4] = new RegExp(safe2, isGlobal ? "g" : void 0);
  25672. };
  25673. createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
  25674. createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
  25675. createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
  25676. createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
  25677. createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
  25678. createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
  25679. createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
  25680. createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
  25681. createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
  25682. createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
  25683. createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
  25684. createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
  25685. createToken("FULL", `^${src[t.FULLPLAIN]}$`);
  25686. createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
  25687. createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
  25688. createToken("GTLT", "((?:<|>)?=?)");
  25689. createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
  25690. createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
  25691. createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
  25692. createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
  25693. createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
  25694. createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
  25695. createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
  25696. createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
  25697. createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
  25698. createToken("COERCERTL", src[t.COERCE], !0);
  25699. createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
  25700. createToken("LONETILDE", "(?:~>?)");
  25701. createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
  25702. exports.tildeTrimReplace = "$1~";
  25703. createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
  25704. createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
  25705. createToken("LONECARET", "(?:\\^)");
  25706. createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
  25707. exports.caretTrimReplace = "$1^";
  25708. createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
  25709. createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
  25710. createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
  25711. createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
  25712. createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
  25713. exports.comparatorTrimReplace = "$1$2$3";
  25714. createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
  25715. createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
  25716. createToken("STAR", "(<|>)?=?\\s*\\*");
  25717. createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
  25718. createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
  25719. }
  25720. });
  25721. // ../../node_modules/semver/internal/parse-options.js
  25722. var require_parse_options = __commonJS({
  25723. "../../node_modules/semver/internal/parse-options.js"(exports, module2) {
  25724. "use strict";
  25725. var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
  25726. module2.exports = parseOptions;
  25727. }
  25728. });
  25729. // ../../node_modules/semver/internal/identifiers.js
  25730. var require_identifiers = __commonJS({
  25731. "../../node_modules/semver/internal/identifiers.js"(exports, module2) {
  25732. "use strict";
  25733. var numeric = /^[0-9]+$/, compareIdentifiers = (a3, b) => {
  25734. if (typeof a3 == "number" && typeof b == "number")
  25735. return a3 === b ? 0 : a3 < b ? -1 : 1;
  25736. let anum = numeric.test(a3), bnum = numeric.test(b);
  25737. return anum && bnum && (a3 = +a3, b = +b), a3 === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b ? -1 : 1;
  25738. }, rcompareIdentifiers = (a3, b) => compareIdentifiers(b, a3);
  25739. module2.exports = {
  25740. compareIdentifiers,
  25741. rcompareIdentifiers
  25742. };
  25743. }
  25744. });
  25745. // ../../node_modules/semver/classes/semver.js
  25746. var require_semver = __commonJS({
  25747. "../../node_modules/semver/classes/semver.js"(exports, module2) {
  25748. "use strict";
  25749. var debug2 = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re2, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
  25750. constructor(version2, options) {
  25751. if (options = parseOptions(options), version2 instanceof _SemVer) {
  25752. if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease)
  25753. return version2;
  25754. version2 = version2.version;
  25755. } else if (typeof version2 != "string")
  25756. throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
  25757. if (version2.length > MAX_LENGTH)
  25758. throw new TypeError(
  25759. `version is longer than ${MAX_LENGTH} characters`
  25760. );
  25761. debug2("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
  25762. let m3 = version2.trim().match(options.loose ? re2[t.LOOSE] : re2[t.FULL]);
  25763. if (!m3)
  25764. throw new TypeError(`Invalid Version: ${version2}`);
  25765. if (this.raw = version2, this.major = +m3[1], this.minor = +m3[2], this.patch = +m3[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
  25766. throw new TypeError("Invalid major version");
  25767. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
  25768. throw new TypeError("Invalid minor version");
  25769. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
  25770. throw new TypeError("Invalid patch version");
  25771. m3[4] ? this.prerelease = m3[4].split(".").map((id) => {
  25772. if (/^[0-9]+$/.test(id)) {
  25773. let num = +id;
  25774. if (num >= 0 && num < MAX_SAFE_INTEGER)
  25775. return num;
  25776. }
  25777. return id;
  25778. }) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
  25779. }
  25780. format() {
  25781. return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
  25782. }
  25783. toString() {
  25784. return this.version;
  25785. }
  25786. compare(other) {
  25787. if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
  25788. if (typeof other == "string" && other === this.version)
  25789. return 0;
  25790. other = new _SemVer(other, this.options);
  25791. }
  25792. return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
  25793. }
  25794. compareMain(other) {
  25795. return other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.major < other.major ? -1 : this.major > other.major ? 1 : this.minor < other.minor ? -1 : this.minor > other.minor ? 1 : this.patch < other.patch ? -1 : this.patch > other.patch ? 1 : 0;
  25796. }
  25797. comparePre(other) {
  25798. if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
  25799. return -1;
  25800. if (!this.prerelease.length && other.prerelease.length)
  25801. return 1;
  25802. if (!this.prerelease.length && !other.prerelease.length)
  25803. return 0;
  25804. let i = 0;
  25805. do {
  25806. let a3 = this.prerelease[i], b = other.prerelease[i];
  25807. if (debug2("prerelease compare", i, a3, b), a3 === void 0 && b === void 0)
  25808. return 0;
  25809. if (b === void 0)
  25810. return 1;
  25811. if (a3 === void 0)
  25812. return -1;
  25813. if (a3 === b)
  25814. continue;
  25815. return compareIdentifiers(a3, b);
  25816. } while (++i);
  25817. }
  25818. compareBuild(other) {
  25819. other instanceof _SemVer || (other = new _SemVer(other, this.options));
  25820. let i = 0;
  25821. do {
  25822. let a3 = this.build[i], b = other.build[i];
  25823. if (debug2("build compare", i, a3, b), a3 === void 0 && b === void 0)
  25824. return 0;
  25825. if (b === void 0)
  25826. return 1;
  25827. if (a3 === void 0)
  25828. return -1;
  25829. if (a3 === b)
  25830. continue;
  25831. return compareIdentifiers(a3, b);
  25832. } while (++i);
  25833. }
  25834. // preminor will bump the version up to the next minor release, and immediately
  25835. // down to pre-release. premajor and prepatch work the same way.
  25836. inc(release, identifier2, identifierBase) {
  25837. if (release.startsWith("pre")) {
  25838. if (!identifier2 && identifierBase === !1)
  25839. throw new Error("invalid increment argument: identifier is empty");
  25840. if (identifier2) {
  25841. let match3 = `-${identifier2}`.match(this.options.loose ? re2[t.PRERELEASELOOSE] : re2[t.PRERELEASE]);
  25842. if (!match3 || match3[1] !== identifier2)
  25843. throw new Error(`invalid identifier: ${identifier2}`);
  25844. }
  25845. }
  25846. switch (release) {
  25847. case "premajor":
  25848. this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier2, identifierBase);
  25849. break;
  25850. case "preminor":
  25851. this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier2, identifierBase);
  25852. break;
  25853. case "prepatch":
  25854. this.prerelease.length = 0, this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
  25855. break;
  25856. // If the input is a non-prerelease version, this acts the same as
  25857. // prepatch.
  25858. case "prerelease":
  25859. this.prerelease.length === 0 && this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
  25860. break;
  25861. case "release":
  25862. if (this.prerelease.length === 0)
  25863. throw new Error(`version ${this.raw} is not a prerelease`);
  25864. this.prerelease.length = 0;
  25865. break;
  25866. case "major":
  25867. (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
  25868. break;
  25869. case "minor":
  25870. (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
  25871. break;
  25872. case "patch":
  25873. this.prerelease.length === 0 && this.patch++, this.prerelease = [];
  25874. break;
  25875. // This probably shouldn't be used publicly.
  25876. // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
  25877. case "pre": {
  25878. let base = Number(identifierBase) ? 1 : 0;
  25879. if (this.prerelease.length === 0)
  25880. this.prerelease = [base];
  25881. else {
  25882. let i = this.prerelease.length;
  25883. for (; --i >= 0; )
  25884. typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
  25885. if (i === -1) {
  25886. if (identifier2 === this.prerelease.join(".") && identifierBase === !1)
  25887. throw new Error("invalid increment argument: identifier already exists");
  25888. this.prerelease.push(base);
  25889. }
  25890. }
  25891. if (identifier2) {
  25892. let prerelease = [identifier2, base];
  25893. identifierBase === !1 && (prerelease = [identifier2]), compareIdentifiers(this.prerelease[0], identifier2) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
  25894. }
  25895. break;
  25896. }
  25897. default:
  25898. throw new Error(`invalid increment argument: ${release}`);
  25899. }
  25900. return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
  25901. }
  25902. };
  25903. module2.exports = SemVer;
  25904. }
  25905. });
  25906. // ../../node_modules/semver/functions/parse.js
  25907. var require_parse2 = __commonJS({
  25908. "../../node_modules/semver/functions/parse.js"(exports, module2) {
  25909. "use strict";
  25910. var SemVer = require_semver(), parse9 = (version2, options, throwErrors = !1) => {
  25911. if (version2 instanceof SemVer)
  25912. return version2;
  25913. try {
  25914. return new SemVer(version2, options);
  25915. } catch (er) {
  25916. if (!throwErrors)
  25917. return null;
  25918. throw er;
  25919. }
  25920. };
  25921. module2.exports = parse9;
  25922. }
  25923. });
  25924. // ../../node_modules/semver/functions/valid.js
  25925. var require_valid = __commonJS({
  25926. "../../node_modules/semver/functions/valid.js"(exports, module2) {
  25927. "use strict";
  25928. var parse9 = require_parse2(), valid = (version2, options) => {
  25929. let v = parse9(version2, options);
  25930. return v ? v.version : null;
  25931. };
  25932. module2.exports = valid;
  25933. }
  25934. });
  25935. // ../../node_modules/semver/functions/clean.js
  25936. var require_clean = __commonJS({
  25937. "../../node_modules/semver/functions/clean.js"(exports, module2) {
  25938. "use strict";
  25939. var parse9 = require_parse2(), clean = (version2, options) => {
  25940. let s3 = parse9(version2.trim().replace(/^[=v]+/, ""), options);
  25941. return s3 ? s3.version : null;
  25942. };
  25943. module2.exports = clean;
  25944. }
  25945. });
  25946. // ../../node_modules/semver/functions/inc.js
  25947. var require_inc = __commonJS({
  25948. "../../node_modules/semver/functions/inc.js"(exports, module2) {
  25949. "use strict";
  25950. var SemVer = require_semver(), inc = (version2, release, options, identifier2, identifierBase) => {
  25951. typeof options == "string" && (identifierBase = identifier2, identifier2 = options, options = void 0);
  25952. try {
  25953. return new SemVer(
  25954. version2 instanceof SemVer ? version2.version : version2,
  25955. options
  25956. ).inc(release, identifier2, identifierBase).version;
  25957. } catch {
  25958. return null;
  25959. }
  25960. };
  25961. module2.exports = inc;
  25962. }
  25963. });
  25964. // ../../node_modules/semver/functions/diff.js
  25965. var require_diff = __commonJS({
  25966. "../../node_modules/semver/functions/diff.js"(exports, module2) {
  25967. "use strict";
  25968. var parse9 = require_parse2(), diff2 = (version1, version2) => {
  25969. let v1 = parse9(version1, null, !0), v2 = parse9(version2, null, !0), comparison = v1.compare(v2);
  25970. if (comparison === 0)
  25971. return null;
  25972. let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
  25973. if (!!lowVersion.prerelease.length && !highHasPre) {
  25974. if (!lowVersion.patch && !lowVersion.minor)
  25975. return "major";
  25976. if (lowVersion.compareMain(highVersion) === 0)
  25977. return lowVersion.minor && !lowVersion.patch ? "minor" : "patch";
  25978. }
  25979. let prefix4 = highHasPre ? "pre" : "";
  25980. return v1.major !== v2.major ? prefix4 + "major" : v1.minor !== v2.minor ? prefix4 + "minor" : v1.patch !== v2.patch ? prefix4 + "patch" : "prerelease";
  25981. };
  25982. module2.exports = diff2;
  25983. }
  25984. });
  25985. // ../../node_modules/semver/functions/major.js
  25986. var require_major = __commonJS({
  25987. "../../node_modules/semver/functions/major.js"(exports, module2) {
  25988. "use strict";
  25989. var SemVer = require_semver(), major = (a3, loose) => new SemVer(a3, loose).major;
  25990. module2.exports = major;
  25991. }
  25992. });
  25993. // ../../node_modules/semver/functions/minor.js
  25994. var require_minor = __commonJS({
  25995. "../../node_modules/semver/functions/minor.js"(exports, module2) {
  25996. "use strict";
  25997. var SemVer = require_semver(), minor = (a3, loose) => new SemVer(a3, loose).minor;
  25998. module2.exports = minor;
  25999. }
  26000. });
  26001. // ../../node_modules/semver/functions/patch.js
  26002. var require_patch = __commonJS({
  26003. "../../node_modules/semver/functions/patch.js"(exports, module2) {
  26004. "use strict";
  26005. var SemVer = require_semver(), patch = (a3, loose) => new SemVer(a3, loose).patch;
  26006. module2.exports = patch;
  26007. }
  26008. });
  26009. // ../../node_modules/semver/functions/prerelease.js
  26010. var require_prerelease = __commonJS({
  26011. "../../node_modules/semver/functions/prerelease.js"(exports, module2) {
  26012. "use strict";
  26013. var parse9 = require_parse2(), prerelease = (version2, options) => {
  26014. let parsed = parse9(version2, options);
  26015. return parsed && parsed.prerelease.length ? parsed.prerelease : null;
  26016. };
  26017. module2.exports = prerelease;
  26018. }
  26019. });
  26020. // ../../node_modules/semver/functions/compare.js
  26021. var require_compare = __commonJS({
  26022. "../../node_modules/semver/functions/compare.js"(exports, module2) {
  26023. "use strict";
  26024. var SemVer = require_semver(), compare = (a3, b, loose) => new SemVer(a3, loose).compare(new SemVer(b, loose));
  26025. module2.exports = compare;
  26026. }
  26027. });
  26028. // ../../node_modules/semver/functions/rcompare.js
  26029. var require_rcompare = __commonJS({
  26030. "../../node_modules/semver/functions/rcompare.js"(exports, module2) {
  26031. "use strict";
  26032. var compare = require_compare(), rcompare = (a3, b, loose) => compare(b, a3, loose);
  26033. module2.exports = rcompare;
  26034. }
  26035. });
  26036. // ../../node_modules/semver/functions/compare-loose.js
  26037. var require_compare_loose = __commonJS({
  26038. "../../node_modules/semver/functions/compare-loose.js"(exports, module2) {
  26039. "use strict";
  26040. var compare = require_compare(), compareLoose = (a3, b) => compare(a3, b, !0);
  26041. module2.exports = compareLoose;
  26042. }
  26043. });
  26044. // ../../node_modules/semver/functions/compare-build.js
  26045. var require_compare_build = __commonJS({
  26046. "../../node_modules/semver/functions/compare-build.js"(exports, module2) {
  26047. "use strict";
  26048. var SemVer = require_semver(), compareBuild = (a3, b, loose) => {
  26049. let versionA = new SemVer(a3, loose), versionB = new SemVer(b, loose);
  26050. return versionA.compare(versionB) || versionA.compareBuild(versionB);
  26051. };
  26052. module2.exports = compareBuild;
  26053. }
  26054. });
  26055. // ../../node_modules/semver/functions/sort.js
  26056. var require_sort = __commonJS({
  26057. "../../node_modules/semver/functions/sort.js"(exports, module2) {
  26058. "use strict";
  26059. var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a3, b) => compareBuild(a3, b, loose));
  26060. module2.exports = sort;
  26061. }
  26062. });
  26063. // ../../node_modules/semver/functions/rsort.js
  26064. var require_rsort = __commonJS({
  26065. "../../node_modules/semver/functions/rsort.js"(exports, module2) {
  26066. "use strict";
  26067. var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a3, b) => compareBuild(b, a3, loose));
  26068. module2.exports = rsort;
  26069. }
  26070. });
  26071. // ../../node_modules/semver/functions/gt.js
  26072. var require_gt = __commonJS({
  26073. "../../node_modules/semver/functions/gt.js"(exports, module2) {
  26074. "use strict";
  26075. var compare = require_compare(), gt = (a3, b, loose) => compare(a3, b, loose) > 0;
  26076. module2.exports = gt;
  26077. }
  26078. });
  26079. // ../../node_modules/semver/functions/lt.js
  26080. var require_lt = __commonJS({
  26081. "../../node_modules/semver/functions/lt.js"(exports, module2) {
  26082. "use strict";
  26083. var compare = require_compare(), lt = (a3, b, loose) => compare(a3, b, loose) < 0;
  26084. module2.exports = lt;
  26085. }
  26086. });
  26087. // ../../node_modules/semver/functions/eq.js
  26088. var require_eq = __commonJS({
  26089. "../../node_modules/semver/functions/eq.js"(exports, module2) {
  26090. "use strict";
  26091. var compare = require_compare(), eq4 = (a3, b, loose) => compare(a3, b, loose) === 0;
  26092. module2.exports = eq4;
  26093. }
  26094. });
  26095. // ../../node_modules/semver/functions/neq.js
  26096. var require_neq = __commonJS({
  26097. "../../node_modules/semver/functions/neq.js"(exports, module2) {
  26098. "use strict";
  26099. var compare = require_compare(), neq = (a3, b, loose) => compare(a3, b, loose) !== 0;
  26100. module2.exports = neq;
  26101. }
  26102. });
  26103. // ../../node_modules/semver/functions/gte.js
  26104. var require_gte = __commonJS({
  26105. "../../node_modules/semver/functions/gte.js"(exports, module2) {
  26106. "use strict";
  26107. var compare = require_compare(), gte = (a3, b, loose) => compare(a3, b, loose) >= 0;
  26108. module2.exports = gte;
  26109. }
  26110. });
  26111. // ../../node_modules/semver/functions/lte.js
  26112. var require_lte = __commonJS({
  26113. "../../node_modules/semver/functions/lte.js"(exports, module2) {
  26114. "use strict";
  26115. var compare = require_compare(), lte = (a3, b, loose) => compare(a3, b, loose) <= 0;
  26116. module2.exports = lte;
  26117. }
  26118. });
  26119. // ../../node_modules/semver/functions/cmp.js
  26120. var require_cmp = __commonJS({
  26121. "../../node_modules/semver/functions/cmp.js"(exports, module2) {
  26122. "use strict";
  26123. var eq4 = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a3, op, b, loose) => {
  26124. switch (op) {
  26125. case "===":
  26126. return typeof a3 == "object" && (a3 = a3.version), typeof b == "object" && (b = b.version), a3 === b;
  26127. case "!==":
  26128. return typeof a3 == "object" && (a3 = a3.version), typeof b == "object" && (b = b.version), a3 !== b;
  26129. case "":
  26130. case "=":
  26131. case "==":
  26132. return eq4(a3, b, loose);
  26133. case "!=":
  26134. return neq(a3, b, loose);
  26135. case ">":
  26136. return gt(a3, b, loose);
  26137. case ">=":
  26138. return gte(a3, b, loose);
  26139. case "<":
  26140. return lt(a3, b, loose);
  26141. case "<=":
  26142. return lte(a3, b, loose);
  26143. default:
  26144. throw new TypeError(`Invalid operator: ${op}`);
  26145. }
  26146. };
  26147. module2.exports = cmp;
  26148. }
  26149. });
  26150. // ../../node_modules/semver/functions/coerce.js
  26151. var require_coerce = __commonJS({
  26152. "../../node_modules/semver/functions/coerce.js"(exports, module2) {
  26153. "use strict";
  26154. var SemVer = require_semver(), parse9 = require_parse2(), { safeRe: re2, t } = require_re(), coerce = (version2, options) => {
  26155. if (version2 instanceof SemVer)
  26156. return version2;
  26157. if (typeof version2 == "number" && (version2 = String(version2)), typeof version2 != "string")
  26158. return null;
  26159. options = options || {};
  26160. let match3 = null;
  26161. if (!options.rtl)
  26162. match3 = version2.match(options.includePrerelease ? re2[t.COERCEFULL] : re2[t.COERCE]);
  26163. else {
  26164. let coerceRtlRegex = options.includePrerelease ? re2[t.COERCERTLFULL] : re2[t.COERCERTL], next2;
  26165. for (; (next2 = coerceRtlRegex.exec(version2)) && (!match3 || match3.index + match3[0].length !== version2.length); )
  26166. (!match3 || next2.index + next2[0].length !== match3.index + match3[0].length) && (match3 = next2), coerceRtlRegex.lastIndex = next2.index + next2[1].length + next2[2].length;
  26167. coerceRtlRegex.lastIndex = -1;
  26168. }
  26169. if (match3 === null)
  26170. return null;
  26171. let major = match3[2], minor = match3[3] || "0", patch = match3[4] || "0", prerelease = options.includePrerelease && match3[5] ? `-${match3[5]}` : "", build3 = options.includePrerelease && match3[6] ? `+${match3[6]}` : "";
  26172. return parse9(`${major}.${minor}.${patch}${prerelease}${build3}`, options);
  26173. };
  26174. module2.exports = coerce;
  26175. }
  26176. });
  26177. // ../../node_modules/semver/internal/lrucache.js
  26178. var require_lrucache = __commonJS({
  26179. "../../node_modules/semver/internal/lrucache.js"(exports, module2) {
  26180. "use strict";
  26181. var LRUCache = class {
  26182. constructor() {
  26183. this.max = 1e3, this.map = /* @__PURE__ */ new Map();
  26184. }
  26185. get(key) {
  26186. let value = this.map.get(key);
  26187. if (value !== void 0)
  26188. return this.map.delete(key), this.map.set(key, value), value;
  26189. }
  26190. delete(key) {
  26191. return this.map.delete(key);
  26192. }
  26193. set(key, value) {
  26194. if (!this.delete(key) && value !== void 0) {
  26195. if (this.map.size >= this.max) {
  26196. let firstKey = this.map.keys().next().value;
  26197. this.delete(firstKey);
  26198. }
  26199. this.map.set(key, value);
  26200. }
  26201. return this;
  26202. }
  26203. };
  26204. module2.exports = LRUCache;
  26205. }
  26206. });
  26207. // ../../node_modules/semver/classes/range.js
  26208. var require_range2 = __commonJS({
  26209. "../../node_modules/semver/classes/range.js"(exports, module2) {
  26210. "use strict";
  26211. var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
  26212. constructor(range, options) {
  26213. if (options = parseOptions(options), range instanceof _Range)
  26214. return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
  26215. if (range instanceof Comparator)
  26216. return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
  26217. if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c) => c.length), !this.set.length)
  26218. throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
  26219. if (this.set.length > 1) {
  26220. let first = this.set[0];
  26221. if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
  26222. this.set = [first];
  26223. else if (this.set.length > 1) {
  26224. for (let c of this.set)
  26225. if (c.length === 1 && isAny(c[0])) {
  26226. this.set = [c];
  26227. break;
  26228. }
  26229. }
  26230. }
  26231. this.formatted = void 0;
  26232. }
  26233. get range() {
  26234. if (this.formatted === void 0) {
  26235. this.formatted = "";
  26236. for (let i = 0; i < this.set.length; i++) {
  26237. i > 0 && (this.formatted += "||");
  26238. let comps = this.set[i];
  26239. for (let k = 0; k < comps.length; k++)
  26240. k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
  26241. }
  26242. }
  26243. return this.formatted;
  26244. }
  26245. format() {
  26246. return this.range;
  26247. }
  26248. toString() {
  26249. return this.range;
  26250. }
  26251. parseRange(range) {
  26252. let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
  26253. if (cached)
  26254. return cached;
  26255. let loose = this.options.loose, hr = loose ? re2[t.HYPHENRANGELOOSE] : re2[t.HYPHENRANGE];
  26256. range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug2("hyphen replace", range), range = range.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace), debug2("comparator trim", range), range = range.replace(re2[t.TILDETRIM], tildeTrimReplace), debug2("tilde trim", range), range = range.replace(re2[t.CARETTRIM], caretTrimReplace), debug2("caret trim", range);
  26257. let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
  26258. loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re2[t.COMPARATORLOOSE])))), debug2("range list", rangeList);
  26259. let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
  26260. for (let comp of comparators) {
  26261. if (isNullSet(comp))
  26262. return [comp];
  26263. rangeMap.set(comp.value, comp);
  26264. }
  26265. rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
  26266. let result = [...rangeMap.values()];
  26267. return cache.set(memoKey, result), result;
  26268. }
  26269. intersects(range, options) {
  26270. if (!(range instanceof _Range))
  26271. throw new TypeError("a Range is required");
  26272. return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
  26273. }
  26274. // if ANY of the sets match ALL of its comparators, then pass
  26275. test(version2) {
  26276. if (!version2)
  26277. return !1;
  26278. if (typeof version2 == "string")
  26279. try {
  26280. version2 = new SemVer(version2, this.options);
  26281. } catch {
  26282. return !1;
  26283. }
  26284. for (let i = 0; i < this.set.length; i++)
  26285. if (testSet(this.set[i], version2, this.options))
  26286. return !0;
  26287. return !1;
  26288. }
  26289. };
  26290. module2.exports = Range;
  26291. var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug2 = require_debug(), SemVer = require_semver(), {
  26292. safeRe: re2,
  26293. t,
  26294. comparatorTrimReplace,
  26295. tildeTrimReplace,
  26296. caretTrimReplace
  26297. } = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
  26298. let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
  26299. for (; result && remainingComparators.length; )
  26300. result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
  26301. return result;
  26302. }, parseComparator = (comp, options) => (comp = comp.replace(re2[t.BUILD], ""), debug2("comp", comp, options), comp = replaceCarets(comp, options), debug2("caret", comp), comp = replaceTildes(comp, options), debug2("tildes", comp), comp = replaceXRanges(comp, options), debug2("xrange", comp), comp = replaceStars(comp, options), debug2("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
  26303. let r2 = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
  26304. return comp.replace(r2, (_, M, m3, p3, pr) => {
  26305. debug2("tilde", comp, _, M, m3, p3, pr);
  26306. let ret;
  26307. return isX(M) ? ret = "" : isX(m3) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p3) ? ret = `>=${M}.${m3}.0 <${M}.${+m3 + 1}.0-0` : pr ? (debug2("replaceTilde pr", pr), ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`) : ret = `>=${M}.${m3}.${p3} <${M}.${+m3 + 1}.0-0`, debug2("tilde return", ret), ret;
  26308. });
  26309. }, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
  26310. debug2("caret", comp, options);
  26311. let r2 = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET], z = options.includePrerelease ? "-0" : "";
  26312. return comp.replace(r2, (_, M, m3, p3, pr) => {
  26313. debug2("caret", comp, _, M, m3, p3, pr);
  26314. let ret;
  26315. return isX(M) ? ret = "" : isX(m3) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p3) ? M === "0" ? ret = `>=${M}.${m3}.0${z} <${M}.${+m3 + 1}.0-0` : ret = `>=${M}.${m3}.0${z} <${+M + 1}.0.0-0` : pr ? (debug2("replaceCaret pr", pr), M === "0" ? m3 === "0" ? ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${m3}.${+p3 + 1}-0` : ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0` : ret = `>=${M}.${m3}.${p3}-${pr} <${+M + 1}.0.0-0`) : (debug2("no pr"), M === "0" ? m3 === "0" ? ret = `>=${M}.${m3}.${p3}${z} <${M}.${m3}.${+p3 + 1}-0` : ret = `>=${M}.${m3}.${p3}${z} <${M}.${+m3 + 1}.0-0` : ret = `>=${M}.${m3}.${p3} <${+M + 1}.0.0-0`), debug2("caret return", ret), ret;
  26316. });
  26317. }, replaceXRanges = (comp, options) => (debug2("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
  26318. comp = comp.trim();
  26319. let r2 = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
  26320. return comp.replace(r2, (ret, gtlt, M, m3, p3, pr) => {
  26321. debug2("xRange", comp, ret, gtlt, M, m3, p3, pr);
  26322. let xM = isX(M), xm = xM || isX(m3), xp = xm || isX(p3), anyX = xp;
  26323. return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m3 = 0), p3 = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m3 = 0, p3 = 0) : (m3 = +m3 + 1, p3 = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m3 = +m3 + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m3}.${p3}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m3}.0${pr} <${M}.${+m3 + 1}.0-0`), debug2("xRange return", ret), ret;
  26324. });
  26325. }, replaceStars = (comp, options) => (debug2("replaceStars", comp, options), comp.trim().replace(re2[t.STAR], "")), replaceGTE0 = (comp, options) => (debug2("replaceGTE0", comp, options), comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from2, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from2 = "" : isX(fm) ? from2 = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from2 = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from2 = `>=${from2}` : from2 = `>=${from2}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from2} ${to}`.trim()), testSet = (set3, version2, options) => {
  26326. for (let i = 0; i < set3.length; i++)
  26327. if (!set3[i].test(version2))
  26328. return !1;
  26329. if (version2.prerelease.length && !options.includePrerelease) {
  26330. for (let i = 0; i < set3.length; i++)
  26331. if (debug2(set3[i].semver), set3[i].semver !== Comparator.ANY && set3[i].semver.prerelease.length > 0) {
  26332. let allowed = set3[i].semver;
  26333. if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch)
  26334. return !0;
  26335. }
  26336. return !1;
  26337. }
  26338. return !0;
  26339. };
  26340. }
  26341. });
  26342. // ../../node_modules/semver/classes/comparator.js
  26343. var require_comparator = __commonJS({
  26344. "../../node_modules/semver/classes/comparator.js"(exports, module2) {
  26345. "use strict";
  26346. var ANY = /* @__PURE__ */ Symbol("SemVer ANY"), Comparator = class _Comparator {
  26347. static get ANY() {
  26348. return ANY;
  26349. }
  26350. constructor(comp, options) {
  26351. if (options = parseOptions(options), comp instanceof _Comparator) {
  26352. if (comp.loose === !!options.loose)
  26353. return comp;
  26354. comp = comp.value;
  26355. }
  26356. comp = comp.trim().split(/\s+/).join(" "), debug2("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug2("comp", this);
  26357. }
  26358. parse(comp) {
  26359. let r2 = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR], m3 = comp.match(r2);
  26360. if (!m3)
  26361. throw new TypeError(`Invalid comparator: ${comp}`);
  26362. this.operator = m3[1] !== void 0 ? m3[1] : "", this.operator === "=" && (this.operator = ""), m3[2] ? this.semver = new SemVer(m3[2], this.options.loose) : this.semver = ANY;
  26363. }
  26364. toString() {
  26365. return this.value;
  26366. }
  26367. test(version2) {
  26368. if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY)
  26369. return !0;
  26370. if (typeof version2 == "string")
  26371. try {
  26372. version2 = new SemVer(version2, this.options);
  26373. } catch {
  26374. return !1;
  26375. }
  26376. return cmp(version2, this.operator, this.semver, this.options);
  26377. }
  26378. intersects(comp, options) {
  26379. if (!(comp instanceof _Comparator))
  26380. throw new TypeError("a Comparator is required");
  26381. return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
  26382. }
  26383. };
  26384. module2.exports = Comparator;
  26385. var parseOptions = require_parse_options(), { safeRe: re2, t } = require_re(), cmp = require_cmp(), debug2 = require_debug(), SemVer = require_semver(), Range = require_range2();
  26386. }
  26387. });
  26388. // ../../node_modules/semver/functions/satisfies.js
  26389. var require_satisfies = __commonJS({
  26390. "../../node_modules/semver/functions/satisfies.js"(exports, module2) {
  26391. "use strict";
  26392. var Range = require_range2(), satisfies = (version2, range, options) => {
  26393. try {
  26394. range = new Range(range, options);
  26395. } catch {
  26396. return !1;
  26397. }
  26398. return range.test(version2);
  26399. };
  26400. module2.exports = satisfies;
  26401. }
  26402. });
  26403. // ../../node_modules/semver/ranges/to-comparators.js
  26404. var require_to_comparators = __commonJS({
  26405. "../../node_modules/semver/ranges/to-comparators.js"(exports, module2) {
  26406. "use strict";
  26407. var Range = require_range2(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
  26408. module2.exports = toComparators;
  26409. }
  26410. });
  26411. // ../../node_modules/semver/ranges/max-satisfying.js
  26412. var require_max_satisfying = __commonJS({
  26413. "../../node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
  26414. "use strict";
  26415. var SemVer = require_semver(), Range = require_range2(), maxSatisfying = (versions, range, options) => {
  26416. let max2 = null, maxSV = null, rangeObj = null;
  26417. try {
  26418. rangeObj = new Range(range, options);
  26419. } catch {
  26420. return null;
  26421. }
  26422. return versions.forEach((v) => {
  26423. rangeObj.test(v) && (!max2 || maxSV.compare(v) === -1) && (max2 = v, maxSV = new SemVer(max2, options));
  26424. }), max2;
  26425. };
  26426. module2.exports = maxSatisfying;
  26427. }
  26428. });
  26429. // ../../node_modules/semver/ranges/min-satisfying.js
  26430. var require_min_satisfying = __commonJS({
  26431. "../../node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
  26432. "use strict";
  26433. var SemVer = require_semver(), Range = require_range2(), minSatisfying = (versions, range, options) => {
  26434. let min2 = null, minSV = null, rangeObj = null;
  26435. try {
  26436. rangeObj = new Range(range, options);
  26437. } catch {
  26438. return null;
  26439. }
  26440. return versions.forEach((v) => {
  26441. rangeObj.test(v) && (!min2 || minSV.compare(v) === 1) && (min2 = v, minSV = new SemVer(min2, options));
  26442. }), min2;
  26443. };
  26444. module2.exports = minSatisfying;
  26445. }
  26446. });
  26447. // ../../node_modules/semver/ranges/min-version.js
  26448. var require_min_version = __commonJS({
  26449. "../../node_modules/semver/ranges/min-version.js"(exports, module2) {
  26450. "use strict";
  26451. var SemVer = require_semver(), Range = require_range2(), gt = require_gt(), minVersion = (range, loose) => {
  26452. range = new Range(range, loose);
  26453. let minver = new SemVer("0.0.0");
  26454. if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
  26455. return minver;
  26456. minver = null;
  26457. for (let i = 0; i < range.set.length; ++i) {
  26458. let comparators = range.set[i], setMin = null;
  26459. comparators.forEach((comparator) => {
  26460. let compver = new SemVer(comparator.semver.version);
  26461. switch (comparator.operator) {
  26462. case ">":
  26463. compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
  26464. /* fallthrough */
  26465. case "":
  26466. case ">=":
  26467. (!setMin || gt(compver, setMin)) && (setMin = compver);
  26468. break;
  26469. case "<":
  26470. case "<=":
  26471. break;
  26472. /* istanbul ignore next */
  26473. default:
  26474. throw new Error(`Unexpected operation: ${comparator.operator}`);
  26475. }
  26476. }), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
  26477. }
  26478. return minver && range.test(minver) ? minver : null;
  26479. };
  26480. module2.exports = minVersion;
  26481. }
  26482. });
  26483. // ../../node_modules/semver/ranges/valid.js
  26484. var require_valid2 = __commonJS({
  26485. "../../node_modules/semver/ranges/valid.js"(exports, module2) {
  26486. "use strict";
  26487. var Range = require_range2(), validRange = (range, options) => {
  26488. try {
  26489. return new Range(range, options).range || "*";
  26490. } catch {
  26491. return null;
  26492. }
  26493. };
  26494. module2.exports = validRange;
  26495. }
  26496. });
  26497. // ../../node_modules/semver/ranges/outside.js
  26498. var require_outside = __commonJS({
  26499. "../../node_modules/semver/ranges/outside.js"(exports, module2) {
  26500. "use strict";
  26501. var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range2(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version2, range, hilo, options) => {
  26502. version2 = new SemVer(version2, options), range = new Range(range, options);
  26503. let gtfn, ltefn, ltfn, comp, ecomp;
  26504. switch (hilo) {
  26505. case ">":
  26506. gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
  26507. break;
  26508. case "<":
  26509. gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
  26510. break;
  26511. default:
  26512. throw new TypeError('Must provide a hilo val of "<" or ">"');
  26513. }
  26514. if (satisfies(version2, range, options))
  26515. return !1;
  26516. for (let i = 0; i < range.set.length; ++i) {
  26517. let comparators = range.set[i], high = null, low = null;
  26518. if (comparators.forEach((comparator) => {
  26519. comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
  26520. }), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version2, low.semver))
  26521. return !1;
  26522. if (low.operator === ecomp && ltfn(version2, low.semver))
  26523. return !1;
  26524. }
  26525. return !0;
  26526. };
  26527. module2.exports = outside;
  26528. }
  26529. });
  26530. // ../../node_modules/semver/ranges/gtr.js
  26531. var require_gtr = __commonJS({
  26532. "../../node_modules/semver/ranges/gtr.js"(exports, module2) {
  26533. "use strict";
  26534. var outside = require_outside(), gtr = (version2, range, options) => outside(version2, range, ">", options);
  26535. module2.exports = gtr;
  26536. }
  26537. });
  26538. // ../../node_modules/semver/ranges/ltr.js
  26539. var require_ltr = __commonJS({
  26540. "../../node_modules/semver/ranges/ltr.js"(exports, module2) {
  26541. "use strict";
  26542. var outside = require_outside(), ltr = (version2, range, options) => outside(version2, range, "<", options);
  26543. module2.exports = ltr;
  26544. }
  26545. });
  26546. // ../../node_modules/semver/ranges/intersects.js
  26547. var require_intersects = __commonJS({
  26548. "../../node_modules/semver/ranges/intersects.js"(exports, module2) {
  26549. "use strict";
  26550. var Range = require_range2(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
  26551. module2.exports = intersects;
  26552. }
  26553. });
  26554. // ../../node_modules/semver/ranges/simplify.js
  26555. var require_simplify = __commonJS({
  26556. "../../node_modules/semver/ranges/simplify.js"(exports, module2) {
  26557. "use strict";
  26558. var satisfies = require_satisfies(), compare = require_compare();
  26559. module2.exports = (versions, range, options) => {
  26560. let set3 = [], first = null, prev2 = null, v = versions.sort((a3, b) => compare(a3, b, options));
  26561. for (let version2 of v)
  26562. satisfies(version2, range, options) ? (prev2 = version2, first || (first = version2)) : (prev2 && set3.push([first, prev2]), prev2 = null, first = null);
  26563. first && set3.push([first, null]);
  26564. let ranges = [];
  26565. for (let [min2, max2] of set3)
  26566. min2 === max2 ? ranges.push(min2) : !max2 && min2 === v[0] ? ranges.push("*") : max2 ? min2 === v[0] ? ranges.push(`<=${max2}`) : ranges.push(`${min2} - ${max2}`) : ranges.push(`>=${min2}`);
  26567. let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
  26568. return simplified.length < original.length ? simplified : range;
  26569. };
  26570. }
  26571. });
  26572. // ../../node_modules/semver/ranges/subset.js
  26573. var require_subset = __commonJS({
  26574. "../../node_modules/semver/ranges/subset.js"(exports, module2) {
  26575. "use strict";
  26576. var Range = require_range2(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
  26577. if (sub === dom)
  26578. return !0;
  26579. sub = new Range(sub, options), dom = new Range(dom, options);
  26580. let sawNonNull = !1;
  26581. OUTER: for (let simpleSub of sub.set) {
  26582. for (let simpleDom of dom.set) {
  26583. let isSub = simpleSubset(simpleSub, simpleDom, options);
  26584. if (sawNonNull = sawNonNull || isSub !== null, isSub)
  26585. continue OUTER;
  26586. }
  26587. if (sawNonNull)
  26588. return !1;
  26589. }
  26590. return !0;
  26591. }, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
  26592. if (sub === dom)
  26593. return !0;
  26594. if (sub.length === 1 && sub[0].semver === ANY) {
  26595. if (dom.length === 1 && dom[0].semver === ANY)
  26596. return !0;
  26597. options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
  26598. }
  26599. if (dom.length === 1 && dom[0].semver === ANY) {
  26600. if (options.includePrerelease)
  26601. return !0;
  26602. dom = minimumVersion;
  26603. }
  26604. let eqSet = /* @__PURE__ */ new Set(), gt, lt;
  26605. for (let c of sub)
  26606. c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
  26607. if (eqSet.size > 1)
  26608. return null;
  26609. let gtltComp;
  26610. if (gt && lt) {
  26611. if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
  26612. return null;
  26613. if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
  26614. return null;
  26615. }
  26616. for (let eq4 of eqSet) {
  26617. if (gt && !satisfies(eq4, String(gt), options) || lt && !satisfies(eq4, String(lt), options))
  26618. return null;
  26619. for (let c of dom)
  26620. if (!satisfies(eq4, String(c), options))
  26621. return !1;
  26622. return !0;
  26623. }
  26624. let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
  26625. needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
  26626. for (let c of dom) {
  26627. if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
  26628. if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
  26629. if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
  26630. return !1;
  26631. } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
  26632. return !1;
  26633. }
  26634. if (lt) {
  26635. if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
  26636. if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
  26637. return !1;
  26638. } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
  26639. return !1;
  26640. }
  26641. if (!c.operator && (lt || gt) && gtltComp !== 0)
  26642. return !1;
  26643. }
  26644. return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
  26645. }, higherGT = (a3, b, options) => {
  26646. if (!a3)
  26647. return b;
  26648. let comp = compare(a3.semver, b.semver, options);
  26649. return comp > 0 ? a3 : comp < 0 || b.operator === ">" && a3.operator === ">=" ? b : a3;
  26650. }, lowerLT = (a3, b, options) => {
  26651. if (!a3)
  26652. return b;
  26653. let comp = compare(a3.semver, b.semver, options);
  26654. return comp < 0 ? a3 : comp > 0 || b.operator === "<" && a3.operator === "<=" ? b : a3;
  26655. };
  26656. module2.exports = subset;
  26657. }
  26658. });
  26659. // ../../node_modules/semver/index.js
  26660. var require_semver2 = __commonJS({
  26661. "../../node_modules/semver/index.js"(exports, module2) {
  26662. "use strict";
  26663. var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse9 = require_parse2(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff2 = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq4 = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range2(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
  26664. module2.exports = {
  26665. parse: parse9,
  26666. valid,
  26667. clean,
  26668. inc,
  26669. diff: diff2,
  26670. major,
  26671. minor,
  26672. patch,
  26673. prerelease,
  26674. compare,
  26675. rcompare,
  26676. compareLoose,
  26677. compareBuild,
  26678. sort,
  26679. rsort,
  26680. gt,
  26681. lt,
  26682. eq: eq4,
  26683. neq,
  26684. gte,
  26685. lte,
  26686. cmp,
  26687. coerce,
  26688. Comparator,
  26689. Range,
  26690. satisfies,
  26691. toComparators,
  26692. maxSatisfying,
  26693. minSatisfying,
  26694. minVersion,
  26695. validRange,
  26696. outside,
  26697. gtr,
  26698. ltr,
  26699. intersects,
  26700. simplifyRange,
  26701. subset,
  26702. SemVer,
  26703. re: internalRe.re,
  26704. src: internalRe.src,
  26705. tokens: internalRe.t,
  26706. SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
  26707. RELEASE_TYPES: constants.RELEASE_TYPES,
  26708. compareIdentifiers: identifiers.compareIdentifiers,
  26709. rcompareIdentifiers: identifiers.rcompareIdentifiers
  26710. };
  26711. }
  26712. });
  26713. // ../../node_modules/store2/dist/store2.js
  26714. var require_store2 = __commonJS({
  26715. "../../node_modules/store2/dist/store2.js"(exports, module2) {
  26716. (function(window2, define3) {
  26717. var _ = {
  26718. version: "2.14.4",
  26719. areas: {},
  26720. apis: {},
  26721. nsdelim: ".",
  26722. // utilities
  26723. inherit: function(api, o) {
  26724. for (var p3 in api)
  26725. o.hasOwnProperty(p3) || Object.defineProperty(o, p3, Object.getOwnPropertyDescriptor(api, p3));
  26726. return o;
  26727. },
  26728. stringify: function(d, fn4) {
  26729. return d === void 0 || typeof d == "function" ? d + "" : JSON.stringify(d, fn4 || _.replace);
  26730. },
  26731. parse: function(s3, fn4) {
  26732. try {
  26733. return JSON.parse(s3, fn4 || _.revive);
  26734. } catch {
  26735. return s3;
  26736. }
  26737. },
  26738. // extension hooks
  26739. fn: function(name, fn4) {
  26740. _.storeAPI[name] = fn4;
  26741. for (var api in _.apis)
  26742. _.apis[api][name] = fn4;
  26743. },
  26744. get: function(area, key) {
  26745. return area.getItem(key);
  26746. },
  26747. set: function(area, key, string) {
  26748. area.setItem(key, string);
  26749. },
  26750. remove: function(area, key) {
  26751. area.removeItem(key);
  26752. },
  26753. key: function(area, i) {
  26754. return area.key(i);
  26755. },
  26756. length: function(area) {
  26757. return area.length;
  26758. },
  26759. clear: function(area) {
  26760. area.clear();
  26761. },
  26762. // core functions
  26763. Store: function(id, area, namespace) {
  26764. var store3 = _.inherit(_.storeAPI, function(key, data, overwrite) {
  26765. return arguments.length === 0 ? store3.getAll() : typeof data == "function" ? store3.transact(key, data, overwrite) : data !== void 0 ? store3.set(key, data, overwrite) : typeof key == "string" || typeof key == "number" ? store3.get(key) : typeof key == "function" ? store3.each(key) : key ? store3.setAll(key, data) : store3.clear();
  26766. });
  26767. store3._id = id;
  26768. try {
  26769. var testKey = "__store2_test";
  26770. area.setItem(testKey, "ok"), store3._area = area, area.removeItem(testKey);
  26771. } catch {
  26772. store3._area = _.storage("fake");
  26773. }
  26774. return store3._ns = namespace || "", _.areas[id] || (_.areas[id] = store3._area), _.apis[store3._ns + store3._id] || (_.apis[store3._ns + store3._id] = store3), store3;
  26775. },
  26776. storeAPI: {
  26777. // admin functions
  26778. area: function(id, area) {
  26779. var store3 = this[id];
  26780. return (!store3 || !store3.area) && (store3 = _.Store(id, area, this._ns), this[id] || (this[id] = store3)), store3;
  26781. },
  26782. namespace: function(namespace, singleArea, delim) {
  26783. if (delim = delim || this._delim || _.nsdelim, !namespace)
  26784. return this._ns ? this._ns.substring(0, this._ns.length - delim.length) : "";
  26785. var ns = namespace, store3 = this[ns];
  26786. if ((!store3 || !store3.namespace) && (store3 = _.Store(this._id, this._area, this._ns + ns + delim), store3._delim = delim, this[ns] || (this[ns] = store3), !singleArea))
  26787. for (var name in _.areas)
  26788. store3.area(name, _.areas[name]);
  26789. return store3;
  26790. },
  26791. isFake: function(force) {
  26792. return force ? (this._real = this._area, this._area = _.storage("fake")) : force === !1 && (this._area = this._real || this._area), this._area.name === "fake";
  26793. },
  26794. toString: function() {
  26795. return "store" + (this._ns ? "." + this.namespace() : "") + "[" + this._id + "]";
  26796. },
  26797. // storage functions
  26798. has: function(key) {
  26799. return this._area.has ? this._area.has(this._in(key)) : this._in(key) in this._area;
  26800. },
  26801. size: function() {
  26802. return this.keys().length;
  26803. },
  26804. each: function(fn4, fill2) {
  26805. for (var i = 0, m3 = _.length(this._area); i < m3; i++) {
  26806. var key = this._out(_.key(this._area, i));
  26807. if (key !== void 0 && fn4.call(this, key, this.get(key), fill2) === !1)
  26808. break;
  26809. m3 > _.length(this._area) && (m3--, i--);
  26810. }
  26811. return fill2 || this;
  26812. },
  26813. keys: function(fillList) {
  26814. return this.each(function(k, v, list) {
  26815. list.push(k);
  26816. }, fillList || []);
  26817. },
  26818. get: function(key, alt) {
  26819. var s3 = _.get(this._area, this._in(key)), fn4;
  26820. return typeof alt == "function" && (fn4 = alt, alt = null), s3 !== null ? _.parse(s3, fn4) : alt ?? s3;
  26821. },
  26822. getAll: function(fillObj) {
  26823. return this.each(function(k, v, all) {
  26824. all[k] = v;
  26825. }, fillObj || {});
  26826. },
  26827. transact: function(key, fn4, alt) {
  26828. var val = this.get(key, alt), ret = fn4(val);
  26829. return this.set(key, ret === void 0 ? val : ret), this;
  26830. },
  26831. set: function(key, data, overwrite) {
  26832. var d = this.get(key), replacer3;
  26833. return d != null && overwrite === !1 ? data : (typeof overwrite == "function" && (replacer3 = overwrite, overwrite = void 0), _.set(this._area, this._in(key), _.stringify(data, replacer3), overwrite) || d);
  26834. },
  26835. setAll: function(data, overwrite) {
  26836. var changed, val;
  26837. for (var key in data)
  26838. val = data[key], this.set(key, val, overwrite) !== val && (changed = !0);
  26839. return changed;
  26840. },
  26841. add: function(key, data, replacer3) {
  26842. var d = this.get(key);
  26843. if (d instanceof Array)
  26844. data = d.concat(data);
  26845. else if (d !== null) {
  26846. var type5 = typeof d;
  26847. if (type5 === typeof data && type5 === "object") {
  26848. for (var k in data)
  26849. d[k] = data[k];
  26850. data = d;
  26851. } else
  26852. data = d + data;
  26853. }
  26854. return _.set(this._area, this._in(key), _.stringify(data, replacer3)), data;
  26855. },
  26856. remove: function(key, alt) {
  26857. var d = this.get(key, alt);
  26858. return _.remove(this._area, this._in(key)), d;
  26859. },
  26860. clear: function() {
  26861. return this._ns ? this.each(function(k) {
  26862. _.remove(this._area, this._in(k));
  26863. }, 1) : _.clear(this._area), this;
  26864. },
  26865. clearAll: function() {
  26866. var area = this._area;
  26867. for (var id in _.areas)
  26868. _.areas.hasOwnProperty(id) && (this._area = _.areas[id], this.clear());
  26869. return this._area = area, this;
  26870. },
  26871. // internal use functions
  26872. _in: function(k) {
  26873. return typeof k != "string" && (k = _.stringify(k)), this._ns ? this._ns + k : k;
  26874. },
  26875. _out: function(k) {
  26876. return this._ns ? k && k.indexOf(this._ns) === 0 ? k.substring(this._ns.length) : void 0 : (
  26877. // so each() knows to skip it
  26878. k
  26879. );
  26880. }
  26881. },
  26882. // end _.storeAPI
  26883. storage: function(name) {
  26884. return _.inherit(_.storageAPI, { items: {}, name });
  26885. },
  26886. storageAPI: {
  26887. length: 0,
  26888. has: function(k) {
  26889. return this.items.hasOwnProperty(k);
  26890. },
  26891. key: function(i) {
  26892. var c = 0;
  26893. for (var k in this.items)
  26894. if (this.has(k) && i === c++)
  26895. return k;
  26896. },
  26897. setItem: function(k, v) {
  26898. this.has(k) || this.length++, this.items[k] = v;
  26899. },
  26900. removeItem: function(k) {
  26901. this.has(k) && (delete this.items[k], this.length--);
  26902. },
  26903. getItem: function(k) {
  26904. return this.has(k) ? this.items[k] : null;
  26905. },
  26906. clear: function() {
  26907. for (var k in this.items)
  26908. this.removeItem(k);
  26909. }
  26910. }
  26911. // end _.storageAPI
  26912. }, store2 = (
  26913. // safely set this up (throws error in IE10/32bit mode for local files)
  26914. _.Store("local", (function() {
  26915. try {
  26916. return localStorage;
  26917. } catch {
  26918. }
  26919. })())
  26920. );
  26921. store2.local = store2, store2._ = _, store2.area("session", (function() {
  26922. try {
  26923. return sessionStorage;
  26924. } catch {
  26925. }
  26926. })()), store2.area("page", _.storage("page")), typeof define3 == "function" && define3.amd !== void 0 ? define3("store2", [], function() {
  26927. return store2;
  26928. }) : typeof module2 < "u" && module2.exports ? module2.exports = store2 : (window2.store && (_.conflict = window2.store), window2.store = store2);
  26929. })(exports, exports && exports.define);
  26930. }
  26931. });
  26932. // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
  26933. var require_use_sync_external_store_shim_production = __commonJS({
  26934. "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
  26935. "use strict";
  26936. var React99 = require_react();
  26937. function is(x, y) {
  26938. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
  26939. }
  26940. var objectIs = typeof Object.is == "function" ? Object.is : is, useState29 = React99.useState, useEffect26 = React99.useEffect, useLayoutEffect9 = React99.useLayoutEffect, useDebugValue = React99.useDebugValue;
  26941. function useSyncExternalStore$2(subscribe, getSnapshot) {
  26942. var value = getSnapshot(), _useState = useState29({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
  26943. return useLayoutEffect9(
  26944. function() {
  26945. inst.value = value, inst.getSnapshot = getSnapshot, checkIfSnapshotChanged(inst) && forceUpdate({ inst });
  26946. },
  26947. [subscribe, value, getSnapshot]
  26948. ), useEffect26(
  26949. function() {
  26950. return checkIfSnapshotChanged(inst) && forceUpdate({ inst }), subscribe(function() {
  26951. checkIfSnapshotChanged(inst) && forceUpdate({ inst });
  26952. });
  26953. },
  26954. [subscribe]
  26955. ), useDebugValue(value), value;
  26956. }
  26957. function checkIfSnapshotChanged(inst) {
  26958. var latestGetSnapshot = inst.getSnapshot;
  26959. inst = inst.value;
  26960. try {
  26961. var nextValue = latestGetSnapshot();
  26962. return !objectIs(inst, nextValue);
  26963. } catch {
  26964. return !0;
  26965. }
  26966. }
  26967. function useSyncExternalStore$1(subscribe, getSnapshot) {
  26968. return getSnapshot();
  26969. }
  26970. var shim = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? useSyncExternalStore$1 : useSyncExternalStore$2;
  26971. exports.useSyncExternalStore = React99.useSyncExternalStore !== void 0 ? React99.useSyncExternalStore : shim;
  26972. }
  26973. });
  26974. // ../../node_modules/use-sync-external-store/shim/index.js
  26975. var require_shim = __commonJS({
  26976. "../../node_modules/use-sync-external-store/shim/index.js"(exports, module2) {
  26977. "use strict";
  26978. module2.exports = require_use_sync_external_store_shim_production();
  26979. }
  26980. });
  26981. // ../../node_modules/react-popper/lib/esm/Manager.js
  26982. var React67, ManagerReferenceNodeContext, ManagerReferenceNodeSetterContext, init_Manager = __esm({
  26983. "../../node_modules/react-popper/lib/esm/Manager.js"() {
  26984. React67 = __toESM(require_react()), ManagerReferenceNodeContext = React67.createContext(), ManagerReferenceNodeSetterContext = React67.createContext();
  26985. }
  26986. });
  26987. // ../../node_modules/react-popper/lib/esm/utils.js
  26988. var React68, fromEntries3, useIsomorphicLayoutEffect2, init_utils3 = __esm({
  26989. "../../node_modules/react-popper/lib/esm/utils.js"() {
  26990. React68 = __toESM(require_react()), fromEntries3 = function(entries) {
  26991. return entries.reduce(function(acc, _ref) {
  26992. var key = _ref[0], value = _ref[1];
  26993. return acc[key] = value, acc;
  26994. }, {});
  26995. }, useIsomorphicLayoutEffect2 = typeof window < "u" && window.document && window.document.createElement ? React68.useLayoutEffect : React68.useEffect;
  26996. }
  26997. });
  26998. // ../../node_modules/@popperjs/core/lib/enums.js
  26999. var top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main2, afterMain, beforeWrite, write, afterWrite, modifierPhases, init_enums = __esm({
  27000. "../../node_modules/@popperjs/core/lib/enums.js"() {
  27001. top = "top", bottom = "bottom", right = "right", left = "left", auto = "auto", basePlacements = [top, bottom, right, left], start = "start", end = "end", clippingParents = "clippingParents", viewport = "viewport", popper = "popper", reference = "reference", variationPlacements = basePlacements.reduce(function(acc, placement) {
  27002. return acc.concat([placement + "-" + start, placement + "-" + end]);
  27003. }, []), placements = [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
  27004. return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
  27005. }, []), beforeRead = "beforeRead", read = "read", afterRead = "afterRead", beforeMain = "beforeMain", main2 = "main", afterMain = "afterMain", beforeWrite = "beforeWrite", write = "write", afterWrite = "afterWrite", modifierPhases = [beforeRead, read, afterRead, beforeMain, main2, afterMain, beforeWrite, write, afterWrite];
  27006. }
  27007. });
  27008. // ../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
  27009. function getNodeName(element) {
  27010. return element ? (element.nodeName || "").toLowerCase() : null;
  27011. }
  27012. var init_getNodeName = __esm({
  27013. "../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"() {
  27014. }
  27015. });
  27016. // ../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js
  27017. function getWindow2(node2) {
  27018. if (node2 == null)
  27019. return window;
  27020. if (node2.toString() !== "[object Window]") {
  27021. var ownerDocument = node2.ownerDocument;
  27022. return ownerDocument && ownerDocument.defaultView || window;
  27023. }
  27024. return node2;
  27025. }
  27026. var init_getWindow = __esm({
  27027. "../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js"() {
  27028. }
  27029. });
  27030. // ../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
  27031. function isElement5(node2) {
  27032. var OwnElement = getWindow2(node2).Element;
  27033. return node2 instanceof OwnElement || node2 instanceof Element;
  27034. }
  27035. function isHTMLElement(node2) {
  27036. var OwnElement = getWindow2(node2).HTMLElement;
  27037. return node2 instanceof OwnElement || node2 instanceof HTMLElement;
  27038. }
  27039. function isShadowRoot(node2) {
  27040. if (typeof ShadowRoot > "u")
  27041. return !1;
  27042. var OwnElement = getWindow2(node2).ShadowRoot;
  27043. return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
  27044. }
  27045. var init_instanceOf = __esm({
  27046. "../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"() {
  27047. init_getWindow();
  27048. }
  27049. });
  27050. // ../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js
  27051. function applyStyles(_ref) {
  27052. var state3 = _ref.state;
  27053. Object.keys(state3.elements).forEach(function(name) {
  27054. var style = state3.styles[name] || {}, attributes = state3.attributes[name] || {}, element = state3.elements[name];
  27055. !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(name2) {
  27056. var value = attributes[name2];
  27057. value === !1 ? element.removeAttribute(name2) : element.setAttribute(name2, value === !0 ? "" : value);
  27058. }));
  27059. });
  27060. }
  27061. function effect(_ref2) {
  27062. var state3 = _ref2.state, initialStyles = {
  27063. popper: {
  27064. position: state3.options.strategy,
  27065. left: "0",
  27066. top: "0",
  27067. margin: "0"
  27068. },
  27069. arrow: {
  27070. position: "absolute"
  27071. },
  27072. reference: {}
  27073. };
  27074. return Object.assign(state3.elements.popper.style, initialStyles.popper), state3.styles = initialStyles, state3.elements.arrow && Object.assign(state3.elements.arrow.style, initialStyles.arrow), function() {
  27075. Object.keys(state3.elements).forEach(function(name) {
  27076. var element = state3.elements[name], attributes = state3.attributes[name] || {}, styleProperties = Object.keys(state3.styles.hasOwnProperty(name) ? state3.styles[name] : initialStyles[name]), style = styleProperties.reduce(function(style2, property) {
  27077. return style2[property] = "", style2;
  27078. }, {});
  27079. !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(attribute) {
  27080. element.removeAttribute(attribute);
  27081. }));
  27082. });
  27083. };
  27084. }
  27085. var applyStyles_default, init_applyStyles = __esm({
  27086. "../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js"() {
  27087. init_getNodeName();
  27088. init_instanceOf();
  27089. applyStyles_default = {
  27090. name: "applyStyles",
  27091. enabled: !0,
  27092. phase: "write",
  27093. fn: applyStyles,
  27094. effect,
  27095. requires: ["computeStyles"]
  27096. };
  27097. }
  27098. });
  27099. // ../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js
  27100. function getBasePlacement(placement) {
  27101. return placement.split("-")[0];
  27102. }
  27103. var init_getBasePlacement = __esm({
  27104. "../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js"() {
  27105. init_enums();
  27106. }
  27107. });
  27108. // ../../node_modules/@popperjs/core/lib/utils/math.js
  27109. var max, min, round2, init_math = __esm({
  27110. "../../node_modules/@popperjs/core/lib/utils/math.js"() {
  27111. max = Math.max, min = Math.min, round2 = Math.round;
  27112. }
  27113. });
  27114. // ../../node_modules/@popperjs/core/lib/utils/userAgent.js
  27115. function getUAString() {
  27116. var uaData = navigator.userAgentData;
  27117. return uaData != null && uaData.brands && Array.isArray(uaData.brands) ? uaData.brands.map(function(item) {
  27118. return item.brand + "/" + item.version;
  27119. }).join(" ") : navigator.userAgent;
  27120. }
  27121. var init_userAgent = __esm({
  27122. "../../node_modules/@popperjs/core/lib/utils/userAgent.js"() {
  27123. }
  27124. });
  27125. // ../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
  27126. function isLayoutViewport() {
  27127. return !/^((?!chrome|android).)*safari/i.test(getUAString());
  27128. }
  27129. var init_isLayoutViewport = __esm({
  27130. "../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"() {
  27131. init_userAgent();
  27132. }
  27133. });
  27134. // ../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
  27135. function getBoundingClientRect(element, includeScale, isFixedStrategy) {
  27136. includeScale === void 0 && (includeScale = !1), isFixedStrategy === void 0 && (isFixedStrategy = !1);
  27137. var clientRect = element.getBoundingClientRect(), scaleX = 1, scaleY = 1;
  27138. includeScale && isHTMLElement(element) && (scaleX = element.offsetWidth > 0 && round2(clientRect.width) / element.offsetWidth || 1, scaleY = element.offsetHeight > 0 && round2(clientRect.height) / element.offsetHeight || 1);
  27139. var _ref = isElement5(element) ? getWindow2(element) : window, visualViewport = _ref.visualViewport, addVisualOffsets = !isLayoutViewport() && isFixedStrategy, x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX, y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY, width = clientRect.width / scaleX, height = clientRect.height / scaleY;
  27140. return {
  27141. width,
  27142. height,
  27143. top: y,
  27144. right: x + width,
  27145. bottom: y + height,
  27146. left: x,
  27147. x,
  27148. y
  27149. };
  27150. }
  27151. var init_getBoundingClientRect = __esm({
  27152. "../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"() {
  27153. init_instanceOf();
  27154. init_math();
  27155. init_getWindow();
  27156. init_isLayoutViewport();
  27157. }
  27158. });
  27159. // ../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
  27160. function getLayoutRect(element) {
  27161. var clientRect = getBoundingClientRect(element), width = element.offsetWidth, height = element.offsetHeight;
  27162. return Math.abs(clientRect.width - width) <= 1 && (width = clientRect.width), Math.abs(clientRect.height - height) <= 1 && (height = clientRect.height), {
  27163. x: element.offsetLeft,
  27164. y: element.offsetTop,
  27165. width,
  27166. height
  27167. };
  27168. }
  27169. var init_getLayoutRect = __esm({
  27170. "../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"() {
  27171. init_getBoundingClientRect();
  27172. }
  27173. });
  27174. // ../../node_modules/@popperjs/core/lib/dom-utils/contains.js
  27175. function contains(parent, child) {
  27176. var rootNode = child.getRootNode && child.getRootNode();
  27177. if (parent.contains(child))
  27178. return !0;
  27179. if (rootNode && isShadowRoot(rootNode)) {
  27180. var next2 = child;
  27181. do {
  27182. if (next2 && parent.isSameNode(next2))
  27183. return !0;
  27184. next2 = next2.parentNode || next2.host;
  27185. } while (next2);
  27186. }
  27187. return !1;
  27188. }
  27189. var init_contains = __esm({
  27190. "../../node_modules/@popperjs/core/lib/dom-utils/contains.js"() {
  27191. init_instanceOf();
  27192. }
  27193. });
  27194. // ../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
  27195. function getComputedStyle2(element) {
  27196. return getWindow2(element).getComputedStyle(element);
  27197. }
  27198. var init_getComputedStyle = __esm({
  27199. "../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"() {
  27200. init_getWindow();
  27201. }
  27202. });
  27203. // ../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
  27204. function isTableElement(element) {
  27205. return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
  27206. }
  27207. var init_isTableElement = __esm({
  27208. "../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"() {
  27209. init_getNodeName();
  27210. }
  27211. });
  27212. // ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
  27213. function getDocumentElement(element) {
  27214. return ((isElement5(element) ? element.ownerDocument : (
  27215. // $FlowFixMe[prop-missing]
  27216. element.document
  27217. )) || window.document).documentElement;
  27218. }
  27219. var init_getDocumentElement = __esm({
  27220. "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"() {
  27221. init_instanceOf();
  27222. }
  27223. });
  27224. // ../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
  27225. function getParentNode(element) {
  27226. return getNodeName(element) === "html" ? element : (
  27227. // this is a quicker (but less type safe) way to save quite some bytes from the bundle
  27228. // $FlowFixMe[incompatible-return]
  27229. // $FlowFixMe[prop-missing]
  27230. element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
  27231. element.parentNode || // DOM Element detected
  27232. (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
  27233. // $FlowFixMe[incompatible-call]: HTMLElement is a Node
  27234. getDocumentElement(element)
  27235. );
  27236. }
  27237. var init_getParentNode = __esm({
  27238. "../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"() {
  27239. init_getNodeName();
  27240. init_getDocumentElement();
  27241. init_instanceOf();
  27242. }
  27243. });
  27244. // ../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
  27245. function getTrueOffsetParent(element) {
  27246. return !isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
  27247. getComputedStyle2(element).position === "fixed" ? null : element.offsetParent;
  27248. }
  27249. function getContainingBlock(element) {
  27250. var isFirefox = /firefox/i.test(getUAString()), isIE2 = /Trident/i.test(getUAString());
  27251. if (isIE2 && isHTMLElement(element)) {
  27252. var elementCss = getComputedStyle2(element);
  27253. if (elementCss.position === "fixed")
  27254. return null;
  27255. }
  27256. var currentNode = getParentNode(element);
  27257. for (isShadowRoot(currentNode) && (currentNode = currentNode.host); isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0; ) {
  27258. var css3 = getComputedStyle2(currentNode);
  27259. if (css3.transform !== "none" || css3.perspective !== "none" || css3.contain === "paint" || ["transform", "perspective"].indexOf(css3.willChange) !== -1 || isFirefox && css3.willChange === "filter" || isFirefox && css3.filter && css3.filter !== "none")
  27260. return currentNode;
  27261. currentNode = currentNode.parentNode;
  27262. }
  27263. return null;
  27264. }
  27265. function getOffsetParent(element) {
  27266. for (var window2 = getWindow2(element), offsetParent = getTrueOffsetParent(element); offsetParent && isTableElement(offsetParent) && getComputedStyle2(offsetParent).position === "static"; )
  27267. offsetParent = getTrueOffsetParent(offsetParent);
  27268. return offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle2(offsetParent).position === "static") ? window2 : offsetParent || getContainingBlock(element) || window2;
  27269. }
  27270. var init_getOffsetParent = __esm({
  27271. "../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"() {
  27272. init_getWindow();
  27273. init_getNodeName();
  27274. init_getComputedStyle();
  27275. init_instanceOf();
  27276. init_isTableElement();
  27277. init_getParentNode();
  27278. init_userAgent();
  27279. }
  27280. });
  27281. // ../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
  27282. function getMainAxisFromPlacement(placement) {
  27283. return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
  27284. }
  27285. var init_getMainAxisFromPlacement = __esm({
  27286. "../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"() {
  27287. }
  27288. });
  27289. // ../../node_modules/@popperjs/core/lib/utils/within.js
  27290. function within2(min2, value, max2) {
  27291. return max(min2, min(value, max2));
  27292. }
  27293. function withinMaxClamp(min2, value, max2) {
  27294. var v = within2(min2, value, max2);
  27295. return v > max2 ? max2 : v;
  27296. }
  27297. var init_within = __esm({
  27298. "../../node_modules/@popperjs/core/lib/utils/within.js"() {
  27299. init_math();
  27300. }
  27301. });
  27302. // ../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
  27303. function getFreshSideObject() {
  27304. return {
  27305. top: 0,
  27306. right: 0,
  27307. bottom: 0,
  27308. left: 0
  27309. };
  27310. }
  27311. var init_getFreshSideObject = __esm({
  27312. "../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"() {
  27313. }
  27314. });
  27315. // ../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
  27316. function mergePaddingObject(paddingObject) {
  27317. return Object.assign({}, getFreshSideObject(), paddingObject);
  27318. }
  27319. var init_mergePaddingObject = __esm({
  27320. "../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"() {
  27321. init_getFreshSideObject();
  27322. }
  27323. });
  27324. // ../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js
  27325. function expandToHashMap(value, keys3) {
  27326. return keys3.reduce(function(hashMap, key) {
  27327. return hashMap[key] = value, hashMap;
  27328. }, {});
  27329. }
  27330. var init_expandToHashMap = __esm({
  27331. "../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js"() {
  27332. }
  27333. });
  27334. // ../../node_modules/@popperjs/core/lib/modifiers/arrow.js
  27335. function arrow(_ref) {
  27336. var _state$modifiersData$, state3 = _ref.state, name = _ref.name, options = _ref.options, arrowElement = state3.elements.arrow, popperOffsets2 = state3.modifiersData.popperOffsets, basePlacement = getBasePlacement(state3.placement), axis = getMainAxisFromPlacement(basePlacement), isVertical = [left, right].indexOf(basePlacement) >= 0, len = isVertical ? "height" : "width";
  27337. if (!(!arrowElement || !popperOffsets2)) {
  27338. var paddingObject = toPaddingObject(options.padding, state3), arrowRect = getLayoutRect(arrowElement), minProp = axis === "y" ? top : left, maxProp = axis === "y" ? bottom : right, endDiff = state3.rects.reference[len] + state3.rects.reference[axis] - popperOffsets2[axis] - state3.rects.popper[len], startDiff = popperOffsets2[axis] - state3.rects.reference[axis], arrowOffsetParent = getOffsetParent(arrowElement), clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0, centerToReference = endDiff / 2 - startDiff / 2, min2 = paddingObject[minProp], max2 = clientSize - arrowRect[len] - paddingObject[maxProp], center = clientSize / 2 - arrowRect[len] / 2 + centerToReference, offset3 = within2(min2, center, max2), axisProp = axis;
  27339. state3.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset3, _state$modifiersData$.centerOffset = offset3 - center, _state$modifiersData$);
  27340. }
  27341. }
  27342. function effect2(_ref2) {
  27343. var state3 = _ref2.state, options = _ref2.options, _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element;
  27344. arrowElement != null && (typeof arrowElement == "string" && (arrowElement = state3.elements.popper.querySelector(arrowElement), !arrowElement) || contains(state3.elements.popper, arrowElement) && (state3.elements.arrow = arrowElement));
  27345. }
  27346. var toPaddingObject, arrow_default, init_arrow = __esm({
  27347. "../../node_modules/@popperjs/core/lib/modifiers/arrow.js"() {
  27348. init_getBasePlacement();
  27349. init_getLayoutRect();
  27350. init_contains();
  27351. init_getOffsetParent();
  27352. init_getMainAxisFromPlacement();
  27353. init_within();
  27354. init_mergePaddingObject();
  27355. init_expandToHashMap();
  27356. init_enums();
  27357. toPaddingObject = function(padding, state3) {
  27358. return padding = typeof padding == "function" ? padding(Object.assign({}, state3.rects, {
  27359. placement: state3.placement
  27360. })) : padding, mergePaddingObject(typeof padding != "number" ? padding : expandToHashMap(padding, basePlacements));
  27361. };
  27362. arrow_default = {
  27363. name: "arrow",
  27364. enabled: !0,
  27365. phase: "main",
  27366. fn: arrow,
  27367. effect: effect2,
  27368. requires: ["popperOffsets"],
  27369. requiresIfExists: ["preventOverflow"]
  27370. };
  27371. }
  27372. });
  27373. // ../../node_modules/@popperjs/core/lib/utils/getVariation.js
  27374. function getVariation(placement) {
  27375. return placement.split("-")[1];
  27376. }
  27377. var init_getVariation = __esm({
  27378. "../../node_modules/@popperjs/core/lib/utils/getVariation.js"() {
  27379. }
  27380. });
  27381. // ../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js
  27382. function roundOffsetsByDPR(_ref, win) {
  27383. var x = _ref.x, y = _ref.y, dpr = win.devicePixelRatio || 1;
  27384. return {
  27385. x: round2(x * dpr) / dpr || 0,
  27386. y: round2(y * dpr) / dpr || 0
  27387. };
  27388. }
  27389. function mapToStyles(_ref2) {
  27390. var _Object$assign2, popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed, _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y, _ref3 = typeof roundOffsets == "function" ? roundOffsets({
  27391. x,
  27392. y
  27393. }) : {
  27394. x,
  27395. y
  27396. };
  27397. x = _ref3.x, y = _ref3.y;
  27398. var hasX = offsets.hasOwnProperty("x"), hasY = offsets.hasOwnProperty("y"), sideX = left, sideY = top, win = window;
  27399. if (adaptive) {
  27400. var offsetParent = getOffsetParent(popper2), heightProp = "clientHeight", widthProp = "clientWidth";
  27401. if (offsetParent === getWindow2(popper2) && (offsetParent = getDocumentElement(popper2), getComputedStyle2(offsetParent).position !== "static" && position2 === "absolute" && (heightProp = "scrollHeight", widthProp = "scrollWidth")), offsetParent = offsetParent, placement === top || (placement === left || placement === right) && variation === end) {
  27402. sideY = bottom;
  27403. var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : (
  27404. // $FlowFixMe[prop-missing]
  27405. offsetParent[heightProp]
  27406. );
  27407. y -= offsetY - popperRect.height, y *= gpuAcceleration ? 1 : -1;
  27408. }
  27409. if (placement === left || (placement === top || placement === bottom) && variation === end) {
  27410. sideX = right;
  27411. var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : (
  27412. // $FlowFixMe[prop-missing]
  27413. offsetParent[widthProp]
  27414. );
  27415. x -= offsetX - popperRect.width, x *= gpuAcceleration ? 1 : -1;
  27416. }
  27417. }
  27418. var commonStyles = Object.assign({
  27419. position: position2
  27420. }, adaptive && unsetSides), _ref4 = roundOffsets === !0 ? roundOffsetsByDPR({
  27421. x,
  27422. y
  27423. }, getWindow2(popper2)) : {
  27424. x,
  27425. y
  27426. };
  27427. if (x = _ref4.x, y = _ref4.y, gpuAcceleration) {
  27428. var _Object$assign;
  27429. return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
  27430. }
  27431. return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
  27432. }
  27433. function computeStyles(_ref5) {
  27434. var state3 = _ref5.state, options = _ref5.options, _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? !0 : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? !0 : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? !0 : _options$roundOffsets, commonStyles = {
  27435. placement: getBasePlacement(state3.placement),
  27436. variation: getVariation(state3.placement),
  27437. popper: state3.elements.popper,
  27438. popperRect: state3.rects.popper,
  27439. gpuAcceleration,
  27440. isFixed: state3.options.strategy === "fixed"
  27441. };
  27442. state3.modifiersData.popperOffsets != null && (state3.styles.popper = Object.assign({}, state3.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
  27443. offsets: state3.modifiersData.popperOffsets,
  27444. position: state3.options.strategy,
  27445. adaptive,
  27446. roundOffsets
  27447. })))), state3.modifiersData.arrow != null && (state3.styles.arrow = Object.assign({}, state3.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
  27448. offsets: state3.modifiersData.arrow,
  27449. position: "absolute",
  27450. adaptive: !1,
  27451. roundOffsets
  27452. })))), state3.attributes.popper = Object.assign({}, state3.attributes.popper, {
  27453. "data-popper-placement": state3.placement
  27454. });
  27455. }
  27456. var unsetSides, computeStyles_default, init_computeStyles = __esm({
  27457. "../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js"() {
  27458. init_enums();
  27459. init_getOffsetParent();
  27460. init_getWindow();
  27461. init_getDocumentElement();
  27462. init_getComputedStyle();
  27463. init_getBasePlacement();
  27464. init_getVariation();
  27465. init_math();
  27466. unsetSides = {
  27467. top: "auto",
  27468. right: "auto",
  27469. bottom: "auto",
  27470. left: "auto"
  27471. };
  27472. computeStyles_default = {
  27473. name: "computeStyles",
  27474. enabled: !0,
  27475. phase: "beforeWrite",
  27476. fn: computeStyles,
  27477. data: {}
  27478. };
  27479. }
  27480. });
  27481. // ../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js
  27482. function effect3(_ref) {
  27483. var state3 = _ref.state, instance = _ref.instance, options = _ref.options, _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? !0 : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? !0 : _options$resize, window2 = getWindow2(state3.elements.popper), scrollParents = [].concat(state3.scrollParents.reference, state3.scrollParents.popper);
  27484. return scroll && scrollParents.forEach(function(scrollParent) {
  27485. scrollParent.addEventListener("scroll", instance.update, passive);
  27486. }), resize && window2.addEventListener("resize", instance.update, passive), function() {
  27487. scroll && scrollParents.forEach(function(scrollParent) {
  27488. scrollParent.removeEventListener("scroll", instance.update, passive);
  27489. }), resize && window2.removeEventListener("resize", instance.update, passive);
  27490. };
  27491. }
  27492. var passive, eventListeners_default, init_eventListeners = __esm({
  27493. "../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js"() {
  27494. init_getWindow();
  27495. passive = {
  27496. passive: !0
  27497. };
  27498. eventListeners_default = {
  27499. name: "eventListeners",
  27500. enabled: !0,
  27501. phase: "write",
  27502. fn: function() {
  27503. },
  27504. effect: effect3,
  27505. data: {}
  27506. };
  27507. }
  27508. });
  27509. // ../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
  27510. function getOppositePlacement(placement) {
  27511. return placement.replace(/left|right|bottom|top/g, function(matched) {
  27512. return hash2[matched];
  27513. });
  27514. }
  27515. var hash2, init_getOppositePlacement = __esm({
  27516. "../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"() {
  27517. hash2 = {
  27518. left: "right",
  27519. right: "left",
  27520. bottom: "top",
  27521. top: "bottom"
  27522. };
  27523. }
  27524. });
  27525. // ../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
  27526. function getOppositeVariationPlacement(placement) {
  27527. return placement.replace(/start|end/g, function(matched) {
  27528. return hash3[matched];
  27529. });
  27530. }
  27531. var hash3, init_getOppositeVariationPlacement = __esm({
  27532. "../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"() {
  27533. hash3 = {
  27534. start: "end",
  27535. end: "start"
  27536. };
  27537. }
  27538. });
  27539. // ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
  27540. function getWindowScroll(node2) {
  27541. var win = getWindow2(node2), scrollLeft = win.pageXOffset, scrollTop = win.pageYOffset;
  27542. return {
  27543. scrollLeft,
  27544. scrollTop
  27545. };
  27546. }
  27547. var init_getWindowScroll = __esm({
  27548. "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"() {
  27549. init_getWindow();
  27550. }
  27551. });
  27552. // ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
  27553. function getWindowScrollBarX(element) {
  27554. return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
  27555. }
  27556. var init_getWindowScrollBarX = __esm({
  27557. "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"() {
  27558. init_getBoundingClientRect();
  27559. init_getDocumentElement();
  27560. init_getWindowScroll();
  27561. }
  27562. });
  27563. // ../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
  27564. function getViewportRect(element, strategy) {
  27565. var win = getWindow2(element), html = getDocumentElement(element), visualViewport = win.visualViewport, width = html.clientWidth, height = html.clientHeight, x = 0, y = 0;
  27566. if (visualViewport) {
  27567. width = visualViewport.width, height = visualViewport.height;
  27568. var layoutViewport = isLayoutViewport();
  27569. (layoutViewport || !layoutViewport && strategy === "fixed") && (x = visualViewport.offsetLeft, y = visualViewport.offsetTop);
  27570. }
  27571. return {
  27572. width,
  27573. height,
  27574. x: x + getWindowScrollBarX(element),
  27575. y
  27576. };
  27577. }
  27578. var init_getViewportRect = __esm({
  27579. "../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"() {
  27580. init_getWindow();
  27581. init_getDocumentElement();
  27582. init_getWindowScrollBarX();
  27583. init_isLayoutViewport();
  27584. }
  27585. });
  27586. // ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
  27587. function getDocumentRect(element) {
  27588. var _element$ownerDocumen, html = getDocumentElement(element), winScroll = getWindowScroll(element), body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body, width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0), height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0), x = -winScroll.scrollLeft + getWindowScrollBarX(element), y = -winScroll.scrollTop;
  27589. return getComputedStyle2(body || html).direction === "rtl" && (x += max(html.clientWidth, body ? body.clientWidth : 0) - width), {
  27590. width,
  27591. height,
  27592. x,
  27593. y
  27594. };
  27595. }
  27596. var init_getDocumentRect = __esm({
  27597. "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"() {
  27598. init_getDocumentElement();
  27599. init_getComputedStyle();
  27600. init_getWindowScrollBarX();
  27601. init_getWindowScroll();
  27602. init_math();
  27603. }
  27604. });
  27605. // ../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
  27606. function isScrollParent(element) {
  27607. var _getComputedStyle = getComputedStyle2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
  27608. return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
  27609. }
  27610. var init_isScrollParent = __esm({
  27611. "../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"() {
  27612. init_getComputedStyle();
  27613. }
  27614. });
  27615. // ../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
  27616. function getScrollParent(node2) {
  27617. return ["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0 ? node2.ownerDocument.body : isHTMLElement(node2) && isScrollParent(node2) ? node2 : getScrollParent(getParentNode(node2));
  27618. }
  27619. var init_getScrollParent = __esm({
  27620. "../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"() {
  27621. init_getParentNode();
  27622. init_isScrollParent();
  27623. init_getNodeName();
  27624. init_instanceOf();
  27625. }
  27626. });
  27627. // ../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
  27628. function listScrollParents(element, list) {
  27629. var _element$ownerDocumen;
  27630. list === void 0 && (list = []);
  27631. var scrollParent = getScrollParent(element), isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body), win = getWindow2(scrollParent), target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent, updatedList = list.concat(target);
  27632. return isBody ? updatedList : (
  27633. // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
  27634. updatedList.concat(listScrollParents(getParentNode(target)))
  27635. );
  27636. }
  27637. var init_listScrollParents = __esm({
  27638. "../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"() {
  27639. init_getScrollParent();
  27640. init_getParentNode();
  27641. init_getWindow();
  27642. init_isScrollParent();
  27643. }
  27644. });
  27645. // ../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js
  27646. function rectToClientRect(rect) {
  27647. return Object.assign({}, rect, {
  27648. left: rect.x,
  27649. top: rect.y,
  27650. right: rect.x + rect.width,
  27651. bottom: rect.y + rect.height
  27652. });
  27653. }
  27654. var init_rectToClientRect = __esm({
  27655. "../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js"() {
  27656. }
  27657. });
  27658. // ../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
  27659. function getInnerBoundingClientRect(element, strategy) {
  27660. var rect = getBoundingClientRect(element, !1, strategy === "fixed");
  27661. return rect.top = rect.top + element.clientTop, rect.left = rect.left + element.clientLeft, rect.bottom = rect.top + element.clientHeight, rect.right = rect.left + element.clientWidth, rect.width = element.clientWidth, rect.height = element.clientHeight, rect.x = rect.left, rect.y = rect.top, rect;
  27662. }
  27663. function getClientRectFromMixedType(element, clippingParent, strategy) {
  27664. return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement5(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
  27665. }
  27666. function getClippingParents(element) {
  27667. var clippingParents2 = listScrollParents(getParentNode(element)), canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle2(element).position) >= 0, clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
  27668. return isElement5(clipperElement) ? clippingParents2.filter(function(clippingParent) {
  27669. return isElement5(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body";
  27670. }) : [];
  27671. }
  27672. function getClippingRect(element, boundary, rootBoundary, strategy) {
  27673. var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary), clippingParents2 = [].concat(mainClippingParents, [rootBoundary]), firstClippingParent = clippingParents2[0], clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {
  27674. var rect = getClientRectFromMixedType(element, clippingParent, strategy);
  27675. return accRect.top = max(rect.top, accRect.top), accRect.right = min(rect.right, accRect.right), accRect.bottom = min(rect.bottom, accRect.bottom), accRect.left = max(rect.left, accRect.left), accRect;
  27676. }, getClientRectFromMixedType(element, firstClippingParent, strategy));
  27677. return clippingRect.width = clippingRect.right - clippingRect.left, clippingRect.height = clippingRect.bottom - clippingRect.top, clippingRect.x = clippingRect.left, clippingRect.y = clippingRect.top, clippingRect;
  27678. }
  27679. var init_getClippingRect = __esm({
  27680. "../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"() {
  27681. init_enums();
  27682. init_getViewportRect();
  27683. init_getDocumentRect();
  27684. init_listScrollParents();
  27685. init_getOffsetParent();
  27686. init_getDocumentElement();
  27687. init_getComputedStyle();
  27688. init_instanceOf();
  27689. init_getBoundingClientRect();
  27690. init_getParentNode();
  27691. init_contains();
  27692. init_getNodeName();
  27693. init_rectToClientRect();
  27694. init_math();
  27695. }
  27696. });
  27697. // ../../node_modules/@popperjs/core/lib/utils/computeOffsets.js
  27698. function computeOffsets(_ref) {
  27699. var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement, basePlacement = placement ? getBasePlacement(placement) : null, variation = placement ? getVariation(placement) : null, commonX = reference2.x + reference2.width / 2 - element.width / 2, commonY = reference2.y + reference2.height / 2 - element.height / 2, offsets;
  27700. switch (basePlacement) {
  27701. case top:
  27702. offsets = {
  27703. x: commonX,
  27704. y: reference2.y - element.height
  27705. };
  27706. break;
  27707. case bottom:
  27708. offsets = {
  27709. x: commonX,
  27710. y: reference2.y + reference2.height
  27711. };
  27712. break;
  27713. case right:
  27714. offsets = {
  27715. x: reference2.x + reference2.width,
  27716. y: commonY
  27717. };
  27718. break;
  27719. case left:
  27720. offsets = {
  27721. x: reference2.x - element.width,
  27722. y: commonY
  27723. };
  27724. break;
  27725. default:
  27726. offsets = {
  27727. x: reference2.x,
  27728. y: reference2.y
  27729. };
  27730. }
  27731. var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
  27732. if (mainAxis != null) {
  27733. var len = mainAxis === "y" ? "height" : "width";
  27734. switch (variation) {
  27735. case start:
  27736. offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2);
  27737. break;
  27738. case end:
  27739. offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2);
  27740. break;
  27741. default:
  27742. }
  27743. }
  27744. return offsets;
  27745. }
  27746. var init_computeOffsets = __esm({
  27747. "../../node_modules/@popperjs/core/lib/utils/computeOffsets.js"() {
  27748. init_getBasePlacement();
  27749. init_getVariation();
  27750. init_getMainAxisFromPlacement();
  27751. init_enums();
  27752. }
  27753. });
  27754. // ../../node_modules/@popperjs/core/lib/utils/detectOverflow.js
  27755. function detectOverflow(state3, options) {
  27756. options === void 0 && (options = {});
  27757. var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state3.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state3.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? !1 : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding, paddingObject = mergePaddingObject(typeof padding != "number" ? padding : expandToHashMap(padding, basePlacements)), altContext = elementContext === popper ? reference : popper, popperRect = state3.rects.popper, element = state3.elements[altBoundary ? altContext : elementContext], clippingClientRect = getClippingRect(isElement5(element) ? element : element.contextElement || getDocumentElement(state3.elements.popper), boundary, rootBoundary, strategy), referenceClientRect = getBoundingClientRect(state3.elements.reference), popperOffsets2 = computeOffsets({
  27758. reference: referenceClientRect,
  27759. element: popperRect,
  27760. strategy: "absolute",
  27761. placement
  27762. }), popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2)), elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect, overflowOffsets = {
  27763. top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
  27764. bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
  27765. left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
  27766. right: elementClientRect.right - clippingClientRect.right + paddingObject.right
  27767. }, offsetData = state3.modifiersData.offset;
  27768. if (elementContext === popper && offsetData) {
  27769. var offset3 = offsetData[placement];
  27770. Object.keys(overflowOffsets).forEach(function(key) {
  27771. var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1, axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x";
  27772. overflowOffsets[key] += offset3[axis] * multiply;
  27773. });
  27774. }
  27775. return overflowOffsets;
  27776. }
  27777. var init_detectOverflow = __esm({
  27778. "../../node_modules/@popperjs/core/lib/utils/detectOverflow.js"() {
  27779. init_getClippingRect();
  27780. init_getDocumentElement();
  27781. init_getBoundingClientRect();
  27782. init_computeOffsets();
  27783. init_rectToClientRect();
  27784. init_enums();
  27785. init_instanceOf();
  27786. init_mergePaddingObject();
  27787. init_expandToHashMap();
  27788. }
  27789. });
  27790. // ../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
  27791. function computeAutoPlacement(state3, options) {
  27792. options === void 0 && (options = {});
  27793. var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP, variation = getVariation(placement), placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
  27794. return getVariation(placement2) === variation;
  27795. }) : basePlacements, allowedPlacements = placements2.filter(function(placement2) {
  27796. return allowedAutoPlacements.indexOf(placement2) >= 0;
  27797. });
  27798. allowedPlacements.length === 0 && (allowedPlacements = placements2);
  27799. var overflows = allowedPlacements.reduce(function(acc, placement2) {
  27800. return acc[placement2] = detectOverflow(state3, {
  27801. placement: placement2,
  27802. boundary,
  27803. rootBoundary,
  27804. padding
  27805. })[getBasePlacement(placement2)], acc;
  27806. }, {});
  27807. return Object.keys(overflows).sort(function(a3, b) {
  27808. return overflows[a3] - overflows[b];
  27809. });
  27810. }
  27811. var init_computeAutoPlacement = __esm({
  27812. "../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"() {
  27813. init_getVariation();
  27814. init_enums();
  27815. init_detectOverflow();
  27816. init_getBasePlacement();
  27817. }
  27818. });
  27819. // ../../node_modules/@popperjs/core/lib/modifiers/flip.js
  27820. function getExpandedFallbackPlacements(placement) {
  27821. if (getBasePlacement(placement) === auto)
  27822. return [];
  27823. var oppositePlacement = getOppositePlacement(placement);
  27824. return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
  27825. }
  27826. function flip(_ref) {
  27827. var state3 = _ref.state, options = _ref.options, name = _ref.name;
  27828. if (!state3.modifiersData[name]._skip) {
  27829. for (var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !0 : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? !0 : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements, preferredPlacement = state3.options.placement, basePlacement = getBasePlacement(preferredPlacement), isBasePlacement = basePlacement === preferredPlacement, fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement)), placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) {
  27830. return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state3, {
  27831. placement: placement2,
  27832. boundary,
  27833. rootBoundary,
  27834. padding,
  27835. flipVariations,
  27836. allowedAutoPlacements
  27837. }) : placement2);
  27838. }, []), referenceRect = state3.rects.reference, popperRect = state3.rects.popper, checksMap = /* @__PURE__ */ new Map(), makeFallbackChecks = !0, firstFittingPlacement = placements2[0], i = 0; i < placements2.length; i++) {
  27839. var placement = placements2[i], _basePlacement = getBasePlacement(placement), isStartVariation = getVariation(placement) === start, isVertical = [top, bottom].indexOf(_basePlacement) >= 0, len = isVertical ? "width" : "height", overflow = detectOverflow(state3, {
  27840. placement,
  27841. boundary,
  27842. rootBoundary,
  27843. altBoundary,
  27844. padding
  27845. }), mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
  27846. referenceRect[len] > popperRect[len] && (mainVariationSide = getOppositePlacement(mainVariationSide));
  27847. var altVariationSide = getOppositePlacement(mainVariationSide), checks = [];
  27848. if (checkMainAxis && checks.push(overflow[_basePlacement] <= 0), checkAltAxis && checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0), checks.every(function(check) {
  27849. return check;
  27850. })) {
  27851. firstFittingPlacement = placement, makeFallbackChecks = !1;
  27852. break;
  27853. }
  27854. checksMap.set(placement, checks);
  27855. }
  27856. if (makeFallbackChecks)
  27857. for (var numberOfChecks = flipVariations ? 3 : 1, _loop = function(_i2) {
  27858. var fittingPlacement = placements2.find(function(placement2) {
  27859. var checks2 = checksMap.get(placement2);
  27860. if (checks2)
  27861. return checks2.slice(0, _i2).every(function(check) {
  27862. return check;
  27863. });
  27864. });
  27865. if (fittingPlacement)
  27866. return firstFittingPlacement = fittingPlacement, "break";
  27867. }, _i = numberOfChecks; _i > 0; _i--) {
  27868. var _ret = _loop(_i);
  27869. if (_ret === "break") break;
  27870. }
  27871. state3.placement !== firstFittingPlacement && (state3.modifiersData[name]._skip = !0, state3.placement = firstFittingPlacement, state3.reset = !0);
  27872. }
  27873. }
  27874. var flip_default, init_flip = __esm({
  27875. "../../node_modules/@popperjs/core/lib/modifiers/flip.js"() {
  27876. init_getOppositePlacement();
  27877. init_getBasePlacement();
  27878. init_getOppositeVariationPlacement();
  27879. init_detectOverflow();
  27880. init_computeAutoPlacement();
  27881. init_enums();
  27882. init_getVariation();
  27883. flip_default = {
  27884. name: "flip",
  27885. enabled: !0,
  27886. phase: "main",
  27887. fn: flip,
  27888. requiresIfExists: ["offset"],
  27889. data: {
  27890. _skip: !1
  27891. }
  27892. };
  27893. }
  27894. });
  27895. // ../../node_modules/@popperjs/core/lib/modifiers/hide.js
  27896. function getSideOffsets(overflow, rect, preventedOffsets) {
  27897. return preventedOffsets === void 0 && (preventedOffsets = {
  27898. x: 0,
  27899. y: 0
  27900. }), {
  27901. top: overflow.top - rect.height - preventedOffsets.y,
  27902. right: overflow.right - rect.width + preventedOffsets.x,
  27903. bottom: overflow.bottom - rect.height + preventedOffsets.y,
  27904. left: overflow.left - rect.width - preventedOffsets.x
  27905. };
  27906. }
  27907. function isAnySideFullyClipped(overflow) {
  27908. return [top, right, bottom, left].some(function(side) {
  27909. return overflow[side] >= 0;
  27910. });
  27911. }
  27912. function hide(_ref) {
  27913. var state3 = _ref.state, name = _ref.name, referenceRect = state3.rects.reference, popperRect = state3.rects.popper, preventedOffsets = state3.modifiersData.preventOverflow, referenceOverflow = detectOverflow(state3, {
  27914. elementContext: "reference"
  27915. }), popperAltOverflow = detectOverflow(state3, {
  27916. altBoundary: !0
  27917. }), referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
  27918. state3.modifiersData[name] = {
  27919. referenceClippingOffsets,
  27920. popperEscapeOffsets,
  27921. isReferenceHidden,
  27922. hasPopperEscaped
  27923. }, state3.attributes.popper = Object.assign({}, state3.attributes.popper, {
  27924. "data-popper-reference-hidden": isReferenceHidden,
  27925. "data-popper-escaped": hasPopperEscaped
  27926. });
  27927. }
  27928. var hide_default, init_hide = __esm({
  27929. "../../node_modules/@popperjs/core/lib/modifiers/hide.js"() {
  27930. init_enums();
  27931. init_detectOverflow();
  27932. hide_default = {
  27933. name: "hide",
  27934. enabled: !0,
  27935. phase: "main",
  27936. requiresIfExists: ["preventOverflow"],
  27937. fn: hide
  27938. };
  27939. }
  27940. });
  27941. // ../../node_modules/@popperjs/core/lib/modifiers/offset.js
  27942. function distanceAndSkiddingToXY(placement, rects, offset3) {
  27943. var basePlacement = getBasePlacement(placement), invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1, _ref = typeof offset3 == "function" ? offset3(Object.assign({}, rects, {
  27944. placement
  27945. })) : offset3, skidding = _ref[0], distance = _ref[1];
  27946. return skidding = skidding || 0, distance = (distance || 0) * invertDistance, [left, right].indexOf(basePlacement) >= 0 ? {
  27947. x: distance,
  27948. y: skidding
  27949. } : {
  27950. x: skidding,
  27951. y: distance
  27952. };
  27953. }
  27954. function offset2(_ref2) {
  27955. var state3 = _ref2.state, options = _ref2.options, name = _ref2.name, _options$offset = options.offset, offset3 = _options$offset === void 0 ? [0, 0] : _options$offset, data = placements.reduce(function(acc, placement) {
  27956. return acc[placement] = distanceAndSkiddingToXY(placement, state3.rects, offset3), acc;
  27957. }, {}), _data$state$placement = data[state3.placement], x = _data$state$placement.x, y = _data$state$placement.y;
  27958. state3.modifiersData.popperOffsets != null && (state3.modifiersData.popperOffsets.x += x, state3.modifiersData.popperOffsets.y += y), state3.modifiersData[name] = data;
  27959. }
  27960. var offset_default, init_offset = __esm({
  27961. "../../node_modules/@popperjs/core/lib/modifiers/offset.js"() {
  27962. init_getBasePlacement();
  27963. init_enums();
  27964. offset_default = {
  27965. name: "offset",
  27966. enabled: !0,
  27967. phase: "main",
  27968. requires: ["popperOffsets"],
  27969. fn: offset2
  27970. };
  27971. }
  27972. });
  27973. // ../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
  27974. function popperOffsets(_ref) {
  27975. var state3 = _ref.state, name = _ref.name;
  27976. state3.modifiersData[name] = computeOffsets({
  27977. reference: state3.rects.reference,
  27978. element: state3.rects.popper,
  27979. strategy: "absolute",
  27980. placement: state3.placement
  27981. });
  27982. }
  27983. var popperOffsets_default, init_popperOffsets = __esm({
  27984. "../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"() {
  27985. init_computeOffsets();
  27986. popperOffsets_default = {
  27987. name: "popperOffsets",
  27988. enabled: !0,
  27989. phase: "read",
  27990. fn: popperOffsets,
  27991. data: {}
  27992. };
  27993. }
  27994. });
  27995. // ../../node_modules/@popperjs/core/lib/utils/getAltAxis.js
  27996. function getAltAxis(axis) {
  27997. return axis === "x" ? "y" : "x";
  27998. }
  27999. var init_getAltAxis = __esm({
  28000. "../../node_modules/@popperjs/core/lib/utils/getAltAxis.js"() {
  28001. }
  28002. });
  28003. // ../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
  28004. function preventOverflow(_ref) {
  28005. var state3 = _ref.state, options = _ref.options, name = _ref.name, _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !1 : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? !0 : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset, overflow = detectOverflow(state3, {
  28006. boundary,
  28007. rootBoundary,
  28008. padding,
  28009. altBoundary
  28010. }), basePlacement = getBasePlacement(state3.placement), variation = getVariation(state3.placement), isBasePlacement = !variation, mainAxis = getMainAxisFromPlacement(basePlacement), altAxis = getAltAxis(mainAxis), popperOffsets2 = state3.modifiersData.popperOffsets, referenceRect = state3.rects.reference, popperRect = state3.rects.popper, tetherOffsetValue = typeof tetherOffset == "function" ? tetherOffset(Object.assign({}, state3.rects, {
  28011. placement: state3.placement
  28012. })) : tetherOffset, normalizedTetherOffsetValue = typeof tetherOffsetValue == "number" ? {
  28013. mainAxis: tetherOffsetValue,
  28014. altAxis: tetherOffsetValue
  28015. } : Object.assign({
  28016. mainAxis: 0,
  28017. altAxis: 0
  28018. }, tetherOffsetValue), offsetModifierState = state3.modifiersData.offset ? state3.modifiersData.offset[state3.placement] : null, data = {
  28019. x: 0,
  28020. y: 0
  28021. };
  28022. if (popperOffsets2) {
  28023. if (checkMainAxis) {
  28024. var _offsetModifierState$, mainSide = mainAxis === "y" ? top : left, altSide = mainAxis === "y" ? bottom : right, len = mainAxis === "y" ? "height" : "width", offset3 = popperOffsets2[mainAxis], min2 = offset3 + overflow[mainSide], max2 = offset3 - overflow[altSide], additive = tether ? -popperRect[len] / 2 : 0, minLen = variation === start ? referenceRect[len] : popperRect[len], maxLen = variation === start ? -popperRect[len] : -referenceRect[len], arrowElement = state3.elements.arrow, arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
  28025. width: 0,
  28026. height: 0
  28027. }, arrowPaddingObject = state3.modifiersData["arrow#persistent"] ? state3.modifiersData["arrow#persistent"].padding : getFreshSideObject(), arrowPaddingMin = arrowPaddingObject[mainSide], arrowPaddingMax = arrowPaddingObject[altSide], arrowLen = within2(0, referenceRect[len], arrowRect[len]), minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis, maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis, arrowOffsetParent = state3.elements.arrow && getOffsetParent(state3.elements.arrow), clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0, offsetModifierValue = (_offsetModifierState$ = offsetModifierState?.[mainAxis]) != null ? _offsetModifierState$ : 0, tetherMin = offset3 + minOffset - offsetModifierValue - clientOffset, tetherMax = offset3 + maxOffset - offsetModifierValue, preventedOffset = within2(tether ? min(min2, tetherMin) : min2, offset3, tether ? max(max2, tetherMax) : max2);
  28028. popperOffsets2[mainAxis] = preventedOffset, data[mainAxis] = preventedOffset - offset3;
  28029. }
  28030. if (checkAltAxis) {
  28031. var _offsetModifierState$2, _mainSide = mainAxis === "x" ? top : left, _altSide = mainAxis === "x" ? bottom : right, _offset = popperOffsets2[altAxis], _len = altAxis === "y" ? "height" : "width", _min = _offset + overflow[_mainSide], _max = _offset - overflow[_altSide], isOriginSide = [top, left].indexOf(basePlacement) !== -1, _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState?.[altAxis]) != null ? _offsetModifierState$2 : 0, _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis, _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max, _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within2(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
  28032. popperOffsets2[altAxis] = _preventedOffset, data[altAxis] = _preventedOffset - _offset;
  28033. }
  28034. state3.modifiersData[name] = data;
  28035. }
  28036. }
  28037. var preventOverflow_default, init_preventOverflow = __esm({
  28038. "../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"() {
  28039. init_enums();
  28040. init_getBasePlacement();
  28041. init_getMainAxisFromPlacement();
  28042. init_getAltAxis();
  28043. init_within();
  28044. init_getLayoutRect();
  28045. init_getOffsetParent();
  28046. init_detectOverflow();
  28047. init_getVariation();
  28048. init_getFreshSideObject();
  28049. init_math();
  28050. preventOverflow_default = {
  28051. name: "preventOverflow",
  28052. enabled: !0,
  28053. phase: "main",
  28054. fn: preventOverflow,
  28055. requiresIfExists: ["offset"]
  28056. };
  28057. }
  28058. });
  28059. // ../../node_modules/@popperjs/core/lib/modifiers/index.js
  28060. var init_modifiers = __esm({
  28061. "../../node_modules/@popperjs/core/lib/modifiers/index.js"() {
  28062. init_applyStyles();
  28063. init_arrow();
  28064. init_computeStyles();
  28065. init_eventListeners();
  28066. init_flip();
  28067. init_hide();
  28068. init_offset();
  28069. init_popperOffsets();
  28070. init_preventOverflow();
  28071. }
  28072. });
  28073. // ../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
  28074. function getHTMLElementScroll(element) {
  28075. return {
  28076. scrollLeft: element.scrollLeft,
  28077. scrollTop: element.scrollTop
  28078. };
  28079. }
  28080. var init_getHTMLElementScroll = __esm({
  28081. "../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js"() {
  28082. }
  28083. });
  28084. // ../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
  28085. function getNodeScroll(node2) {
  28086. return node2 === getWindow2(node2) || !isHTMLElement(node2) ? getWindowScroll(node2) : getHTMLElementScroll(node2);
  28087. }
  28088. var init_getNodeScroll = __esm({
  28089. "../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"() {
  28090. init_getWindowScroll();
  28091. init_getWindow();
  28092. init_instanceOf();
  28093. init_getHTMLElementScroll();
  28094. }
  28095. });
  28096. // ../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
  28097. function isElementScaled(element) {
  28098. var rect = element.getBoundingClientRect(), scaleX = round2(rect.width) / element.offsetWidth || 1, scaleY = round2(rect.height) / element.offsetHeight || 1;
  28099. return scaleX !== 1 || scaleY !== 1;
  28100. }
  28101. function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
  28102. isFixed === void 0 && (isFixed = !1);
  28103. var isOffsetParentAnElement = isHTMLElement(offsetParent), offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent), documentElement = getDocumentElement(offsetParent), rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed), scroll = {
  28104. scrollLeft: 0,
  28105. scrollTop: 0
  28106. }, offsets = {
  28107. x: 0,
  28108. y: 0
  28109. };
  28110. return (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) && ((getNodeName(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
  28111. isScrollParent(documentElement)) && (scroll = getNodeScroll(offsetParent)), isHTMLElement(offsetParent) ? (offsets = getBoundingClientRect(offsetParent, !0), offsets.x += offsetParent.clientLeft, offsets.y += offsetParent.clientTop) : documentElement && (offsets.x = getWindowScrollBarX(documentElement))), {
  28112. x: rect.left + scroll.scrollLeft - offsets.x,
  28113. y: rect.top + scroll.scrollTop - offsets.y,
  28114. width: rect.width,
  28115. height: rect.height
  28116. };
  28117. }
  28118. var init_getCompositeRect = __esm({
  28119. "../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"() {
  28120. init_getBoundingClientRect();
  28121. init_getNodeScroll();
  28122. init_getNodeName();
  28123. init_instanceOf();
  28124. init_getWindowScrollBarX();
  28125. init_getDocumentElement();
  28126. init_isScrollParent();
  28127. init_math();
  28128. }
  28129. });
  28130. // ../../node_modules/@popperjs/core/lib/utils/orderModifiers.js
  28131. function order(modifiers) {
  28132. var map2 = /* @__PURE__ */ new Map(), visited = /* @__PURE__ */ new Set(), result = [];
  28133. modifiers.forEach(function(modifier) {
  28134. map2.set(modifier.name, modifier);
  28135. });
  28136. function sort(modifier) {
  28137. visited.add(modifier.name);
  28138. var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
  28139. requires.forEach(function(dep) {
  28140. if (!visited.has(dep)) {
  28141. var depModifier = map2.get(dep);
  28142. depModifier && sort(depModifier);
  28143. }
  28144. }), result.push(modifier);
  28145. }
  28146. return modifiers.forEach(function(modifier) {
  28147. visited.has(modifier.name) || sort(modifier);
  28148. }), result;
  28149. }
  28150. function orderModifiers(modifiers) {
  28151. var orderedModifiers = order(modifiers);
  28152. return modifierPhases.reduce(function(acc, phase) {
  28153. return acc.concat(orderedModifiers.filter(function(modifier) {
  28154. return modifier.phase === phase;
  28155. }));
  28156. }, []);
  28157. }
  28158. var init_orderModifiers = __esm({
  28159. "../../node_modules/@popperjs/core/lib/utils/orderModifiers.js"() {
  28160. init_enums();
  28161. }
  28162. });
  28163. // ../../node_modules/@popperjs/core/lib/utils/debounce.js
  28164. function debounce(fn4) {
  28165. var pending;
  28166. return function() {
  28167. return pending || (pending = new Promise(function(resolve) {
  28168. Promise.resolve().then(function() {
  28169. pending = void 0, resolve(fn4());
  28170. });
  28171. })), pending;
  28172. };
  28173. }
  28174. var init_debounce = __esm({
  28175. "../../node_modules/@popperjs/core/lib/utils/debounce.js"() {
  28176. }
  28177. });
  28178. // ../../node_modules/@popperjs/core/lib/utils/mergeByName.js
  28179. function mergeByName(modifiers) {
  28180. var merged = modifiers.reduce(function(merged2, current) {
  28181. var existing = merged2[current.name];
  28182. return merged2[current.name] = existing ? Object.assign({}, existing, current, {
  28183. options: Object.assign({}, existing.options, current.options),
  28184. data: Object.assign({}, existing.data, current.data)
  28185. }) : current, merged2;
  28186. }, {});
  28187. return Object.keys(merged).map(function(key) {
  28188. return merged[key];
  28189. });
  28190. }
  28191. var init_mergeByName = __esm({
  28192. "../../node_modules/@popperjs/core/lib/utils/mergeByName.js"() {
  28193. }
  28194. });
  28195. // ../../node_modules/@popperjs/core/lib/createPopper.js
  28196. function areValidElements() {
  28197. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  28198. args[_key] = arguments[_key];
  28199. return !args.some(function(element) {
  28200. return !(element && typeof element.getBoundingClientRect == "function");
  28201. });
  28202. }
  28203. function popperGenerator(generatorOptions) {
  28204. generatorOptions === void 0 && (generatorOptions = {});
  28205. var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers3 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions2 = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS2 : _generatorOptions$def2;
  28206. return function(reference2, popper2, options) {
  28207. options === void 0 && (options = defaultOptions2);
  28208. var state3 = {
  28209. placement: "bottom",
  28210. orderedModifiers: [],
  28211. options: Object.assign({}, DEFAULT_OPTIONS2, defaultOptions2),
  28212. modifiersData: {},
  28213. elements: {
  28214. reference: reference2,
  28215. popper: popper2
  28216. },
  28217. attributes: {},
  28218. styles: {}
  28219. }, effectCleanupFns = [], isDestroyed = !1, instance = {
  28220. state: state3,
  28221. setOptions: function(setOptionsAction) {
  28222. var options2 = typeof setOptionsAction == "function" ? setOptionsAction(state3.options) : setOptionsAction;
  28223. cleanupModifierEffects(), state3.options = Object.assign({}, defaultOptions2, state3.options, options2), state3.scrollParents = {
  28224. reference: isElement5(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
  28225. popper: listScrollParents(popper2)
  28226. };
  28227. var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers3, state3.options.modifiers)));
  28228. return state3.orderedModifiers = orderedModifiers.filter(function(m3) {
  28229. return m3.enabled;
  28230. }), runModifierEffects(), instance.update();
  28231. },
  28232. // Sync update – it will always be executed, even if not necessary. This
  28233. // is useful for low frequency updates where sync behavior simplifies the
  28234. // logic.
  28235. // For high frequency updates (e.g. `resize` and `scroll` events), always
  28236. // prefer the async Popper#update method
  28237. forceUpdate: function() {
  28238. if (!isDestroyed) {
  28239. var _state$elements = state3.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
  28240. if (areValidElements(reference3, popper3)) {
  28241. state3.rects = {
  28242. reference: getCompositeRect(reference3, getOffsetParent(popper3), state3.options.strategy === "fixed"),
  28243. popper: getLayoutRect(popper3)
  28244. }, state3.reset = !1, state3.placement = state3.options.placement, state3.orderedModifiers.forEach(function(modifier) {
  28245. return state3.modifiersData[modifier.name] = Object.assign({}, modifier.data);
  28246. });
  28247. for (var index4 = 0; index4 < state3.orderedModifiers.length; index4++) {
  28248. if (state3.reset === !0) {
  28249. state3.reset = !1, index4 = -1;
  28250. continue;
  28251. }
  28252. var _state$orderedModifie = state3.orderedModifiers[index4], fn4 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
  28253. typeof fn4 == "function" && (state3 = fn4({
  28254. state: state3,
  28255. options: _options,
  28256. name,
  28257. instance
  28258. }) || state3);
  28259. }
  28260. }
  28261. }
  28262. },
  28263. // Async and optimistically optimized update – it will not be executed if
  28264. // not necessary (debounced to run at most once-per-tick)
  28265. update: debounce(function() {
  28266. return new Promise(function(resolve) {
  28267. instance.forceUpdate(), resolve(state3);
  28268. });
  28269. }),
  28270. destroy: function() {
  28271. cleanupModifierEffects(), isDestroyed = !0;
  28272. }
  28273. };
  28274. if (!areValidElements(reference2, popper2))
  28275. return instance;
  28276. instance.setOptions(options).then(function(state4) {
  28277. !isDestroyed && options.onFirstUpdate && options.onFirstUpdate(state4);
  28278. });
  28279. function runModifierEffects() {
  28280. state3.orderedModifiers.forEach(function(_ref) {
  28281. var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect4 = _ref.effect;
  28282. if (typeof effect4 == "function") {
  28283. var cleanupFn = effect4({
  28284. state: state3,
  28285. name,
  28286. instance,
  28287. options: options2
  28288. }), noopFn = function() {
  28289. };
  28290. effectCleanupFns.push(cleanupFn || noopFn);
  28291. }
  28292. });
  28293. }
  28294. function cleanupModifierEffects() {
  28295. effectCleanupFns.forEach(function(fn4) {
  28296. return fn4();
  28297. }), effectCleanupFns = [];
  28298. }
  28299. return instance;
  28300. };
  28301. }
  28302. var DEFAULT_OPTIONS2, createPopper, init_createPopper = __esm({
  28303. "../../node_modules/@popperjs/core/lib/createPopper.js"() {
  28304. init_getCompositeRect();
  28305. init_getLayoutRect();
  28306. init_listScrollParents();
  28307. init_getOffsetParent();
  28308. init_orderModifiers();
  28309. init_debounce();
  28310. init_mergeByName();
  28311. init_detectOverflow();
  28312. init_instanceOf();
  28313. DEFAULT_OPTIONS2 = {
  28314. placement: "bottom",
  28315. modifiers: [],
  28316. strategy: "absolute"
  28317. };
  28318. createPopper = popperGenerator();
  28319. }
  28320. });
  28321. // ../../node_modules/@popperjs/core/lib/popper-lite.js
  28322. var defaultModifiers, createPopper2, init_popper_lite = __esm({
  28323. "../../node_modules/@popperjs/core/lib/popper-lite.js"() {
  28324. init_createPopper();
  28325. init_eventListeners();
  28326. init_popperOffsets();
  28327. init_computeStyles();
  28328. init_applyStyles();
  28329. defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default], createPopper2 = popperGenerator({
  28330. defaultModifiers
  28331. });
  28332. }
  28333. });
  28334. // ../../node_modules/@popperjs/core/lib/popper.js
  28335. var defaultModifiers2, createPopper3, init_popper = __esm({
  28336. "../../node_modules/@popperjs/core/lib/popper.js"() {
  28337. init_createPopper();
  28338. init_eventListeners();
  28339. init_popperOffsets();
  28340. init_computeStyles();
  28341. init_applyStyles();
  28342. init_offset();
  28343. init_flip();
  28344. init_preventOverflow();
  28345. init_arrow();
  28346. init_hide();
  28347. init_popper_lite();
  28348. init_modifiers();
  28349. defaultModifiers2 = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default, offset_default, flip_default, preventOverflow_default, arrow_default, hide_default], createPopper3 = popperGenerator({
  28350. defaultModifiers: defaultModifiers2
  28351. });
  28352. }
  28353. });
  28354. // ../../node_modules/@popperjs/core/lib/index.js
  28355. var init_lib = __esm({
  28356. "../../node_modules/@popperjs/core/lib/index.js"() {
  28357. init_enums();
  28358. init_modifiers();
  28359. init_createPopper();
  28360. init_popper();
  28361. init_popper_lite();
  28362. }
  28363. });
  28364. // ../../node_modules/react-fast-compare/index.js
  28365. var require_react_fast_compare = __commonJS({
  28366. "../../node_modules/react-fast-compare/index.js"(exports, module2) {
  28367. var hasElementType = typeof Element < "u", hasMap = typeof Map == "function", hasSet = typeof Set == "function", hasArrayBuffer = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
  28368. function equal(a3, b) {
  28369. if (a3 === b) return !0;
  28370. if (a3 && b && typeof a3 == "object" && typeof b == "object") {
  28371. if (a3.constructor !== b.constructor) return !1;
  28372. var length2, i, keys3;
  28373. if (Array.isArray(a3)) {
  28374. if (length2 = a3.length, length2 != b.length) return !1;
  28375. for (i = length2; i-- !== 0; )
  28376. if (!equal(a3[i], b[i])) return !1;
  28377. return !0;
  28378. }
  28379. var it;
  28380. if (hasMap && a3 instanceof Map && b instanceof Map) {
  28381. if (a3.size !== b.size) return !1;
  28382. for (it = a3.entries(); !(i = it.next()).done; )
  28383. if (!b.has(i.value[0])) return !1;
  28384. for (it = a3.entries(); !(i = it.next()).done; )
  28385. if (!equal(i.value[1], b.get(i.value[0]))) return !1;
  28386. return !0;
  28387. }
  28388. if (hasSet && a3 instanceof Set && b instanceof Set) {
  28389. if (a3.size !== b.size) return !1;
  28390. for (it = a3.entries(); !(i = it.next()).done; )
  28391. if (!b.has(i.value[0])) return !1;
  28392. return !0;
  28393. }
  28394. if (hasArrayBuffer && ArrayBuffer.isView(a3) && ArrayBuffer.isView(b)) {
  28395. if (length2 = a3.length, length2 != b.length) return !1;
  28396. for (i = length2; i-- !== 0; )
  28397. if (a3[i] !== b[i]) return !1;
  28398. return !0;
  28399. }
  28400. if (a3.constructor === RegExp) return a3.source === b.source && a3.flags === b.flags;
  28401. if (a3.valueOf !== Object.prototype.valueOf && typeof a3.valueOf == "function" && typeof b.valueOf == "function") return a3.valueOf() === b.valueOf();
  28402. if (a3.toString !== Object.prototype.toString && typeof a3.toString == "function" && typeof b.toString == "function") return a3.toString() === b.toString();
  28403. if (keys3 = Object.keys(a3), length2 = keys3.length, length2 !== Object.keys(b).length) return !1;
  28404. for (i = length2; i-- !== 0; )
  28405. if (!Object.prototype.hasOwnProperty.call(b, keys3[i])) return !1;
  28406. if (hasElementType && a3 instanceof Element) return !1;
  28407. for (i = length2; i-- !== 0; )
  28408. if (!((keys3[i] === "_owner" || keys3[i] === "__v" || keys3[i] === "__o") && a3.$$typeof) && !equal(a3[keys3[i]], b[keys3[i]]))
  28409. return !1;
  28410. return !0;
  28411. }
  28412. return a3 !== a3 && b !== b;
  28413. }
  28414. module2.exports = function(a3, b) {
  28415. try {
  28416. return equal(a3, b);
  28417. } catch (error) {
  28418. if ((error.message || "").match(/stack|recursion/i))
  28419. return console.warn("react-fast-compare cannot handle circular refs"), !1;
  28420. throw error;
  28421. }
  28422. };
  28423. }
  28424. });
  28425. // ../../node_modules/react-popper/lib/esm/usePopper.js
  28426. var React69, ReactDOM3, import_react_fast_compare, EMPTY_MODIFIERS, usePopper, init_usePopper = __esm({
  28427. "../../node_modules/react-popper/lib/esm/usePopper.js"() {
  28428. React69 = __toESM(require_react()), ReactDOM3 = __toESM(require_react_dom());
  28429. init_lib();
  28430. import_react_fast_compare = __toESM(require_react_fast_compare());
  28431. init_utils3();
  28432. EMPTY_MODIFIERS = [], usePopper = function(referenceElement, popperElement, options) {
  28433. options === void 0 && (options = {});
  28434. var prevOptions = React69.useRef(null), optionsWithDefaults = {
  28435. onFirstUpdate: options.onFirstUpdate,
  28436. placement: options.placement || "bottom",
  28437. strategy: options.strategy || "absolute",
  28438. modifiers: options.modifiers || EMPTY_MODIFIERS
  28439. }, _React$useState = React69.useState({
  28440. styles: {
  28441. popper: {
  28442. position: optionsWithDefaults.strategy,
  28443. left: "0",
  28444. top: "0"
  28445. },
  28446. arrow: {
  28447. position: "absolute"
  28448. }
  28449. },
  28450. attributes: {}
  28451. }), state3 = _React$useState[0], setState2 = _React$useState[1], updateStateModifier = React69.useMemo(function() {
  28452. return {
  28453. name: "updateState",
  28454. enabled: !0,
  28455. phase: "write",
  28456. fn: function(_ref) {
  28457. var state4 = _ref.state, elements = Object.keys(state4.elements);
  28458. ReactDOM3.flushSync(function() {
  28459. setState2({
  28460. styles: fromEntries3(elements.map(function(element) {
  28461. return [element, state4.styles[element] || {}];
  28462. })),
  28463. attributes: fromEntries3(elements.map(function(element) {
  28464. return [element, state4.attributes[element]];
  28465. }))
  28466. });
  28467. });
  28468. },
  28469. requires: ["computeStyles"]
  28470. };
  28471. }, []), popperOptions = React69.useMemo(function() {
  28472. var newOptions = {
  28473. onFirstUpdate: optionsWithDefaults.onFirstUpdate,
  28474. placement: optionsWithDefaults.placement,
  28475. strategy: optionsWithDefaults.strategy,
  28476. modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, {
  28477. name: "applyStyles",
  28478. enabled: !1
  28479. }])
  28480. };
  28481. return (0, import_react_fast_compare.default)(prevOptions.current, newOptions) ? prevOptions.current || newOptions : (prevOptions.current = newOptions, newOptions);
  28482. }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]), popperInstanceRef = React69.useRef();
  28483. return useIsomorphicLayoutEffect2(function() {
  28484. popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions);
  28485. }, [popperOptions]), useIsomorphicLayoutEffect2(function() {
  28486. if (!(referenceElement == null || popperElement == null)) {
  28487. var createPopper4 = options.createPopper || createPopper3, popperInstance = createPopper4(referenceElement, popperElement, popperOptions);
  28488. return popperInstanceRef.current = popperInstance, function() {
  28489. popperInstance.destroy(), popperInstanceRef.current = null;
  28490. };
  28491. }
  28492. }, [referenceElement, popperElement, options.createPopper]), {
  28493. state: popperInstanceRef.current ? popperInstanceRef.current.state : null,
  28494. styles: state3.styles,
  28495. attributes: state3.attributes,
  28496. update: popperInstanceRef.current ? popperInstanceRef.current.update : null,
  28497. forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null
  28498. };
  28499. };
  28500. }
  28501. });
  28502. // ../../node_modules/react-popper/lib/esm/Popper.js
  28503. var React70, init_Popper = __esm({
  28504. "../../node_modules/react-popper/lib/esm/Popper.js"() {
  28505. React70 = __toESM(require_react());
  28506. init_Manager();
  28507. init_utils3();
  28508. init_usePopper();
  28509. }
  28510. });
  28511. // ../../node_modules/warning/warning.js
  28512. var require_warning = __commonJS({
  28513. "../../node_modules/warning/warning.js"(exports, module2) {
  28514. "use strict";
  28515. var __DEV__ = !1, warning3 = function() {
  28516. };
  28517. __DEV__ && (printWarning = function(format4, args) {
  28518. var len = arguments.length;
  28519. args = new Array(len > 1 ? len - 1 : 0);
  28520. for (var key = 1; key < len; key++)
  28521. args[key - 1] = arguments[key];
  28522. var argIndex = 0, message = "Warning: " + format4.replace(/%s/g, function() {
  28523. return args[argIndex++];
  28524. });
  28525. typeof console < "u" && console.error(message);
  28526. try {
  28527. throw new Error(message);
  28528. } catch {
  28529. }
  28530. }, warning3 = function(condition, format4, args) {
  28531. var len = arguments.length;
  28532. args = new Array(len > 2 ? len - 2 : 0);
  28533. for (var key = 2; key < len; key++)
  28534. args[key - 2] = arguments[key];
  28535. if (format4 === void 0)
  28536. throw new Error(
  28537. "`warning(condition, format, ...args)` requires a warning message argument"
  28538. );
  28539. condition || printWarning.apply(null, [format4].concat(args));
  28540. });
  28541. var printWarning;
  28542. module2.exports = warning3;
  28543. }
  28544. });
  28545. // ../../node_modules/react-popper/lib/esm/Reference.js
  28546. var React71, import_warning, init_Reference = __esm({
  28547. "../../node_modules/react-popper/lib/esm/Reference.js"() {
  28548. React71 = __toESM(require_react()), import_warning = __toESM(require_warning());
  28549. init_Manager();
  28550. init_utils3();
  28551. }
  28552. });
  28553. // ../../node_modules/react-popper/lib/esm/index.js
  28554. var init_esm2 = __esm({
  28555. "../../node_modules/react-popper/lib/esm/index.js"() {
  28556. init_Popper();
  28557. init_Manager();
  28558. init_Reference();
  28559. init_usePopper();
  28560. }
  28561. });
  28562. // ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js
  28563. function useGetLatest(val) {
  28564. var ref = React72.useRef(val);
  28565. return ref.current = val, React72.useCallback(function() {
  28566. return ref.current;
  28567. }, []);
  28568. }
  28569. function useControlledState(_ref) {
  28570. var initial2 = _ref.initial, value = _ref.value, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop5 : _ref$onChange;
  28571. if (initial2 === void 0 && value === void 0)
  28572. throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');
  28573. var _React$useState = React72.useState(initial2), state3 = _React$useState[0], setState2 = _React$useState[1], getLatest = useGetLatest(state3), set3 = React72.useCallback(function(updater) {
  28574. var state4 = getLatest(), updatedState = typeof updater == "function" ? updater(state4) : updater;
  28575. typeof updatedState.persist == "function" && updatedState.persist(), setState2(updatedState), typeof onChange == "function" && onChange(updatedState);
  28576. }, [getLatest, onChange]), isControlled = value !== void 0;
  28577. return [isControlled ? value : state3, isControlled ? onChange : set3];
  28578. }
  28579. function generateBoundingClientRect(x, y) {
  28580. return x === void 0 && (x = 0), y === void 0 && (y = 0), function() {
  28581. return {
  28582. width: 0,
  28583. height: 0,
  28584. top: y,
  28585. right: x,
  28586. bottom: y,
  28587. left: x,
  28588. x: 0,
  28589. y: 0,
  28590. toJSON: function() {
  28591. return null;
  28592. }
  28593. };
  28594. };
  28595. }
  28596. function usePopperTooltip(config4, popperOptions) {
  28597. var _popperProps$state, _popperProps$state$mo, _popperProps$state$mo2;
  28598. config4 === void 0 && (config4 = {}), popperOptions === void 0 && (popperOptions = {});
  28599. var finalConfig = Object.keys(defaultConfig).reduce(function(config5, key) {
  28600. var _extends22;
  28601. return _extends({}, config5, (_extends22 = {}, _extends22[key] = config5[key] !== void 0 ? config5[key] : defaultConfig[key], _extends22));
  28602. }, config4), defaultModifiers3 = React72.useMemo(
  28603. function() {
  28604. return [{
  28605. name: "offset",
  28606. options: {
  28607. offset: finalConfig.offset
  28608. }
  28609. }];
  28610. },
  28611. // eslint-disable-next-line react-hooks/exhaustive-deps
  28612. Array.isArray(finalConfig.offset) ? finalConfig.offset : []
  28613. ), finalPopperOptions = _extends({}, popperOptions, {
  28614. placement: popperOptions.placement || finalConfig.placement,
  28615. modifiers: popperOptions.modifiers || defaultModifiers3
  28616. }), _React$useState = React72.useState(null), triggerRef = _React$useState[0], setTriggerRef = _React$useState[1], _React$useState2 = React72.useState(null), tooltipRef = _React$useState2[0], setTooltipRef = _React$useState2[1], _useControlledState = useControlledState({
  28617. initial: finalConfig.defaultVisible,
  28618. value: finalConfig.visible,
  28619. onChange: finalConfig.onVisibleChange
  28620. }), visible = _useControlledState[0], setVisible = _useControlledState[1], timer = React72.useRef();
  28621. React72.useEffect(function() {
  28622. return function() {
  28623. return clearTimeout(timer.current);
  28624. };
  28625. }, []);
  28626. var _usePopper = usePopper(finalConfig.followCursor ? virtualElement : triggerRef, tooltipRef, finalPopperOptions), styles4 = _usePopper.styles, attributes = _usePopper.attributes, popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded5), update2 = popperProps.update, getLatest = useGetLatest({
  28627. visible,
  28628. triggerRef,
  28629. tooltipRef,
  28630. finalConfig
  28631. }), isTriggeredBy = React72.useCallback(
  28632. function(trigger) {
  28633. return Array.isArray(finalConfig.trigger) ? finalConfig.trigger.includes(trigger) : finalConfig.trigger === trigger;
  28634. },
  28635. // eslint-disable-next-line react-hooks/exhaustive-deps
  28636. Array.isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger]
  28637. ), hideTooltip = React72.useCallback(function() {
  28638. clearTimeout(timer.current), timer.current = window.setTimeout(function() {
  28639. return setVisible(!1);
  28640. }, finalConfig.delayHide);
  28641. }, [finalConfig.delayHide, setVisible]), showTooltip = React72.useCallback(function() {
  28642. clearTimeout(timer.current), timer.current = window.setTimeout(function() {
  28643. return setVisible(!0);
  28644. }, finalConfig.delayShow);
  28645. }, [finalConfig.delayShow, setVisible]), toggleTooltip = React72.useCallback(function() {
  28646. getLatest().visible ? hideTooltip() : showTooltip();
  28647. }, [getLatest, hideTooltip, showTooltip]);
  28648. React72.useEffect(function() {
  28649. if (getLatest().finalConfig.closeOnOutsideClick) {
  28650. var handleClickOutside = function(event) {
  28651. var _event$composedPath, _getLatest = getLatest(), tooltipRef2 = _getLatest.tooltipRef, triggerRef2 = _getLatest.triggerRef, target = (event.composedPath == null || (_event$composedPath = event.composedPath()) == null ? void 0 : _event$composedPath[0]) || event.target;
  28652. target instanceof Node && tooltipRef2 != null && triggerRef2 != null && !tooltipRef2.contains(target) && !triggerRef2.contains(target) && hideTooltip();
  28653. };
  28654. return document.addEventListener("mousedown", handleClickOutside), function() {
  28655. return document.removeEventListener("mousedown", handleClickOutside);
  28656. };
  28657. }
  28658. }, [getLatest, hideTooltip]), React72.useEffect(function() {
  28659. if (!(triggerRef == null || !isTriggeredBy("click")))
  28660. return triggerRef.addEventListener("click", toggleTooltip), function() {
  28661. return triggerRef.removeEventListener("click", toggleTooltip);
  28662. };
  28663. }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() {
  28664. if (!(triggerRef == null || !isTriggeredBy("double-click")))
  28665. return triggerRef.addEventListener("dblclick", toggleTooltip), function() {
  28666. return triggerRef.removeEventListener("dblclick", toggleTooltip);
  28667. };
  28668. }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() {
  28669. if (!(triggerRef == null || !isTriggeredBy("right-click"))) {
  28670. var preventDefaultAndToggle = function(event) {
  28671. event.preventDefault(), toggleTooltip();
  28672. };
  28673. return triggerRef.addEventListener("contextmenu", preventDefaultAndToggle), function() {
  28674. return triggerRef.removeEventListener("contextmenu", preventDefaultAndToggle);
  28675. };
  28676. }
  28677. }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() {
  28678. if (!(triggerRef == null || !isTriggeredBy("focus")))
  28679. return triggerRef.addEventListener("focus", showTooltip), triggerRef.addEventListener("blur", hideTooltip), function() {
  28680. triggerRef.removeEventListener("focus", showTooltip), triggerRef.removeEventListener("blur", hideTooltip);
  28681. };
  28682. }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React72.useEffect(function() {
  28683. if (!(triggerRef == null || !isTriggeredBy("hover")))
  28684. return triggerRef.addEventListener("mouseenter", showTooltip), triggerRef.addEventListener("mouseleave", hideTooltip), function() {
  28685. triggerRef.removeEventListener("mouseenter", showTooltip), triggerRef.removeEventListener("mouseleave", hideTooltip);
  28686. };
  28687. }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React72.useEffect(function() {
  28688. if (!(tooltipRef == null || !isTriggeredBy("hover") || !getLatest().finalConfig.interactive))
  28689. return tooltipRef.addEventListener("mouseenter", showTooltip), tooltipRef.addEventListener("mouseleave", hideTooltip), function() {
  28690. tooltipRef.removeEventListener("mouseenter", showTooltip), tooltipRef.removeEventListener("mouseleave", hideTooltip);
  28691. };
  28692. }, [tooltipRef, isTriggeredBy, showTooltip, hideTooltip, getLatest]);
  28693. var isReferenceHidden = popperProps == null || (_popperProps$state = popperProps.state) == null || (_popperProps$state$mo = _popperProps$state.modifiersData) == null || (_popperProps$state$mo2 = _popperProps$state$mo.hide) == null ? void 0 : _popperProps$state$mo2.isReferenceHidden;
  28694. React72.useEffect(function() {
  28695. finalConfig.closeOnTriggerHidden && isReferenceHidden && hideTooltip();
  28696. }, [finalConfig.closeOnTriggerHidden, hideTooltip, isReferenceHidden]), React72.useEffect(function() {
  28697. if (!finalConfig.followCursor || triggerRef == null) return;
  28698. function setMousePosition(_ref) {
  28699. var clientX = _ref.clientX, clientY = _ref.clientY;
  28700. virtualElement.getBoundingClientRect = generateBoundingClientRect(clientX, clientY), update2?.();
  28701. }
  28702. return triggerRef.addEventListener("mousemove", setMousePosition), function() {
  28703. return triggerRef.removeEventListener("mousemove", setMousePosition);
  28704. };
  28705. }, [finalConfig.followCursor, triggerRef, update2]), React72.useEffect(function() {
  28706. if (!(tooltipRef == null || update2 == null || finalConfig.mutationObserverOptions == null)) {
  28707. var observer = new MutationObserver(update2);
  28708. return observer.observe(tooltipRef, finalConfig.mutationObserverOptions), function() {
  28709. return observer.disconnect();
  28710. };
  28711. }
  28712. }, [finalConfig.mutationObserverOptions, tooltipRef, update2]);
  28713. var getTooltipProps = function(args) {
  28714. return args === void 0 && (args = {}), _extends({}, args, {
  28715. style: _extends({}, args.style, styles4.popper)
  28716. }, attributes.popper, {
  28717. "data-popper-interactive": finalConfig.interactive
  28718. });
  28719. }, getArrowProps = function(args) {
  28720. return args === void 0 && (args = {}), _extends({}, args, attributes.arrow, {
  28721. style: _extends({}, args.style, styles4.arrow),
  28722. "data-popper-arrow": !0
  28723. });
  28724. };
  28725. return _extends({
  28726. getArrowProps,
  28727. getTooltipProps,
  28728. setTooltipRef,
  28729. setTriggerRef,
  28730. tooltipRef,
  28731. triggerRef,
  28732. visible
  28733. }, popperProps);
  28734. }
  28735. var React72, noop5, _excluded5, virtualElement, defaultConfig, init_react_popper_tooltip = __esm({
  28736. "../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js"() {
  28737. init_objectWithoutPropertiesLoose();
  28738. init_extends();
  28739. React72 = __toESM(require_react());
  28740. init_esm2();
  28741. noop5 = function() {
  28742. };
  28743. _excluded5 = ["styles", "attributes"], virtualElement = {
  28744. getBoundingClientRect: generateBoundingClientRect()
  28745. }, defaultConfig = {
  28746. closeOnOutsideClick: !0,
  28747. closeOnTriggerHidden: !1,
  28748. defaultVisible: !1,
  28749. delayHide: 0,
  28750. delayShow: 0,
  28751. followCursor: !1,
  28752. interactive: !1,
  28753. mutationObserverOptions: {
  28754. attributes: !0,
  28755. childList: !0,
  28756. subtree: !0
  28757. },
  28758. offset: [0, 6],
  28759. trigger: "hover"
  28760. };
  28761. }
  28762. });
  28763. // src/components/components/tooltip/WithTooltip.tsx
  28764. var WithTooltip_exports = {};
  28765. __export(WithTooltip_exports, {
  28766. Tooltip: () => Tooltip3,
  28767. WithToolTipState: () => DeprecatedState,
  28768. WithTooltip: () => WithToolTipState,
  28769. WithTooltipPure: () => DeprecatedPure
  28770. });
  28771. var import_react159, import_react_dom7, import_memoizerific11, document12, match2, ArrowSpacing, Arrow, Wrapper5, Tooltip3, TargetContainer, TargetSvgContainer, WithTooltipPure, WithToolTipState, DeprecatedPure, DeprecatedState, init_WithTooltip = __esm({
  28772. "src/components/components/tooltip/WithTooltip.tsx"() {
  28773. "use strict";
  28774. import_react159 = __toESM(require_react(), 1), import_react_dom7 = __toESM(require_react_dom(), 1);
  28775. init_client_logger();
  28776. init_dist();
  28777. import_memoizerific11 = __toESM(require_memoizerific(), 1);
  28778. init_react_popper_tooltip();
  28779. init_theming();
  28780. ({ document: document12 } = scope), match2 = (0, import_memoizerific11.default)(1e3)(
  28781. (requests, actual, value, fallback = 0) => actual.split("-")[0] === requests ? value : fallback
  28782. ), ArrowSpacing = 8, Arrow = styled.div(
  28783. {
  28784. position: "absolute",
  28785. borderStyle: "solid"
  28786. },
  28787. ({ placement }) => {
  28788. let x = 0, y = 0;
  28789. switch (!0) {
  28790. case (placement.startsWith("left") || placement.startsWith("right")): {
  28791. y = 8;
  28792. break;
  28793. }
  28794. case (placement.startsWith("top") || placement.startsWith("bottom")): {
  28795. x = 8;
  28796. break;
  28797. }
  28798. default:
  28799. }
  28800. return { transform: `translate3d(${x}px, ${y}px, 0px)` };
  28801. },
  28802. ({ theme: theme3, color: color2, placement }) => ({
  28803. bottom: `${match2("top", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28804. top: `${match2("bottom", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28805. right: `${match2("left", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28806. left: `${match2("right", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28807. borderBottomWidth: `${match2("top", placement, "0", ArrowSpacing)}px`,
  28808. borderTopWidth: `${match2("bottom", placement, "0", ArrowSpacing)}px`,
  28809. borderRightWidth: `${match2("left", placement, "0", ArrowSpacing)}px`,
  28810. borderLeftWidth: `${match2("right", placement, "0", ArrowSpacing)}px`,
  28811. borderTopColor: match2(
  28812. "top",
  28813. placement,
  28814. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28815. "transparent"
  28816. ),
  28817. borderBottomColor: match2(
  28818. "bottom",
  28819. placement,
  28820. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28821. "transparent"
  28822. ),
  28823. borderLeftColor: match2(
  28824. "left",
  28825. placement,
  28826. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28827. "transparent"
  28828. ),
  28829. borderRightColor: match2(
  28830. "right",
  28831. placement,
  28832. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28833. "transparent"
  28834. )
  28835. })
  28836. ), Wrapper5 = styled.div(
  28837. ({ hidden }) => ({
  28838. display: hidden ? "none" : "inline-block",
  28839. zIndex: 2147483647,
  28840. colorScheme: "light dark"
  28841. }),
  28842. ({ theme: theme3, color: color2, hasChrome }) => hasChrome ? {
  28843. background: color2 && theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28844. filter: `
  28845. drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
  28846. drop-shadow(0 1px 3px rgba(0,0,0,0.1))
  28847. `,
  28848. borderRadius: theme3.appBorderRadius + 2,
  28849. fontSize: theme3.typography.size.s1
  28850. } : {}
  28851. ), Tooltip3 = import_react159.default.forwardRef(
  28852. ({
  28853. placement = "top",
  28854. hasChrome = !0,
  28855. children,
  28856. arrowProps = {},
  28857. tooltipRef,
  28858. color: color2,
  28859. withArrows,
  28860. ...props
  28861. }, ref) => import_react159.default.createElement(Wrapper5, { "data-testid": "tooltip", hasChrome, ref, ...props, color: color2 }, hasChrome && withArrows && import_react159.default.createElement(Arrow, { placement, ...arrowProps, color: color2 }), children)
  28862. );
  28863. Tooltip3.displayName = "Tooltip";
  28864. TargetContainer = styled.div`
  28865. display: inline-block;
  28866. cursor: ${(props) => props.trigger === "hover" || props.trigger?.includes("hover") ? "default" : "pointer"};
  28867. `, TargetSvgContainer = styled.g`
  28868. cursor: ${(props) => props.trigger === "hover" || props.trigger?.includes("hover") ? "default" : "pointer"};
  28869. `, WithTooltipPure = ({
  28870. svg = !1,
  28871. trigger = "click",
  28872. closeOnOutsideClick = !1,
  28873. placement = "top",
  28874. modifiers = [
  28875. {
  28876. name: "preventOverflow",
  28877. options: {
  28878. padding: 8
  28879. }
  28880. },
  28881. {
  28882. name: "offset",
  28883. options: {
  28884. offset: [8, 8]
  28885. }
  28886. },
  28887. {
  28888. name: "arrow",
  28889. options: {
  28890. padding: 8
  28891. }
  28892. }
  28893. ],
  28894. hasChrome = !0,
  28895. defaultVisible = !1,
  28896. withArrows,
  28897. offset: offset3,
  28898. tooltip,
  28899. children,
  28900. closeOnTriggerHidden,
  28901. mutationObserverOptions,
  28902. delayHide = trigger === "hover" ? 200 : 0,
  28903. visible,
  28904. interactive,
  28905. delayShow = trigger === "hover" ? 400 : 0,
  28906. strategy,
  28907. followCursor,
  28908. onVisibleChange,
  28909. portalContainer,
  28910. ...props
  28911. }) => {
  28912. let Container7 = svg ? TargetSvgContainer : TargetContainer, {
  28913. getArrowProps,
  28914. getTooltipProps,
  28915. setTooltipRef,
  28916. setTriggerRef,
  28917. visible: isVisible2,
  28918. state: state3
  28919. } = usePopperTooltip(
  28920. {
  28921. trigger,
  28922. placement,
  28923. defaultVisible,
  28924. delayHide,
  28925. interactive,
  28926. closeOnOutsideClick,
  28927. closeOnTriggerHidden,
  28928. onVisibleChange,
  28929. delayShow,
  28930. followCursor,
  28931. mutationObserverOptions,
  28932. visible,
  28933. offset: offset3
  28934. },
  28935. {
  28936. modifiers,
  28937. strategy
  28938. }
  28939. ), portalTarget = (typeof portalContainer == "string" ? document12.querySelector(portalContainer) : portalContainer) || document12.body, tooltipComponent = isVisible2 ? import_react159.default.createElement(
  28940. Tooltip3,
  28941. {
  28942. placement: state3?.placement,
  28943. ref: setTooltipRef,
  28944. hasChrome,
  28945. arrowProps: getArrowProps(),
  28946. withArrows,
  28947. ...getTooltipProps()
  28948. },
  28949. typeof tooltip == "function" ? tooltip({ onHide: () => onVisibleChange(!1) }) : tooltip
  28950. ) : null;
  28951. return import_react159.default.createElement(import_react159.default.Fragment, null, import_react159.default.createElement(Container7, { trigger, ref: setTriggerRef, ...props }, children), isVisible2 && import_react_dom7.default.createPortal(tooltipComponent, portalTarget));
  28952. }, WithToolTipState = ({
  28953. startOpen = !1,
  28954. onVisibleChange: onChange,
  28955. ...rest
  28956. }) => {
  28957. let [tooltipShown, setTooltipShown] = (0, import_react159.useState)(startOpen), onVisibilityChange = (0, import_react159.useCallback)(
  28958. (visibility) => {
  28959. onChange && onChange(visibility) === !1 || setTooltipShown(visibility);
  28960. },
  28961. [onChange]
  28962. );
  28963. return (0, import_react159.useEffect)(() => {
  28964. let hide2 = () => onVisibilityChange(!1), handleKeyDown = (e) => {
  28965. e.key === "Escape" && hide2();
  28966. };
  28967. document12.addEventListener("keydown", handleKeyDown, !1);
  28968. let iframes = Array.from(document12.getElementsByTagName("iframe")), unbinders = [];
  28969. return iframes.forEach((iframe) => {
  28970. let bind = () => {
  28971. try {
  28972. iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener("click", hide2), unbinders.push(() => {
  28973. try {
  28974. iframe.contentWindow.document.removeEventListener("click", hide2);
  28975. } catch {
  28976. }
  28977. }));
  28978. } catch {
  28979. }
  28980. };
  28981. bind(), iframe.addEventListener("load", bind), unbinders.push(() => {
  28982. iframe.removeEventListener("load", bind);
  28983. });
  28984. }), () => {
  28985. document12.removeEventListener("keydown", handleKeyDown), unbinders.forEach((unbind) => {
  28986. unbind();
  28987. });
  28988. };
  28989. }), import_react159.default.createElement(WithTooltipPure, { ...rest, visible: tooltipShown, onVisibleChange: onVisibilityChange });
  28990. }, DeprecatedPure = (props) => (deprecate(
  28991. "WithTooltipPure is deprecated and will be removed in Storybook 11. Please use WithTooltip instead."
  28992. ), import_react159.default.createElement(WithTooltipPure, { "data-deprecated": "WithTooltipPure", ...props })), DeprecatedState = (props) => (deprecate(
  28993. "WithToolTipState is deprecated and will be removed in Storybook 11. Please use WithTooltip instead."
  28994. ), import_react159.default.createElement(WithToolTipState, { "data-deprecated": "WithToolTipState", ...props }));
  28995. }
  28996. });
  28997. // ../../node_modules/browser-dtector/browser-dtector.umd.min.js
  28998. var require_browser_dtector_umd_min = __commonJS({
  28999. "../../node_modules/browser-dtector/browser-dtector.umd.min.js"(exports, module2) {
  29000. (function(e, o) {
  29001. typeof exports == "object" && typeof module2 < "u" ? module2.exports = o() : typeof define == "function" && define.amd ? define(o) : (e = typeof globalThis < "u" ? globalThis : e || self).BrowserDetector = o();
  29002. })(exports, (function() {
  29003. "use strict";
  29004. function e(e2, o2) {
  29005. for (var r3 = 0; r3 < o2.length; r3++) {
  29006. var n2 = o2[r3];
  29007. n2.enumerable = n2.enumerable || !1, n2.configurable = !0, "value" in n2 && (n2.writable = !0), Object.defineProperty(e2, (i2 = n2.key, t2 = void 0, typeof (t2 = (function(e3, o3) {
  29008. if (typeof e3 != "object" || e3 === null) return e3;
  29009. var r4 = e3[Symbol.toPrimitive];
  29010. if (r4 !== void 0) {
  29011. var n3 = r4.call(e3, o3 || "default");
  29012. if (typeof n3 != "object") return n3;
  29013. throw new TypeError("@@toPrimitive must return a primitive value.");
  29014. }
  29015. return (o3 === "string" ? String : Number)(e3);
  29016. })(i2, "string")) == "symbol" ? t2 : String(t2)), n2);
  29017. }
  29018. var i2, t2;
  29019. }
  29020. var o = { chrome: "Google Chrome", brave: "Brave", crios: "Google Chrome", edge: "Microsoft Edge", edg: "Microsoft Edge", edgios: "Microsoft Edge", fennec: "Mozilla Firefox", jsdom: "JsDOM", mozilla: "Mozilla Firefox", fxios: "Mozilla Firefox", msie: "Microsoft Internet Explorer", opera: "Opera", opios: "Opera", opr: "Opera", opt: "Opera", rv: "Microsoft Internet Explorer", safari: "Safari", samsungbrowser: "Samsung Browser", electron: "Electron" }, r2 = { android: "Android", androidTablet: "Android Tablet", cros: "Chrome OS", fennec: "Android Tablet", ipad: "IPad", iphone: "IPhone", jsdom: "JsDOM", linux: "Linux", mac: "Macintosh", tablet: "Android Tablet", win: "Windows", "windows phone": "Windows Phone", xbox: "Microsoft Xbox" }, n = function(e2) {
  29021. var o2 = new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, "})?")), r3 = Number(e2).toString().match(o2);
  29022. return r3 ? r3[0] : null;
  29023. }, i = function() {
  29024. return typeof window < "u" ? window.navigator : null;
  29025. }, t = (function() {
  29026. function t2(e2) {
  29027. var o2;
  29028. (function(e3, o3) {
  29029. if (!(e3 instanceof o3)) throw new TypeError("Cannot call a class as a function");
  29030. })(this, t2), this.userAgent = e2 || ((o2 = i()) === null || o2 === void 0 ? void 0 : o2.userAgent) || null;
  29031. }
  29032. var a3, l, s3;
  29033. return a3 = t2, l = [{ key: "parseUserAgent", value: function(e2) {
  29034. var t3, a4, l2, s4 = {}, c = e2 || this.userAgent || "", d = c.toLowerCase().replace(/\s\s+/g, " "), u2 = /(edge)\/([\w.]+)/.exec(d) || /(edg)[/]([\w.]+)/.exec(d) || /(opr)[/]([\w.]+)/.exec(d) || /(opt)[/]([\w.]+)/.exec(d) || /(fxios)[/]([\w.]+)/.exec(d) || /(edgios)[/]([\w.]+)/.exec(d) || /(jsdom)[/]([\w.]+)/.exec(d) || /(samsungbrowser)[/]([\w.]+)/.exec(d) || /(electron)[/]([\w.]+)/.exec(d) || /(chrome)[/]([\w.]+)/.exec(d) || /(crios)[/]([\w.]+)/.exec(d) || /(opios)[/]([\w.]+)/.exec(d) || /(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(webkit)[/]([\w.]+)/.exec(d) || /(opera)(?:.*version|)[/]([\w.]+)/.exec(d) || /(msie) ([\w.]+)/.exec(d) || /(fennec)[/]([\w.]+)/.exec(d) || d.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(d) || d.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d) || [], f4 = /(ipad)/.exec(d) || /(ipod)/.exec(d) || /(iphone)/.exec(d) || /(jsdom)/.exec(d) || /(windows phone)/.exec(d) || /(xbox)/.exec(d) || /(win)/.exec(d) || /(tablet)/.exec(d) || /(android)/.test(d) && /(mobile)/.test(d) === !1 && ["androidTablet"] || /(android)/.exec(d) || /(mac)/.exec(d) || /(linux)/.exec(d) || /(cros)/.exec(d) || [], p3 = u2[5] || u2[3] || u2[1] || null, w = f4[0] || null, x = u2[4] || u2[2] || null, b = i();
  29035. p3 === "chrome" && typeof (b == null || (t3 = b.brave) === null || t3 === void 0 ? void 0 : t3.isBrave) == "function" && (p3 = "brave"), p3 && (s4[p3] = !0), w && (s4[w] = !0);
  29036. var v = !!(s4.tablet || s4.android || s4.androidTablet), m3 = !!(s4.ipad || s4.tablet || s4.androidTablet), g2 = !!(s4.android || s4.androidTablet || s4.tablet || s4.ipad || s4.ipod || s4.iphone || s4["windows phone"]), h3 = !!(s4.cros || s4.mac || s4.linux || s4.win), y = !!(s4.brave || s4.chrome || s4.crios || s4.opr || s4.safari || s4.edg || s4.electron), A3 = !!(s4.msie || s4.rv);
  29037. return { name: (a4 = o[p3]) !== null && a4 !== void 0 ? a4 : null, platform: (l2 = r2[w]) !== null && l2 !== void 0 ? l2 : null, userAgent: c, version: x, shortVersion: x ? n(parseFloat(x), 2) : null, isAndroid: v, isTablet: m3, isMobile: g2, isDesktop: h3, isWebkit: y, isIE: A3 };
  29038. } }, { key: "getBrowserInfo", value: function() {
  29039. var e2 = this.parseUserAgent();
  29040. return { name: e2.name, platform: e2.platform, userAgent: e2.userAgent, version: e2.version, shortVersion: e2.shortVersion };
  29041. } }], s3 = [{ key: "VERSION", get: function() {
  29042. return "3.4.0";
  29043. } }], l && e(a3.prototype, l), s3 && e(a3, s3), Object.defineProperty(a3, "prototype", { writable: !1 }), t2;
  29044. })();
  29045. return t;
  29046. }));
  29047. }
  29048. });
  29049. // src/core-events/index.ts
  29050. var core_events_exports = {};
  29051. __export(core_events_exports, {
  29052. AI_PROMPT_NUDGE: () => AI_PROMPT_NUDGE,
  29053. AI_SETUP_ANALYTICS_REQUEST: () => AI_SETUP_ANALYTICS_REQUEST,
  29054. AI_SETUP_ANALYTICS_RESPONSE: () => AI_SETUP_ANALYTICS_RESPONSE,
  29055. ARGTYPES_INFO_REQUEST: () => ARGTYPES_INFO_REQUEST,
  29056. ARGTYPES_INFO_RESPONSE: () => ARGTYPES_INFO_RESPONSE,
  29057. CHANNEL_CREATED: () => CHANNEL_CREATED,
  29058. CHANNEL_WS_DISCONNECT: () => CHANNEL_WS_DISCONNECT,
  29059. CONFIG_ERROR: () => CONFIG_ERROR,
  29060. CREATE_NEW_STORYFILE_REQUEST: () => CREATE_NEW_STORYFILE_REQUEST,
  29061. CREATE_NEW_STORYFILE_RESPONSE: () => CREATE_NEW_STORYFILE_RESPONSE,
  29062. CURRENT_STORY_WAS_SET: () => CURRENT_STORY_WAS_SET,
  29063. DOCS_PREPARED: () => DOCS_PREPARED,
  29064. DOCS_RENDERED: () => DOCS_RENDERED,
  29065. FILE_COMPONENT_SEARCH_REQUEST: () => FILE_COMPONENT_SEARCH_REQUEST,
  29066. FILE_COMPONENT_SEARCH_RESPONSE: () => FILE_COMPONENT_SEARCH_RESPONSE,
  29067. FORCE_REMOUNT: () => FORCE_REMOUNT,
  29068. FORCE_RE_RENDER: () => FORCE_RE_RENDER,
  29069. GHOST_STORIES_REQUEST: () => GHOST_STORIES_REQUEST,
  29070. GHOST_STORIES_RESPONSE: () => GHOST_STORIES_RESPONSE,
  29071. GLOBALS_UPDATED: () => GLOBALS_UPDATED,
  29072. MANAGER_INERT_ATTRIBUTE_CHANGED: () => MANAGER_INERT_ATTRIBUTE_CHANGED,
  29073. NAVIGATE_URL: () => NAVIGATE_URL,
  29074. OPEN_IN_EDITOR_REQUEST: () => OPEN_IN_EDITOR_REQUEST,
  29075. OPEN_IN_EDITOR_RESPONSE: () => OPEN_IN_EDITOR_RESPONSE,
  29076. PLAY_FUNCTION_THREW_EXCEPTION: () => PLAY_FUNCTION_THREW_EXCEPTION,
  29077. PRELOAD_ENTRIES: () => PRELOAD_ENTRIES,
  29078. PREVIEW_BUILDER_PROGRESS: () => PREVIEW_BUILDER_PROGRESS,
  29079. PREVIEW_INITIALIZED: () => PREVIEW_INITIALIZED,
  29080. PREVIEW_KEYDOWN: () => PREVIEW_KEYDOWN,
  29081. REGISTER_SUBSCRIPTION: () => REGISTER_SUBSCRIPTION,
  29082. REQUEST_WHATS_NEW_DATA: () => REQUEST_WHATS_NEW_DATA,
  29083. RESET_STORY_ARGS: () => RESET_STORY_ARGS,
  29084. RESULT_WHATS_NEW_DATA: () => RESULT_WHATS_NEW_DATA,
  29085. SAVE_STORY_REQUEST: () => SAVE_STORY_REQUEST,
  29086. SAVE_STORY_RESPONSE: () => SAVE_STORY_RESPONSE,
  29087. SELECT_STORY: () => SELECT_STORY,
  29088. SET_CONFIG: () => SET_CONFIG,
  29089. SET_CURRENT_STORY: () => SET_CURRENT_STORY,
  29090. SET_FILTER: () => SET_FILTER,
  29091. SET_GLOBALS: () => SET_GLOBALS,
  29092. SET_INDEX: () => SET_INDEX,
  29093. SET_STORIES: () => SET_STORIES,
  29094. SET_WHATS_NEW_CACHE: () => SET_WHATS_NEW_CACHE,
  29095. SHARED_STATE_CHANGED: () => SHARED_STATE_CHANGED,
  29096. SHARED_STATE_SET: () => SHARED_STATE_SET,
  29097. SHARE_ISOLATE_MODE: () => SHARE_ISOLATE_MODE,
  29098. SIDEBAR_FILTER_CHANGED: () => SIDEBAR_FILTER_CHANGED,
  29099. STORIES_COLLAPSE_ALL: () => STORIES_COLLAPSE_ALL,
  29100. STORIES_EXPAND_ALL: () => STORIES_EXPAND_ALL,
  29101. STORY_ARGS_UPDATED: () => STORY_ARGS_UPDATED,
  29102. STORY_CHANGED: () => STORY_CHANGED,
  29103. STORY_ERRORED: () => STORY_ERRORED,
  29104. STORY_FINISHED: () => STORY_FINISHED,
  29105. STORY_HOT_UPDATED: () => STORY_HOT_UPDATED,
  29106. STORY_INDEX_INVALIDATED: () => STORY_INDEX_INVALIDATED,
  29107. STORY_MISSING: () => STORY_MISSING,
  29108. STORY_PREPARED: () => STORY_PREPARED,
  29109. STORY_RENDERED: () => STORY_RENDERED,
  29110. STORY_RENDER_PHASE_CHANGED: () => STORY_RENDER_PHASE_CHANGED,
  29111. STORY_SPECIFIED: () => STORY_SPECIFIED,
  29112. STORY_THREW_EXCEPTION: () => STORY_THREW_EXCEPTION,
  29113. STORY_UNCHANGED: () => STORY_UNCHANGED,
  29114. TELEMETRY_ERROR: () => TELEMETRY_ERROR,
  29115. TOGGLE_WHATS_NEW_NOTIFICATIONS: () => TOGGLE_WHATS_NEW_NOTIFICATIONS,
  29116. UNHANDLED_ERRORS_WHILE_PLAYING: () => UNHANDLED_ERRORS_WHILE_PLAYING,
  29117. UPDATE_GLOBALS: () => UPDATE_GLOBALS,
  29118. UPDATE_QUERY_PARAMS: () => UPDATE_QUERY_PARAMS,
  29119. UPDATE_STORY_ARGS: () => UPDATE_STORY_ARGS,
  29120. default: () => core_events_default
  29121. });
  29122. var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.GHOST_STORIES_REQUEST = "ghostStoriesRequest", events2.GHOST_STORIES_RESPONSE = "ghostStoriesResponse", events2.AI_SETUP_ANALYTICS_RESPONSE = "aiSetupAnalyticsResponse", events2.AI_SETUP_ANALYTICS_REQUEST = "aiSetupAnalyticsRequest", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2.SHARE_ISOLATE_MODE = "shareIsolateMode", events2.AI_PROMPT_NUDGE = "aiPromptNudge", events2.SIDEBAR_FILTER_CHANGED = "sidebarFilterChanged", events2))(events || {}), core_events_default = events, {
  29123. CHANNEL_WS_DISCONNECT,
  29124. CHANNEL_CREATED,
  29125. CONFIG_ERROR,
  29126. CREATE_NEW_STORYFILE_REQUEST,
  29127. CREATE_NEW_STORYFILE_RESPONSE,
  29128. CURRENT_STORY_WAS_SET,
  29129. DOCS_PREPARED,
  29130. DOCS_RENDERED,
  29131. FILE_COMPONENT_SEARCH_REQUEST,
  29132. FILE_COMPONENT_SEARCH_RESPONSE,
  29133. FORCE_RE_RENDER,
  29134. FORCE_REMOUNT,
  29135. GLOBALS_UPDATED,
  29136. NAVIGATE_URL,
  29137. PLAY_FUNCTION_THREW_EXCEPTION,
  29138. UNHANDLED_ERRORS_WHILE_PLAYING,
  29139. PRELOAD_ENTRIES,
  29140. PREVIEW_INITIALIZED,
  29141. PREVIEW_BUILDER_PROGRESS,
  29142. PREVIEW_KEYDOWN,
  29143. REGISTER_SUBSCRIPTION,
  29144. RESET_STORY_ARGS,
  29145. SELECT_STORY,
  29146. SET_CONFIG,
  29147. SET_CURRENT_STORY,
  29148. SET_FILTER,
  29149. SET_GLOBALS,
  29150. SET_INDEX,
  29151. SET_STORIES,
  29152. SHARED_STATE_CHANGED,
  29153. SHARED_STATE_SET,
  29154. STORIES_COLLAPSE_ALL,
  29155. STORIES_EXPAND_ALL,
  29156. STORY_ARGS_UPDATED,
  29157. STORY_CHANGED,
  29158. STORY_ERRORED,
  29159. STORY_INDEX_INVALIDATED,
  29160. STORY_MISSING,
  29161. STORY_PREPARED,
  29162. STORY_RENDER_PHASE_CHANGED,
  29163. STORY_RENDERED,
  29164. STORY_FINISHED,
  29165. STORY_SPECIFIED,
  29166. STORY_THREW_EXCEPTION,
  29167. STORY_UNCHANGED,
  29168. STORY_HOT_UPDATED,
  29169. UPDATE_GLOBALS,
  29170. UPDATE_QUERY_PARAMS,
  29171. UPDATE_STORY_ARGS,
  29172. REQUEST_WHATS_NEW_DATA,
  29173. RESULT_WHATS_NEW_DATA,
  29174. SET_WHATS_NEW_CACHE,
  29175. TOGGLE_WHATS_NEW_NOTIFICATIONS,
  29176. TELEMETRY_ERROR,
  29177. SAVE_STORY_REQUEST,
  29178. SAVE_STORY_RESPONSE,
  29179. ARGTYPES_INFO_REQUEST,
  29180. ARGTYPES_INFO_RESPONSE,
  29181. GHOST_STORIES_REQUEST,
  29182. GHOST_STORIES_RESPONSE,
  29183. AI_SETUP_ANALYTICS_RESPONSE,
  29184. AI_SETUP_ANALYTICS_REQUEST,
  29185. OPEN_IN_EDITOR_REQUEST,
  29186. OPEN_IN_EDITOR_RESPONSE,
  29187. MANAGER_INERT_ATTRIBUTE_CHANGED,
  29188. SHARE_ISOLATE_MODE,
  29189. AI_PROMPT_NUDGE,
  29190. SIDEBAR_FILTER_CHANGED
  29191. } = events;
  29192. // src/manager/globals/globals.ts
  29193. var globalsNameReferenceMap = {
  29194. react: "__REACT__",
  29195. "react-dom": "__REACT_DOM__",
  29196. "react-dom/client": "__REACT_DOM_CLIENT__",
  29197. "@storybook/icons": "__STORYBOOK_ICONS__",
  29198. "storybook/manager-api": "__STORYBOOK_API__",
  29199. "storybook/test": "__STORYBOOK_TEST__",
  29200. "storybook/theming": "__STORYBOOK_THEMING__",
  29201. "storybook/theming/create": "__STORYBOOK_THEMING_CREATE__",
  29202. "storybook/internal/channels": "__STORYBOOK_CHANNELS__",
  29203. "storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__",
  29204. "storybook/internal/components": "__STORYBOOK_COMPONENTS__",
  29205. "storybook/internal/core-events": "__STORYBOOK_CORE_EVENTS__",
  29206. "storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__",
  29207. "storybook/internal/router": "__STORYBOOK_ROUTER__",
  29208. "storybook/internal/types": "__STORYBOOK_TYPES__"
  29209. }, globalPackages = Object.keys(globalsNameReferenceMap);
  29210. // src/manager/globals/runtime.ts
  29211. var REACT = __toESM(require_react(), 1), REACT_DOM = __toESM(require_react_dom(), 1), REACT_DOM_CLIENT = __toESM(require_client(), 1);
  29212. // src/channels/index.ts
  29213. var channels_exports = {};
  29214. __export(channels_exports, {
  29215. Channel: () => Channel,
  29216. HEARTBEAT_INTERVAL: () => HEARTBEAT_INTERVAL,
  29217. HEARTBEAT_MAX_LATENCY: () => HEARTBEAT_MAX_LATENCY,
  29218. PostMessageTransport: () => PostMessageTransport,
  29219. WebsocketTransport: () => WebsocketTransport,
  29220. createBrowserChannel: () => createBrowserChannel,
  29221. default: () => channels_default
  29222. });
  29223. init_dist();
  29224. // src/shared/universal-store/index.ts
  29225. init_esm();
  29226. // src/shared/universal-store/instances.ts
  29227. var instances = /* @__PURE__ */ new Map();
  29228. // src/shared/universal-store/index.ts
  29229. var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = {
  29230. PENDING: "PENDING",
  29231. RESOLVED: "RESOLVED",
  29232. REJECTED: "REJECTED"
  29233. }, _UniversalStore = class _UniversalStore {
  29234. constructor(options, environmentOverrides) {
  29235. /** Enable debug logs for this store */
  29236. this.debugging = !1;
  29237. // TODO: narrow type of listeners based on event type
  29238. this.listeners = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set()]]);
  29239. /** Gets the current state */
  29240. this.getState = () => (this.debug("getState", { state: this.state }), this.state);
  29241. /**
  29242. * Subscribes to store events
  29243. *
  29244. * @returns A function to unsubscribe
  29245. */
  29246. this.subscribe = (eventTypeOrListener, maybeListener) => {
  29247. let subscribesToAllEvents = typeof eventTypeOrListener == "function", eventType = subscribesToAllEvents ? "*" : eventTypeOrListener, listener = subscribesToAllEvents ? eventTypeOrListener : maybeListener;
  29248. if (this.debug("subscribe", { eventType, listener }), !listener)
  29249. throw new TypeError(
  29250. `Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`
  29251. );
  29252. return this.listeners.has(eventType) || this.listeners.set(eventType, /* @__PURE__ */ new Set()), this.listeners.get(eventType).add(listener), () => {
  29253. this.debug("unsubscribe", { eventType, listener }), this.listeners.has(eventType) && (this.listeners.get(eventType).delete(listener), this.listeners.get(eventType)?.size === 0 && this.listeners.delete(eventType));
  29254. };
  29255. };
  29256. /** Sends a custom event to the other stores */
  29257. this.send = (event) => {
  29258. if (this.debug("send", { event }), this.status !== _UniversalStore.Status.READY)
  29259. throw new TypeError(
  29260. dedent`Cannot send event before store is ready. You can get the current status with store.status,
  29261. or await store.readyPromise to wait for the store to be ready before sending events.
  29262. ${JSON.stringify(
  29263. {
  29264. event,
  29265. id: this.id,
  29266. actor: this.actor,
  29267. environment: this.environment
  29268. },
  29269. null,
  29270. 2
  29271. )}`
  29272. );
  29273. this.emitToListeners(event, { actor: this.actor }), this.emitToChannel(event, { actor: this.actor });
  29274. };
  29275. if (this.debugging = options.debug ?? !1, !_UniversalStore.isInternalConstructing)
  29276. throw new TypeError(
  29277. "UniversalStore is not constructable - use UniversalStore.create() instead"
  29278. );
  29279. if (_UniversalStore.isInternalConstructing = !1, this.id = options.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.actorType = options.leader ? _UniversalStore.ActorType.LEADER : _UniversalStore.ActorType.FOLLOWER, this.state = options.initialState, this.channelEventName = `${CHANNEL_EVENT_PREFIX}${this.id}`, this.debug("constructor", {
  29280. options,
  29281. environmentOverrides,
  29282. channelEventName: this.channelEventName
  29283. }), this.actor.type === _UniversalStore.ActorType.LEADER)
  29284. this.syncing = {
  29285. state: ProgressState.RESOLVED,
  29286. promise: Promise.resolve()
  29287. };
  29288. else {
  29289. let syncingResolve, syncingReject, syncingPromise = new Promise((resolve, reject) => {
  29290. syncingResolve = () => {
  29291. this.syncing.state === ProgressState.PENDING && (this.syncing.state = ProgressState.RESOLVED, resolve());
  29292. }, syncingReject = (reason) => {
  29293. this.syncing.state === ProgressState.PENDING && (this.syncing.state = ProgressState.REJECTED, reject(reason));
  29294. };
  29295. });
  29296. this.syncing = {
  29297. state: ProgressState.PENDING,
  29298. promise: syncingPromise,
  29299. resolve: syncingResolve,
  29300. reject: syncingReject
  29301. };
  29302. }
  29303. this.getState = this.getState.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), this.onStateChange = this.onStateChange.bind(this), this.send = this.send.bind(this), this.emitToChannel = this.emitToChannel.bind(this), this.prepareThis = this.prepareThis.bind(this), this.emitToListeners = this.emitToListeners.bind(this), this.handleChannelEvents = this.handleChannelEvents.bind(this), this.debug = this.debug.bind(this), this.channel = environmentOverrides?.channel ?? _UniversalStore.preparation.channel, this.environment = environmentOverrides?.environment ?? _UniversalStore.preparation.environment, this.channel && this.environment ? (_UniversalStore.preparation.resolve({ channel: this.channel, environment: this.environment }), this.prepareThis({ channel: this.channel, environment: this.environment })) : _UniversalStore.preparation.promise.then(this.prepareThis);
  29304. }
  29305. static setupPreparationPromise() {
  29306. let resolveRef, rejectRef, promise = new Promise(
  29307. (resolve, reject) => {
  29308. resolveRef = (args) => {
  29309. resolve(args);
  29310. }, rejectRef = (...args) => {
  29311. reject(args);
  29312. };
  29313. }
  29314. );
  29315. _UniversalStore.preparation = {
  29316. resolve: resolveRef,
  29317. reject: rejectRef,
  29318. promise
  29319. };
  29320. }
  29321. /** The actor object representing the store instance with a unique ID and a type */
  29322. get actor() {
  29323. return Object.freeze({
  29324. id: this.actorId,
  29325. type: this.actorType,
  29326. environment: this.environment ?? _UniversalStore.Environment.UNKNOWN
  29327. });
  29328. }
  29329. /**
  29330. * The current state of the store, that signals both if the store is prepared by Storybook and
  29331. * also - in the case of a follower - if the state has been synced with the leader's state.
  29332. */
  29333. get status() {
  29334. if (!this.channel || !this.environment)
  29335. return _UniversalStore.Status.UNPREPARED;
  29336. switch (this.syncing?.state) {
  29337. case ProgressState.PENDING:
  29338. case void 0:
  29339. return _UniversalStore.Status.SYNCING;
  29340. case ProgressState.REJECTED:
  29341. return _UniversalStore.Status.ERROR;
  29342. case ProgressState.RESOLVED:
  29343. default:
  29344. return _UniversalStore.Status.READY;
  29345. }
  29346. }
  29347. /**
  29348. * A promise that resolves when the store is fully ready. A leader will be ready when the store
  29349. * has been prepared by Storybook, which is almost instantly.
  29350. *
  29351. * A follower will be ready when the state has been synced with the leader's state, within a few
  29352. * hundred milliseconds.
  29353. */
  29354. untilReady() {
  29355. return Promise.all([_UniversalStore.preparation.promise, this.syncing?.promise]);
  29356. }
  29357. /** Creates a new instance of UniversalStore */
  29358. static create(options) {
  29359. if (!options || typeof options?.id != "string")
  29360. throw new TypeError("id is required and must be a string, when creating a UniversalStore");
  29361. options.debug && console.debug(
  29362. dedent`[UniversalStore]
  29363. create`,
  29364. { options }
  29365. );
  29366. let existing = instances.get(options.id);
  29367. if (existing)
  29368. return console.warn(dedent`UniversalStore with id "${options.id}" already exists in this environment, re-using existing.
  29369. You should reuse the existing instance instead of trying to create a new one.`), existing;
  29370. _UniversalStore.isInternalConstructing = !0;
  29371. let store2 = new _UniversalStore(options);
  29372. return instances.set(options.id, store2), store2;
  29373. }
  29374. /**
  29375. * Used by Storybook to set the channel for all instances of UniversalStore in the given
  29376. * environment.
  29377. *
  29378. * @internal
  29379. */
  29380. static __prepare(channel, environment) {
  29381. _UniversalStore.preparation.channel = channel, _UniversalStore.preparation.environment = environment, _UniversalStore.preparation.resolve({ channel, environment });
  29382. }
  29383. /**
  29384. * Updates the store's state
  29385. *
  29386. * Either a new state or a state updater function can be passed to the method.
  29387. */
  29388. setState(updater) {
  29389. let previousState = this.state, newState = typeof updater == "function" ? updater(previousState) : updater;
  29390. if (this.debug("setState", { newState, previousState, updater }), this.status !== _UniversalStore.Status.READY)
  29391. throw new TypeError(
  29392. dedent`Cannot set state before store is ready. You can get the current status with store.status,
  29393. or await store.readyPromise to wait for the store to be ready before sending events.
  29394. ${JSON.stringify(
  29395. {
  29396. newState,
  29397. id: this.id,
  29398. actor: this.actor,
  29399. environment: this.environment
  29400. },
  29401. null,
  29402. 2
  29403. )}`
  29404. );
  29405. this.state = newState;
  29406. let event = {
  29407. type: _UniversalStore.InternalEventType.SET_STATE,
  29408. payload: {
  29409. state: newState,
  29410. previousState
  29411. }
  29412. };
  29413. this.emitToChannel(event, { actor: this.actor }), this.emitToListeners(event, { actor: this.actor });
  29414. }
  29415. /**
  29416. * Subscribes to state changes
  29417. *
  29418. * @returns Unsubscribe function
  29419. */
  29420. onStateChange(listener) {
  29421. return this.debug("onStateChange", { listener }), this.subscribe(
  29422. _UniversalStore.InternalEventType.SET_STATE,
  29423. ({ payload }, eventInfo) => {
  29424. listener(payload.state, payload.previousState, eventInfo);
  29425. }
  29426. );
  29427. }
  29428. emitToChannel(event, eventInfo) {
  29429. this.debug("emitToChannel", { event, eventInfo, channel: !!this.channel }), this.channel?.emit(this.channelEventName, {
  29430. event,
  29431. eventInfo
  29432. });
  29433. }
  29434. prepareThis({
  29435. channel,
  29436. environment
  29437. }) {
  29438. this.channel = channel, this.environment = environment, this.debug("prepared", { channel: !!channel, environment }), this.channel.on(this.channelEventName, this.handleChannelEvents), this.actor.type === _UniversalStore.ActorType.LEADER ? this.emitToChannel(
  29439. { type: _UniversalStore.InternalEventType.LEADER_CREATED },
  29440. { actor: this.actor }
  29441. ) : (this.emitToChannel(
  29442. { type: _UniversalStore.InternalEventType.FOLLOWER_CREATED },
  29443. { actor: this.actor }
  29444. ), this.emitToChannel(
  29445. { type: _UniversalStore.InternalEventType.EXISTING_STATE_REQUEST },
  29446. { actor: this.actor }
  29447. ), setTimeout(() => {
  29448. this.syncing.reject(
  29449. new TypeError(
  29450. `No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`
  29451. )
  29452. );
  29453. }, 1e3));
  29454. }
  29455. emitToListeners(event, eventInfo) {
  29456. let eventTypeListeners = this.listeners.get(event.type), everythingListeners = this.listeners.get("*");
  29457. this.debug("emitToListeners", {
  29458. event,
  29459. eventInfo,
  29460. eventTypeListeners,
  29461. everythingListeners
  29462. }), [...eventTypeListeners ?? [], ...everythingListeners ?? []].forEach(
  29463. (listener) => listener(event, eventInfo)
  29464. );
  29465. }
  29466. handleChannelEvents(channelEvent) {
  29467. let { event, eventInfo } = channelEvent;
  29468. if ([eventInfo.actor.id, eventInfo.forwardingActor?.id].includes(this.actor.id)) {
  29469. this.debug("handleChannelEvents: Ignoring event from self", { channelEvent });
  29470. return;
  29471. } else if (this.syncing?.state === ProgressState.PENDING && event.type !== _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE) {
  29472. this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent });
  29473. return;
  29474. }
  29475. if (this.debug("handleChannelEvents", { channelEvent }), this.actor.type === _UniversalStore.ActorType.LEADER) {
  29476. let shouldForwardEvent = !0;
  29477. switch (event.type) {
  29478. case _UniversalStore.InternalEventType.EXISTING_STATE_REQUEST:
  29479. shouldForwardEvent = !1;
  29480. let responseEvent = {
  29481. type: _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE,
  29482. payload: this.state
  29483. };
  29484. this.debug("handleChannelEvents: responding to existing state request", {
  29485. responseEvent
  29486. }), this.emitToChannel(responseEvent, { actor: this.actor }), this.emitToListeners(responseEvent, { actor: this.actor });
  29487. break;
  29488. case _UniversalStore.InternalEventType.LEADER_CREATED:
  29489. shouldForwardEvent = !1, this.syncing.state = ProgressState.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", {
  29490. event
  29491. }), console.error(
  29492. dedent`Detected multiple UniversalStore leaders created with the same id "${this.id}".
  29493. Only one leader can exists at a time, your stores are now in an invalid state.
  29494. Leaders detected:
  29495. this: ${JSON.stringify(this.actor, null, 2)}
  29496. other: ${JSON.stringify(eventInfo.actor, null, 2)}`
  29497. );
  29498. break;
  29499. }
  29500. shouldForwardEvent && (this.debug("handleChannelEvents: forwarding event", { channelEvent }), this.emitToChannel(event, { actor: eventInfo.actor, forwardingActor: this.actor }));
  29501. }
  29502. if (this.actor.type === _UniversalStore.ActorType.FOLLOWER)
  29503. switch (event.type) {
  29504. case _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE:
  29505. if (this.debug("handleChannelEvents: Setting state from leader's existing state response", {
  29506. event
  29507. }), this.syncing?.state !== ProgressState.PENDING)
  29508. break;
  29509. this.syncing.resolve?.();
  29510. let setStateEvent = {
  29511. type: _UniversalStore.InternalEventType.SET_STATE,
  29512. payload: {
  29513. state: event.payload,
  29514. previousState: this.state
  29515. }
  29516. };
  29517. this.state = event.payload, this.emitToListeners(setStateEvent, eventInfo);
  29518. break;
  29519. }
  29520. event.type === _UniversalStore.InternalEventType.SET_STATE && (this.debug("handleChannelEvents: Setting state", { event }), this.state = event.payload.state), this.emitToListeners(event, { actor: eventInfo.actor });
  29521. }
  29522. debug(message, data) {
  29523. this.debugging && console.debug(
  29524. dedent`[UniversalStore::${this.id}::${this.environment ?? _UniversalStore.Environment.UNKNOWN}]
  29525. ${message}`,
  29526. JSON.stringify(
  29527. {
  29528. data,
  29529. actor: this.actor,
  29530. state: this.state,
  29531. status: this.status
  29532. },
  29533. null,
  29534. 2
  29535. )
  29536. );
  29537. }
  29538. /**
  29539. * Used to reset the static fields of the UniversalStore class when cleaning up tests
  29540. *
  29541. * @internal
  29542. */
  29543. static __reset() {
  29544. _UniversalStore.preparation.reject(new Error("reset")), _UniversalStore.setupPreparationPromise(), _UniversalStore.isInternalConstructing = !1;
  29545. }
  29546. };
  29547. /**
  29548. * Defines the possible actor types in the store system
  29549. *
  29550. * @readonly
  29551. */
  29552. _UniversalStore.ActorType = {
  29553. LEADER: "LEADER",
  29554. FOLLOWER: "FOLLOWER"
  29555. }, /**
  29556. * Defines the possible environments the store can run in
  29557. *
  29558. * @readonly
  29559. */
  29560. _UniversalStore.Environment = {
  29561. SERVER: "SERVER",
  29562. MANAGER: "MANAGER",
  29563. PREVIEW: "PREVIEW",
  29564. UNKNOWN: "UNKNOWN",
  29565. MOCK: "MOCK"
  29566. }, /**
  29567. * Internal event types used for store synchronization
  29568. *
  29569. * @readonly
  29570. */
  29571. _UniversalStore.InternalEventType = {
  29572. EXISTING_STATE_REQUEST: "__EXISTING_STATE_REQUEST",
  29573. EXISTING_STATE_RESPONSE: "__EXISTING_STATE_RESPONSE",
  29574. SET_STATE: "__SET_STATE",
  29575. LEADER_CREATED: "__LEADER_CREATED",
  29576. FOLLOWER_CREATED: "__FOLLOWER_CREATED"
  29577. }, _UniversalStore.Status = {
  29578. UNPREPARED: "UNPREPARED",
  29579. SYNCING: "SYNCING",
  29580. READY: "READY",
  29581. ERROR: "ERROR"
  29582. }, // This is used to check if constructor was called from the static factory create()
  29583. _UniversalStore.isInternalConstructing = !1, _UniversalStore.setupPreparationPromise();
  29584. var UniversalStore = _UniversalStore;
  29585. // src/channels/main.ts
  29586. var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class {
  29587. constructor(input2 = {}) {
  29588. this.sender = generateRandomId();
  29589. this.events = {};
  29590. this.data = {};
  29591. this.transports = [];
  29592. this.isAsync = input2.async || !1, isMulti(input2) ? (this.transports = input2.transports || [], this.transports.forEach((t) => {
  29593. t.setHandler((event) => this.handleEvent(event));
  29594. })) : this.transports = input2.transport ? [input2.transport] : [], this.transports.forEach((t) => {
  29595. t.setHandler((event) => this.handleEvent(event));
  29596. });
  29597. }
  29598. get hasTransport() {
  29599. return this.transports.length > 0;
  29600. }
  29601. addListener(eventName, listener) {
  29602. this.events[eventName] = this.events[eventName] || [], this.events[eventName].push(listener);
  29603. }
  29604. emit(eventName, ...args) {
  29605. let event = { type: eventName, args, from: this.sender }, options = {};
  29606. args.length >= 1 && args[0] && args[0].options && (options = args[0].options);
  29607. let handler = () => {
  29608. this.transports.forEach((t) => {
  29609. t.send(event, options);
  29610. }), this.handleEvent(event);
  29611. };
  29612. this.isAsync ? setImmediate(handler) : handler();
  29613. }
  29614. last(eventName) {
  29615. return this.data[eventName];
  29616. }
  29617. eventNames() {
  29618. return Object.keys(this.events);
  29619. }
  29620. listenerCount(eventName) {
  29621. let listeners3 = this.listeners(eventName);
  29622. return listeners3 ? listeners3.length : 0;
  29623. }
  29624. listeners(eventName) {
  29625. return this.events[eventName] || void 0;
  29626. }
  29627. once(eventName, listener) {
  29628. let onceListener = this.onceListener(eventName, listener);
  29629. this.addListener(eventName, onceListener);
  29630. }
  29631. removeAllListeners(eventName) {
  29632. eventName ? this.events[eventName] && delete this.events[eventName] : this.events = {};
  29633. }
  29634. removeListener(eventName, listener) {
  29635. let listeners3 = this.listeners(eventName);
  29636. listeners3 && (this.events[eventName] = listeners3.filter((l) => l !== listener));
  29637. }
  29638. on(eventName, listener) {
  29639. this.addListener(eventName, listener);
  29640. }
  29641. off(eventName, listener) {
  29642. this.removeListener(eventName, listener);
  29643. }
  29644. handleEvent(event) {
  29645. let listeners3 = this.listeners(event.type);
  29646. listeners3 && listeners3.length && listeners3.forEach((fn4) => {
  29647. fn4.apply(event, event.args);
  29648. }), this.data[event.type] = event.args;
  29649. }
  29650. onceListener(eventName, listener) {
  29651. let onceListener = (...args) => (this.removeListener(eventName, onceListener), listener(...args));
  29652. return onceListener;
  29653. }
  29654. };
  29655. // src/channels/postmessage/index.ts
  29656. init_client_logger();
  29657. init_dist();
  29658. // ../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
  29659. var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
  29660. return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  29661. }, __copyProps2 = (to, from2, except, desc) => {
  29662. if (from2 && typeof from2 == "object" || typeof from2 == "function")
  29663. for (let key of __getOwnPropNames2(from2))
  29664. !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
  29665. return to;
  29666. }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
  29667. // If the importer is in node compatibility mode or this is not an ESM
  29668. // file that has been converted to a CommonJS file using a Babel-
  29669. // compatible transform (i.e. "__esModule" has not been set), then set
  29670. // "default" to the CommonJS "module.exports" for node compatibility.
  29671. isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: !0 }) : target,
  29672. mod
  29673. )), eventProperties = [
  29674. "bubbles",
  29675. "cancelBubble",
  29676. "cancelable",
  29677. "composed",
  29678. "currentTarget",
  29679. "defaultPrevented",
  29680. "eventPhase",
  29681. "isTrusted",
  29682. "returnValue",
  29683. "srcElement",
  29684. "target",
  29685. "timeStamp",
  29686. "type"
  29687. ], customEventSpecificProperties = ["detail"];
  29688. function extractEventHiddenProperties(event) {
  29689. let rebuildEvent = eventProperties.filter((value) => event[value] !== void 0).reduce((acc, value) => (acc[value] = event[value], acc), {});
  29690. if (event instanceof CustomEvent)
  29691. for (let value of customEventSpecificProperties.filter(
  29692. (value2) => event[value2] !== void 0
  29693. ))
  29694. rebuildEvent[value] = event[value];
  29695. return rebuildEvent;
  29696. }
  29697. // ../../node_modules/telejson/dist/index.mjs
  29698. var require_es_object_atoms = __commonJS2({
  29699. "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module2) {
  29700. "use strict";
  29701. module2.exports = Object;
  29702. }
  29703. }), require_es_errors = __commonJS2({
  29704. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module2) {
  29705. "use strict";
  29706. module2.exports = Error;
  29707. }
  29708. }), require_eval = __commonJS2({
  29709. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module2) {
  29710. "use strict";
  29711. module2.exports = EvalError;
  29712. }
  29713. }), require_range = __commonJS2({
  29714. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module2) {
  29715. "use strict";
  29716. module2.exports = RangeError;
  29717. }
  29718. }), require_ref = __commonJS2({
  29719. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module2) {
  29720. "use strict";
  29721. module2.exports = ReferenceError;
  29722. }
  29723. }), require_syntax = __commonJS2({
  29724. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module2) {
  29725. "use strict";
  29726. module2.exports = SyntaxError;
  29727. }
  29728. }), require_type = __commonJS2({
  29729. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module2) {
  29730. "use strict";
  29731. module2.exports = TypeError;
  29732. }
  29733. }), require_uri = __commonJS2({
  29734. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module2) {
  29735. "use strict";
  29736. module2.exports = URIError;
  29737. }
  29738. }), require_abs = __commonJS2({
  29739. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module2) {
  29740. "use strict";
  29741. module2.exports = Math.abs;
  29742. }
  29743. }), require_floor = __commonJS2({
  29744. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module2) {
  29745. "use strict";
  29746. module2.exports = Math.floor;
  29747. }
  29748. }), require_max = __commonJS2({
  29749. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module2) {
  29750. "use strict";
  29751. module2.exports = Math.max;
  29752. }
  29753. }), require_min = __commonJS2({
  29754. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module2) {
  29755. "use strict";
  29756. module2.exports = Math.min;
  29757. }
  29758. }), require_pow = __commonJS2({
  29759. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module2) {
  29760. "use strict";
  29761. module2.exports = Math.pow;
  29762. }
  29763. }), require_round = __commonJS2({
  29764. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module2) {
  29765. "use strict";
  29766. module2.exports = Math.round;
  29767. }
  29768. }), require_isNaN = __commonJS2({
  29769. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module2) {
  29770. "use strict";
  29771. module2.exports = Number.isNaN || function(a3) {
  29772. return a3 !== a3;
  29773. };
  29774. }
  29775. }), require_sign = __commonJS2({
  29776. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module2) {
  29777. "use strict";
  29778. var $isNaN = require_isNaN();
  29779. module2.exports = function(number) {
  29780. return $isNaN(number) || number === 0 ? number : number < 0 ? -1 : 1;
  29781. };
  29782. }
  29783. }), require_gOPD = __commonJS2({
  29784. "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module2) {
  29785. "use strict";
  29786. module2.exports = Object.getOwnPropertyDescriptor;
  29787. }
  29788. }), require_gopd = __commonJS2({
  29789. "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module2) {
  29790. "use strict";
  29791. var $gOPD = require_gOPD();
  29792. if ($gOPD)
  29793. try {
  29794. $gOPD([], "length");
  29795. } catch {
  29796. $gOPD = null;
  29797. }
  29798. module2.exports = $gOPD;
  29799. }
  29800. }), require_es_define_property = __commonJS2({
  29801. "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module2) {
  29802. "use strict";
  29803. var $defineProperty = Object.defineProperty || !1;
  29804. if ($defineProperty)
  29805. try {
  29806. $defineProperty({}, "a", { value: 1 });
  29807. } catch {
  29808. $defineProperty = !1;
  29809. }
  29810. module2.exports = $defineProperty;
  29811. }
  29812. }), require_shams = __commonJS2({
  29813. "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module2) {
  29814. "use strict";
  29815. module2.exports = function() {
  29816. if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
  29817. return !1;
  29818. if (typeof Symbol.iterator == "symbol")
  29819. return !0;
  29820. var obj = {}, sym = /* @__PURE__ */ Symbol("test"), symObj = Object(sym);
  29821. if (typeof sym == "string" || Object.prototype.toString.call(sym) !== "[object Symbol]" || Object.prototype.toString.call(symObj) !== "[object Symbol]")
  29822. return !1;
  29823. var symVal = 42;
  29824. obj[sym] = symVal;
  29825. for (var _ in obj)
  29826. return !1;
  29827. if (typeof Object.keys == "function" && Object.keys(obj).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(obj).length !== 0)
  29828. return !1;
  29829. var syms = Object.getOwnPropertySymbols(obj);
  29830. if (syms.length !== 1 || syms[0] !== sym || !Object.prototype.propertyIsEnumerable.call(obj, sym))
  29831. return !1;
  29832. if (typeof Object.getOwnPropertyDescriptor == "function") {
  29833. var descriptor = (
  29834. /** @type {PropertyDescriptor} */
  29835. Object.getOwnPropertyDescriptor(obj, sym)
  29836. );
  29837. if (descriptor.value !== symVal || descriptor.enumerable !== !0)
  29838. return !1;
  29839. }
  29840. return !0;
  29841. };
  29842. }
  29843. }), require_has_symbols = __commonJS2({
  29844. "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module2) {
  29845. "use strict";
  29846. var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
  29847. module2.exports = function() {
  29848. return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
  29849. };
  29850. }
  29851. }), require_Reflect_getPrototypeOf = __commonJS2({
  29852. "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module2) {
  29853. "use strict";
  29854. module2.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
  29855. }
  29856. }), require_Object_getPrototypeOf = __commonJS2({
  29857. "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module2) {
  29858. "use strict";
  29859. var $Object = require_es_object_atoms();
  29860. module2.exports = $Object.getPrototypeOf || null;
  29861. }
  29862. }), require_implementation = __commonJS2({
  29863. "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
  29864. "use strict";
  29865. var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr3 = Object.prototype.toString, max2 = Math.max, funcType = "[object Function]", concatty = function(a3, b) {
  29866. for (var arr = [], i = 0; i < a3.length; i += 1)
  29867. arr[i] = a3[i];
  29868. for (var j = 0; j < b.length; j += 1)
  29869. arr[j + a3.length] = b[j];
  29870. return arr;
  29871. }, slicy = function(arrLike, offset3) {
  29872. for (var arr = [], i = offset3 || 0, j = 0; i < arrLike.length; i += 1, j += 1)
  29873. arr[j] = arrLike[i];
  29874. return arr;
  29875. }, joiny = function(arr, joiner) {
  29876. for (var str2 = "", i = 0; i < arr.length; i += 1)
  29877. str2 += arr[i], i + 1 < arr.length && (str2 += joiner);
  29878. return str2;
  29879. };
  29880. module2.exports = function(that) {
  29881. var target = this;
  29882. if (typeof target != "function" || toStr3.apply(target) !== funcType)
  29883. throw new TypeError(ERROR_MESSAGE + target);
  29884. for (var args = slicy(arguments, 1), bound, binder = function() {
  29885. if (this instanceof bound) {
  29886. var result = target.apply(
  29887. this,
  29888. concatty(args, arguments)
  29889. );
  29890. return Object(result) === result ? result : this;
  29891. }
  29892. return target.apply(
  29893. that,
  29894. concatty(args, arguments)
  29895. );
  29896. }, boundLength = max2(0, target.length - args.length), boundArgs = [], i = 0; i < boundLength; i++)
  29897. boundArgs[i] = "$" + i;
  29898. if (bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder), target.prototype) {
  29899. var Empty = function() {
  29900. };
  29901. Empty.prototype = target.prototype, bound.prototype = new Empty(), Empty.prototype = null;
  29902. }
  29903. return bound;
  29904. };
  29905. }
  29906. }), require_function_bind = __commonJS2({
  29907. "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
  29908. "use strict";
  29909. var implementation = require_implementation();
  29910. module2.exports = Function.prototype.bind || implementation;
  29911. }
  29912. }), require_functionCall = __commonJS2({
  29913. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module2) {
  29914. "use strict";
  29915. module2.exports = Function.prototype.call;
  29916. }
  29917. }), require_functionApply = __commonJS2({
  29918. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module2) {
  29919. "use strict";
  29920. module2.exports = Function.prototype.apply;
  29921. }
  29922. }), require_reflectApply = __commonJS2({
  29923. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module2) {
  29924. "use strict";
  29925. module2.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
  29926. }
  29927. }), require_actualApply = __commonJS2({
  29928. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module2) {
  29929. "use strict";
  29930. var bind = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply();
  29931. module2.exports = $reflectApply || bind.call($call, $apply);
  29932. }
  29933. }), require_call_bind_apply_helpers = __commonJS2({
  29934. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module2) {
  29935. "use strict";
  29936. var bind = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply();
  29937. module2.exports = function(args) {
  29938. if (args.length < 1 || typeof args[0] != "function")
  29939. throw new $TypeError("a function is required");
  29940. return $actualApply(bind, $call, args);
  29941. };
  29942. }
  29943. }), require_get = __commonJS2({
  29944. "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module2) {
  29945. "use strict";
  29946. var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor;
  29947. try {
  29948. hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
  29949. [].__proto__ === Array.prototype;
  29950. } catch (e) {
  29951. if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS")
  29952. throw e;
  29953. }
  29954. var desc = !!hasProtoAccessor && gOPD && gOPD(
  29955. Object.prototype,
  29956. /** @type {keyof typeof Object.prototype} */
  29957. "__proto__"
  29958. ), $Object = Object, $getPrototypeOf = $Object.getPrototypeOf;
  29959. module2.exports = desc && typeof desc.get == "function" ? callBind([desc.get]) : typeof $getPrototypeOf == "function" ? (
  29960. /** @type {import('./get')} */
  29961. (function(value) {
  29962. return $getPrototypeOf(value == null ? value : $Object(value));
  29963. })
  29964. ) : !1;
  29965. }
  29966. }), require_get_proto = __commonJS2({
  29967. "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module2) {
  29968. "use strict";
  29969. var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get();
  29970. module2.exports = reflectGetProto ? function(O) {
  29971. return reflectGetProto(O);
  29972. } : originalGetProto ? function(O) {
  29973. if (!O || typeof O != "object" && typeof O != "function")
  29974. throw new TypeError("getProto: not an object");
  29975. return originalGetProto(O);
  29976. } : getDunderProto ? function(O) {
  29977. return getDunderProto(O);
  29978. } : null;
  29979. }
  29980. }), require_hasown = __commonJS2({
  29981. "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
  29982. "use strict";
  29983. var call2 = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind();
  29984. module2.exports = bind.call(call2, $hasOwn);
  29985. }
  29986. }), require_get_intrinsic = __commonJS2({
  29987. "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module2) {
  29988. "use strict";
  29989. var undefined2, $Object = require_es_object_atoms(), $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), abs2 = require_abs(), floor = require_floor(), max2 = require_max(), min2 = require_min(), pow = require_pow(), round3 = require_round(), sign = require_sign(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
  29990. try {
  29991. return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
  29992. } catch {
  29993. }
  29994. }, $gOPD = require_gopd(), $defineProperty = require_es_define_property(), throwTypeError = function() {
  29995. throw new $TypeError();
  29996. }, ThrowTypeError = $gOPD ? (function() {
  29997. try {
  29998. return arguments.callee, throwTypeError;
  29999. } catch {
  30000. try {
  30001. return $gOPD(arguments, "callee").get;
  30002. } catch {
  30003. return throwTypeError;
  30004. }
  30005. }
  30006. })() : throwTypeError, hasSymbols = require_has_symbols()(), getProto = require_get_proto(), $ObjectGPO = require_Object_getPrototypeOf(), $ReflectGPO = require_Reflect_getPrototypeOf(), $apply = require_functionApply(), $call = require_functionCall(), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined2 : getProto(Uint8Array), INTRINSICS = {
  30007. __proto__: null,
  30008. "%AggregateError%": typeof AggregateError > "u" ? undefined2 : AggregateError,
  30009. "%Array%": Array,
  30010. "%ArrayBuffer%": typeof ArrayBuffer > "u" ? undefined2 : ArrayBuffer,
  30011. "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
  30012. "%AsyncFromSyncIteratorPrototype%": undefined2,
  30013. "%AsyncFunction%": needsEval,
  30014. "%AsyncGenerator%": needsEval,
  30015. "%AsyncGeneratorFunction%": needsEval,
  30016. "%AsyncIteratorPrototype%": needsEval,
  30017. "%Atomics%": typeof Atomics > "u" ? undefined2 : Atomics,
  30018. "%BigInt%": typeof BigInt > "u" ? undefined2 : BigInt,
  30019. "%BigInt64Array%": typeof BigInt64Array > "u" ? undefined2 : BigInt64Array,
  30020. "%BigUint64Array%": typeof BigUint64Array > "u" ? undefined2 : BigUint64Array,
  30021. "%Boolean%": Boolean,
  30022. "%DataView%": typeof DataView > "u" ? undefined2 : DataView,
  30023. "%Date%": Date,
  30024. "%decodeURI%": decodeURI,
  30025. "%decodeURIComponent%": decodeURIComponent,
  30026. "%encodeURI%": encodeURI,
  30027. "%encodeURIComponent%": encodeURIComponent,
  30028. "%Error%": $Error,
  30029. "%eval%": eval,
  30030. // eslint-disable-line no-eval
  30031. "%EvalError%": $EvalError,
  30032. "%Float16Array%": typeof Float16Array > "u" ? undefined2 : Float16Array,
  30033. "%Float32Array%": typeof Float32Array > "u" ? undefined2 : Float32Array,
  30034. "%Float64Array%": typeof Float64Array > "u" ? undefined2 : Float64Array,
  30035. "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? undefined2 : FinalizationRegistry,
  30036. "%Function%": $Function,
  30037. "%GeneratorFunction%": needsEval,
  30038. "%Int8Array%": typeof Int8Array > "u" ? undefined2 : Int8Array,
  30039. "%Int16Array%": typeof Int16Array > "u" ? undefined2 : Int16Array,
  30040. "%Int32Array%": typeof Int32Array > "u" ? undefined2 : Int32Array,
  30041. "%isFinite%": isFinite,
  30042. "%isNaN%": isNaN,
  30043. "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
  30044. "%JSON%": typeof JSON == "object" ? JSON : undefined2,
  30045. "%Map%": typeof Map > "u" ? undefined2 : Map,
  30046. "%MapIteratorPrototype%": typeof Map > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  30047. "%Math%": Math,
  30048. "%Number%": Number,
  30049. "%Object%": $Object,
  30050. "%Object.getOwnPropertyDescriptor%": $gOPD,
  30051. "%parseFloat%": parseFloat,
  30052. "%parseInt%": parseInt,
  30053. "%Promise%": typeof Promise > "u" ? undefined2 : Promise,
  30054. "%Proxy%": typeof Proxy > "u" ? undefined2 : Proxy,
  30055. "%RangeError%": $RangeError,
  30056. "%ReferenceError%": $ReferenceError,
  30057. "%Reflect%": typeof Reflect > "u" ? undefined2 : Reflect,
  30058. "%RegExp%": RegExp,
  30059. "%Set%": typeof Set > "u" ? undefined2 : Set,
  30060. "%SetIteratorPrototype%": typeof Set > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  30061. "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? undefined2 : SharedArrayBuffer,
  30062. "%String%": String,
  30063. "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
  30064. "%Symbol%": hasSymbols ? Symbol : undefined2,
  30065. "%SyntaxError%": $SyntaxError,
  30066. "%ThrowTypeError%": ThrowTypeError,
  30067. "%TypedArray%": TypedArray,
  30068. "%TypeError%": $TypeError,
  30069. "%Uint8Array%": typeof Uint8Array > "u" ? undefined2 : Uint8Array,
  30070. "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? undefined2 : Uint8ClampedArray,
  30071. "%Uint16Array%": typeof Uint16Array > "u" ? undefined2 : Uint16Array,
  30072. "%Uint32Array%": typeof Uint32Array > "u" ? undefined2 : Uint32Array,
  30073. "%URIError%": $URIError,
  30074. "%WeakMap%": typeof WeakMap > "u" ? undefined2 : WeakMap,
  30075. "%WeakRef%": typeof WeakRef > "u" ? undefined2 : WeakRef,
  30076. "%WeakSet%": typeof WeakSet > "u" ? undefined2 : WeakSet,
  30077. "%Function.prototype.call%": $call,
  30078. "%Function.prototype.apply%": $apply,
  30079. "%Object.defineProperty%": $defineProperty,
  30080. "%Object.getPrototypeOf%": $ObjectGPO,
  30081. "%Math.abs%": abs2,
  30082. "%Math.floor%": floor,
  30083. "%Math.max%": max2,
  30084. "%Math.min%": min2,
  30085. "%Math.pow%": pow,
  30086. "%Math.round%": round3,
  30087. "%Math.sign%": sign,
  30088. "%Reflect.getPrototypeOf%": $ReflectGPO
  30089. };
  30090. if (getProto)
  30091. try {
  30092. null.error;
  30093. } catch (e) {
  30094. errorProto = getProto(getProto(e)), INTRINSICS["%Error.prototype%"] = errorProto;
  30095. }
  30096. var errorProto, doEval = function doEval2(name) {
  30097. var value;
  30098. if (name === "%AsyncFunction%")
  30099. value = getEvalledConstructor("async function () {}");
  30100. else if (name === "%GeneratorFunction%")
  30101. value = getEvalledConstructor("function* () {}");
  30102. else if (name === "%AsyncGeneratorFunction%")
  30103. value = getEvalledConstructor("async function* () {}");
  30104. else if (name === "%AsyncGenerator%") {
  30105. var fn4 = doEval2("%AsyncGeneratorFunction%");
  30106. fn4 && (value = fn4.prototype);
  30107. } else if (name === "%AsyncIteratorPrototype%") {
  30108. var gen = doEval2("%AsyncGenerator%");
  30109. gen && getProto && (value = getProto(gen.prototype));
  30110. }
  30111. return INTRINSICS[name] = value, value;
  30112. }, LEGACY_ALIASES = {
  30113. __proto__: null,
  30114. "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  30115. "%ArrayPrototype%": ["Array", "prototype"],
  30116. "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  30117. "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  30118. "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  30119. "%ArrayProto_values%": ["Array", "prototype", "values"],
  30120. "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  30121. "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  30122. "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  30123. "%BooleanPrototype%": ["Boolean", "prototype"],
  30124. "%DataViewPrototype%": ["DataView", "prototype"],
  30125. "%DatePrototype%": ["Date", "prototype"],
  30126. "%ErrorPrototype%": ["Error", "prototype"],
  30127. "%EvalErrorPrototype%": ["EvalError", "prototype"],
  30128. "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  30129. "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  30130. "%FunctionPrototype%": ["Function", "prototype"],
  30131. "%Generator%": ["GeneratorFunction", "prototype"],
  30132. "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  30133. "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  30134. "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  30135. "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  30136. "%JSONParse%": ["JSON", "parse"],
  30137. "%JSONStringify%": ["JSON", "stringify"],
  30138. "%MapPrototype%": ["Map", "prototype"],
  30139. "%NumberPrototype%": ["Number", "prototype"],
  30140. "%ObjectPrototype%": ["Object", "prototype"],
  30141. "%ObjProto_toString%": ["Object", "prototype", "toString"],
  30142. "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  30143. "%PromisePrototype%": ["Promise", "prototype"],
  30144. "%PromiseProto_then%": ["Promise", "prototype", "then"],
  30145. "%Promise_all%": ["Promise", "all"],
  30146. "%Promise_reject%": ["Promise", "reject"],
  30147. "%Promise_resolve%": ["Promise", "resolve"],
  30148. "%RangeErrorPrototype%": ["RangeError", "prototype"],
  30149. "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  30150. "%RegExpPrototype%": ["RegExp", "prototype"],
  30151. "%SetPrototype%": ["Set", "prototype"],
  30152. "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  30153. "%StringPrototype%": ["String", "prototype"],
  30154. "%SymbolPrototype%": ["Symbol", "prototype"],
  30155. "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  30156. "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  30157. "%TypeErrorPrototype%": ["TypeError", "prototype"],
  30158. "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  30159. "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  30160. "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  30161. "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  30162. "%URIErrorPrototype%": ["URIError", "prototype"],
  30163. "%WeakMapPrototype%": ["WeakMap", "prototype"],
  30164. "%WeakSetPrototype%": ["WeakSet", "prototype"]
  30165. }, bind = require_function_bind(), hasOwn2 = require_hasown(), $concat = bind.call($call, Array.prototype.concat), $spliceApply = bind.call($apply, Array.prototype.splice), $replace = bind.call($call, String.prototype.replace), $strSlice = bind.call($call, String.prototype.slice), $exec = bind.call($call, RegExp.prototype.exec), rePropName2 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, reEscapeChar2 = /\\(\\)?/g, stringToPath2 = function(string) {
  30166. var first = $strSlice(string, 0, 1), last2 = $strSlice(string, -1);
  30167. if (first === "%" && last2 !== "%")
  30168. throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
  30169. if (last2 === "%" && first !== "%")
  30170. throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
  30171. var result = [];
  30172. return $replace(string, rePropName2, function(match3, number, quote, subString) {
  30173. result[result.length] = quote ? $replace(subString, reEscapeChar2, "$1") : number || match3;
  30174. }), result;
  30175. }, getBaseIntrinsic = function(name, allowMissing) {
  30176. var intrinsicName = name, alias;
  30177. if (hasOwn2(LEGACY_ALIASES, intrinsicName) && (alias = LEGACY_ALIASES[intrinsicName], intrinsicName = "%" + alias[0] + "%"), hasOwn2(INTRINSICS, intrinsicName)) {
  30178. var value = INTRINSICS[intrinsicName];
  30179. if (value === needsEval && (value = doEval(intrinsicName)), typeof value > "u" && !allowMissing)
  30180. throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
  30181. return {
  30182. alias,
  30183. name: intrinsicName,
  30184. value
  30185. };
  30186. }
  30187. throw new $SyntaxError("intrinsic " + name + " does not exist!");
  30188. };
  30189. module2.exports = function(name, allowMissing) {
  30190. if (typeof name != "string" || name.length === 0)
  30191. throw new $TypeError("intrinsic name must be a non-empty string");
  30192. if (arguments.length > 1 && typeof allowMissing != "boolean")
  30193. throw new $TypeError('"allowMissing" argument must be a boolean');
  30194. if ($exec(/^%?[^%]*%?$/, name) === null)
  30195. throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  30196. var parts = stringToPath2(name), intrinsicBaseName = parts.length > 0 ? parts[0] : "", intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing), intrinsicRealName = intrinsic.name, value = intrinsic.value, skipFurtherCaching = !1, alias = intrinsic.alias;
  30197. alias && (intrinsicBaseName = alias[0], $spliceApply(parts, $concat([0, 1], alias)));
  30198. for (var i = 1, isOwn = !0; i < parts.length; i += 1) {
  30199. var part = parts[i], first = $strSlice(part, 0, 1), last2 = $strSlice(part, -1);
  30200. if ((first === '"' || first === "'" || first === "`" || last2 === '"' || last2 === "'" || last2 === "`") && first !== last2)
  30201. throw new $SyntaxError("property names with quotes must have matching quotes");
  30202. if ((part === "constructor" || !isOwn) && (skipFurtherCaching = !0), intrinsicBaseName += "." + part, intrinsicRealName = "%" + intrinsicBaseName + "%", hasOwn2(INTRINSICS, intrinsicRealName))
  30203. value = INTRINSICS[intrinsicRealName];
  30204. else if (value != null) {
  30205. if (!(part in value)) {
  30206. if (!allowMissing)
  30207. throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
  30208. return;
  30209. }
  30210. if ($gOPD && i + 1 >= parts.length) {
  30211. var desc = $gOPD(value, part);
  30212. isOwn = !!desc, isOwn && "get" in desc && !("originalValue" in desc.get) ? value = desc.get : value = value[part];
  30213. } else
  30214. isOwn = hasOwn2(value, part), value = value[part];
  30215. isOwn && !skipFurtherCaching && (INTRINSICS[intrinsicRealName] = value);
  30216. }
  30217. }
  30218. return value;
  30219. };
  30220. }
  30221. }), require_call_bound = __commonJS2({
  30222. "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module2) {
  30223. "use strict";
  30224. var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
  30225. module2.exports = function(name, allowMissing) {
  30226. var intrinsic = (
  30227. /** @type {(this: unknown, ...args: unknown[]) => unknown} */
  30228. GetIntrinsic(name, !!allowMissing)
  30229. );
  30230. return typeof intrinsic == "function" && $indexOf(name, ".prototype.") > -1 ? callBindBasic(
  30231. /** @type {const} */
  30232. [intrinsic]
  30233. ) : intrinsic;
  30234. };
  30235. }
  30236. }), require_shams2 = __commonJS2({
  30237. "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module2) {
  30238. "use strict";
  30239. var hasSymbols = require_shams();
  30240. module2.exports = function() {
  30241. return hasSymbols() && !!Symbol.toStringTag;
  30242. };
  30243. }
  30244. }), require_is_regex = __commonJS2({
  30245. "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(exports, module2) {
  30246. "use strict";
  30247. var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn2 = require_hasown(), gOPD = require_gopd(), fn4;
  30248. hasToStringTag ? ($exec = callBound("RegExp.prototype.exec"), isRegexMarker = {}, throwRegexMarker = function() {
  30249. throw isRegexMarker;
  30250. }, badStringifier = {
  30251. toString: throwRegexMarker,
  30252. valueOf: throwRegexMarker
  30253. }, typeof Symbol.toPrimitive == "symbol" && (badStringifier[Symbol.toPrimitive] = throwRegexMarker), fn4 = function(value) {
  30254. if (!value || typeof value != "object")
  30255. return !1;
  30256. var descriptor = (
  30257. /** @type {NonNullable<typeof gOPD>} */
  30258. gOPD(
  30259. /** @type {{ lastIndex?: unknown }} */
  30260. value,
  30261. "lastIndex"
  30262. )
  30263. ), hasLastIndexDataProperty = descriptor && hasOwn2(descriptor, "value");
  30264. if (!hasLastIndexDataProperty)
  30265. return !1;
  30266. try {
  30267. $exec(
  30268. value,
  30269. /** @type {string} */
  30270. /** @type {unknown} */
  30271. badStringifier
  30272. );
  30273. } catch (e) {
  30274. return e === isRegexMarker;
  30275. }
  30276. }) : ($toString = callBound("Object.prototype.toString"), regexClass = "[object RegExp]", fn4 = function(value) {
  30277. return !value || typeof value != "object" && typeof value != "function" ? !1 : $toString(value) === regexClass;
  30278. });
  30279. var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass;
  30280. module2.exports = fn4;
  30281. }
  30282. }), require_is_function = __commonJS2({
  30283. "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(exports, module2) {
  30284. module2.exports = isFunction32;
  30285. var toString22 = Object.prototype.toString;
  30286. function isFunction32(fn4) {
  30287. if (!fn4)
  30288. return !1;
  30289. var string = toString22.call(fn4);
  30290. return string === "[object Function]" || typeof fn4 == "function" && string !== "[object RegExp]" || typeof window < "u" && // IE8 and below
  30291. (fn4 === window.setTimeout || fn4 === window.alert || fn4 === window.confirm || fn4 === window.prompt);
  30292. }
  30293. }
  30294. }), require_safe_regex_test = __commonJS2({
  30295. "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(exports, module2) {
  30296. "use strict";
  30297. var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type();
  30298. module2.exports = function(regex) {
  30299. if (!isRegex(regex))
  30300. throw new $TypeError("`regex` must be a RegExp");
  30301. return function(s3) {
  30302. return $exec(regex, s3) !== null;
  30303. };
  30304. };
  30305. }
  30306. }), require_is_symbol = __commonJS2({
  30307. "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(exports, module2) {
  30308. "use strict";
  30309. var callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), hasSymbols = require_has_symbols()(), safeRegexTest = require_safe_regex_test();
  30310. hasSymbols ? ($symToStr = callBound("Symbol.prototype.toString"), isSymString = safeRegexTest(/^Symbol\(.*\)$/), isSymbolObject = function(value) {
  30311. return typeof value.valueOf() != "symbol" ? !1 : isSymString($symToStr(value));
  30312. }, module2.exports = function(value) {
  30313. if (typeof value == "symbol")
  30314. return !0;
  30315. if (!value || typeof value != "object" || $toString(value) !== "[object Symbol]")
  30316. return !1;
  30317. try {
  30318. return isSymbolObject(value);
  30319. } catch {
  30320. return !1;
  30321. }
  30322. }) : module2.exports = function(value) {
  30323. return !1;
  30324. };
  30325. var $symToStr, isSymString, isSymbolObject;
  30326. }
  30327. }), import_is_regex = __toESM2(require_is_regex()), import_is_function = __toESM2(require_is_function()), import_is_symbol = __toESM2(require_is_symbol());
  30328. function isObject(val) {
  30329. return val != null && typeof val == "object" && Array.isArray(val) === !1;
  30330. }
  30331. var freeGlobal = typeof global == "object" && global && global.Object === Object && global, freeGlobal_default = freeGlobal, freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal_default || freeSelf || Function("return this")(), root_default = root, Symbol2 = root_default.Symbol, Symbol_default = Symbol2, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
  30332. function getRawTag(value) {
  30333. var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
  30334. try {
  30335. value[symToStringTag] = void 0;
  30336. var unmasked = !0;
  30337. } catch {
  30338. }
  30339. var result = nativeObjectToString.call(value);
  30340. return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), result;
  30341. }
  30342. var getRawTag_default = getRawTag, objectProto2 = Object.prototype, nativeObjectToString2 = objectProto2.toString;
  30343. function objectToString(value) {
  30344. return nativeObjectToString2.call(value);
  30345. }
  30346. var objectToString_default = objectToString, nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
  30347. function baseGetTag(value) {
  30348. return value == null ? value === void 0 ? undefinedTag : nullTag : symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
  30349. }
  30350. var baseGetTag_default = baseGetTag;
  30351. function isObjectLike(value) {
  30352. return value != null && typeof value == "object";
  30353. }
  30354. var isObjectLike_default = isObjectLike, symbolTag = "[object Symbol]";
  30355. function isSymbol(value) {
  30356. return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
  30357. }
  30358. var isSymbol_default = isSymbol;
  30359. function arrayMap(array, iteratee) {
  30360. for (var index4 = -1, length2 = array == null ? 0 : array.length, result = Array(length2); ++index4 < length2; )
  30361. result[index4] = iteratee(array[index4], index4, array);
  30362. return result;
  30363. }
  30364. var arrayMap_default = arrayMap, isArray = Array.isArray, isArray_default = isArray, INFINITY = 1 / 0, symbolProto = Symbol_default ? Symbol_default.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
  30365. function baseToString(value) {
  30366. if (typeof value == "string")
  30367. return value;
  30368. if (isArray_default(value))
  30369. return arrayMap_default(value, baseToString) + "";
  30370. if (isSymbol_default(value))
  30371. return symbolToString ? symbolToString.call(value) : "";
  30372. var result = value + "";
  30373. return result == "0" && 1 / value == -INFINITY ? "-0" : result;
  30374. }
  30375. var baseToString_default = baseToString;
  30376. function isObject2(value) {
  30377. var type5 = typeof value;
  30378. return value != null && (type5 == "object" || type5 == "function");
  30379. }
  30380. var isObject_default = isObject2, asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
  30381. function isFunction(value) {
  30382. if (!isObject_default(value))
  30383. return !1;
  30384. var tag = baseGetTag_default(value);
  30385. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  30386. }
  30387. var isFunction_default = isFunction, coreJsData = root_default["__core-js_shared__"], coreJsData_default = coreJsData, maskSrcKey = (function() {
  30388. var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
  30389. return uid ? "Symbol(src)_1." + uid : "";
  30390. })();
  30391. function isMasked(func) {
  30392. return !!maskSrcKey && maskSrcKey in func;
  30393. }
  30394. var isMasked_default = isMasked, funcProto = Function.prototype, funcToString = funcProto.toString;
  30395. function toSource(func) {
  30396. if (func != null) {
  30397. try {
  30398. return funcToString.call(func);
  30399. } catch {
  30400. }
  30401. try {
  30402. return func + "";
  30403. } catch {
  30404. }
  30405. }
  30406. return "";
  30407. }
  30408. var toSource_default = toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto2 = Function.prototype, objectProto3 = Object.prototype, funcToString2 = funcProto2.toString, hasOwnProperty2 = objectProto3.hasOwnProperty, reIsNative = RegExp(
  30409. "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  30410. );
  30411. function baseIsNative(value) {
  30412. if (!isObject_default(value) || isMasked_default(value))
  30413. return !1;
  30414. var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
  30415. return pattern.test(toSource_default(value));
  30416. }
  30417. var baseIsNative_default = baseIsNative;
  30418. function getValue(object, key) {
  30419. return object?.[key];
  30420. }
  30421. var getValue_default = getValue;
  30422. function getNative(object, key) {
  30423. var value = getValue_default(object, key);
  30424. return baseIsNative_default(value) ? value : void 0;
  30425. }
  30426. var getNative_default = getNative;
  30427. function eq(value, other) {
  30428. return value === other || value !== value && other !== other;
  30429. }
  30430. var eq_default = eq, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
  30431. function isKey(value, object) {
  30432. if (isArray_default(value))
  30433. return !1;
  30434. var type5 = typeof value;
  30435. return type5 == "number" || type5 == "symbol" || type5 == "boolean" || value == null || isSymbol_default(value) ? !0 : reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
  30436. }
  30437. var isKey_default = isKey, nativeCreate = getNative_default(Object, "create"), nativeCreate_default = nativeCreate;
  30438. function hashClear() {
  30439. this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}, this.size = 0;
  30440. }
  30441. var hashClear_default = hashClear;
  30442. function hashDelete(key) {
  30443. var result = this.has(key) && delete this.__data__[key];
  30444. return this.size -= result ? 1 : 0, result;
  30445. }
  30446. var hashDelete_default = hashDelete, HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto4 = Object.prototype, hasOwnProperty3 = objectProto4.hasOwnProperty;
  30447. function hashGet(key) {
  30448. var data = this.__data__;
  30449. if (nativeCreate_default) {
  30450. var result = data[key];
  30451. return result === HASH_UNDEFINED ? void 0 : result;
  30452. }
  30453. return hasOwnProperty3.call(data, key) ? data[key] : void 0;
  30454. }
  30455. var hashGet_default = hashGet, objectProto5 = Object.prototype, hasOwnProperty4 = objectProto5.hasOwnProperty;
  30456. function hashHas(key) {
  30457. var data = this.__data__;
  30458. return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key);
  30459. }
  30460. var hashHas_default = hashHas, HASH_UNDEFINED2 = "__lodash_hash_undefined__";
  30461. function hashSet(key, value) {
  30462. var data = this.__data__;
  30463. return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value, this;
  30464. }
  30465. var hashSet_default = hashSet;
  30466. function Hash(entries) {
  30467. var index4 = -1, length2 = entries == null ? 0 : entries.length;
  30468. for (this.clear(); ++index4 < length2; ) {
  30469. var entry = entries[index4];
  30470. this.set(entry[0], entry[1]);
  30471. }
  30472. }
  30473. Hash.prototype.clear = hashClear_default;
  30474. Hash.prototype.delete = hashDelete_default;
  30475. Hash.prototype.get = hashGet_default;
  30476. Hash.prototype.has = hashHas_default;
  30477. Hash.prototype.set = hashSet_default;
  30478. var Hash_default = Hash;
  30479. function listCacheClear() {
  30480. this.__data__ = [], this.size = 0;
  30481. }
  30482. var listCacheClear_default = listCacheClear;
  30483. function assocIndexOf(array, key) {
  30484. for (var length2 = array.length; length2--; )
  30485. if (eq_default(array[length2][0], key))
  30486. return length2;
  30487. return -1;
  30488. }
  30489. var assocIndexOf_default = assocIndexOf, arrayProto = Array.prototype, splice = arrayProto.splice;
  30490. function listCacheDelete(key) {
  30491. var data = this.__data__, index4 = assocIndexOf_default(data, key);
  30492. if (index4 < 0)
  30493. return !1;
  30494. var lastIndex = data.length - 1;
  30495. return index4 == lastIndex ? data.pop() : splice.call(data, index4, 1), --this.size, !0;
  30496. }
  30497. var listCacheDelete_default = listCacheDelete;
  30498. function listCacheGet(key) {
  30499. var data = this.__data__, index4 = assocIndexOf_default(data, key);
  30500. return index4 < 0 ? void 0 : data[index4][1];
  30501. }
  30502. var listCacheGet_default = listCacheGet;
  30503. function listCacheHas(key) {
  30504. return assocIndexOf_default(this.__data__, key) > -1;
  30505. }
  30506. var listCacheHas_default = listCacheHas;
  30507. function listCacheSet(key, value) {
  30508. var data = this.__data__, index4 = assocIndexOf_default(data, key);
  30509. return index4 < 0 ? (++this.size, data.push([key, value])) : data[index4][1] = value, this;
  30510. }
  30511. var listCacheSet_default = listCacheSet;
  30512. function ListCache(entries) {
  30513. var index4 = -1, length2 = entries == null ? 0 : entries.length;
  30514. for (this.clear(); ++index4 < length2; ) {
  30515. var entry = entries[index4];
  30516. this.set(entry[0], entry[1]);
  30517. }
  30518. }
  30519. ListCache.prototype.clear = listCacheClear_default;
  30520. ListCache.prototype.delete = listCacheDelete_default;
  30521. ListCache.prototype.get = listCacheGet_default;
  30522. ListCache.prototype.has = listCacheHas_default;
  30523. ListCache.prototype.set = listCacheSet_default;
  30524. var ListCache_default = ListCache, Map2 = getNative_default(root_default, "Map"), Map_default = Map2;
  30525. function mapCacheClear() {
  30526. this.size = 0, this.__data__ = {
  30527. hash: new Hash_default(),
  30528. map: new (Map_default || ListCache_default)(),
  30529. string: new Hash_default()
  30530. };
  30531. }
  30532. var mapCacheClear_default = mapCacheClear;
  30533. function isKeyable(value) {
  30534. var type5 = typeof value;
  30535. return type5 == "string" || type5 == "number" || type5 == "symbol" || type5 == "boolean" ? value !== "__proto__" : value === null;
  30536. }
  30537. var isKeyable_default = isKeyable;
  30538. function getMapData(map2, key) {
  30539. var data = map2.__data__;
  30540. return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
  30541. }
  30542. var getMapData_default = getMapData;
  30543. function mapCacheDelete(key) {
  30544. var result = getMapData_default(this, key).delete(key);
  30545. return this.size -= result ? 1 : 0, result;
  30546. }
  30547. var mapCacheDelete_default = mapCacheDelete;
  30548. function mapCacheGet(key) {
  30549. return getMapData_default(this, key).get(key);
  30550. }
  30551. var mapCacheGet_default = mapCacheGet;
  30552. function mapCacheHas(key) {
  30553. return getMapData_default(this, key).has(key);
  30554. }
  30555. var mapCacheHas_default = mapCacheHas;
  30556. function mapCacheSet(key, value) {
  30557. var data = getMapData_default(this, key), size = data.size;
  30558. return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
  30559. }
  30560. var mapCacheSet_default = mapCacheSet;
  30561. function MapCache(entries) {
  30562. var index4 = -1, length2 = entries == null ? 0 : entries.length;
  30563. for (this.clear(); ++index4 < length2; ) {
  30564. var entry = entries[index4];
  30565. this.set(entry[0], entry[1]);
  30566. }
  30567. }
  30568. MapCache.prototype.clear = mapCacheClear_default;
  30569. MapCache.prototype.delete = mapCacheDelete_default;
  30570. MapCache.prototype.get = mapCacheGet_default;
  30571. MapCache.prototype.has = mapCacheHas_default;
  30572. MapCache.prototype.set = mapCacheSet_default;
  30573. var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
  30574. function memoize(func, resolver) {
  30575. if (typeof func != "function" || resolver != null && typeof resolver != "function")
  30576. throw new TypeError(FUNC_ERROR_TEXT);
  30577. var memoized = function() {
  30578. var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
  30579. if (cache.has(key))
  30580. return cache.get(key);
  30581. var result = func.apply(this, args);
  30582. return memoized.cache = cache.set(key, result) || cache, result;
  30583. };
  30584. return memoized.cache = new (memoize.Cache || MapCache_default)(), memoized;
  30585. }
  30586. memoize.Cache = MapCache_default;
  30587. var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500;
  30588. function memoizeCapped(func) {
  30589. var result = memoize_default(func, function(key) {
  30590. return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key;
  30591. }), cache = result.cache;
  30592. return result;
  30593. }
  30594. var memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped_default(function(string) {
  30595. var result = [];
  30596. return string.charCodeAt(0) === 46 && result.push(""), string.replace(rePropName, function(match3, number, quote, subString) {
  30597. result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match3);
  30598. }), result;
  30599. }), stringToPath_default = stringToPath;
  30600. function toString(value) {
  30601. return value == null ? "" : baseToString_default(value);
  30602. }
  30603. var toString_default = toString;
  30604. function castPath(value, object) {
  30605. return isArray_default(value) ? value : isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
  30606. }
  30607. var castPath_default = castPath, INFINITY2 = 1 / 0;
  30608. function toKey(value) {
  30609. if (typeof value == "string" || isSymbol_default(value))
  30610. return value;
  30611. var result = value + "";
  30612. return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
  30613. }
  30614. var toKey_default = toKey;
  30615. function baseGet(object, path) {
  30616. path = castPath_default(path, object);
  30617. for (var index4 = 0, length2 = path.length; object != null && index4 < length2; )
  30618. object = object[toKey_default(path[index4++])];
  30619. return index4 && index4 == length2 ? object : void 0;
  30620. }
  30621. var baseGet_default = baseGet;
  30622. function get(object, path, defaultValue) {
  30623. var result = object == null ? void 0 : baseGet_default(object, path);
  30624. return result === void 0 ? defaultValue : result;
  30625. }
  30626. var get_default = get, isObject3 = isObject, dateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, isJSON = (input2) => input2.match(/^[\[\{\"\}].*[\]\}\"]$/);
  30627. function convertUnconventionalData(data) {
  30628. if (!isObject3(data))
  30629. return data;
  30630. let result = data, wasMutated = !1;
  30631. return typeof Event < "u" && data instanceof Event && (result = extractEventHiddenProperties(result), wasMutated = !0), result = Object.keys(result).reduce((acc, key) => {
  30632. try {
  30633. result[key] && result[key].toJSON, acc[key] = result[key];
  30634. } catch {
  30635. wasMutated = !0;
  30636. }
  30637. return acc;
  30638. }, {}), wasMutated ? result : data;
  30639. }
  30640. var replacer = function(options) {
  30641. let objects, map2, stack, keys3;
  30642. return function(key, value) {
  30643. try {
  30644. if (key === "")
  30645. return keys3 = [], objects = /* @__PURE__ */ new Map([[value, "[]"]]), map2 = /* @__PURE__ */ new Map(), stack = [], value;
  30646. let origin = map2.get(this) || this;
  30647. for (; stack.length && origin !== stack[0]; )
  30648. stack.shift(), keys3.pop();
  30649. if (typeof value == "boolean")
  30650. return value;
  30651. if (value === void 0)
  30652. return options.allowUndefined ? "_undefined_" : void 0;
  30653. if (value === null)
  30654. return null;
  30655. if (typeof value == "number")
  30656. return value === Number.NEGATIVE_INFINITY ? "_-Infinity_" : value === Number.POSITIVE_INFINITY ? "_Infinity_" : Number.isNaN(value) ? "_NaN_" : value;
  30657. if (typeof value == "bigint")
  30658. return `_bigint_${value.toString()}`;
  30659. if (typeof value == "string")
  30660. return dateFormat.test(value) ? options.allowDate ? `_date_${value}` : void 0 : value;
  30661. if ((0, import_is_regex.default)(value))
  30662. return options.allowRegExp ? `_regexp_${value.flags}|${value.source}` : void 0;
  30663. if ((0, import_is_function.default)(value))
  30664. return;
  30665. if ((0, import_is_symbol.default)(value)) {
  30666. if (!options.allowSymbol)
  30667. return;
  30668. let globalRegistryKey = Symbol.keyFor(value);
  30669. return globalRegistryKey !== void 0 ? `_gsymbol_${globalRegistryKey}` : `_symbol_${value.toString().slice(7, -1)}`;
  30670. }
  30671. if (stack.length >= options.maxDepth)
  30672. return Array.isArray(value) ? `[Array(${value.length})]` : "[Object]";
  30673. if (value === this)
  30674. return `_duplicate_${JSON.stringify(keys3)}`;
  30675. if (value instanceof Error && options.allowError)
  30676. return {
  30677. __isConvertedError__: !0,
  30678. errorProperties: {
  30679. // @ts-expect-error cause is not defined in the current tsconfig target(es2020)
  30680. ...value.cause ? { cause: value.cause } : {},
  30681. ...value,
  30682. name: value.name,
  30683. message: value.message,
  30684. stack: value.stack,
  30685. "_constructor-name_": value.constructor.name
  30686. }
  30687. };
  30688. if (value?.constructor?.name && value.constructor.name !== "Object" && !Array.isArray(value)) {
  30689. let found2 = objects.get(value);
  30690. if (!found2) {
  30691. let plainObject = {
  30692. __isClassInstance__: !0,
  30693. __className__: value.constructor.name,
  30694. ...Object.getOwnPropertyNames(value).reduce(
  30695. (acc, prop) => {
  30696. try {
  30697. acc[prop] = value[prop];
  30698. } catch {
  30699. }
  30700. return acc;
  30701. },
  30702. {}
  30703. )
  30704. };
  30705. return keys3.push(key), stack.unshift(plainObject), objects.set(value, JSON.stringify(keys3)), value !== plainObject && map2.set(value, plainObject), plainObject;
  30706. }
  30707. return `_duplicate_${found2}`;
  30708. }
  30709. let found = objects.get(value);
  30710. if (!found) {
  30711. let converted = Array.isArray(value) ? value : convertUnconventionalData(value);
  30712. return keys3.push(key), stack.unshift(converted), objects.set(value, JSON.stringify(keys3)), value !== converted && map2.set(value, converted), converted;
  30713. }
  30714. return `_duplicate_${found}`;
  30715. } catch {
  30716. return;
  30717. }
  30718. };
  30719. }, reviver = function(options) {
  30720. let refs = [], root2;
  30721. return function(key, value) {
  30722. if (key === "" && (root2 = value, refs.forEach(({ target, container, replacement }) => {
  30723. let replacementArr = isJSON(replacement) ? JSON.parse(replacement) : replacement.split(".");
  30724. replacementArr.length === 0 ? container[target] = root2 : container[target] = get_default(root2, replacementArr);
  30725. })), key === "_constructor-name_")
  30726. return value;
  30727. if (isObject3(value) && value.__isConvertedError__) {
  30728. let { message, ...properties } = value.errorProperties, error = new Error(message);
  30729. return Object.assign(error, properties), error;
  30730. }
  30731. if (typeof value == "string" && value.startsWith("_regexp_") && options.allowRegExp) {
  30732. let [, flags, source] = value.match(/_regexp_([^|]*)\|(.*)/) || [];
  30733. return new RegExp(source, flags);
  30734. }
  30735. return typeof value == "string" && value.startsWith("_date_") && options.allowDate ? new Date(value.replace("_date_", "")) : typeof value == "string" && value.startsWith("_duplicate_") ? (refs.push({ target: key, container: this, replacement: value.replace(/^_duplicate_/, "") }), null) : typeof value == "string" && value.startsWith("_symbol_") && options.allowSymbol ? Symbol(value.replace("_symbol_", "")) : typeof value == "string" && value.startsWith("_gsymbol_") && options.allowSymbol ? Symbol.for(value.replace("_gsymbol_", "")) : typeof value == "string" && value === "_-Infinity_" ? Number.NEGATIVE_INFINITY : typeof value == "string" && value === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof value == "string" && value === "_NaN_" ? Number.NaN : typeof value == "string" && value.startsWith("_bigint_") && typeof BigInt == "function" ? BigInt(value.replace("_bigint_", "")) : value;
  30736. };
  30737. }, defaultOptions = {
  30738. maxDepth: 10,
  30739. space: void 0,
  30740. allowRegExp: !0,
  30741. allowDate: !0,
  30742. allowError: !0,
  30743. allowUndefined: !0,
  30744. allowSymbol: !0
  30745. }, stringify = (data, options = {}) => {
  30746. let mergedOptions = { ...defaultOptions, ...options };
  30747. return JSON.stringify(convertUnconventionalData(data), replacer(mergedOptions), options.space);
  30748. }, mutator = () => {
  30749. let mutated = /* @__PURE__ */ new Map();
  30750. return function mutateUndefined(value) {
  30751. isObject3(value) && Object.entries(value).forEach(([k, v]) => {
  30752. v === "_undefined_" ? value[k] = void 0 : mutated.get(v) || (mutated.set(v, !0), mutateUndefined(v));
  30753. }), Array.isArray(value) && value.forEach((v, index4) => {
  30754. v === "_undefined_" ? (mutated.set(v, !0), value[index4] = void 0) : mutated.get(v) || (mutated.set(v, !0), mutateUndefined(v));
  30755. });
  30756. };
  30757. }, parse = (data, options = {}) => {
  30758. let mergedOptions = { ...defaultOptions, ...options }, result = JSON.parse(data, reviver(mergedOptions));
  30759. return mutator()(result), result;
  30760. };
  30761. // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
  30762. var isProduction = !0, prefix = "Invariant failed";
  30763. function invariant(condition, message) {
  30764. if (!condition) {
  30765. if (isProduction)
  30766. throw new Error(prefix);
  30767. var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
  30768. throw new Error(value);
  30769. }
  30770. }
  30771. // src/channels/postmessage/getEventSourceUrl.ts
  30772. init_client_logger();
  30773. var pickFrameByRefId = (candidates, refId) => {
  30774. if (candidates.length === 1)
  30775. return candidates[0];
  30776. if (!(candidates.length === 0 || !refId))
  30777. return candidates.find(
  30778. (el) => (el.getAttribute("src") ?? "").includes(`refId=${encodeURIComponent(refId)}`)
  30779. );
  30780. }, getEventSourceUrl = (event, refId) => {
  30781. let candidates = Array.from(
  30782. document.querySelectorAll("iframe[data-is-storybook]")
  30783. ).filter((element) => {
  30784. try {
  30785. return element.contentWindow?.location.origin === event.source.location.origin && element.contentWindow?.location.pathname === event.source.location.pathname;
  30786. } catch {
  30787. }
  30788. try {
  30789. return element.contentWindow === event.source;
  30790. } catch {
  30791. }
  30792. let src2 = element.getAttribute("src"), origin;
  30793. try {
  30794. if (!src2)
  30795. return !1;
  30796. ({ origin } = new URL(src2, document.location.toString()));
  30797. } catch {
  30798. return !1;
  30799. }
  30800. return origin === event.origin;
  30801. }), src = pickFrameByRefId(candidates, refId)?.getAttribute("src");
  30802. if (src) {
  30803. let { protocol, host, pathname } = new URL(src, document.location.toString());
  30804. return `${protocol}//${host}${pathname}`;
  30805. }
  30806. return candidates.length > 1 && logger.error("found multiple candidates for event source"), null;
  30807. };
  30808. // src/channels/postmessage/index.ts
  30809. var { document: document2, location: location2 } = scope, KEY = "storybook-channel", defaultEventOptions = { maxDepth: 25 }, PostMessageTransport = class {
  30810. constructor(config4) {
  30811. this.config = config4;
  30812. this.connected = !1;
  30813. if (this.buffer = [], typeof scope?.addEventListener == "function" && scope.addEventListener("message", this.handleEvent.bind(this), !1), config4.page !== "manager" && config4.page !== "preview")
  30814. throw new Error(`postmsg-channel: "config.page" cannot be "${config4.page}"`);
  30815. }
  30816. setHandler(handler) {
  30817. this.handler = (...args) => {
  30818. handler.apply(this, args), !this.connected && this.getLocalFrame().length && (this.flush(), this.connected = !0);
  30819. };
  30820. }
  30821. /**
  30822. * Sends `event` to the associated window. If the window does not yet exist the event will be
  30823. * stored in a buffer and sent when the window exists.
  30824. *
  30825. * @param event
  30826. */
  30827. send(event, options) {
  30828. let {
  30829. target,
  30830. // telejson options
  30831. allowRegExp,
  30832. allowSymbol,
  30833. allowDate,
  30834. allowError,
  30835. allowUndefined,
  30836. maxDepth,
  30837. space
  30838. } = options || {}, eventOptions = Object.fromEntries(
  30839. Object.entries({
  30840. allowRegExp,
  30841. allowSymbol,
  30842. allowDate,
  30843. allowError,
  30844. allowUndefined,
  30845. maxDepth,
  30846. space
  30847. }).filter(([k, v]) => typeof v < "u")
  30848. ), stringifyOptions = {
  30849. ...defaultEventOptions,
  30850. ...scope.CHANNEL_OPTIONS || {},
  30851. ...eventOptions
  30852. }, frames = this.getFrames(target), query = new URLSearchParams(location2?.search || ""), data = stringify(
  30853. {
  30854. key: KEY,
  30855. event,
  30856. refId: query.get("refId")
  30857. },
  30858. stringifyOptions
  30859. );
  30860. return frames.length ? (this.buffer.length && this.flush(), frames.forEach((f4) => {
  30861. try {
  30862. f4.postMessage(data, "*");
  30863. } catch {
  30864. logger.error("sending over postmessage fail");
  30865. }
  30866. }), Promise.resolve(null)) : new Promise((resolve, reject) => {
  30867. this.buffer.push({ event, resolve, reject });
  30868. });
  30869. }
  30870. flush() {
  30871. let { buffer } = this;
  30872. this.buffer = [], buffer.forEach((item) => {
  30873. this.send(item.event).then(item.resolve).catch(item.reject);
  30874. });
  30875. }
  30876. getFrames(target) {
  30877. if (this.config.page === "manager") {
  30878. let list = Array.from(
  30879. document2.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")
  30880. ).flatMap((e) => {
  30881. try {
  30882. return e.contentWindow && e.dataset.isStorybook !== void 0 && e.id === target ? [e.contentWindow] : [];
  30883. } catch {
  30884. return [];
  30885. }
  30886. });
  30887. return list?.length ? list : this.getCurrentFrames();
  30888. }
  30889. return scope && scope.parent && scope.parent !== scope.self ? [scope.parent] : [];
  30890. }
  30891. getCurrentFrames() {
  30892. return this.config.page === "manager" ? Array.from(
  30893. document2.querySelectorAll('[data-is-storybook="true"]')
  30894. ).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : scope && scope.parent ? [scope.parent] : [];
  30895. }
  30896. getLocalFrame() {
  30897. return this.config.page === "manager" ? Array.from(
  30898. document2.querySelectorAll("#storybook-preview-iframe")
  30899. ).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : scope && scope.parent ? [scope.parent] : [];
  30900. }
  30901. handleEvent(rawEvent) {
  30902. try {
  30903. let { data } = rawEvent, { key, event, refId } = typeof data == "string" && isJSON(data) ? parse(data, scope.CHANNEL_OPTIONS || {}) : data;
  30904. if (key === KEY) {
  30905. let pageString = this.config.page === "manager" ? '<span style="color: #37D5D3; background: black"> manager </span>' : '<span style="color: #1EA7FD; background: black"> preview </span>', eventString = Object.values(core_events_exports).includes(event.type) ? `<span style="color: #FF4785">${event.type}</span>` : `<span style="color: #FFAE00">${event.type}</span>`;
  30906. if (refId && (event.refId = refId), event.source = this.config.page === "preview" ? rawEvent.origin : getEventSourceUrl(rawEvent, refId), !event.source) {
  30907. pretty.error(
  30908. `${pageString} received ${eventString} but was unable to determine the source of the event`
  30909. );
  30910. return;
  30911. }
  30912. let message = `${pageString} received ${eventString} (${data.length})`;
  30913. pretty.debug(
  30914. location2.origin !== event.source ? message : `${message} <span style="color: gray">(on ${location2.origin} from ${event.source})</span>`,
  30915. ...event.args
  30916. ), invariant(this.handler, "ChannelHandler should be set"), this.handler(event);
  30917. }
  30918. } catch (error) {
  30919. logger.error(error);
  30920. }
  30921. }
  30922. };
  30923. // src/channels/websocket/index.ts
  30924. init_dist();
  30925. var { WebSocket } = scope, HEARTBEAT_INTERVAL = 15e3, HEARTBEAT_MAX_LATENCY = 5e3, WebsocketTransport = class {
  30926. constructor({ url, onError, page }) {
  30927. this.buffer = [];
  30928. this.isReady = !1;
  30929. this.isClosed = !1;
  30930. this.pingTimeout = 0;
  30931. this.socket = new WebSocket(url), this.socket.onopen = () => {
  30932. this.isReady = !0, this.heartbeat(), this.flush();
  30933. }, this.socket.onmessage = ({ data }) => {
  30934. let event = typeof data == "string" && isJSON(data) ? parse(data) : data;
  30935. invariant(this.handler, "WebsocketTransport handler should be set"), this.handler(event), event.type === "ping" && (this.heartbeat(), this.send({ type: "pong" }));
  30936. }, this.socket.onerror = (e) => {
  30937. onError && onError(e);
  30938. }, this.socket.onclose = (ev) => {
  30939. invariant(this.handler, "WebsocketTransport handler should be set"), this.handler({
  30940. type: CHANNEL_WS_DISCONNECT,
  30941. args: [{ reason: ev.reason, code: ev.code }],
  30942. from: page || "preview"
  30943. }), this.isClosed = !0, clearTimeout(this.pingTimeout);
  30944. };
  30945. }
  30946. heartbeat() {
  30947. clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => {
  30948. this.socket.close(3008, "timeout");
  30949. }, HEARTBEAT_INTERVAL + HEARTBEAT_MAX_LATENCY);
  30950. }
  30951. setHandler(handler) {
  30952. this.handler = handler;
  30953. }
  30954. send(event) {
  30955. this.isClosed || (this.isReady ? this.sendNow(event) : this.sendLater(event));
  30956. }
  30957. sendLater(event) {
  30958. this.buffer.push(event);
  30959. }
  30960. sendNow(event) {
  30961. let data = stringify(event, {
  30962. maxDepth: 15,
  30963. ...scope.CHANNEL_OPTIONS
  30964. });
  30965. this.socket.send(data);
  30966. }
  30967. flush() {
  30968. let { buffer } = this;
  30969. this.buffer = [], buffer.forEach((event) => this.send(event));
  30970. }
  30971. };
  30972. // src/channels/index.ts
  30973. var { CHANNEL_OPTIONS, CONFIG_TYPE } = scope, channels_default = Channel;
  30974. function createBrowserChannel({ page, extraTransports = [] }) {
  30975. let transports = [new PostMessageTransport({ page }), ...extraTransports];
  30976. if (CONFIG_TYPE === "DEVELOPMENT") {
  30977. let protocol = window.location.protocol === "http:" ? "ws" : "wss", { hostname, port } = window.location, { wsToken } = CHANNEL_OPTIONS || {}, channelUrl = `${protocol}://${hostname}:${port}/storybook-server-channel?token=${wsToken}`;
  30978. transports.push(new WebsocketTransport({ url: channelUrl, onError: () => {
  30979. }, page }));
  30980. }
  30981. let channel = new Channel({ transports });
  30982. return UniversalStore.__prepare(
  30983. channel,
  30984. page === "manager" ? UniversalStore.Environment.MANAGER : UniversalStore.Environment.PREVIEW
  30985. ), channel;
  30986. }
  30987. // src/manager/globals/runtime.ts
  30988. init_client_logger();
  30989. // src/components/index.ts
  30990. var components_exports = {};
  30991. __export(components_exports, {
  30992. A: () => A,
  30993. AbstractToolbar: () => AbstractToolbar,
  30994. ActionBar: () => ActionBar,
  30995. ActionList: () => ActionList,
  30996. AddonPanel: () => AddonPanel,
  30997. Badge: () => Badge,
  30998. Bar: () => Bar,
  30999. Blockquote: () => Blockquote,
  31000. Button: () => Button,
  31001. Card: () => Card,
  31002. ClipboardCode: () => ClipboardCode,
  31003. Code: () => Code2,
  31004. Collapsible: () => Collapsible,
  31005. DL: () => DL,
  31006. Div: () => Div,
  31007. DocumentWrapper: () => DocumentWrapper,
  31008. EmptyTabContent: () => EmptyTabContent,
  31009. ErrorFormatter: () => ErrorFormatter,
  31010. FlexBar: () => FlexBar,
  31011. Form: () => Form2,
  31012. H1: () => H1,
  31013. H2: () => H2,
  31014. H3: () => H3,
  31015. H4: () => H4,
  31016. H5: () => H5,
  31017. H6: () => H6,
  31018. HR: () => HR,
  31019. IconButton: () => IconButton,
  31020. Img: () => Img,
  31021. LI: () => LI,
  31022. Link: () => Link2,
  31023. ListItem: () => ListItem_default,
  31024. Loader: () => Loader,
  31025. Modal: () => Modal,
  31026. ModalDecorator: () => ModalDecorator,
  31027. OL: () => OL,
  31028. P: () => P,
  31029. Placeholder: () => Placeholder,
  31030. Popover: () => Popover,
  31031. PopoverProvider: () => PopoverProvider,
  31032. Pre: () => Pre2,
  31033. ProgressSpinner: () => ProgressSpinner,
  31034. ResetWrapper: () => ResetWrapper,
  31035. ScrollArea: () => ScrollArea2,
  31036. Select: () => Select2,
  31037. Separator: () => Separator2,
  31038. Spaced: () => Spaced,
  31039. Span: () => Span,
  31040. StatelessTab: () => StatelessTab,
  31041. StatelessTabList: () => StatelessTabList,
  31042. StatelessTabPanel: () => StatelessTabPanel,
  31043. StatelessTabsView: () => StatelessTabsView,
  31044. StorybookIcon: () => StorybookIcon3,
  31045. StorybookLogo: () => StorybookLogo,
  31046. SyntaxHighlighter: () => SyntaxHighlighter3,
  31047. TT: () => TT,
  31048. TabBar: () => TabBar,
  31049. TabButton: () => TabButton,
  31050. TabList: () => TabList,
  31051. TabPanel: () => TabPanel,
  31052. TabWrapper: () => TabWrapper,
  31053. Table: () => Table,
  31054. Tabs: () => Tabs,
  31055. TabsState: () => TabsState,
  31056. TabsView: () => TabsView,
  31057. ToggleButton: () => ToggleButton,
  31058. Toolbar: () => Toolbar,
  31059. Tooltip: () => Tooltip2,
  31060. TooltipLinkList: () => TooltipLinkList,
  31061. TooltipMessage: () => TooltipMessage,
  31062. TooltipNote: () => TooltipNote,
  31063. TooltipProvider: () => TooltipProvider,
  31064. UL: () => UL,
  31065. WithTooltip: () => WithTooltip,
  31066. WithTooltipPure: () => WithTooltipPure2,
  31067. Zoom: () => Zoom,
  31068. codeCommon: () => codeCommon,
  31069. components: () => components2,
  31070. convertToReactAriaPlacement: () => convertToReactAriaPlacement,
  31071. createCopyToClipboardFunction: () => createCopyToClipboardFunction,
  31072. getStoryHref: () => getStoryHref,
  31073. interleaveSeparators: () => interleaveSeparators,
  31074. nameSpaceClassNames: () => nameSpaceClassNames,
  31075. resetComponents: () => resetComponents,
  31076. useTabsState: () => useTabsState,
  31077. withReset: () => withReset
  31078. });
  31079. var import_react191 = __toESM(require_react(), 1);
  31080. // src/components/components/typography/components.tsx
  31081. var import_react16 = __toESM(require_react(), 1);
  31082. // src/components/components/typography/DocumentFormatting.tsx
  31083. var nameSpaceClassNames = ({ ...props }, key) => {
  31084. let classes = [props.class, props.className];
  31085. return delete props.class, props.className = ["sbdocs", `sbdocs-${key}`, ...classes].filter(Boolean).join(" "), props;
  31086. };
  31087. // src/components/components/typography/ResetWrapper.tsx
  31088. init_theming();
  31089. // src/components/components/typography/lib/common.tsx
  31090. var headerCommon = ({ theme: theme3 }) => ({
  31091. margin: "20px 0 8px",
  31092. padding: 0,
  31093. cursor: "text",
  31094. position: "relative",
  31095. color: theme3.color.defaultText,
  31096. "&:first-of-type": {
  31097. marginTop: 0,
  31098. paddingTop: 0
  31099. },
  31100. "&:hover a.anchor": {
  31101. textDecoration: "none"
  31102. },
  31103. "& tt, & code": {
  31104. fontSize: "inherit"
  31105. }
  31106. }), codeCommon = ({ theme: theme3 }) => ({
  31107. lineHeight: 1,
  31108. margin: "0 2px",
  31109. padding: "3px 5px",
  31110. whiteSpace: "nowrap",
  31111. borderRadius: 3,
  31112. fontSize: theme3.typography.size.s2 - 1,
  31113. border: theme3.base === "light" ? "1px solid hsl(0 0 0 / 0.05)" : "1px solid hsl(0 0 100 / 0.05)",
  31114. color: theme3.color.defaultText,
  31115. backgroundColor: theme3.base === "light" ? "hsl(0 0 0 / 0.01)" : "hsl(0 0 100 / 0.02)"
  31116. }), withReset = ({ theme: theme3 }) => ({
  31117. fontFamily: theme3.typography.fonts.base,
  31118. fontSize: theme3.typography.size.s3,
  31119. margin: 0,
  31120. WebkitFontSmoothing: "antialiased",
  31121. MozOsxFontSmoothing: "grayscale",
  31122. WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
  31123. WebkitOverflowScrolling: "touch"
  31124. }), withMargin = {
  31125. margin: "16px 0"
  31126. };
  31127. // src/components/components/typography/ResetWrapper.tsx
  31128. var ResetWrapper = styled.div(withReset);
  31129. // src/components/components/typography/elements/A.tsx
  31130. init_theming();
  31131. // src/components/components/typography/elements/Link.tsx
  31132. var import_react7 = __toESM(require_react(), 1), Link = ({
  31133. href: input2 = "",
  31134. ...props
  31135. }) => {
  31136. let href = /^\//.test(input2) ? `./?path=${input2}` : input2, target = /^#.*/.test(input2) ? "_self" : "_top";
  31137. return import_react7.default.createElement("a", { href, target, ...props });
  31138. };
  31139. // src/components/components/typography/elements/A.tsx
  31140. var A = styled(Link)(({ theme: theme3 }) => ({
  31141. ...withReset({ theme: theme3 }),
  31142. fontSize: "inherit",
  31143. lineHeight: "24px",
  31144. color: theme3.color.secondary,
  31145. // Ensure WCAG Level A compliance (SC 1.4.1), see https://www.w3.org/WAI/WCAG22/Techniques/failures/F73
  31146. textDecoration: "underline",
  31147. textDecorationThickness: "0.03125rem",
  31148. textUnderlineOffset: "0.11em",
  31149. "&.absent": {
  31150. color: "#cc0000"
  31151. },
  31152. "&.anchor": {
  31153. display: "block",
  31154. paddingLeft: 30,
  31155. marginLeft: -30,
  31156. cursor: "pointer",
  31157. position: "absolute",
  31158. top: 0,
  31159. left: 0,
  31160. bottom: 0,
  31161. textDecoration: "none"
  31162. },
  31163. "&.anchor:hover, &.anchor:focus": {
  31164. textDecoration: "underline"
  31165. },
  31166. "& code": {
  31167. color: "inherit",
  31168. textDecoration: "underline",
  31169. textDecorationThickness: "0.03125rem",
  31170. paddingLeft: 0,
  31171. paddingRight: 0,
  31172. "&::before": {
  31173. content: '"\\00a0"',
  31174. fontSize: "0.5em"
  31175. },
  31176. "&::after": {
  31177. content: '"\\00a0"',
  31178. fontSize: "0.5em"
  31179. }
  31180. }
  31181. }));
  31182. // src/components/components/typography/elements/Blockquote.tsx
  31183. init_theming();
  31184. var Blockquote = styled.blockquote(({ theme: theme3 }) => ({
  31185. ...withReset({ theme: theme3 }),
  31186. ...withMargin,
  31187. borderLeft: `4px solid ${theme3.color.medium}`,
  31188. padding: "0 15px",
  31189. color: theme3.color.dark,
  31190. "& > :first-of-type": {
  31191. marginTop: 0
  31192. },
  31193. "& > :last-child": {
  31194. marginBottom: 0
  31195. }
  31196. }));
  31197. // src/components/components/typography/elements/Code.tsx
  31198. var import_react15 = __toESM(require_react(), 1);
  31199. init_theming();
  31200. // src/components/components/syntaxhighlighter/lazy-syntaxhighlighter.tsx
  31201. var import_react14 = __toESM(require_react(), 1), languages = [], Comp = null, LazySyntaxHighlighter = (0, import_react14.lazy)(async () => {
  31202. let { SyntaxHighlighter: SyntaxHighlighter4 } = await Promise.resolve().then(() => (init_syntaxhighlighter(), syntaxhighlighter_exports));
  31203. return languages.length > 0 && (languages.forEach((args) => {
  31204. SyntaxHighlighter4.registerLanguage(...args);
  31205. }), languages = []), Comp === null && (Comp = SyntaxHighlighter4), {
  31206. default: (props) => import_react14.default.createElement(SyntaxHighlighter4, { ...props })
  31207. };
  31208. }), LazySyntaxHighlighterWithFormatter = (0, import_react14.lazy)(async () => {
  31209. let [{ SyntaxHighlighter: SyntaxHighlighter4 }, { formatter: formatter2 }] = await Promise.all([
  31210. Promise.resolve().then(() => (init_syntaxhighlighter(), syntaxhighlighter_exports)),
  31211. Promise.resolve().then(() => (init_formatter(), formatter_exports))
  31212. ]);
  31213. return languages.length > 0 && (languages.forEach((args) => {
  31214. SyntaxHighlighter4.registerLanguage(...args);
  31215. }), languages = []), Comp === null && (Comp = SyntaxHighlighter4), {
  31216. default: (props) => import_react14.default.createElement(SyntaxHighlighter4, { ...props, formatter: formatter2 })
  31217. };
  31218. }), SyntaxHighlighter3 = (props) => import_react14.default.createElement(import_react14.Suspense, { fallback: import_react14.default.createElement("div", null) }, props.format !== !1 ? import_react14.default.createElement(LazySyntaxHighlighterWithFormatter, { ...props }) : import_react14.default.createElement(LazySyntaxHighlighter, { ...props }));
  31219. SyntaxHighlighter3.registerLanguage = (...args) => {
  31220. if (Comp !== null) {
  31221. Comp.registerLanguage(...args);
  31222. return;
  31223. }
  31224. languages.push(args);
  31225. };
  31226. // src/components/components/typography/lib/isReactChildString.tsx
  31227. var isReactChildString = (child) => typeof child == "string";
  31228. // src/components/components/typography/elements/Code.tsx
  31229. var isInlineCodeRegex = /[\n\r]/g, DefaultCodeBlock = styled.code(({ theme: theme3 }) => ({
  31230. // from reset
  31231. fontFamily: theme3.typography.fonts.mono,
  31232. WebkitFontSmoothing: "antialiased",
  31233. MozOsxFontSmoothing: "grayscale",
  31234. display: "inline-block",
  31235. paddingLeft: 2,
  31236. paddingRight: 2,
  31237. verticalAlign: "baseline",
  31238. color: "inherit",
  31239. ...codeCommon({ theme: theme3 })
  31240. })), StyledSyntaxHighlighter = styled(SyntaxHighlighter3)(({ theme: theme3 }) => ({
  31241. // DocBlocks-specific styling and overrides
  31242. fontFamily: theme3.typography.fonts.mono,
  31243. fontSize: `${theme3.typography.size.s2 - 1}px`,
  31244. lineHeight: "19px",
  31245. margin: "25px 0 40px",
  31246. borderRadius: theme3.appBorderRadius,
  31247. boxShadow: theme3.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0",
  31248. "pre.prismjs": {
  31249. padding: 20,
  31250. background: "inherit"
  31251. }
  31252. })), Code2 = ({
  31253. className,
  31254. children,
  31255. ...props
  31256. }) => {
  31257. let language = (className || "").match(/lang-(\S+)/), childrenArray = import_react15.Children.toArray(children);
  31258. return childrenArray.filter(isReactChildString).some((child) => child.match(isInlineCodeRegex)) ? import_react15.default.createElement(
  31259. StyledSyntaxHighlighter,
  31260. {
  31261. bordered: !0,
  31262. copyable: !0,
  31263. language: language?.[1] ?? "text",
  31264. format: !1,
  31265. ...props
  31266. },
  31267. children
  31268. ) : import_react15.default.createElement(DefaultCodeBlock, { ...props, className }, childrenArray);
  31269. };
  31270. // src/components/components/typography/elements/DL.tsx
  31271. init_theming();
  31272. var DL = styled.dl(({ theme: theme3 }) => ({
  31273. ...withReset({ theme: theme3 }),
  31274. ...withMargin,
  31275. padding: 0,
  31276. "& dt": {
  31277. fontSize: "14px",
  31278. fontWeight: "bold",
  31279. fontStyle: "italic",
  31280. padding: 0,
  31281. margin: "16px 0 4px"
  31282. },
  31283. "& dt:first-of-type": {
  31284. padding: 0
  31285. },
  31286. "& dt > :first-of-type": {
  31287. marginTop: 0
  31288. },
  31289. "& dt > :last-child": {
  31290. marginBottom: 0
  31291. },
  31292. "& dd": {
  31293. margin: "0 0 16px",
  31294. padding: "0 15px"
  31295. },
  31296. "& dd > :first-of-type": {
  31297. marginTop: 0
  31298. },
  31299. "& dd > :last-child": {
  31300. marginBottom: 0
  31301. }
  31302. }));
  31303. // src/components/components/typography/elements/Div.tsx
  31304. init_theming();
  31305. var Div = styled.div(withReset);
  31306. // src/components/components/typography/elements/H1.tsx
  31307. init_theming();
  31308. var H1 = styled.h1(({ theme: theme3 }) => ({
  31309. ...withReset({ theme: theme3 }),
  31310. ...headerCommon({ theme: theme3 }),
  31311. fontSize: `${theme3.typography.size.l1}px`,
  31312. fontWeight: theme3.typography.weight.bold
  31313. }));
  31314. // src/components/components/typography/elements/H2.tsx
  31315. init_theming();
  31316. var H2 = styled.h2(({ theme: theme3 }) => ({
  31317. ...withReset({ theme: theme3 }),
  31318. ...headerCommon({ theme: theme3 }),
  31319. fontSize: `${theme3.typography.size.m2}px`,
  31320. paddingBottom: 4,
  31321. borderBottom: `1px solid ${theme3.appBorderColor}`
  31322. }));
  31323. // src/components/components/typography/elements/H3.tsx
  31324. init_theming();
  31325. var H3 = styled.h3(({ theme: theme3 }) => ({
  31326. ...withReset({ theme: theme3 }),
  31327. ...headerCommon({ theme: theme3 }),
  31328. fontSize: `${theme3.typography.size.m1}px`
  31329. }));
  31330. // src/components/components/typography/elements/H4.tsx
  31331. init_theming();
  31332. var H4 = styled.h4(({ theme: theme3 }) => ({
  31333. ...withReset({ theme: theme3 }),
  31334. ...headerCommon({ theme: theme3 }),
  31335. fontSize: `${theme3.typography.size.s3}px`
  31336. }));
  31337. // src/components/components/typography/elements/H5.tsx
  31338. init_theming();
  31339. var H5 = styled.h5(({ theme: theme3 }) => ({
  31340. ...withReset({ theme: theme3 }),
  31341. ...headerCommon({ theme: theme3 }),
  31342. fontSize: `${theme3.typography.size.s2}px`
  31343. }));
  31344. // src/components/components/typography/elements/H6.tsx
  31345. init_theming();
  31346. var H6 = styled.h6(({ theme: theme3 }) => ({
  31347. ...withReset({ theme: theme3 }),
  31348. ...headerCommon({ theme: theme3 }),
  31349. fontSize: `${theme3.typography.size.s2}px`,
  31350. color: theme3.color.dark
  31351. }));
  31352. // src/components/components/typography/elements/HR.tsx
  31353. init_theming();
  31354. var HR = styled.hr(({ theme: theme3 }) => ({
  31355. border: "0 none",
  31356. borderTop: `1px solid ${theme3.appBorderColor}`,
  31357. height: 4,
  31358. padding: 0
  31359. }));
  31360. // src/components/components/typography/elements/Img.tsx
  31361. init_theming();
  31362. var Img = styled.img({
  31363. maxWidth: "100%"
  31364. });
  31365. // src/components/components/typography/elements/LI.tsx
  31366. init_theming();
  31367. var LI = styled.li(({ theme: theme3 }) => ({
  31368. ...withReset({ theme: theme3 }),
  31369. fontSize: theme3.typography.size.s2,
  31370. color: theme3.color.defaultText,
  31371. lineHeight: "24px",
  31372. "& + li": {
  31373. marginTop: ".25em"
  31374. },
  31375. "& ul, & ol": {
  31376. marginTop: ".25em",
  31377. marginBottom: 0
  31378. },
  31379. "& code": codeCommon({ theme: theme3 })
  31380. }));
  31381. // src/components/components/typography/elements/OL.tsx
  31382. init_theming();
  31383. var listCommon = {
  31384. paddingLeft: 30,
  31385. "& :first-of-type": {
  31386. marginTop: 0
  31387. },
  31388. "& :last-child": {
  31389. marginBottom: 0
  31390. }
  31391. }, OL = styled.ol(({ theme: theme3 }) => ({
  31392. ...withReset({ theme: theme3 }),
  31393. ...withMargin,
  31394. ...listCommon,
  31395. listStyle: "decimal"
  31396. }));
  31397. // src/components/components/typography/elements/P.tsx
  31398. init_theming();
  31399. var P = styled.p(({ theme: theme3 }) => ({
  31400. ...withReset({ theme: theme3 }),
  31401. ...withMargin,
  31402. fontSize: theme3.typography.size.s2,
  31403. lineHeight: "24px",
  31404. color: theme3.color.defaultText,
  31405. "& code": codeCommon({ theme: theme3 })
  31406. }));
  31407. // src/components/components/typography/elements/Pre.tsx
  31408. init_theming();
  31409. var Pre2 = styled.pre(({ theme: theme3 }) => ({
  31410. ...withReset({ theme: theme3 }),
  31411. ...withMargin,
  31412. // reset
  31413. fontFamily: theme3.typography.fonts.mono,
  31414. WebkitFontSmoothing: "antialiased",
  31415. MozOsxFontSmoothing: "grayscale",
  31416. lineHeight: "18px",
  31417. padding: "11px 1rem",
  31418. whiteSpace: "pre-wrap",
  31419. color: "inherit",
  31420. borderRadius: 3,
  31421. margin: "1rem 0",
  31422. "&:not(.prismjs)": {
  31423. background: "transparent",
  31424. border: "none",
  31425. borderRadius: 0,
  31426. padding: 0,
  31427. margin: 0
  31428. },
  31429. "& pre, &.prismjs": {
  31430. padding: 15,
  31431. margin: 0,
  31432. whiteSpace: "pre-wrap",
  31433. color: "inherit",
  31434. fontSize: "13px",
  31435. lineHeight: "19px",
  31436. code: {
  31437. color: "inherit",
  31438. fontSize: "inherit"
  31439. }
  31440. },
  31441. "& code": {
  31442. whiteSpace: "pre"
  31443. },
  31444. "& code, & tt": {
  31445. border: "none"
  31446. }
  31447. }));
  31448. // src/components/components/typography/elements/Span.tsx
  31449. init_theming();
  31450. var Span = styled.span(({ theme: theme3 }) => ({
  31451. ...withReset({ theme: theme3 }),
  31452. "&.frame": {
  31453. display: "block",
  31454. overflow: "hidden",
  31455. "& > span": {
  31456. border: `1px solid ${theme3.color.medium}`,
  31457. display: "block",
  31458. float: "left",
  31459. overflow: "hidden",
  31460. margin: "13px 0 0",
  31461. padding: 7,
  31462. width: "auto"
  31463. },
  31464. "& span img": {
  31465. display: "block",
  31466. float: "left"
  31467. },
  31468. "& span span": {
  31469. clear: "both",
  31470. color: theme3.color.darkest,
  31471. display: "block",
  31472. padding: "5px 0 0"
  31473. }
  31474. },
  31475. "&.align-center": {
  31476. display: "block",
  31477. overflow: "hidden",
  31478. clear: "both",
  31479. "& > span": {
  31480. display: "block",
  31481. overflow: "hidden",
  31482. margin: "13px auto 0",
  31483. textAlign: "center"
  31484. },
  31485. "& span img": {
  31486. margin: "0 auto",
  31487. textAlign: "center"
  31488. }
  31489. },
  31490. "&.align-right": {
  31491. display: "block",
  31492. overflow: "hidden",
  31493. clear: "both",
  31494. "& > span": {
  31495. display: "block",
  31496. overflow: "hidden",
  31497. margin: "13px 0 0",
  31498. textAlign: "right"
  31499. },
  31500. "& span img": {
  31501. margin: 0,
  31502. textAlign: "right"
  31503. }
  31504. },
  31505. "&.float-left": {
  31506. display: "block",
  31507. marginRight: 13,
  31508. overflow: "hidden",
  31509. float: "left",
  31510. "& span": {
  31511. margin: "13px 0 0"
  31512. }
  31513. },
  31514. "&.float-right": {
  31515. display: "block",
  31516. marginLeft: 13,
  31517. overflow: "hidden",
  31518. float: "right",
  31519. "& > span": {
  31520. display: "block",
  31521. overflow: "hidden",
  31522. margin: "13px auto 0",
  31523. textAlign: "right"
  31524. }
  31525. }
  31526. }));
  31527. // src/components/components/typography/elements/TT.tsx
  31528. init_theming();
  31529. var TT = styled.title(codeCommon);
  31530. // src/components/components/typography/elements/Table.tsx
  31531. init_theming();
  31532. var Table = styled.table(({ theme: theme3 }) => ({
  31533. ...withReset({ theme: theme3 }),
  31534. ...withMargin,
  31535. fontSize: theme3.typography.size.s2,
  31536. lineHeight: "24px",
  31537. padding: 0,
  31538. borderCollapse: "collapse",
  31539. "& tr": {
  31540. borderTop: `1px solid ${theme3.appBorderColor}`,
  31541. backgroundColor: theme3.appContentBg,
  31542. margin: 0,
  31543. padding: 0
  31544. },
  31545. "& tr:nth-of-type(2n)": {
  31546. backgroundColor: theme3.base === "dark" ? theme3.color.darker : theme3.color.lighter
  31547. },
  31548. "& tr th": {
  31549. fontWeight: "bold",
  31550. color: theme3.color.defaultText,
  31551. border: `1px solid ${theme3.appBorderColor}`,
  31552. margin: 0,
  31553. padding: "6px 13px"
  31554. },
  31555. "& tr td": {
  31556. border: `1px solid ${theme3.appBorderColor}`,
  31557. color: theme3.color.defaultText,
  31558. margin: 0,
  31559. padding: "6px 13px"
  31560. },
  31561. "& tr th :first-of-type, & tr td :first-of-type": {
  31562. marginTop: 0
  31563. },
  31564. "& tr th :last-child, & tr td :last-child": {
  31565. marginBottom: 0
  31566. }
  31567. }));
  31568. // src/components/components/typography/elements/UL.tsx
  31569. init_theming();
  31570. var listCommon2 = {
  31571. paddingLeft: 30,
  31572. "& :first-of-type": {
  31573. marginTop: 0
  31574. },
  31575. "& :last-child": {
  31576. marginBottom: 0
  31577. }
  31578. }, UL = styled.ul(({ theme: theme3 }) => ({
  31579. ...withReset({ theme: theme3 }),
  31580. ...withMargin,
  31581. ...listCommon2,
  31582. listStyle: "disc"
  31583. }));
  31584. // src/components/components/typography/components.tsx
  31585. var components = {
  31586. h1: (props) => import_react16.default.createElement(H1, { ...nameSpaceClassNames(props, "h1") }),
  31587. h2: (props) => import_react16.default.createElement(H2, { ...nameSpaceClassNames(props, "h2") }),
  31588. h3: (props) => import_react16.default.createElement(H3, { ...nameSpaceClassNames(props, "h3") }),
  31589. h4: (props) => import_react16.default.createElement(H4, { ...nameSpaceClassNames(props, "h4") }),
  31590. h5: (props) => import_react16.default.createElement(H5, { ...nameSpaceClassNames(props, "h5") }),
  31591. h6: (props) => import_react16.default.createElement(H6, { ...nameSpaceClassNames(props, "h6") }),
  31592. pre: (props) => import_react16.default.createElement(Pre2, { ...nameSpaceClassNames(props, "pre") }),
  31593. a: (props) => import_react16.default.createElement(A, { ...nameSpaceClassNames(props, "a") }),
  31594. hr: (props) => import_react16.default.createElement(HR, { ...nameSpaceClassNames(props, "hr") }),
  31595. dl: (props) => import_react16.default.createElement(DL, { ...nameSpaceClassNames(props, "dl") }),
  31596. blockquote: (props) => import_react16.default.createElement(Blockquote, { ...nameSpaceClassNames(props, "blockquote") }),
  31597. table: (props) => import_react16.default.createElement(Table, { ...nameSpaceClassNames(props, "table") }),
  31598. img: (props) => import_react16.default.createElement(Img, { ...nameSpaceClassNames(props, "img") }),
  31599. div: (props) => import_react16.default.createElement(Div, { ...nameSpaceClassNames(props, "div") }),
  31600. span: (props) => import_react16.default.createElement(Span, { ...nameSpaceClassNames(props, "span") }),
  31601. li: (props) => import_react16.default.createElement(LI, { ...nameSpaceClassNames(props, "li") }),
  31602. ul: (props) => import_react16.default.createElement(UL, { ...nameSpaceClassNames(props, "ul") }),
  31603. ol: (props) => import_react16.default.createElement(OL, { ...nameSpaceClassNames(props, "ol") }),
  31604. p: (props) => import_react16.default.createElement(P, { ...nameSpaceClassNames(props, "p") }),
  31605. code: (props) => import_react16.default.createElement(Code2, { ...nameSpaceClassNames(props, "code") }),
  31606. tt: (props) => import_react16.default.createElement(TT, { ...nameSpaceClassNames(props, "tt") }),
  31607. resetwrapper: (props) => import_react16.default.createElement(ResetWrapper, { ...nameSpaceClassNames(props, "resetwrapper") })
  31608. };
  31609. // src/components/components/Badge/Badge.tsx
  31610. var import_react17 = __toESM(require_react(), 1);
  31611. init_polished_esm();
  31612. init_theming();
  31613. var BadgeWrapper = styled.div(
  31614. ({ theme: theme3, compact: compact2 }) => ({
  31615. display: "inline-flex",
  31616. alignItems: "center",
  31617. justifyContent: "center",
  31618. fontSize: theme3.typography.size.s1,
  31619. fontWeight: theme3.typography.weight.bold,
  31620. lineHeight: "12px",
  31621. minWidth: 20,
  31622. borderRadius: 20,
  31623. padding: compact2 ? "4px 7px" : "4px 10px"
  31624. }),
  31625. {
  31626. svg: {
  31627. height: 12,
  31628. width: 12,
  31629. marginRight: 4,
  31630. marginTop: -2,
  31631. path: {
  31632. fill: "currentColor"
  31633. }
  31634. }
  31635. },
  31636. ({ theme: theme3, status }) => {
  31637. switch (status) {
  31638. case "critical":
  31639. return {
  31640. color: theme3.fgColor.critical,
  31641. background: theme3.bgColor.critical,
  31642. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.critical}`
  31643. };
  31644. case "negative":
  31645. return {
  31646. color: theme3.fgColor.negative,
  31647. background: theme3.bgColor.negative,
  31648. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.negative}`
  31649. };
  31650. case "warning":
  31651. return {
  31652. color: theme3.fgColor.warning,
  31653. background: theme3.bgColor.warning,
  31654. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.warning}`
  31655. };
  31656. case "neutral":
  31657. return {
  31658. color: theme3.fgColor.muted,
  31659. background: theme3.base === "dark" ? theme3.barBg : theme3.background.app,
  31660. boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.8, theme3.textMutedColor)}`
  31661. };
  31662. case "positive":
  31663. return {
  31664. color: theme3.fgColor.positive,
  31665. background: theme3.bgColor.positive,
  31666. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.positive}`
  31667. };
  31668. case "active":
  31669. return {
  31670. color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary,
  31671. background: theme3.background.hoverable,
  31672. boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme3.color.secondary)}`
  31673. };
  31674. default:
  31675. return {};
  31676. }
  31677. }
  31678. ), Badge = ({ ...props }) => import_react17.default.createElement(BadgeWrapper, { ...props });
  31679. // src/components/components/typography/link/link.tsx
  31680. var import_react18 = __toESM(require_react(), 1);
  31681. init_client_logger();
  31682. // ../../node_modules/@storybook/icons/dist/index.js
  31683. var dist_exports2 = {};
  31684. __export(dist_exports2, {
  31685. AccessibilityAltIcon: () => AccessibilityAltIcon,
  31686. AccessibilityIcon: () => AccessibilityIcon,
  31687. AccessibilityIgnoredIcon: () => AccessibilityIgnoredIcon,
  31688. AddIcon: () => AddIcon,
  31689. AdminIcon: () => AdminIcon,
  31690. AlertAltIcon: () => AlertAltIcon,
  31691. AlertIcon: () => AlertIcon,
  31692. AlignLeftIcon: () => AlignLeftIcon,
  31693. AlignRightIcon: () => AlignRightIcon,
  31694. AppleIcon: () => AppleIcon,
  31695. ArrowBottomLeftIcon: () => ArrowBottomLeftIcon,
  31696. ArrowBottomRightIcon: () => ArrowBottomRightIcon,
  31697. ArrowDownIcon: () => ArrowDownIcon,
  31698. ArrowLeftIcon: () => ArrowLeftIcon,
  31699. ArrowRightIcon: () => ArrowRightIcon,
  31700. ArrowSolidDownIcon: () => ArrowSolidDownIcon,
  31701. ArrowSolidLeftIcon: () => ArrowSolidLeftIcon,
  31702. ArrowSolidRightIcon: () => ArrowSolidRightIcon,
  31703. ArrowSolidUpIcon: () => ArrowSolidUpIcon,
  31704. ArrowTopLeftIcon: () => ArrowTopLeftIcon,
  31705. ArrowTopRightIcon: () => ArrowTopRightIcon,
  31706. ArrowUpIcon: () => ArrowUpIcon,
  31707. AzureDevOpsIcon: () => AzureDevOpsIcon,
  31708. BackIcon: () => BackIcon,
  31709. BasketIcon: () => BasketIcon,
  31710. BatchAcceptIcon: () => BatchAcceptIcon,
  31711. BatchDenyIcon: () => BatchDenyIcon,
  31712. BeakerIcon: () => BeakerIcon,
  31713. BellIcon: () => BellIcon,
  31714. BitbucketIcon: () => BitbucketIcon,
  31715. BoldIcon: () => BoldIcon,
  31716. BookIcon: () => BookIcon,
  31717. BookmarkHollowIcon: () => BookmarkHollowIcon,
  31718. BookmarkIcon: () => BookmarkIcon,
  31719. BottomBarIcon: () => BottomBarIcon,
  31720. BottomBarToggleIcon: () => BottomBarToggleIcon,
  31721. BoxIcon: () => BoxIcon,
  31722. BranchIcon: () => BranchIcon,
  31723. BrowserIcon: () => BrowserIcon,
  31724. BugIcon: () => BugIcon,
  31725. ButtonIcon: () => ButtonIcon,
  31726. CPUIcon: () => CPUIcon,
  31727. CalendarIcon: () => CalendarIcon,
  31728. CameraIcon: () => CameraIcon,
  31729. CameraStabilizeIcon: () => CameraStabilizeIcon,
  31730. CategoryIcon: () => CategoryIcon,
  31731. CertificateIcon: () => CertificateIcon,
  31732. ChangedIcon: () => ChangedIcon,
  31733. ChatIcon: () => ChatIcon,
  31734. CheckIcon: () => CheckIcon,
  31735. ChecklistIcon: () => ChecklistIcon,
  31736. ChevronDownIcon: () => ChevronDownIcon,
  31737. ChevronLeftIcon: () => ChevronLeftIcon,
  31738. ChevronRightIcon: () => ChevronRightIcon,
  31739. ChevronSmallDownIcon: () => ChevronSmallDownIcon,
  31740. ChevronSmallLeftIcon: () => ChevronSmallLeftIcon,
  31741. ChevronSmallRightIcon: () => ChevronSmallRightIcon,
  31742. ChevronSmallUpIcon: () => ChevronSmallUpIcon,
  31743. ChevronUpIcon: () => ChevronUpIcon,
  31744. ChromaticIcon: () => ChromaticIcon,
  31745. ChromeIcon: () => ChromeIcon,
  31746. CircleHollowIcon: () => CircleHollowIcon,
  31747. CircleIcon: () => CircleIcon,
  31748. ClearIcon: () => ClearIcon,
  31749. CloseAltIcon: () => CloseAltIcon,
  31750. CloseIcon: () => CloseIcon,
  31751. CloudHollowIcon: () => CloudHollowIcon,
  31752. CloudIcon: () => CloudIcon,
  31753. CogIcon: () => CogIcon,
  31754. CollapseIcon: () => CollapseIcon,
  31755. CommandIcon: () => CommandIcon,
  31756. CommentAddIcon: () => CommentAddIcon,
  31757. CommentIcon: () => CommentIcon,
  31758. CommentsIcon: () => CommentsIcon,
  31759. CommitIcon: () => CommitIcon,
  31760. CompassIcon: () => CompassIcon,
  31761. ComponentDrivenIcon: () => ComponentDrivenIcon,
  31762. ComponentIcon: () => ComponentIcon,
  31763. ContrastIcon: () => ContrastIcon,
  31764. ContrastIgnoredIcon: () => ContrastIgnoredIcon,
  31765. ControlsIcon: () => ControlsIcon,
  31766. CopyIcon: () => CopyIcon,
  31767. CreditIcon: () => CreditIcon,
  31768. CrossIcon: () => CrossIcon,
  31769. DashboardIcon: () => DashboardIcon,
  31770. DatabaseIcon: () => DatabaseIcon,
  31771. DeleteIcon: () => DeleteIcon,
  31772. DiamondIcon: () => DiamondIcon,
  31773. DirectionIcon: () => DirectionIcon,
  31774. DiscordIcon: () => DiscordIcon,
  31775. DocChartIcon: () => DocChartIcon,
  31776. DocListIcon: () => DocListIcon,
  31777. DocumentIcon: () => DocumentIcon,
  31778. DownloadIcon: () => DownloadIcon,
  31779. DragIcon: () => DragIcon,
  31780. EditIcon: () => EditIcon,
  31781. EditorIcon: () => EditorIcon,
  31782. EllipsisIcon: () => EllipsisIcon,
  31783. EmailIcon: () => EmailIcon,
  31784. ExpandAltIcon: () => ExpandAltIcon,
  31785. ExpandIcon: () => ExpandIcon,
  31786. EyeCloseIcon: () => EyeCloseIcon,
  31787. EyeIcon: () => EyeIcon,
  31788. FaceHappyIcon: () => FaceHappyIcon,
  31789. FaceNeutralIcon: () => FaceNeutralIcon,
  31790. FaceSadIcon: () => FaceSadIcon,
  31791. FacebookIcon: () => FacebookIcon,
  31792. FailedIcon: () => FailedIcon,
  31793. FastForwardIcon: () => FastForwardIcon,
  31794. FigmaIcon: () => FigmaIcon,
  31795. FilesIcon: () => FilesIcon,
  31796. FilterIcon: () => FilterIcon,
  31797. FlagIcon: () => FlagIcon,
  31798. FolderIcon: () => FolderIcon,
  31799. FormIcon: () => FormIcon,
  31800. GDriveIcon: () => GDriveIcon,
  31801. GiftIcon: () => GiftIcon,
  31802. GithubIcon: () => GithubIcon,
  31803. GitlabIcon: () => GitlabIcon,
  31804. GlobeIcon: () => GlobeIcon,
  31805. GoogleIcon: () => GoogleIcon,
  31806. GraphBarIcon: () => GraphBarIcon,
  31807. GraphLineIcon: () => GraphLineIcon,
  31808. GraphqlIcon: () => GraphqlIcon,
  31809. GridAltIcon: () => GridAltIcon,
  31810. GridIcon: () => GridIcon,
  31811. GrowIcon: () => GrowIcon,
  31812. HeartHollowIcon: () => HeartHollowIcon,
  31813. HeartIcon: () => HeartIcon,
  31814. HomeIcon: () => HomeIcon,
  31815. HourglassIcon: () => HourglassIcon,
  31816. InfoIcon: () => InfoIcon,
  31817. ItalicIcon: () => ItalicIcon,
  31818. JumpToIcon: () => JumpToIcon,
  31819. KeyIcon: () => KeyIcon,
  31820. LightningIcon: () => LightningIcon,
  31821. LightningOffIcon: () => LightningOffIcon,
  31822. LinkBrokenIcon: () => LinkBrokenIcon,
  31823. LinkIcon: () => LinkIcon,
  31824. LinkedinIcon: () => LinkedinIcon,
  31825. LinuxIcon: () => LinuxIcon,
  31826. ListOrderedIcon: () => ListOrderedIcon,
  31827. ListUnorderedIcon: () => ListUnorderedIcon,
  31828. LocationIcon: () => LocationIcon,
  31829. LockIcon: () => LockIcon,
  31830. MarkdownIcon: () => MarkdownIcon,
  31831. MarkupIcon: () => MarkupIcon,
  31832. MediumIcon: () => MediumIcon,
  31833. MemoryIcon: () => MemoryIcon,
  31834. MenuIcon: () => MenuIcon,
  31835. MergeIcon: () => MergeIcon,
  31836. MirrorIcon: () => MirrorIcon,
  31837. MobileIcon: () => MobileIcon,
  31838. MoonIcon: () => MoonIcon,
  31839. NutIcon: () => NutIcon,
  31840. OutboxIcon: () => OutboxIcon,
  31841. OutlineIcon: () => OutlineIcon,
  31842. PaintBrushAltIcon: () => PaintBrushAltIcon,
  31843. PaintBrushIcon: () => PaintBrushIcon,
  31844. PaperClipIcon: () => PaperClipIcon,
  31845. ParagraphIcon: () => ParagraphIcon,
  31846. PassedIcon: () => PassedIcon,
  31847. PhoneIcon: () => PhoneIcon,
  31848. PhotoDragIcon: () => PhotoDragIcon,
  31849. PhotoIcon: () => PhotoIcon,
  31850. PhotoStabilizeIcon: () => PhotoStabilizeIcon,
  31851. PinAltIcon: () => PinAltIcon,
  31852. PinIcon: () => PinIcon,
  31853. PlayAllHollowIcon: () => PlayAllHollowIcon,
  31854. PlayBackIcon: () => PlayBackIcon,
  31855. PlayHollowIcon: () => PlayHollowIcon,
  31856. PlayIcon: () => PlayIcon,
  31857. PlayNextIcon: () => PlayNextIcon,
  31858. PlusIcon: () => PlusIcon,
  31859. PointerDefaultIcon: () => PointerDefaultIcon,
  31860. PointerHandIcon: () => PointerHandIcon,
  31861. PopOutIcon: () => PopOutIcon,
  31862. PowerIcon: () => PowerIcon,
  31863. PrintIcon: () => PrintIcon,
  31864. ProceedIcon: () => ProceedIcon,
  31865. ProfileIcon: () => ProfileIcon,
  31866. PullRequestIcon: () => PullRequestIcon,
  31867. QuestionIcon: () => QuestionIcon,
  31868. RSSIcon: () => RSSIcon,
  31869. RedirectIcon: () => RedirectIcon,
  31870. ReduxIcon: () => ReduxIcon,
  31871. RefreshIcon: () => RefreshIcon,
  31872. ReplyIcon: () => ReplyIcon,
  31873. RepoIcon: () => RepoIcon,
  31874. RequestChangeIcon: () => RequestChangeIcon,
  31875. RewindIcon: () => RewindIcon,
  31876. RulerIcon: () => RulerIcon,
  31877. SaveIcon: () => SaveIcon,
  31878. SearchIcon: () => SearchIcon,
  31879. ShareAltIcon: () => ShareAltIcon,
  31880. ShareIcon: () => ShareIcon,
  31881. ShieldIcon: () => ShieldIcon,
  31882. SideBySideIcon: () => SideBySideIcon,
  31883. SidebarAltIcon: () => SidebarAltIcon,
  31884. SidebarAltToggleIcon: () => SidebarAltToggleIcon,
  31885. SidebarIcon: () => SidebarIcon,
  31886. SidebarToggleIcon: () => SidebarToggleIcon,
  31887. SortDownIcon: () => SortDownIcon,
  31888. SortUpIcon: () => SortUpIcon,
  31889. SpeakerIcon: () => SpeakerIcon,
  31890. StackedIcon: () => StackedIcon,
  31891. StarHollowIcon: () => StarHollowIcon,
  31892. StarIcon: () => StarIcon,
  31893. StatusFailIcon: () => StatusFailIcon,
  31894. StatusIcon: () => StatusIcon,
  31895. StatusNewIcon: () => StatusNewIcon,
  31896. StatusPassIcon: () => StatusPassIcon,
  31897. StatusWarnIcon: () => StatusWarnIcon,
  31898. StickerIcon: () => StickerIcon,
  31899. StopAltHollowIcon: () => StopAltHollowIcon,
  31900. StopAltIcon: () => StopAltIcon,
  31901. StopIcon: () => StopIcon,
  31902. StorybookIcon: () => StorybookIcon,
  31903. StructureIcon: () => StructureIcon,
  31904. SubtractIcon: () => SubtractIcon,
  31905. SunIcon: () => SunIcon,
  31906. SupportIcon: () => SupportIcon,
  31907. SweepIcon: () => SweepIcon,
  31908. SwitchAltIcon: () => SwitchAltIcon,
  31909. SyncIcon: () => SyncIcon,
  31910. TabletIcon: () => TabletIcon,
  31911. ThumbsUpIcon: () => ThumbsUpIcon,
  31912. TimeIcon: () => TimeIcon,
  31913. TimerIcon: () => TimerIcon,
  31914. TransferIcon: () => TransferIcon,
  31915. TrashIcon: () => TrashIcon,
  31916. TwitterIcon: () => TwitterIcon,
  31917. TypeIcon: () => TypeIcon,
  31918. UbuntuIcon: () => UbuntuIcon,
  31919. UndoIcon: () => UndoIcon,
  31920. UnfoldIcon: () => UnfoldIcon,
  31921. UnlockIcon: () => UnlockIcon,
  31922. UnpinIcon: () => UnpinIcon,
  31923. UploadIcon: () => UploadIcon,
  31924. UserAddIcon: () => UserAddIcon,
  31925. UserAltIcon: () => UserAltIcon,
  31926. UserIcon: () => UserIcon,
  31927. UsersIcon: () => UsersIcon,
  31928. VSCodeIcon: () => VSCodeIcon,
  31929. VerifiedIcon: () => VerifiedIcon,
  31930. VideoIcon: () => VideoIcon,
  31931. WandIcon: () => WandIcon,
  31932. WatchIcon: () => WatchIcon,
  31933. WindowsIcon: () => WindowsIcon,
  31934. WrenchIcon: () => WrenchIcon,
  31935. XIcon: () => XIcon,
  31936. YoutubeIcon: () => YoutubeIcon,
  31937. ZoomIcon: () => ZoomIcon,
  31938. ZoomOutIcon: () => ZoomOutIcon,
  31939. ZoomResetIcon: () => ZoomResetIcon,
  31940. iconList: () => iconList
  31941. });
  31942. var React255 = __toESM(require_react(), 1), iconList = [
  31943. {
  31944. name: "Images",
  31945. icons: [
  31946. "PhotoIcon",
  31947. "ComponentIcon",
  31948. "GridIcon",
  31949. "OutlineIcon",
  31950. "PhotoDragIcon",
  31951. "PhotoStabilizeIcon",
  31952. "CameraStabilizeIcon",
  31953. "GridAltIcon",
  31954. "SearchIcon",
  31955. "ZoomIcon",
  31956. "ZoomOutIcon",
  31957. "ZoomResetIcon",
  31958. "EyeIcon",
  31959. "EyeCloseIcon",
  31960. "LightningIcon",
  31961. "LightningOffIcon",
  31962. "MirrorIcon",
  31963. "GrowIcon",
  31964. "ContrastIcon",
  31965. "SwitchAltIcon",
  31966. "ContrastIgnoredIcon",
  31967. "PaintBrushIcon",
  31968. "PaintBrushAltIcon",
  31969. "RulerIcon",
  31970. "CameraIcon",
  31971. "VideoIcon",
  31972. "SpeakerIcon",
  31973. "PlayIcon",
  31974. "PlayBackIcon",
  31975. "PlayNextIcon",
  31976. "RewindIcon",
  31977. "FastForwardIcon",
  31978. "StopAltIcon",
  31979. "SunIcon",
  31980. "MoonIcon",
  31981. "StopAltHollowIcon",
  31982. "PlayHollowIcon",
  31983. "PlayAllHollowIcon",
  31984. "StopIcon",
  31985. "SideBySideIcon",
  31986. "StackedIcon"
  31987. ]
  31988. },
  31989. {
  31990. name: "Documents",
  31991. icons: [
  31992. "BookIcon",
  31993. "DocumentIcon",
  31994. "CopyIcon",
  31995. "FilesIcon",
  31996. "CategoryIcon",
  31997. "FolderIcon",
  31998. "PrintIcon",
  31999. "GraphLineIcon",
  32000. "CalendarIcon",
  32001. "GraphBarIcon",
  32002. "AlignLeftIcon",
  32003. "AlignRightIcon",
  32004. "FilterIcon",
  32005. "DocChartIcon",
  32006. "DocListIcon",
  32007. "DragIcon",
  32008. "MenuIcon"
  32009. ]
  32010. },
  32011. {
  32012. name: "Editing",
  32013. icons: [
  32014. "MarkupIcon",
  32015. "BoldIcon",
  32016. "ItalicIcon",
  32017. "PaperClipIcon",
  32018. "ListOrderedIcon",
  32019. "ListUnorderedIcon",
  32020. "ChecklistIcon",
  32021. "ParagraphIcon",
  32022. "MarkdownIcon"
  32023. ]
  32024. },
  32025. {
  32026. name: "Git",
  32027. icons: [
  32028. "RepoIcon",
  32029. "CommitIcon",
  32030. "BranchIcon",
  32031. "PullRequestIcon",
  32032. "MergeIcon"
  32033. ]
  32034. },
  32035. {
  32036. name: "OS",
  32037. icons: [
  32038. "AppleIcon",
  32039. "LinuxIcon",
  32040. "UbuntuIcon",
  32041. "WindowsIcon",
  32042. "ChromeIcon"
  32043. ]
  32044. },
  32045. {
  32046. name: "Logos",
  32047. icons: [
  32048. "StorybookIcon",
  32049. "AzureDevOpsIcon",
  32050. "BitbucketIcon",
  32051. "ChromaticIcon",
  32052. "ComponentDrivenIcon",
  32053. "DiscordIcon",
  32054. "FacebookIcon",
  32055. "FigmaIcon",
  32056. "GDriveIcon",
  32057. "GithubIcon",
  32058. "GitlabIcon",
  32059. "GoogleIcon",
  32060. "GraphqlIcon",
  32061. "MediumIcon",
  32062. "ReduxIcon",
  32063. "TwitterIcon",
  32064. "YoutubeIcon",
  32065. "VSCodeIcon",
  32066. "LinkedinIcon",
  32067. "XIcon"
  32068. ]
  32069. },
  32070. {
  32071. name: "Devices",
  32072. icons: [
  32073. "BrowserIcon",
  32074. "TabletIcon",
  32075. "MobileIcon",
  32076. "WatchIcon",
  32077. "SidebarIcon",
  32078. "SidebarAltIcon",
  32079. "SidebarAltToggleIcon",
  32080. "SidebarToggleIcon",
  32081. "BottomBarIcon",
  32082. "BottomBarToggleIcon",
  32083. "CPUIcon",
  32084. "DatabaseIcon",
  32085. "MemoryIcon",
  32086. "StructureIcon",
  32087. "BoxIcon",
  32088. "PowerIcon"
  32089. ]
  32090. },
  32091. {
  32092. name: "CRUD",
  32093. icons: [
  32094. "EditIcon",
  32095. "CogIcon",
  32096. "NutIcon",
  32097. "WrenchIcon",
  32098. "EllipsisIcon",
  32099. "WandIcon",
  32100. "SweepIcon",
  32101. "CheckIcon",
  32102. "FormIcon",
  32103. "BatchDenyIcon",
  32104. "BatchAcceptIcon",
  32105. "ControlsIcon",
  32106. "PlusIcon",
  32107. "CloseAltIcon",
  32108. "CrossIcon",
  32109. "TrashIcon",
  32110. "PinAltIcon",
  32111. "UnpinIcon",
  32112. "AddIcon",
  32113. "SubtractIcon",
  32114. "CloseIcon",
  32115. "DeleteIcon",
  32116. "PassedIcon",
  32117. "ChangedIcon",
  32118. "FailedIcon",
  32119. "ClearIcon",
  32120. "CommentIcon",
  32121. "CommentAddIcon",
  32122. "RequestChangeIcon",
  32123. "CommentsIcon",
  32124. "ChatIcon",
  32125. "LockIcon",
  32126. "UnlockIcon",
  32127. "KeyIcon",
  32128. "OutboxIcon",
  32129. "CreditIcon",
  32130. "ButtonIcon",
  32131. "TypeIcon",
  32132. "PointerDefaultIcon",
  32133. "PointerHandIcon",
  32134. "CommandIcon",
  32135. "SaveIcon",
  32136. "SortDownIcon",
  32137. "SortUpIcon",
  32138. "BugIcon",
  32139. "EditorIcon"
  32140. ]
  32141. },
  32142. {
  32143. name: "Communicate",
  32144. icons: [
  32145. "InfoIcon",
  32146. "QuestionIcon",
  32147. "SupportIcon",
  32148. "AlertIcon",
  32149. "AlertAltIcon",
  32150. "EmailIcon",
  32151. "PhoneIcon",
  32152. "LinkIcon",
  32153. "LinkBrokenIcon",
  32154. "BellIcon",
  32155. "RSSIcon",
  32156. "ShareAltIcon",
  32157. "ShareIcon",
  32158. "JumpToIcon",
  32159. "CircleHollowIcon",
  32160. "CircleIcon",
  32161. "BookmarkHollowIcon",
  32162. "BookmarkIcon",
  32163. "DiamondIcon",
  32164. "HeartHollowIcon",
  32165. "HeartIcon",
  32166. "StarHollowIcon",
  32167. "StarIcon",
  32168. "CertificateIcon",
  32169. "VerifiedIcon",
  32170. "ThumbsUpIcon",
  32171. "ShieldIcon",
  32172. "BasketIcon",
  32173. "BeakerIcon",
  32174. "HourglassIcon",
  32175. "FlagIcon",
  32176. "CloudHollowIcon",
  32177. "CloudIcon",
  32178. "StickerIcon",
  32179. "StatusFailIcon",
  32180. "StatusIcon",
  32181. "StatusWarnIcon",
  32182. "StatusPassIcon",
  32183. "GiftIcon",
  32184. "StatusNewIcon",
  32185. "PopOutIcon"
  32186. ]
  32187. },
  32188. {
  32189. name: "Wayfinding",
  32190. icons: [
  32191. "ChevronUpIcon",
  32192. "ChevronDownIcon",
  32193. "ChevronLeftIcon",
  32194. "ChevronRightIcon",
  32195. "ChevronSmallUpIcon",
  32196. "ChevronSmallDownIcon",
  32197. "ChevronSmallLeftIcon",
  32198. "ChevronSmallRightIcon",
  32199. "ArrowUpIcon",
  32200. "ArrowDownIcon",
  32201. "ArrowLeftIcon",
  32202. "ArrowRightIcon",
  32203. "ArrowTopLeftIcon",
  32204. "ArrowTopRightIcon",
  32205. "ArrowBottomLeftIcon",
  32206. "ArrowBottomRightIcon",
  32207. "ArrowSolidUpIcon",
  32208. "ArrowSolidDownIcon",
  32209. "ArrowSolidLeftIcon",
  32210. "ArrowSolidRightIcon",
  32211. "ExpandAltIcon",
  32212. "CollapseIcon",
  32213. "ExpandIcon",
  32214. "UnfoldIcon",
  32215. "TransferIcon",
  32216. "RedirectIcon",
  32217. "UndoIcon",
  32218. "ReplyIcon",
  32219. "SyncIcon",
  32220. "UploadIcon",
  32221. "DownloadIcon",
  32222. "BackIcon",
  32223. "ProceedIcon",
  32224. "RefreshIcon",
  32225. "GlobeIcon",
  32226. "CompassIcon",
  32227. "LocationIcon",
  32228. "PinIcon",
  32229. "TimeIcon",
  32230. "DashboardIcon",
  32231. "TimerIcon",
  32232. "HomeIcon",
  32233. "AdminIcon",
  32234. "DirectionIcon"
  32235. ]
  32236. },
  32237. {
  32238. name: "People",
  32239. icons: [
  32240. "UserIcon",
  32241. "UserAltIcon",
  32242. "UserAddIcon",
  32243. "UsersIcon",
  32244. "ProfileIcon",
  32245. "FaceHappyIcon",
  32246. "FaceNeutralIcon",
  32247. "FaceSadIcon",
  32248. "AccessibilityIcon",
  32249. "AccessibilityAltIcon",
  32250. "AccessibilityIgnoredIcon"
  32251. ]
  32252. }
  32253. ], PhotoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32254. "svg",
  32255. {
  32256. width: size,
  32257. height: size,
  32258. viewBox: "0 0 14 14",
  32259. fill: "none",
  32260. xmlns: "http://www.w3.org/2000/svg",
  32261. ref: forwardedRef,
  32262. ...props
  32263. },
  32264. React255.createElement(
  32265. "path",
  32266. {
  32267. fillRule: "evenodd",
  32268. clipRule: "evenodd",
  32269. d: "M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  32270. fill: color2
  32271. }
  32272. ),
  32273. React255.createElement(
  32274. "path",
  32275. {
  32276. fillRule: "evenodd",
  32277. clipRule: "evenodd",
  32278. d: "M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",
  32279. fill: color2
  32280. }
  32281. )
  32282. )), ComponentIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32283. "svg",
  32284. {
  32285. width: size,
  32286. height: size,
  32287. viewBox: "0 0 14 14",
  32288. fill: "none",
  32289. xmlns: "http://www.w3.org/2000/svg",
  32290. ref: forwardedRef,
  32291. ...props
  32292. },
  32293. React255.createElement(
  32294. "path",
  32295. {
  32296. fillRule: "evenodd",
  32297. clipRule: "evenodd",
  32298. d: "M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",
  32299. fill: color2
  32300. }
  32301. )
  32302. )), GridIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32303. "svg",
  32304. {
  32305. width: size,
  32306. height: size,
  32307. viewBox: "0 0 14 14",
  32308. fill: "none",
  32309. xmlns: "http://www.w3.org/2000/svg",
  32310. ref: forwardedRef,
  32311. ...props
  32312. },
  32313. React255.createElement(
  32314. "path",
  32315. {
  32316. fillRule: "evenodd",
  32317. clipRule: "evenodd",
  32318. d: "M1 1.504a.5.5 0 01.5-.5H6a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H1.5a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5h3.5v3.5H2zM7.5 1.504a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5zM1.5 7.504a.5.5 0 00-.5.5v4.5a.5.5 0 00.5.5H6a.5.5 0 00.5-.5v-4.5a.5.5 0 00-.5-.5H1.5zm.5 1v3.5h3.5v-3.5H2zM7.5 8.004a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5z",
  32319. fill: color2
  32320. }
  32321. )
  32322. )), OutlineIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32323. "svg",
  32324. {
  32325. width: size,
  32326. height: size,
  32327. viewBox: "0 0 14 14",
  32328. fill: "none",
  32329. xmlns: "http://www.w3.org/2000/svg",
  32330. ref: forwardedRef,
  32331. ...props
  32332. },
  32333. React255.createElement(
  32334. "path",
  32335. {
  32336. d: "M2 2.004v2H1v-2.5a.5.5 0 01.5-.5H4v1H2zM1 9.004v-4h1v4H1zM1 10.004v2.5a.5.5 0 00.5.5H4v-1H2v-2H1zM10 13.004h2.5a.5.5 0 00.5-.5v-2.5h-1v2h-2v1zM12 4.004h1v-2.5a.5.5 0 00-.5-.5H10v1h2v2zM9 12.004v1H5v-1h4zM9 1.004v1H5v-1h4zM13 9.004h-1v-4h1v4zM7 8.004a1 1 0 100-2 1 1 0 000 2z",
  32337. fill: color2
  32338. }
  32339. )
  32340. )), PhotoDragIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32341. "svg",
  32342. {
  32343. width: size,
  32344. height: size,
  32345. viewBox: "0 0 14 15",
  32346. fill: "none",
  32347. xmlns: "http://www.w3.org/2000/svg",
  32348. ref: forwardedRef,
  32349. ...props
  32350. },
  32351. React255.createElement(
  32352. "path",
  32353. {
  32354. fillRule: "evenodd",
  32355. clipRule: "evenodd",
  32356. d: "M8.25 3.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  32357. fill: color2
  32358. }
  32359. ),
  32360. React255.createElement(
  32361. "path",
  32362. {
  32363. fillRule: "evenodd",
  32364. clipRule: "evenodd",
  32365. d: "M14 7.003v-6.5a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v2.5h1v-2h2v6.5a.5.5 0 00.5.5H10v2H8v1h2.5a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-3.5zm-10-6v5.794L5.646 5.15a.5.5 0 01.708 0L7.5 6.297l2.646-2.647a.5.5 0 01.708 0L13 5.797V1.004H4zm9 6.208l-2.5-2.5-2.293 2.293L9.354 8.15a.5.5 0 11-.708.707L6 6.211l-2 2v1.793h9V7.21z",
  32366. fill: color2
  32367. }
  32368. ),
  32369. React255.createElement(
  32370. "path",
  32371. {
  32372. d: "M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z",
  32373. fill: color2
  32374. }
  32375. )
  32376. )), PhotoStabilizeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32377. "svg",
  32378. {
  32379. width: size,
  32380. height: size,
  32381. viewBox: "0 0 14 14",
  32382. fill: "none",
  32383. xmlns: "http://www.w3.org/2000/svg",
  32384. ref: forwardedRef,
  32385. ...props
  32386. },
  32387. React255.createElement(
  32388. "path",
  32389. {
  32390. fillRule: "evenodd",
  32391. clipRule: "evenodd",
  32392. d: "M6 4a1.25 1.25 0 110 2.5A1.25 1.25 0 016 4zm0 .5A.75.75 0 106 6a.75.75 0 000-1.5z",
  32393. fill: color2
  32394. }
  32395. ),
  32396. React255.createElement(
  32397. "path",
  32398. {
  32399. fillRule: "evenodd",
  32400. clipRule: "evenodd",
  32401. d: "M11.5 2a.5.5 0 01.5.5v9a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h9zM7.207 9l.647.646a.5.5 0 01-.708.707L5 8.207l-2 2V11h8V8.207l-1.5-1.5L7.207 9zM3 8.793l1.646-1.647.079-.064a.5.5 0 01.629.064L6.5 8.293l2.646-2.647.079-.064a.5.5 0 01.629.064L11 6.793V3H3v5.793z",
  32402. fill: color2
  32403. }
  32404. ),
  32405. React255.createElement(
  32406. "path",
  32407. {
  32408. d: "M0 3.5v-1A2.5 2.5 0 012.5 0h1a.5.5 0 010 1h-1A1.5 1.5 0 001 2.5v1a.5.5 0 01-1 0zM10.5 0h1A2.5 2.5 0 0114 2.5v1a.5.5 0 01-1 0v-1A1.5 1.5 0 0011.5 1h-1a.5.5 0 010-1zM0 10.5v1A2.5 2.5 0 002.5 14h1a.5.5 0 000-1h-1A1.5 1.5 0 011 11.5v-1a.5.5 0 00-1 0zM10.5 14h1a2.5 2.5 0 002.5-2.5v-1a.5.5 0 00-1 0v1a1.5 1.5 0 01-1.5 1.5h-1a.5.5 0 000 1z",
  32409. fill: color2
  32410. }
  32411. )
  32412. )), CameraStabilizeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32413. "svg",
  32414. {
  32415. width: size,
  32416. height: size,
  32417. viewBox: "0 0 14 14",
  32418. fill: "none",
  32419. xmlns: "http://www.w3.org/2000/svg",
  32420. ref: forwardedRef,
  32421. ...props
  32422. },
  32423. React255.createElement("g", { clipPath: "url(#prefix__clip0_2484_400)", fill: color2 }, React255.createElement("path", { d: "M2.5 1A1.5 1.5 0 001 2.5v1a.5.5 0 01-1 0v-1A2.5 2.5 0 012.5 0h1a.5.5 0 010 1h-1zM8 7a1 1 0 11-2 0 1 1 0 012 0z" }), React255.createElement(
  32424. "path",
  32425. {
  32426. fillRule: "evenodd",
  32427. clipRule: "evenodd",
  32428. d: "M5.852 2.223A.5.5 0 016.268 2h1.464a.5.5 0 01.416.223L9.333 4H11.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5h2.167l1.185-1.777zM9 7a2 2 0 11-4 0 2 2 0 014 0z"
  32429. }
  32430. ), React255.createElement("path", { d: "M11.5 1A1.5 1.5 0 0113 2.5v1a.5.5 0 001 0v-1A2.5 2.5 0 0011.5 0h-1a.5.5 0 000 1h1zM2.5 13A1.5 1.5 0 011 11.5v-1a.5.5 0 00-1 0v1A2.5 2.5 0 002.5 14h1a.5.5 0 000-1h-1zM11.5 13a1.5 1.5 0 001.5-1.5v-1a.5.5 0 011 0v1a2.5 2.5 0 01-2.5 2.5h-1a.5.5 0 010-1h1z" })),
  32431. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_2484_400" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  32432. )), GridAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32433. "svg",
  32434. {
  32435. width: size,
  32436. height: size,
  32437. viewBox: "0 0 14 14",
  32438. fill: "none",
  32439. xmlns: "http://www.w3.org/2000/svg",
  32440. ref: forwardedRef,
  32441. ...props
  32442. },
  32443. React255.createElement(
  32444. "path",
  32445. {
  32446. d: "M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z",
  32447. fill: color2
  32448. }
  32449. )
  32450. )), SearchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32451. "svg",
  32452. {
  32453. width: size,
  32454. height: size,
  32455. viewBox: "0 0 14 14",
  32456. fill: "none",
  32457. xmlns: "http://www.w3.org/2000/svg",
  32458. ref: forwardedRef,
  32459. ...props
  32460. },
  32461. React255.createElement(
  32462. "path",
  32463. {
  32464. fillRule: "evenodd",
  32465. clipRule: "evenodd",
  32466. d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",
  32467. fill: color2
  32468. }
  32469. )
  32470. )), ZoomIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32471. "svg",
  32472. {
  32473. width: size,
  32474. height: size,
  32475. viewBox: "0 0 14 14",
  32476. fill: "none",
  32477. xmlns: "http://www.w3.org/2000/svg",
  32478. ref: forwardedRef,
  32479. ...props
  32480. },
  32481. React255.createElement(
  32482. "path",
  32483. {
  32484. d: "M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",
  32485. fill: color2
  32486. }
  32487. ),
  32488. React255.createElement(
  32489. "path",
  32490. {
  32491. fillRule: "evenodd",
  32492. clipRule: "evenodd",
  32493. d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",
  32494. fill: color2
  32495. }
  32496. )
  32497. )), ZoomOutIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32498. "svg",
  32499. {
  32500. width: size,
  32501. height: size,
  32502. viewBox: "0 0 14 14",
  32503. fill: "none",
  32504. xmlns: "http://www.w3.org/2000/svg",
  32505. ref: forwardedRef,
  32506. ...props
  32507. },
  32508. React255.createElement("path", { d: "M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z", fill: color2 }),
  32509. React255.createElement(
  32510. "path",
  32511. {
  32512. fillRule: "evenodd",
  32513. clipRule: "evenodd",
  32514. d: "M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",
  32515. fill: color2
  32516. }
  32517. )
  32518. )), ZoomResetIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32519. "svg",
  32520. {
  32521. width: size,
  32522. height: size,
  32523. viewBox: "0 0 14 14",
  32524. fill: "none",
  32525. xmlns: "http://www.w3.org/2000/svg",
  32526. ref: forwardedRef,
  32527. ...props
  32528. },
  32529. React255.createElement(
  32530. "path",
  32531. {
  32532. d: "M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",
  32533. fill: color2
  32534. }
  32535. )
  32536. )), EyeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32537. "svg",
  32538. {
  32539. width: size,
  32540. height: size,
  32541. viewBox: "0 0 14 14",
  32542. fill: "none",
  32543. xmlns: "http://www.w3.org/2000/svg",
  32544. ref: forwardedRef,
  32545. ...props
  32546. },
  32547. React255.createElement("path", { d: "M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z", fill: color2 }),
  32548. React255.createElement(
  32549. "path",
  32550. {
  32551. fillRule: "evenodd",
  32552. clipRule: "evenodd",
  32553. d: "M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",
  32554. fill: color2
  32555. }
  32556. )
  32557. )), EyeCloseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32558. "svg",
  32559. {
  32560. width: size,
  32561. height: size,
  32562. viewBox: "0 0 14 14",
  32563. fill: "none",
  32564. xmlns: "http://www.w3.org/2000/svg",
  32565. ref: forwardedRef,
  32566. ...props
  32567. },
  32568. React255.createElement(
  32569. "path",
  32570. {
  32571. d: "M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",
  32572. fill: color2
  32573. }
  32574. ),
  32575. React255.createElement(
  32576. "path",
  32577. {
  32578. d: "M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",
  32579. fill: color2
  32580. }
  32581. )
  32582. )), LightningIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32583. "svg",
  32584. {
  32585. width: size,
  32586. height: size,
  32587. viewBox: "0 0 14 14",
  32588. fill: "none",
  32589. xmlns: "http://www.w3.org/2000/svg",
  32590. ref: forwardedRef,
  32591. ...props
  32592. },
  32593. React255.createElement(
  32594. "path",
  32595. {
  32596. fillRule: "evenodd",
  32597. clipRule: "evenodd",
  32598. d: "M2.522 6.6a.566.566 0 00-.176.544.534.534 0 00.382.41l2.781.721-1.493 5.013a.563.563 0 00.216.627.496.496 0 00.63-.06l6.637-6.453a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L2.522 6.6zm7.72.63l-3.067-.804L9.02 2.29 3.814 6.803l2.95.764-1.277 4.285 4.754-4.622zM4.51 13.435l.037.011-.037-.011z",
  32599. fill: color2
  32600. }
  32601. )
  32602. )), LightningOffIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32603. "svg",
  32604. {
  32605. width: size,
  32606. height: size,
  32607. viewBox: "0 0 14 14",
  32608. fill: "none",
  32609. xmlns: "http://www.w3.org/2000/svg",
  32610. ref: forwardedRef,
  32611. ...props
  32612. },
  32613. React255.createElement(
  32614. "path",
  32615. {
  32616. d: "M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",
  32617. fill: color2
  32618. }
  32619. )
  32620. )), MirrorIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32621. "svg",
  32622. {
  32623. width: size,
  32624. height: size,
  32625. viewBox: "0 0 14 14",
  32626. fill: "none",
  32627. xmlns: "http://www.w3.org/2000/svg",
  32628. ref: forwardedRef,
  32629. ...props
  32630. },
  32631. React255.createElement(
  32632. "path",
  32633. {
  32634. fillRule: "evenodd",
  32635. clipRule: "evenodd",
  32636. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5h10v-10l-10 10z",
  32637. fill: color2
  32638. }
  32639. )
  32640. )), GrowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32641. "svg",
  32642. {
  32643. width: size,
  32644. height: size,
  32645. viewBox: "0 0 14 14",
  32646. fill: "none",
  32647. xmlns: "http://www.w3.org/2000/svg",
  32648. ref: forwardedRef,
  32649. ...props
  32650. },
  32651. React255.createElement(
  32652. "path",
  32653. {
  32654. d: "M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z",
  32655. fill: color2
  32656. }
  32657. ),
  32658. React255.createElement(
  32659. "path",
  32660. {
  32661. d: "M1 3.504a.5.5 0 01.5-.5H10a1 1 0 011 1v8.5a.5.5 0 01-1 0v-8.5H1.5a.5.5 0 01-.5-.5z",
  32662. fill: color2
  32663. }
  32664. ),
  32665. React255.createElement(
  32666. "path",
  32667. {
  32668. fillRule: "evenodd",
  32669. clipRule: "evenodd",
  32670. d: "M1.5 5.004a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5h-7zm.5 1v6h6v-6H2z",
  32671. fill: color2
  32672. }
  32673. )
  32674. )), ContrastIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32675. "svg",
  32676. {
  32677. width: size,
  32678. height: size,
  32679. viewBox: "0 0 14 15",
  32680. fill: "none",
  32681. xmlns: "http://www.w3.org/2000/svg",
  32682. ref: forwardedRef,
  32683. ...props
  32684. },
  32685. React255.createElement(
  32686. "path",
  32687. {
  32688. fillRule: "evenodd",
  32689. clipRule: "evenodd",
  32690. d: "M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",
  32691. fill: color2
  32692. }
  32693. )
  32694. )), SwitchAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32695. "svg",
  32696. {
  32697. width: size,
  32698. height: size,
  32699. viewBox: "0 0 14 15",
  32700. fill: "none",
  32701. xmlns: "http://www.w3.org/2000/svg",
  32702. ref: forwardedRef,
  32703. ...props
  32704. },
  32705. React255.createElement(
  32706. "path",
  32707. {
  32708. fillRule: "evenodd",
  32709. clipRule: "evenodd",
  32710. d: "M3 3.004v-2.5a.5.5 0 01.5-.5h10a.5.5 0 01.5.5v10a.5.5 0 01-.5.5H11v2.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H3zm1 0v-2h9v9h-2v-6.5a.5.5 0 00-.5-.5H4zm6 8v2H1v-9h2v6.5a.5.5 0 00.5.5H10zm0-1H4v-6h6v6z",
  32711. fill: color2
  32712. }
  32713. )
  32714. )), ContrastIgnoredIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32715. "svg",
  32716. {
  32717. width: size,
  32718. height: size,
  32719. viewBox: "0 0 14 14",
  32720. fill: "none",
  32721. xmlns: "http://www.w3.org/2000/svg",
  32722. ref: forwardedRef,
  32723. ...props
  32724. },
  32725. React255.createElement(
  32726. "g",
  32727. {
  32728. clipPath: "url(#prefix__clip0_2359_559)",
  32729. fillRule: "evenodd",
  32730. clipRule: "evenodd",
  32731. fill: color2
  32732. },
  32733. React255.createElement("path", { d: "M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h7.176a4.526 4.526 0 01-.916-1H1v-9h2v6.5a.499.499 0 00.497.5h2.531a4.548 4.548 0 01-.001-1h-1.32l2.16-2.16c.274-.374.603-.703.977-.977L10 4.711v1.316a4.552 4.552 0 011 0V3.504a.48.48 0 00-.038-.191.5.5 0 00-.462-.31H4v-2h9v5.755c.378.253.715.561 1 .913V.504a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm5.293 0H7.707L4 7.71v1.586l5.293-5.293z" }),
  32734. React255.createElement("path", { d: "M14 10.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-5.5 0A.5.5 0 019 10h3a.5.5 0 010 1H9a.5.5 0 01-.5-.5z" })
  32735. ),
  32736. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_2359_559" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  32737. )), PaintBrushIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32738. "svg",
  32739. {
  32740. width: size,
  32741. height: size,
  32742. viewBox: "0 0 14 14",
  32743. fill: "none",
  32744. xmlns: "http://www.w3.org/2000/svg",
  32745. ref: forwardedRef,
  32746. ...props
  32747. },
  32748. React255.createElement(
  32749. "path",
  32750. {
  32751. fillRule: "evenodd",
  32752. clipRule: "evenodd",
  32753. d: "M11.854.146a.5.5 0 00-.708 0L2.983 8.31a2.24 2.24 0 00-1.074.6C.677 10.14.24 11.902.085 12.997 0 13.6 0 14 0 14s.4 0 1.002-.085c1.095-.155 2.857-.592 4.089-1.824a2.24 2.24 0 00.6-1.074l8.163-8.163a.5.5 0 000-.708l-2-2zM5.6 9.692l.942-.942L5.25 7.457l-.942.943A2.242 2.242 0 015.6 9.692zm1.649-1.65L12.793 2.5 11.5 1.207 5.957 6.75 7.25 8.043zM4.384 9.617a1.25 1.25 0 010 1.768c-.767.766-1.832 1.185-2.78 1.403-.17.04-.335.072-.49.098.027-.154.06-.318.099-.49.219-.947.637-2.012 1.403-2.779a1.25 1.25 0 011.768 0z",
  32754. fill: color2
  32755. }
  32756. )
  32757. )), PaintBrushAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32758. "svg",
  32759. {
  32760. width: size,
  32761. height: size,
  32762. viewBox: "0 0 14 14",
  32763. fill: "none",
  32764. xmlns: "http://www.w3.org/2000/svg",
  32765. ref: forwardedRef,
  32766. ...props
  32767. },
  32768. React255.createElement(
  32769. "path",
  32770. {
  32771. fillRule: "evenodd",
  32772. clipRule: "evenodd",
  32773. d: "M10.027.271a.752.752 0 01.947 0l.057.052 2.646 2.647.052.056a.752.752 0 010 .948l-.052.056-4.47 4.47 1.147 1.146.293-.293a.5.5 0 01.707 0l2.293 2.293a.5.5 0 010 .707l-1.293 1.293-.078.065a.502.502 0 01-.55 0l-.08-.065-2.292-2.293a.5.5 0 010-.707l.293-.293L8.324 9.03a.75.75 0 010-1.06l4.47-4.47L10.5 1.207l-.647.646.086.086a1.5 1.5 0 010 2.122L4.5 9.5l-.177.183C2.592 11.53 4 12.03 4 13a1 1 0 01-2 0c0-1 1.464-1.537 0-3l.003-.004-.063-.057-.879-.879a1.5 1.5 0 01-.103-2.006l.103-.115L6.94 1.061a1.5 1.5 0 012.121 0l.086.085.823-.823.057-.052zM10.415 11L12 12.586l.585-.586-1.585-1.586-.586.586zM8.354 1.768a.5.5 0 00-.629-.064l-.078.064L2.32 7.094c.782.138 2.263-.097 3.52-.349l3.393-3.392.063-.078a.501.501 0 000-.55l-.063-.079-.879-.878z",
  32774. fill: color2
  32775. }
  32776. )
  32777. )), RulerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32778. "svg",
  32779. {
  32780. width: size,
  32781. height: size,
  32782. viewBox: "0 0 14 14",
  32783. fill: "none",
  32784. xmlns: "http://www.w3.org/2000/svg",
  32785. ref: forwardedRef,
  32786. ...props
  32787. },
  32788. React255.createElement(
  32789. "path",
  32790. {
  32791. d: "M1.5 1.004a.5.5 0 01.5.5v.5h10v-.5a.5.5 0 011 0v2a.5.5 0 01-1 0v-.5H2v.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5z",
  32792. fill: color2
  32793. }
  32794. ),
  32795. React255.createElement(
  32796. "path",
  32797. {
  32798. fillRule: "evenodd",
  32799. clipRule: "evenodd",
  32800. d: "M1.5 6a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5h-11zM2 7v5h10V7h-1v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H7.5v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H4v2.5a.5.5 0 01-1 0V7H2z",
  32801. fill: color2
  32802. }
  32803. )
  32804. )), CameraIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32805. "svg",
  32806. {
  32807. width: size,
  32808. height: size,
  32809. viewBox: "0 0 14 14",
  32810. fill: "none",
  32811. xmlns: "http://www.w3.org/2000/svg",
  32812. ref: forwardedRef,
  32813. ...props
  32814. },
  32815. React255.createElement(
  32816. "path",
  32817. {
  32818. fillRule: "evenodd",
  32819. clipRule: "evenodd",
  32820. d: "M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z",
  32821. fill: color2
  32822. }
  32823. ),
  32824. React255.createElement(
  32825. "path",
  32826. {
  32827. fillRule: "evenodd",
  32828. clipRule: "evenodd",
  32829. d: "M2.5 1a.5.5 0 00-.5.5v.504H.5a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H6V1.5a.5.5 0 00-.5-.5h-3zM1 3.004v8h12v-8H1z",
  32830. fill: color2
  32831. }
  32832. )
  32833. )), VideoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32834. "svg",
  32835. {
  32836. width: size,
  32837. height: size,
  32838. viewBox: "0 0 14 14",
  32839. fill: "none",
  32840. xmlns: "http://www.w3.org/2000/svg",
  32841. ref: forwardedRef,
  32842. ...props
  32843. },
  32844. React255.createElement("path", { d: "M2.5 10a.5.5 0 100-1 .5.5 0 000 1z", fill: color2 }),
  32845. React255.createElement(
  32846. "path",
  32847. {
  32848. fillRule: "evenodd",
  32849. clipRule: "evenodd",
  32850. d: "M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",
  32851. fill: color2
  32852. }
  32853. )
  32854. )), SpeakerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32855. "svg",
  32856. {
  32857. width: size,
  32858. height: size,
  32859. viewBox: "0 0 14 14",
  32860. fill: "none",
  32861. xmlns: "http://www.w3.org/2000/svg",
  32862. ref: forwardedRef,
  32863. ...props
  32864. },
  32865. React255.createElement(
  32866. "path",
  32867. {
  32868. fillRule: "evenodd",
  32869. clipRule: "evenodd",
  32870. d: "M1 4.5v5a.5.5 0 00.5.5H4l3.17 2.775a.5.5 0 00.83-.377V1.602a.5.5 0 00-.83-.376L4 4H1.5a.5.5 0 00-.5.5zM4 9V5H2v4h2zm.998.545A.504.504 0 005 9.5v-5c0-.015 0-.03-.002-.044L7 2.704v8.592L4.998 9.545z",
  32871. fill: color2
  32872. }
  32873. ),
  32874. React255.createElement(
  32875. "path",
  32876. {
  32877. d: "M10.15 1.752a.5.5 0 00-.3.954 4.502 4.502 0 010 8.588.5.5 0 00.3.954 5.502 5.502 0 000-10.496z",
  32878. fill: color2
  32879. }
  32880. ),
  32881. React255.createElement(
  32882. "path",
  32883. {
  32884. d: "M10.25 3.969a.5.5 0 00-.5.865 2.499 2.499 0 010 4.332.5.5 0 10.5.866 3.499 3.499 0 000-6.063z",
  32885. fill: color2
  32886. }
  32887. )
  32888. )), PlayIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32889. "svg",
  32890. {
  32891. width: size,
  32892. height: size,
  32893. viewBox: "0 0 14 14",
  32894. fill: "none",
  32895. xmlns: "http://www.w3.org/2000/svg",
  32896. ref: forwardedRef,
  32897. ...props
  32898. },
  32899. React255.createElement(
  32900. "path",
  32901. {
  32902. d: "M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",
  32903. fill: color2
  32904. }
  32905. )
  32906. )), PlayBackIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32907. "svg",
  32908. {
  32909. width: size,
  32910. height: size,
  32911. viewBox: "0 0 14 14",
  32912. fill: "none",
  32913. xmlns: "http://www.w3.org/2000/svg",
  32914. ref: forwardedRef,
  32915. ...props
  32916. },
  32917. React255.createElement(
  32918. "path",
  32919. {
  32920. d: "M11.24 12.035L3.697 7.427A.494.494 0 013.5 7.2v4.05a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0V6.8a.494.494 0 01.198-.227l7.541-4.608A.5.5 0 0112 2.39v9.217a.5.5 0 01-.76.427z",
  32921. fill: color2
  32922. }
  32923. )
  32924. )), PlayNextIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32925. "svg",
  32926. {
  32927. width: size,
  32928. height: size,
  32929. viewBox: "0 0 14 14",
  32930. fill: "none",
  32931. xmlns: "http://www.w3.org/2000/svg",
  32932. ref: forwardedRef,
  32933. ...props
  32934. },
  32935. React255.createElement(
  32936. "path",
  32937. {
  32938. d: "M2.76 12.035l7.542-4.608A.495.495 0 0010.5 7.2v4.05a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0V6.8a.495.495 0 00-.198-.227L2.76 1.965A.5.5 0 002 2.39v9.217a.5.5 0 00.76.427z",
  32939. fill: color2
  32940. }
  32941. )
  32942. )), RewindIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32943. "svg",
  32944. {
  32945. width: size,
  32946. height: size,
  32947. viewBox: "0 0 14 14",
  32948. fill: "none",
  32949. xmlns: "http://www.w3.org/2000/svg",
  32950. ref: forwardedRef,
  32951. ...props
  32952. },
  32953. React255.createElement(
  32954. "path",
  32955. {
  32956. d: "M9 2.42v2.315l4.228-2.736a.5.5 0 01.772.42v9.162a.5.5 0 01-.772.42L9 9.263v2.317a.5.5 0 01-.772.42L1.5 7.647v3.603a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0v3.603L8.228 2A.5.5 0 019 2.42z",
  32957. fill: color2
  32958. }
  32959. )
  32960. )), FastForwardIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32961. "svg",
  32962. {
  32963. width: size,
  32964. height: size,
  32965. viewBox: "0 0 14 14",
  32966. fill: "none",
  32967. xmlns: "http://www.w3.org/2000/svg",
  32968. ref: forwardedRef,
  32969. ...props
  32970. },
  32971. React255.createElement(
  32972. "path",
  32973. {
  32974. d: "M5 2.42v2.315L.772 1.999a.5.5 0 00-.772.42v9.162a.5.5 0 00.772.42L5 9.263v2.317a.5.5 0 00.772.42L12.5 7.647v3.603a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0v3.603L5.772 2A.5.5 0 005 2.42z",
  32975. fill: color2
  32976. }
  32977. )
  32978. )), StopAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32979. "svg",
  32980. {
  32981. width: size,
  32982. height: size,
  32983. viewBox: "0 0 14 14",
  32984. fill: "none",
  32985. xmlns: "http://www.w3.org/2000/svg",
  32986. ref: forwardedRef,
  32987. ...props
  32988. },
  32989. React255.createElement(
  32990. "path",
  32991. {
  32992. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",
  32993. fill: color2
  32994. }
  32995. )
  32996. )), SunIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32997. "svg",
  32998. {
  32999. width: size,
  33000. height: size,
  33001. viewBox: "0 0 14 14",
  33002. fill: "none",
  33003. xmlns: "http://www.w3.org/2000/svg",
  33004. ref: forwardedRef,
  33005. ...props
  33006. },
  33007. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3492)", fill: color2 }, React255.createElement("path", { d: "M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z" }), React255.createElement(
  33008. "path",
  33009. {
  33010. fillRule: "evenodd",
  33011. clipRule: "evenodd",
  33012. d: "M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z"
  33013. }
  33014. ), React255.createElement("path", { d: "M7 11.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5zM11.5 7a.5.5 0 01.5-.5h1.5a.5.5 0 010 1H12a.5.5 0 01-.5-.5zM.5 6.5a.5.5 0 000 1H2a.5.5 0 000-1H.5zM3.818 10.182a.5.5 0 010 .707l-1.06 1.06a.5.5 0 11-.708-.706l1.06-1.06a.5.5 0 01.708 0zM11.95 2.757a.5.5 0 10-.707-.707l-1.061 1.061a.5.5 0 10.707.707l1.06-1.06zM10.182 10.182a.5.5 0 01.707 0l1.06 1.06a.5.5 0 11-.706.708l-1.061-1.06a.5.5 0 010-.708zM2.757 2.05a.5.5 0 10-.707.707l1.06 1.061a.5.5 0 00.708-.707l-1.06-1.06z" })),
  33015. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3492" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33016. )), MoonIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33017. "svg",
  33018. {
  33019. width: size,
  33020. height: size,
  33021. viewBox: "0 0 14 14",
  33022. fill: "none",
  33023. xmlns: "http://www.w3.org/2000/svg",
  33024. ref: forwardedRef,
  33025. ...props
  33026. },
  33027. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3493)" }, React255.createElement(
  33028. "path",
  33029. {
  33030. fillRule: "evenodd",
  33031. clipRule: "evenodd",
  33032. d: "M7.78.044A6.968 6.968 0 003.5.94a6.999 6.999 0 107 12.122 6.97 6.97 0 002.87-3.16c.098-.213-.144-.417-.359-.322a4.976 4.976 0 01-2.01.42A5 5 0 018.542.645C8.747.53 8.73.214 8.5.164a7.042 7.042 0 00-.72-.12zm-1.268.975a6 6 0 004.98 9.96 6 6 0 11-4.98-9.96z",
  33033. fill: color2
  33034. }
  33035. )),
  33036. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3493" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33037. )), StopAltHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33038. "svg",
  33039. {
  33040. width: size,
  33041. height: size,
  33042. viewBox: "0 0 14 14",
  33043. fill: "none",
  33044. xmlns: "http://www.w3.org/2000/svg",
  33045. ref: forwardedRef,
  33046. ...props
  33047. },
  33048. React255.createElement(
  33049. "path",
  33050. {
  33051. fillRule: "evenodd",
  33052. clipRule: "evenodd",
  33053. d: "M2.2 2.204v9.6h9.6v-9.6H2.2zm-.7-1.2a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11z",
  33054. fill: color2
  33055. }
  33056. )
  33057. )), PlayHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33058. "svg",
  33059. {
  33060. width: size,
  33061. height: size,
  33062. viewBox: "0 0 14 14",
  33063. fill: "none",
  33064. xmlns: "http://www.w3.org/2000/svg",
  33065. ref: forwardedRef,
  33066. ...props
  33067. },
  33068. React255.createElement(
  33069. "path",
  33070. {
  33071. fillRule: "evenodd",
  33072. clipRule: "evenodd",
  33073. d: "M4.2 10.88L10.668 7 4.2 3.12v7.76zM3 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L4.212 1.727A.8.8 0 003 2.413z",
  33074. fill: color2
  33075. }
  33076. )
  33077. )), PlayAllHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33078. "svg",
  33079. {
  33080. width: size,
  33081. height: size,
  33082. viewBox: "0 0 14 14",
  33083. fill: "none",
  33084. xmlns: "http://www.w3.org/2000/svg",
  33085. ref: forwardedRef,
  33086. ...props
  33087. },
  33088. React255.createElement(
  33089. "path",
  33090. {
  33091. fillRule: "evenodd",
  33092. clipRule: "evenodd",
  33093. d: "M5.2 10.88L11.668 7 5.2 3.12v7.76zM4 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L5.212 1.727A.8.8 0 004 2.413zM1.5 1.6a.6.6 0 01.6.6v9.6a.6.6 0 11-1.2 0V2.2a.6.6 0 01.6-.6z",
  33094. fill: color2
  33095. }
  33096. ),
  33097. React255.createElement(
  33098. "path",
  33099. {
  33100. fillRule: "evenodd",
  33101. clipRule: "evenodd",
  33102. d: "M.963 1.932a.6.6 0 01.805-.268l1 .5a.6.6 0 01-.536 1.073l-1-.5a.6.6 0 01-.269-.805zM3.037 11.132a.6.6 0 01-.269.805l-1 .5a.6.6 0 01-.536-1.073l1-.5a.6.6 0 01.805.268z",
  33103. fill: color2
  33104. }
  33105. )
  33106. )), StopIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33107. "svg",
  33108. {
  33109. width: size,
  33110. height: size,
  33111. viewBox: "0 0 14 14",
  33112. fill: "none",
  33113. xmlns: "http://www.w3.org/2000/svg",
  33114. ref: forwardedRef,
  33115. ...props
  33116. },
  33117. React255.createElement(
  33118. "path",
  33119. {
  33120. d: "M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",
  33121. fill: color2
  33122. }
  33123. ),
  33124. React255.createElement(
  33125. "path",
  33126. {
  33127. fillRule: "evenodd",
  33128. clipRule: "evenodd",
  33129. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  33130. fill: color2
  33131. }
  33132. )
  33133. )), SideBySideIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33134. "svg",
  33135. {
  33136. width: size,
  33137. height: size,
  33138. viewBox: "0 0 14 14",
  33139. fill: "none",
  33140. xmlns: "http://www.w3.org/2000/svg",
  33141. ref: forwardedRef,
  33142. ...props
  33143. },
  33144. React255.createElement(
  33145. "path",
  33146. {
  33147. fillRule: "evenodd",
  33148. clipRule: "evenodd",
  33149. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5v-10h5v10H2z",
  33150. fill: color2
  33151. }
  33152. )
  33153. )), StackedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33154. "svg",
  33155. {
  33156. width: size,
  33157. height: size,
  33158. viewBox: "0 0 14 14",
  33159. fill: "none",
  33160. xmlns: "http://www.w3.org/2000/svg",
  33161. ref: forwardedRef,
  33162. ...props
  33163. },
  33164. React255.createElement(
  33165. "path",
  33166. {
  33167. fillRule: "evenodd",
  33168. clipRule: "evenodd",
  33169. d: "M12.5 1.004a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11zm-10.5 1h10v5H2v-5z",
  33170. fill: color2
  33171. }
  33172. )
  33173. )), BookIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33174. "svg",
  33175. {
  33176. width: size,
  33177. height: size,
  33178. viewBox: "0 0 14 14",
  33179. fill: "none",
  33180. xmlns: "http://www.w3.org/2000/svg",
  33181. ref: forwardedRef,
  33182. ...props
  33183. },
  33184. React255.createElement(
  33185. "path",
  33186. {
  33187. fillRule: "evenodd",
  33188. clipRule: "evenodd",
  33189. d: "M13 2a2 2 0 00-2-2H1.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5H11a2 2 0 002-2V2zM3 13h8a1 1 0 001-1V2a1 1 0 00-1-1H7v6.004a.5.5 0 01-.856.352l-.002-.002L5.5 6.71l-.645.647A.5.5 0 014 7.009V1H3v12zM5 1v4.793l.146-.146a.5.5 0 01.743.039l.111.11V1H5z",
  33190. fill: color2
  33191. }
  33192. )
  33193. )), DocumentIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33194. "svg",
  33195. {
  33196. width: size,
  33197. height: size,
  33198. viewBox: "0 0 14 14",
  33199. fill: "none",
  33200. xmlns: "http://www.w3.org/2000/svg",
  33201. ref: forwardedRef,
  33202. ...props
  33203. },
  33204. React255.createElement(
  33205. "path",
  33206. {
  33207. d: "M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",
  33208. fill: color2
  33209. }
  33210. ),
  33211. React255.createElement(
  33212. "path",
  33213. {
  33214. fillRule: "evenodd",
  33215. clipRule: "evenodd",
  33216. d: "M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",
  33217. fill: color2
  33218. }
  33219. )
  33220. )), CopyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33221. "svg",
  33222. {
  33223. width: size,
  33224. height: size,
  33225. viewBox: "0 0 14 15",
  33226. fill: "none",
  33227. xmlns: "http://www.w3.org/2000/svg",
  33228. ref: forwardedRef,
  33229. ...props
  33230. },
  33231. React255.createElement(
  33232. "path",
  33233. {
  33234. fillRule: "evenodd",
  33235. clipRule: "evenodd",
  33236. d: "M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",
  33237. fill: color2
  33238. }
  33239. )
  33240. )), FilesIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33241. "svg",
  33242. {
  33243. width: size,
  33244. height: size,
  33245. viewBox: "0 0 14 15",
  33246. fill: "none",
  33247. xmlns: "http://www.w3.org/2000/svg",
  33248. ref: forwardedRef,
  33249. ...props
  33250. },
  33251. React255.createElement(
  33252. "path",
  33253. {
  33254. d: "M6.5 11a.5.5 0 010 1h-4a.5.5 0 010-1h4zM4.5 5a.5.5 0 01.5.5V7h1.5a.5.5 0 010 1H5v1.5a.5.5 0 01-1 0V8H2.5a.5.5 0 010-1H4V5.5a.5.5 0 01.5-.5z",
  33255. fill: color2
  33256. }
  33257. ),
  33258. React255.createElement(
  33259. "path",
  33260. {
  33261. fillRule: "evenodd",
  33262. clipRule: "evenodd",
  33263. d: "M11.5.004a.5.5 0 01.357.15l1.993 1.993a.5.5 0 01.15.358v8a.5.5 0 01-.5.5H9v2.499a.5.5 0 01-.5.5h-8a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H5v-2.5a.5.5 0 01.5-.5h6zm-10.5 13h7v-7l-2-2H1v9zm5-10h.5a.5.5 0 01.357.15L8.85 5.146a.5.5 0 01.15.358v4.5h4v-7l-2-2H6v2z",
  33264. fill: color2
  33265. }
  33266. )
  33267. )), CategoryIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33268. "svg",
  33269. {
  33270. width: size,
  33271. height: size,
  33272. viewBox: "0 0 14 14",
  33273. fill: "none",
  33274. xmlns: "http://www.w3.org/2000/svg",
  33275. ref: forwardedRef,
  33276. ...props
  33277. },
  33278. React255.createElement(
  33279. "path",
  33280. {
  33281. d: "M3 1.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM2 3.504a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z",
  33282. fill: color2
  33283. }
  33284. ),
  33285. React255.createElement(
  33286. "path",
  33287. {
  33288. fillRule: "evenodd",
  33289. clipRule: "evenodd",
  33290. d: "M1 5.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-7zM2 12V6h10v6H2z",
  33291. fill: color2
  33292. }
  33293. )
  33294. )), FolderIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33295. "svg",
  33296. {
  33297. width: size,
  33298. height: size,
  33299. viewBox: "0 0 14 14",
  33300. fill: "none",
  33301. xmlns: "http://www.w3.org/2000/svg",
  33302. ref: forwardedRef,
  33303. ...props
  33304. },
  33305. React255.createElement(
  33306. "path",
  33307. {
  33308. fillRule: "evenodd",
  33309. clipRule: "evenodd",
  33310. d: "M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",
  33311. fill: color2
  33312. }
  33313. )
  33314. )), PrintIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33315. "svg",
  33316. {
  33317. width: size,
  33318. height: size,
  33319. viewBox: "0 0 14 14",
  33320. fill: "none",
  33321. xmlns: "http://www.w3.org/2000/svg",
  33322. ref: forwardedRef,
  33323. ...props
  33324. },
  33325. React255.createElement(
  33326. "path",
  33327. {
  33328. d: "M4.5 8.004a.5.5 0 100 1h5a.5.5 0 000-1h-5zM4.5 10.004a.5.5 0 000 1h5a.5.5 0 000-1h-5z",
  33329. fill: color2
  33330. }
  33331. ),
  33332. React255.createElement(
  33333. "path",
  33334. {
  33335. fillRule: "evenodd",
  33336. clipRule: "evenodd",
  33337. d: "M2 1.504a.5.5 0 01.5-.5h8a.498.498 0 01.357.15l.993.993c.093.09.15.217.15.357v1.5h1.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H12v2.5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5H2v-2.5zm11 7.5h-1v-2.5a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v2.5H1v-4h12v4zm-2-6v1H3v-2h7v.5a.5.5 0 00.5.5h.5zm-8 9h8v-5H3v5z",
  33338. fill: color2
  33339. }
  33340. )
  33341. )), GraphLineIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33342. "svg",
  33343. {
  33344. width: size,
  33345. height: size,
  33346. viewBox: "0 0 14 14",
  33347. fill: "none",
  33348. xmlns: "http://www.w3.org/2000/svg",
  33349. ref: forwardedRef,
  33350. ...props
  33351. },
  33352. React255.createElement(
  33353. "path",
  33354. {
  33355. d: "M5.146 6.15a.5.5 0 01.708 0L7 7.297 9.146 5.15a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.707L9.5 6.211 7.354 8.357a.5.5 0 01-.708 0L5.5 7.211 3.854 8.857a.5.5 0 11-.708-.707l2-2z",
  33356. fill: color2
  33357. }
  33358. ),
  33359. React255.createElement(
  33360. "path",
  33361. {
  33362. fillRule: "evenodd",
  33363. clipRule: "evenodd",
  33364. d: "M1.5 1.004a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11zm.5 1v10h10v-10H2z",
  33365. fill: color2
  33366. }
  33367. )
  33368. )), CalendarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33369. "svg",
  33370. {
  33371. width: size,
  33372. height: size,
  33373. viewBox: "0 0 14 14",
  33374. fill: "none",
  33375. xmlns: "http://www.w3.org/2000/svg",
  33376. ref: forwardedRef,
  33377. ...props
  33378. },
  33379. React255.createElement(
  33380. "path",
  33381. {
  33382. fillRule: "evenodd",
  33383. clipRule: "evenodd",
  33384. d: "M3.5 0a.5.5 0 01.5.5V1h6V.5a.5.5 0 011 0V1h1.5a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5H3V.5a.5.5 0 01.5-.5zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 4v2.3h3V4H9zM5.5 6.3h3V4h-3v2.3z",
  33385. fill: color2
  33386. }
  33387. )
  33388. )), GraphBarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33389. "svg",
  33390. {
  33391. width: size,
  33392. height: size,
  33393. viewBox: "0 0 14 14",
  33394. fill: "none",
  33395. xmlns: "http://www.w3.org/2000/svg",
  33396. ref: forwardedRef,
  33397. ...props
  33398. },
  33399. React255.createElement(
  33400. "path",
  33401. {
  33402. d: "M12 2.5a.5.5 0 00-1 0v10a.5.5 0 001 0v-10zM9 4.5a.5.5 0 00-1 0v8a.5.5 0 001 0v-8zM5.5 7a.5.5 0 01.5.5v5a.5.5 0 01-1 0v-5a.5.5 0 01.5-.5zM3 10.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2z",
  33403. fill: color2
  33404. }
  33405. )
  33406. )), AlignLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33407. "svg",
  33408. {
  33409. width: size,
  33410. height: size,
  33411. viewBox: "0 0 14 14",
  33412. fill: "none",
  33413. xmlns: "http://www.w3.org/2000/svg",
  33414. ref: forwardedRef,
  33415. ...props
  33416. },
  33417. React255.createElement(
  33418. "path",
  33419. {
  33420. d: "M13 2a.5.5 0 010 1H1a.5.5 0 010-1h12zM10 5a.5.5 0 010 1H1a.5.5 0 010-1h9zM11.5 8.5A.5.5 0 0011 8H1a.5.5 0 000 1h10a.5.5 0 00.5-.5zM7.5 11a.5.5 0 010 1H1a.5.5 0 010-1h6.5z",
  33421. fill: color2
  33422. }
  33423. )
  33424. )), AlignRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33425. "svg",
  33426. {
  33427. width: size,
  33428. height: size,
  33429. viewBox: "0 0 14 14",
  33430. fill: "none",
  33431. xmlns: "http://www.w3.org/2000/svg",
  33432. ref: forwardedRef,
  33433. ...props
  33434. },
  33435. React255.createElement(
  33436. "path",
  33437. {
  33438. d: "M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM4 5a.5.5 0 000 1h9a.5.5 0 000-1H4zM2.5 8.5A.5.5 0 013 8h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1H13a.5.5 0 000-1H6.5z",
  33439. fill: color2
  33440. }
  33441. )
  33442. )), FilterIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33443. "svg",
  33444. {
  33445. width: size,
  33446. height: size,
  33447. viewBox: "0 0 14 14",
  33448. fill: "none",
  33449. xmlns: "http://www.w3.org/2000/svg",
  33450. ref: forwardedRef,
  33451. ...props
  33452. },
  33453. React255.createElement(
  33454. "path",
  33455. {
  33456. d: "M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM3 5a.5.5 0 000 1h8a.5.5 0 000-1H3zM4.5 8.5A.5.5 0 015 8h4a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1h1a.5.5 0 000-1h-1z",
  33457. fill: color2
  33458. }
  33459. )
  33460. )), DocChartIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33461. "svg",
  33462. {
  33463. width: size,
  33464. height: size,
  33465. viewBox: "0 0 14 14",
  33466. fill: "none",
  33467. xmlns: "http://www.w3.org/2000/svg",
  33468. ref: forwardedRef,
  33469. ...props
  33470. },
  33471. React255.createElement(
  33472. "path",
  33473. {
  33474. fillRule: "evenodd",
  33475. clipRule: "evenodd",
  33476. d: "M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 6.3h3V4H9v2.3zm-3.5 0h3V4h-3v2.3z",
  33477. fill: color2
  33478. }
  33479. )
  33480. )), DocListIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33481. "svg",
  33482. {
  33483. width: size,
  33484. height: size,
  33485. viewBox: "0 0 14 14",
  33486. fill: "none",
  33487. xmlns: "http://www.w3.org/2000/svg",
  33488. ref: forwardedRef,
  33489. ...props
  33490. },
  33491. React255.createElement(
  33492. "path",
  33493. {
  33494. d: "M3.5 6.5A.5.5 0 014 6h6a.5.5 0 010 1H4a.5.5 0 01-.5-.5zM4 9a.5.5 0 000 1h6a.5.5 0 000-1H4z",
  33495. fill: color2
  33496. }
  33497. ),
  33498. React255.createElement(
  33499. "path",
  33500. {
  33501. fillRule: "evenodd",
  33502. clipRule: "evenodd",
  33503. d: "M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v8h10V4H2z",
  33504. fill: color2
  33505. }
  33506. )
  33507. )), DragIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33508. "svg",
  33509. {
  33510. width: size,
  33511. height: size,
  33512. viewBox: "0 0 14 14",
  33513. fill: "none",
  33514. xmlns: "http://www.w3.org/2000/svg",
  33515. ref: forwardedRef,
  33516. ...props
  33517. },
  33518. React255.createElement(
  33519. "path",
  33520. {
  33521. d: "M13 4a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 9.5A.5.5 0 0013 9H1a.5.5 0 000 1h12a.5.5 0 00.5-.5z",
  33522. fill: color2
  33523. }
  33524. )
  33525. )), MenuIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33526. "svg",
  33527. {
  33528. width: size,
  33529. height: size,
  33530. viewBox: "0 0 14 14",
  33531. fill: "none",
  33532. xmlns: "http://www.w3.org/2000/svg",
  33533. ref: forwardedRef,
  33534. ...props
  33535. },
  33536. React255.createElement(
  33537. "path",
  33538. {
  33539. d: "M13 3.5a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 10a.5.5 0 00-.5-.5H1a.5.5 0 000 1h12a.5.5 0 00.5-.5zM13 6.5a.5.5 0 010 1H1a.5.5 0 010-1h12z",
  33540. fill: color2
  33541. }
  33542. )
  33543. )), MarkupIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33544. "svg",
  33545. {
  33546. width: size,
  33547. height: size,
  33548. viewBox: "0 0 14 14",
  33549. fill: "none",
  33550. xmlns: "http://www.w3.org/2000/svg",
  33551. ref: forwardedRef,
  33552. ...props
  33553. },
  33554. React255.createElement(
  33555. "path",
  33556. {
  33557. d: "M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",
  33558. fill: color2
  33559. }
  33560. )
  33561. )), BoldIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33562. "svg",
  33563. {
  33564. width: size,
  33565. height: size,
  33566. viewBox: "0 0 14 14",
  33567. fill: "none",
  33568. xmlns: "http://www.w3.org/2000/svg",
  33569. ref: forwardedRef,
  33570. ...props
  33571. },
  33572. React255.createElement(
  33573. "path",
  33574. {
  33575. fillRule: "evenodd",
  33576. clipRule: "evenodd",
  33577. d: "M3 2v1.5h1v7H3V12h5a3 3 0 001.791-5.407A2.75 2.75 0 008 2.011V2H3zm5 5.5H5.5v3H8a1.5 1.5 0 100-3zm-.25-4H5.5V6h2.25a1.25 1.25 0 100-2.5z",
  33578. fill: color2
  33579. }
  33580. )
  33581. )), ItalicIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33582. "svg",
  33583. {
  33584. width: size,
  33585. height: size,
  33586. viewBox: "0 0 14 14",
  33587. fill: "none",
  33588. xmlns: "http://www.w3.org/2000/svg",
  33589. ref: forwardedRef,
  33590. ...props
  33591. },
  33592. React255.createElement("path", { d: "M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z", fill: color2 })
  33593. )), PaperClipIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33594. "svg",
  33595. {
  33596. width: size,
  33597. height: size,
  33598. viewBox: "0 0 14 14",
  33599. fill: "none",
  33600. xmlns: "http://www.w3.org/2000/svg",
  33601. ref: forwardedRef,
  33602. ...props
  33603. },
  33604. React255.createElement(
  33605. "path",
  33606. {
  33607. d: "M10.553 2.268a1.5 1.5 0 00-2.12 0L2.774 7.925a2.5 2.5 0 003.536 3.535l3.535-3.535a.5.5 0 11.707.707l-3.535 3.536-.002.002a3.5 3.5 0 01-4.959-4.941l.011-.011L7.725 1.56l.007-.008a2.5 2.5 0 013.53 3.541l-.002.002-5.656 5.657-.003.003a1.5 1.5 0 01-2.119-2.124l3.536-3.536a.5.5 0 11.707.707L4.189 9.34a.5.5 0 00.707.707l5.657-5.657a1.5 1.5 0 000-2.121z",
  33608. fill: color2
  33609. }
  33610. )
  33611. )), ListOrderedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33612. "svg",
  33613. {
  33614. width: size,
  33615. height: size,
  33616. viewBox: "0 0 14 14",
  33617. fill: "none",
  33618. xmlns: "http://www.w3.org/2000/svg",
  33619. ref: forwardedRef,
  33620. ...props
  33621. },
  33622. React255.createElement(
  33623. "path",
  33624. {
  33625. d: "M5 2.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2.5 2H1v1h1v3h1V2.5a.5.5 0 00-.5-.5zM3 8.5v1a.5.5 0 01-1 0V9h-.5a.5.5 0 010-1h1a.5.5 0 01.5.5zM2 10.5a.5.5 0 00-1 0V12h2v-1H2v-.5z",
  33626. fill: color2
  33627. }
  33628. )
  33629. )), ListUnorderedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33630. "svg",
  33631. {
  33632. width: size,
  33633. height: size,
  33634. viewBox: "0 0 14 14",
  33635. fill: "none",
  33636. xmlns: "http://www.w3.org/2000/svg",
  33637. ref: forwardedRef,
  33638. ...props
  33639. },
  33640. React255.createElement(
  33641. "path",
  33642. {
  33643. d: "M2.75 2.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM5.5 2a.5.5 0 000 1h7a.5.5 0 000-1h-7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2 12.25a.75.75 0 100-1.5.75.75 0 000 1.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM2 7.75a.75.75 0 100-1.5.75.75 0 000 1.5z",
  33644. fill: color2
  33645. }
  33646. )
  33647. )), ChecklistIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33648. "svg",
  33649. {
  33650. width: size,
  33651. height: size,
  33652. viewBox: "0 0 14 14",
  33653. fill: "none",
  33654. xmlns: "http://www.w3.org/2000/svg",
  33655. ref: forwardedRef,
  33656. ...props
  33657. },
  33658. React255.createElement(
  33659. "path",
  33660. {
  33661. fillRule: "evenodd",
  33662. clipRule: "evenodd",
  33663. d: "M3.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 01-.5-.5v-2a.5.5 0 01.5-.5h2zM2 12h1v-1H2v1z",
  33664. fill: color2
  33665. }
  33666. ),
  33667. React255.createElement(
  33668. "path",
  33669. {
  33670. d: "M12.5 11a.5.5 0 110 1h-7a.5.5 0 010-1h7zM3.146 5.646a.5.5 0 11.708.707L3.207 7l.647.646a.5.5 0 11-.708.707L2.5 7.707l-.646.646a.5.5 0 01-.708-.707L1.793 7l-.647-.647a.5.5 0 11.708-.707l.646.647.646-.647zM12.5 6.5a.5.5 0 010 1h-7a.5.5 0 010-1h7zM4.146 1.146a.5.5 0 11.708.707l-2 2-.079.065a.498.498 0 01-.629-.065l-1-1a.5.5 0 11.708-.707l.646.647 1.646-1.647zM12.5 2a.5.5 0 010 1h-7a.5.5 0 010-1h7z",
  33671. fill: color2
  33672. }
  33673. )
  33674. )), ParagraphIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33675. "svg",
  33676. {
  33677. width: size,
  33678. height: size,
  33679. viewBox: "0 0 14 14",
  33680. fill: "none",
  33681. xmlns: "http://www.w3.org/2000/svg",
  33682. ref: forwardedRef,
  33683. ...props
  33684. },
  33685. React255.createElement(
  33686. "path",
  33687. {
  33688. d: "M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",
  33689. fill: color2
  33690. }
  33691. )
  33692. )), MarkdownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33693. "svg",
  33694. {
  33695. width: size,
  33696. height: size,
  33697. viewBox: "0 0 14 14",
  33698. fill: "none",
  33699. xmlns: "http://www.w3.org/2000/svg",
  33700. ref: forwardedRef,
  33701. ...props
  33702. },
  33703. React255.createElement(
  33704. "path",
  33705. {
  33706. d: "M2 4.5h1.5L5 6.375 6.5 4.5H8v5H6.5V7L5 8.875 3.5 7v2.5H2v-5zM9.75 4.5h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5z",
  33707. fill: color2
  33708. }
  33709. ),
  33710. React255.createElement(
  33711. "path",
  33712. {
  33713. fillRule: "evenodd",
  33714. clipRule: "evenodd",
  33715. d: "M.5 2a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5zM1 3v8h12V3H1z",
  33716. fill: color2
  33717. }
  33718. )
  33719. )), RepoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33720. "svg",
  33721. {
  33722. width: size,
  33723. height: size,
  33724. viewBox: "0 0 14 14",
  33725. fill: "none",
  33726. xmlns: "http://www.w3.org/2000/svg",
  33727. ref: forwardedRef,
  33728. ...props
  33729. },
  33730. React255.createElement(
  33731. "path",
  33732. {
  33733. d: "M5 2.5a.5.5 0 11-1 0 .5.5 0 011 0zM4.5 5a.5.5 0 100-1 .5.5 0 000 1zM5 6.5a.5.5 0 11-1 0 .5.5 0 011 0z",
  33734. fill: color2
  33735. }
  33736. ),
  33737. React255.createElement(
  33738. "path",
  33739. {
  33740. fillRule: "evenodd",
  33741. clipRule: "evenodd",
  33742. d: "M11 0a2 2 0 012 2v10a2 2 0 01-2 2H1.5a.5.5 0 01-.5-.5V.5a.5.5 0 01.5-.5H11zm0 1H3v12h8a1 1 0 001-1V2a1 1 0 00-1-1z",
  33743. fill: color2
  33744. }
  33745. )
  33746. )), CommitIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33747. "svg",
  33748. {
  33749. width: size,
  33750. height: size,
  33751. viewBox: "0 0 14 14",
  33752. fill: "none",
  33753. xmlns: "http://www.w3.org/2000/svg",
  33754. ref: forwardedRef,
  33755. ...props
  33756. },
  33757. React255.createElement(
  33758. "path",
  33759. {
  33760. fillRule: "evenodd",
  33761. clipRule: "evenodd",
  33762. d: "M3.031 7.5a4 4 0 007.938 0H13.5a.5.5 0 000-1h-2.53a4 4 0 00-7.94 0H.501a.5.5 0 000 1h2.531zM7 10a3 3 0 100-6 3 3 0 000 6z",
  33763. fill: color2
  33764. }
  33765. )
  33766. )), BranchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33767. "svg",
  33768. {
  33769. width: size,
  33770. height: size,
  33771. viewBox: "0 0 14 14",
  33772. fill: "none",
  33773. xmlns: "http://www.w3.org/2000/svg",
  33774. ref: forwardedRef,
  33775. ...props
  33776. },
  33777. React255.createElement(
  33778. "path",
  33779. {
  33780. fillRule: "evenodd",
  33781. clipRule: "evenodd",
  33782. d: "M6 2.5a1.5 1.5 0 01-1 1.415v4.053C5.554 7.4 6.367 7 7.5 7c.89 0 1.453-.252 1.812-.557.218-.184.374-.4.482-.62a1.5 1.5 0 111.026.143c-.155.423-.425.87-.86 1.24C9.394 7.685 8.59 8 7.5 8c-1.037 0-1.637.42-1.994.917a2.81 2.81 0 00-.472 1.18A1.5 1.5 0 114 10.086v-6.17A1.5 1.5 0 116 2.5zm-2 9a.5.5 0 111 0 .5.5 0 01-1 0zm1-9a.5.5 0 11-1 0 .5.5 0 011 0zm6 2a.5.5 0 11-1 0 .5.5 0 011 0z",
  33783. fill: color2
  33784. }
  33785. )
  33786. )), PullRequestIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33787. "svg",
  33788. {
  33789. width: size,
  33790. height: size,
  33791. viewBox: "0 0 14 14",
  33792. fill: "none",
  33793. xmlns: "http://www.w3.org/2000/svg",
  33794. ref: forwardedRef,
  33795. ...props
  33796. },
  33797. React255.createElement(
  33798. "path",
  33799. {
  33800. fillRule: "evenodd",
  33801. clipRule: "evenodd",
  33802. d: "M8.354 1.354L7.707 2H8.5A2.5 2.5 0 0111 4.5v5.585a1.5 1.5 0 11-1 0V4.5A1.5 1.5 0 008.5 3h-.793l.647.646a.5.5 0 11-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708zM11 11.5a.5.5 0 11-1 0 .5.5 0 011 0zM4 3.915a1.5 1.5 0 10-1 0v6.17a1.5 1.5 0 101 0v-6.17zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zm0-8a.5.5 0 100-1 .5.5 0 000 1z",
  33803. fill: color2
  33804. }
  33805. )
  33806. )), MergeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33807. "svg",
  33808. {
  33809. width: size,
  33810. height: size,
  33811. viewBox: "0 0 14 14",
  33812. fill: "none",
  33813. xmlns: "http://www.w3.org/2000/svg",
  33814. ref: forwardedRef,
  33815. ...props
  33816. },
  33817. React255.createElement(
  33818. "path",
  33819. {
  33820. fillRule: "evenodd",
  33821. clipRule: "evenodd",
  33822. d: "M4.108 3.872A1.5 1.5 0 103 3.915v6.17a1.5 1.5 0 101 0V6.41c.263.41.573.77.926 1.083 1.108.98 2.579 1.433 4.156 1.5A1.5 1.5 0 109.09 7.99c-1.405-.065-2.62-.468-3.5-1.248-.723-.64-1.262-1.569-1.481-2.871zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zM4 2.5a.5.5 0 11-1 0 .5.5 0 011 0zm7 6a.5.5 0 11-1 0 .5.5 0 011 0z",
  33823. fill: color2
  33824. }
  33825. )
  33826. )), AppleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33827. "svg",
  33828. {
  33829. width: size,
  33830. height: size,
  33831. viewBox: "0 0 14 14",
  33832. fill: "none",
  33833. xmlns: "http://www.w3.org/2000/svg",
  33834. ref: forwardedRef,
  33835. ...props
  33836. },
  33837. React255.createElement(
  33838. "path",
  33839. {
  33840. d: "M11.03 8.103a3.044 3.044 0 01-.202-1.744 2.697 2.697 0 011.4-1.935c-.749-1.18-1.967-1.363-2.35-1.403-.835-.086-2.01.56-2.648.57h-.016c-.639-.01-1.814-.656-2.649-.57-.415.044-1.741.319-2.541 1.593-.281.447-.498 1.018-.586 1.744a6.361 6.361 0 00-.044.85c.005.305.028.604.07.895.09.62.259 1.207.477 1.744.242.595.543 1.13.865 1.585.712 1.008 1.517 1.59 1.971 1.6.934.021 1.746-.61 2.416-.594.006.002.014.003.02.002h.017c.007 0 .014 0 .021-.002.67-.017 1.481.615 2.416.595.453-.011 1.26-.593 1.971-1.6a7.95 7.95 0 00.97-1.856c-.697-.217-1.27-.762-1.578-1.474zm-2.168-5.97c.717-.848.69-2.07.624-2.125-.065-.055-1.25.163-1.985.984-.735.82-.69 2.071-.624 2.125.064.055 1.268-.135 1.985-.984z",
  33841. fill: color2
  33842. }
  33843. )
  33844. )), LinuxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33845. "svg",
  33846. {
  33847. width: size,
  33848. height: size,
  33849. viewBox: "0 0 14 14",
  33850. fill: "none",
  33851. xmlns: "http://www.w3.org/2000/svg",
  33852. ref: forwardedRef,
  33853. ...props
  33854. },
  33855. React255.createElement(
  33856. "path",
  33857. {
  33858. fillRule: "evenodd",
  33859. clipRule: "evenodd",
  33860. d: "M7 0a3 3 0 013 3v1.24c.129.132.25.27.362.415.113.111.283.247.515.433l.194.155c.325.261.711.582 1.095.966.765.765 1.545 1.806 1.823 3.186a.501.501 0 01-.338.581 3.395 3.395 0 01-1.338.134 2.886 2.886 0 01-1.049-.304 5.535 5.535 0 01-.17.519 2 2 0 11-2.892 2.55A5.507 5.507 0 017 13c-.439 0-.838-.044-1.201-.125a2 2 0 11-2.892-2.55 5.553 5.553 0 01-.171-.519c-.349.182-.714.27-1.05.304A3.395 3.395 0 01.35 9.977a.497.497 0 01-.338-.582c.278-1.38 1.058-2.42 1.823-3.186.384-.384.77-.705 1.095-.966l.194-.155c.232-.186.402-.322.515-.433.112-.145.233-.283.362-.414V3a3 3 0 013-3zm1.003 11.895a2 2 0 012.141-1.89c.246-.618.356-1.322.356-2.005 0-.514-.101-1.07-.301-1.599l-.027-.017a6.387 6.387 0 00-.857-.42 6.715 6.715 0 00-1.013-.315l-.852.638a.75.75 0 01-.9 0l-.852-.638a6.716 6.716 0 00-1.693.634 4.342 4.342 0 00-.177.101l-.027.017A4.6 4.6 0 003.501 8c0 .683.109 1.387.355 2.005a2 2 0 012.142 1.89c.295.067.627.105 1.002.105s.707-.038 1.003-.105zM5 12a1 1 0 11-2 0 1 1 0 012 0zm6 0a1 1 0 11-2 0 1 1 0 012 0zM6.1 4.3a1.5 1.5 0 011.8 0l.267.2L7 5.375 5.833 4.5l.267-.2zM8.5 2a.5.5 0 01.5.5V3a.5.5 0 01-1 0v-.5a.5.5 0 01.5-.5zM6 2.5a.5.5 0 00-1 0V3a.5.5 0 001 0v-.5z",
  33861. fill: color2
  33862. }
  33863. )
  33864. )), UbuntuIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33865. "svg",
  33866. {
  33867. width: size,
  33868. height: size,
  33869. viewBox: "0 0 14 14",
  33870. fill: "none",
  33871. xmlns: "http://www.w3.org/2000/svg",
  33872. ref: forwardedRef,
  33873. ...props
  33874. },
  33875. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3497)", fill: color2 }, React255.createElement("path", { d: "M12.261 2.067c0 1.142-.89 2.068-1.988 2.068-1.099 0-1.99-.926-1.99-2.068C8.283.926 9.174 0 10.273 0c1.098 0 1.989.926 1.989 2.067zM3.978 6.6c0 1.142-.89 2.068-1.989 2.068C.891 8.668 0 7.742 0 6.601c0-1.142.89-2.068 1.989-2.068 1.099 0 1.989.926 1.989 2.068zM6.475 11.921A4.761 4.761 0 014.539 11a4.993 4.993 0 01-1.367-1.696 2.765 2.765 0 01-1.701.217 6.725 6.725 0 001.844 2.635 6.379 6.379 0 004.23 1.577 3.033 3.033 0 01-.582-1.728 4.767 4.767 0 01-.488-.083zM11.813 11.933c0 1.141-.89 2.067-1.989 2.067-1.098 0-1.989-.926-1.989-2.067 0-1.142.891-2.068 1.99-2.068 1.098 0 1.989.926 1.989 2.068zM12.592 11.173a6.926 6.926 0 001.402-3.913 6.964 6.964 0 00-1.076-4.023A2.952 2.952 0 0111.8 4.6c.398.78.592 1.656.564 2.539a5.213 5.213 0 01-.724 2.495c.466.396.8.935.952 1.54zM1.987 3.631c-.05 0-.101.002-.151.004C3.073 1.365 5.504.024 8.005.23a3.07 3.07 0 00-.603 1.676 4.707 4.707 0 00-2.206.596 4.919 4.919 0 00-1.7 1.576 2.79 2.79 0 00-1.509-.447z" })),
  33876. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3497" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33877. )), WindowsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33878. "svg",
  33879. {
  33880. width: size,
  33881. height: size,
  33882. viewBox: "0 0 14 14",
  33883. fill: "none",
  33884. xmlns: "http://www.w3.org/2000/svg",
  33885. ref: forwardedRef,
  33886. ...props
  33887. },
  33888. React255.createElement(
  33889. "path",
  33890. {
  33891. d: "M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z",
  33892. fill: color2
  33893. }
  33894. )
  33895. )), ChromeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33896. "svg",
  33897. {
  33898. width: size,
  33899. height: size,
  33900. viewBox: "0 0 14 14",
  33901. fill: "none",
  33902. xmlns: "http://www.w3.org/2000/svg",
  33903. ref: forwardedRef,
  33904. ...props
  33905. },
  33906. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3496)" }, React255.createElement(
  33907. "path",
  33908. {
  33909. fillRule: "evenodd",
  33910. clipRule: "evenodd",
  33911. d: "M13.023 3.431a.115.115 0 01-.099.174H7.296A3.408 3.408 0 003.7 6.148a.115.115 0 01-.21.028l-1.97-3.413a.115.115 0 01.01-.129A6.97 6.97 0 017 0a6.995 6.995 0 016.023 3.431zM7 9.615A2.619 2.619 0 014.384 7 2.62 2.62 0 017 4.383 2.619 2.619 0 019.616 7 2.619 2.619 0 017 9.615zm1.034.71a.115.115 0 00-.121-.041 3.4 3.4 0 01-.913.124 3.426 3.426 0 01-3.091-1.973L1.098 3.567a.115.115 0 00-.2.001 7.004 7.004 0 005.058 10.354l.017.001c.04 0 .078-.021.099-.057l1.971-3.414a.115.115 0 00-.009-.128zm1.43-5.954h3.947c.047 0 .09.028.107.072.32.815.481 1.675.481 2.557a6.957 6.957 0 01-2.024 4.923A6.957 6.957 0 017.08 14h-.001a.115.115 0 01-.1-.172L9.794 8.95A3.384 3.384 0 0010.408 7c0-.921-.364-1.785-1.024-2.433a.115.115 0 01.08-.196z",
  33912. fill: color2
  33913. }
  33914. )),
  33915. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3496" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33916. )), StorybookIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33917. "svg",
  33918. {
  33919. width: size,
  33920. height: size,
  33921. viewBox: "0 0 14 14",
  33922. fill: "none",
  33923. xmlns: "http://www.w3.org/2000/svg",
  33924. ref: forwardedRef,
  33925. ...props
  33926. },
  33927. React255.createElement(
  33928. "path",
  33929. {
  33930. fillRule: "evenodd",
  33931. clipRule: "evenodd",
  33932. d: "M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",
  33933. fill: color2
  33934. }
  33935. )
  33936. )), AzureDevOpsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33937. "svg",
  33938. {
  33939. width: size,
  33940. height: size,
  33941. viewBox: "0 0 14 14",
  33942. fill: "none",
  33943. xmlns: "http://www.w3.org/2000/svg",
  33944. ref: forwardedRef,
  33945. ...props
  33946. },
  33947. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3503)" }, React255.createElement(
  33948. "path",
  33949. {
  33950. d: "M0 5.176l1.31-1.73 4.902-1.994V.014l4.299 3.144-8.78 1.706v4.8L0 9.162V5.176zm14-2.595v8.548l-3.355 2.857-5.425-1.783v1.783L1.73 9.661l8.784 1.047v-7.55L14 2.581z",
  33951. fill: color2
  33952. }
  33953. )),
  33954. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3503" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33955. )), BitbucketIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33956. "svg",
  33957. {
  33958. width: size,
  33959. height: size,
  33960. viewBox: "0 0 14 14",
  33961. fill: "none",
  33962. xmlns: "http://www.w3.org/2000/svg",
  33963. ref: forwardedRef,
  33964. ...props
  33965. },
  33966. React255.createElement(
  33967. "path",
  33968. {
  33969. fillRule: "evenodd",
  33970. clipRule: "evenodd",
  33971. d: "M1 1.522a.411.411 0 00-.412.476l1.746 10.597a.56.56 0 00.547.466h8.373a.411.411 0 00.412-.345l1.017-6.248h-3.87L8.35 9.18H5.677l-.724-3.781h7.904L13.412 2A.411.411 0 0013 1.524L1 1.522z",
  33972. fill: color2
  33973. }
  33974. )
  33975. )), ChromaticIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33976. "svg",
  33977. {
  33978. width: size,
  33979. height: size,
  33980. viewBox: "0 0 14 14",
  33981. fill: "none",
  33982. xmlns: "http://www.w3.org/2000/svg",
  33983. ref: forwardedRef,
  33984. ...props
  33985. },
  33986. React255.createElement(
  33987. "path",
  33988. {
  33989. fillRule: "evenodd",
  33990. clipRule: "evenodd",
  33991. d: "M0 7a7 7 0 1014 0A7 7 0 000 7zm5.215-3.869a1.967 1.967 0 013.747.834v1.283l-3.346-1.93a2.486 2.486 0 00-.401-.187zm3.484 2.58l-3.346-1.93a1.968 1.968 0 00-2.685.72 1.954 1.954 0 00.09 2.106 2.45 2.45 0 01.362-.254l1.514-.873a.27.27 0 01.268 0l2.1 1.21 1.697-.978zm-.323 4.972L6.86 9.81a.268.268 0 01-.134-.231V7.155l-1.698-.98v3.86a1.968 1.968 0 003.747.835 2.488 2.488 0 01-.4-.187zm.268-.464a1.967 1.967 0 002.685-.719 1.952 1.952 0 00-.09-2.106c-.112.094-.233.18-.361.253L7.53 9.577l1.113.642zm-4.106.257a1.974 1.974 0 01-1.87-.975A1.95 1.95 0 012.47 8.01c.136-.507.461-.93.916-1.193L4.5 6.175v3.86c0 .148.013.295.039.44zM11.329 4.5a1.973 1.973 0 00-1.87-.976c.025.145.039.292.039.44v1.747a.268.268 0 01-.135.232l-2.1 1.211v1.96l3.346-1.931a1.966 1.966 0 00.72-2.683z",
  33992. fill: color2
  33993. }
  33994. )
  33995. )), ComponentDrivenIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33996. "svg",
  33997. {
  33998. width: size,
  33999. height: size,
  34000. viewBox: "0 0 14 14",
  34001. fill: "none",
  34002. xmlns: "http://www.w3.org/2000/svg",
  34003. ref: forwardedRef,
  34004. ...props
  34005. },
  34006. React255.createElement(
  34007. "path",
  34008. {
  34009. d: "M10.847 2.181L8.867.201a.685.685 0 00-.97 0l-4.81 4.81a.685.685 0 000 .969l2.466 2.465-2.405 2.404a.685.685 0 000 .97l1.98 1.98a.685.685 0 00.97 0l4.81-4.81a.685.685 0 000-.969L8.441 5.555l2.405-2.404a.685.685 0 000-.97z",
  34010. fill: color2
  34011. }
  34012. )
  34013. )), DiscordIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34014. "svg",
  34015. {
  34016. width: size,
  34017. height: size,
  34018. viewBox: "0 0 14 14",
  34019. fill: "none",
  34020. xmlns: "http://www.w3.org/2000/svg",
  34021. ref: forwardedRef,
  34022. ...props
  34023. },
  34024. React255.createElement(
  34025. "path",
  34026. {
  34027. d: "M11.852 2.885c-.893-.41-1.85-.712-2.85-.884a.043.043 0 00-.046.021c-.123.22-.26.505-.355.73a10.658 10.658 0 00-3.2 0 7.377 7.377 0 00-.36-.73.045.045 0 00-.046-.021c-1 .172-1.957.474-2.85.884a.04.04 0 00-.019.016C.311 5.612-.186 8.257.058 10.869a.048.048 0 00.018.033 11.608 11.608 0 003.496 1.767.045.045 0 00.049-.016c.27-.368.51-.755.715-1.163a.044.044 0 00-.024-.062 7.661 7.661 0 01-1.092-.52.045.045 0 01-.005-.075c.074-.055.147-.112.217-.17a.043.043 0 01.046-.006c2.29 1.046 4.771 1.046 7.035 0a.043.043 0 01.046.006c.07.057.144.115.218.17a.045.045 0 01-.004.075 7.186 7.186 0 01-1.093.52.045.045 0 00-.024.062c.21.407.45.795.715 1.162.011.016.03.023.05.017a11.57 11.57 0 003.5-1.767.045.045 0 00.019-.032c.292-3.02-.49-5.643-2.07-7.969a.036.036 0 00-.018-.016zM4.678 9.279c-.69 0-1.258-.634-1.258-1.411 0-.778.558-1.411 1.258-1.411.707 0 1.27.639 1.259 1.41 0 .778-.558 1.412-1.259 1.412zm4.652 0c-.69 0-1.258-.634-1.258-1.411 0-.778.557-1.411 1.258-1.411.707 0 1.27.639 1.258 1.41 0 .778-.551 1.412-1.258 1.412z",
  34028. fill: color2
  34029. }
  34030. )
  34031. )), FacebookIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34032. "svg",
  34033. {
  34034. width: size,
  34035. height: size,
  34036. viewBox: "0 0 14 14",
  34037. fill: "none",
  34038. xmlns: "http://www.w3.org/2000/svg",
  34039. ref: forwardedRef,
  34040. ...props
  34041. },
  34042. React255.createElement(
  34043. "path",
  34044. {
  34045. fillRule: "evenodd",
  34046. clipRule: "evenodd",
  34047. d: "M7.399 14H5.06V7H3.5V4.588l1.56-.001-.002-1.421C5.058 1.197 5.533 0 7.6 0h1.721v2.413H8.246c-.805 0-.844.337-.844.966l-.003 1.208h1.934l-.228 2.412L7.401 7l-.002 7z",
  34048. fill: color2
  34049. }
  34050. )
  34051. )), FigmaIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34052. "svg",
  34053. {
  34054. width: size,
  34055. height: size,
  34056. viewBox: "0 0 14 14",
  34057. fill: "none",
  34058. xmlns: "http://www.w3.org/2000/svg",
  34059. ref: forwardedRef,
  34060. ...props
  34061. },
  34062. React255.createElement(
  34063. "path",
  34064. {
  34065. fillRule: "evenodd",
  34066. clipRule: "evenodd",
  34067. d: "M9.2 0H4.803A2.603 2.603 0 003.41 4.802a2.603 2.603 0 000 4.396 2.602 2.602 0 103.998 2.199v-2.51a2.603 2.603 0 103.187-4.085A2.604 2.604 0 009.2 0zM7.407 7a1.793 1.793 0 103.586 0 1.793 1.793 0 00-3.586 0zm-.81 2.603H4.803a1.793 1.793 0 101.794 1.794V9.603zM4.803 4.397h1.794V.81H4.803a1.793 1.793 0 000 3.587zm0 .81a1.793 1.793 0 000 3.586h1.794V5.207H4.803zm4.397-.81H7.407V.81H9.2a1.794 1.794 0 010 3.587z",
  34068. fill: color2
  34069. }
  34070. )
  34071. )), GDriveIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34072. "svg",
  34073. {
  34074. width: size,
  34075. height: size,
  34076. viewBox: "0 0 14 14",
  34077. fill: "none",
  34078. xmlns: "http://www.w3.org/2000/svg",
  34079. ref: forwardedRef,
  34080. ...props
  34081. },
  34082. React255.createElement(
  34083. "path",
  34084. {
  34085. d: "M6.37 8.768l-2.042 3.537h6.755l2.042-3.537H6.37zm6.177-1.003l-3.505-6.07H4.96l3.504 6.07h4.084zM4.378 2.7L.875 8.77l2.042 3.536L6.42 6.236 4.378 2.7z",
  34086. fill: color2
  34087. }
  34088. )
  34089. )), GithubIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34090. "svg",
  34091. {
  34092. width: size,
  34093. height: size,
  34094. viewBox: "0 0 14 14",
  34095. fill: "none",
  34096. xmlns: "http://www.w3.org/2000/svg",
  34097. ref: forwardedRef,
  34098. ...props
  34099. },
  34100. React255.createElement(
  34101. "path",
  34102. {
  34103. fillRule: "evenodd",
  34104. clipRule: "evenodd",
  34105. d: "M7 0C3.132 0 0 3.132 0 7a6.996 6.996 0 004.786 6.641c.35.062.482-.149.482-.332 0-.166-.01-.718-.01-1.304-1.758.324-2.213-.429-2.353-.823-.079-.2-.42-.822-.717-.988-.246-.132-.596-.455-.01-.464.552-.009.946.508 1.077.717.63 1.06 1.636.762 2.039.578.061-.455.245-.761.446-.936-1.558-.175-3.185-.779-3.185-3.457 0-.76.271-1.39.717-1.88-.07-.176-.314-.893.07-1.856 0 0 .587-.183 1.925.718a6.495 6.495 0 011.75-.236c.595 0 1.19.078 1.75.236 1.34-.91 1.926-.718 1.926-.718.385.963.14 1.68.07 1.855.446.49.717 1.111.717 1.881 0 2.687-1.636 3.282-3.194 3.457.254.218.473.638.473 1.295 0 .936-.009 1.688-.009 1.925 0 .184.131.402.481.332A7.012 7.012 0 0014 7c0-3.868-3.133-7-7-7z",
  34106. fill: color2
  34107. }
  34108. )
  34109. )), GitlabIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34110. "svg",
  34111. {
  34112. width: size,
  34113. height: size,
  34114. viewBox: "0 0 14 14",
  34115. fill: "none",
  34116. xmlns: "http://www.w3.org/2000/svg",
  34117. ref: forwardedRef,
  34118. ...props
  34119. },
  34120. React255.createElement(
  34121. "path",
  34122. {
  34123. fillRule: "evenodd",
  34124. clipRule: "evenodd",
  34125. d: "M1.068 5.583l1.487-4.557a.256.256 0 01.487 0L4.53 5.583H1.068L7 13.15 4.53 5.583h4.941l-2.47 7.565 5.931-7.565H9.471l1.488-4.557a.256.256 0 01.486 0l1.488 4.557.75 2.3a.508.508 0 01-.185.568L7 13.148v.001H7L.503 8.452a.508.508 0 01-.186-.57l.75-2.299z",
  34126. fill: color2
  34127. }
  34128. )
  34129. )), GoogleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34130. "svg",
  34131. {
  34132. width: size,
  34133. height: size,
  34134. viewBox: "0 0 14 14",
  34135. fill: "none",
  34136. xmlns: "http://www.w3.org/2000/svg",
  34137. ref: forwardedRef,
  34138. ...props
  34139. },
  34140. React255.createElement(
  34141. "path",
  34142. {
  34143. d: "M10.925 1.094H7.262c-1.643 0-3.189 1.244-3.189 2.685 0 1.473 1.12 2.661 2.791 2.661.116 0 .23-.002.34-.01a1.49 1.49 0 00-.186.684c0 .41.22.741.498 1.012-.21 0-.413.006-.635.006-2.034 0-3.6 1.296-3.6 2.64 0 1.323 1.717 2.15 3.75 2.15 2.32 0 3.6-1.315 3.6-2.639 0-1.06-.313-1.696-1.28-2.38-.331-.235-.965-.805-.965-1.14 0-.392.112-.586.703-1.047.606-.474 1.035-1.14 1.035-1.914 0-.92-.41-1.819-1.18-2.115h1.161l.82-.593zm-1.335 8.96c.03.124.045.25.045.378 0 1.07-.688 1.905-2.665 1.905-1.406 0-2.421-.89-2.421-1.96 0-1.047 1.259-1.92 2.665-1.904.328.004.634.057.911.146.764.531 1.311.832 1.465 1.436zM7.34 6.068c-.944-.028-1.841-1.055-2.005-2.295-.162-1.24.47-2.188 1.415-2.16.943.029 1.84 1.023 2.003 2.262.163 1.24-.47 2.222-1.414 2.193z",
  34144. fill: color2
  34145. }
  34146. )
  34147. )), GraphqlIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34148. "svg",
  34149. {
  34150. width: size,
  34151. height: size,
  34152. viewBox: "0 0 14 14",
  34153. fill: "none",
  34154. xmlns: "http://www.w3.org/2000/svg",
  34155. ref: forwardedRef,
  34156. ...props
  34157. },
  34158. React255.createElement(
  34159. "path",
  34160. {
  34161. fillRule: "evenodd",
  34162. clipRule: "evenodd",
  34163. d: "M7.873 11.608a1.167 1.167 0 00-1.707-.027L3.46 10.018l.01-.04h7.072l.022.076-2.69 1.554zM6.166 2.42l.031.03-3.535 6.124a1.265 1.265 0 00-.043-.012V5.438a1.166 1.166 0 00.84-1.456L6.167 2.42zm4.387 1.562a1.165 1.165 0 00.84 1.456v3.124l-.043.012-3.536-6.123a1.2 1.2 0 00.033-.032l2.706 1.563zM3.473 9.42a1.168 1.168 0 00-.327-.568L6.68 2.73a1.17 1.17 0 00.652 0l3.536 6.123a1.169 1.169 0 00-.327.567H3.473zm8.79-.736a1.169 1.169 0 00-.311-.124V5.44a1.17 1.17 0 10-1.122-1.942L8.13 1.938a1.168 1.168 0 00-1.122-1.5 1.17 1.17 0 00-1.121 1.5l-2.702 1.56a1.168 1.168 0 00-1.86.22 1.17 1.17 0 00.739 1.722v3.12a1.168 1.168 0 00-.74 1.721 1.17 1.17 0 001.861.221l2.701 1.56a1.169 1.169 0 102.233-.035l2.687-1.552a1.168 1.168 0 101.457-1.791z",
  34164. fill: color2
  34165. }
  34166. )
  34167. )), MediumIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34168. "svg",
  34169. {
  34170. width: size,
  34171. height: size,
  34172. viewBox: "0 0 14 14",
  34173. fill: "none",
  34174. xmlns: "http://www.w3.org/2000/svg",
  34175. ref: forwardedRef,
  34176. ...props
  34177. },
  34178. React255.createElement(
  34179. "path",
  34180. {
  34181. d: "M0 0v14h14V0H0zm11.63 3.317l-.75.72a.22.22 0 00-.083.212v-.001 5.289a.22.22 0 00.083.21l.733.72v.159H7.925v-.158l.76-.738c.074-.074.074-.096.074-.21V5.244l-2.112 5.364h-.285l-2.46-5.364V8.84a.494.494 0 00.136.413h.001l.988 1.198v.158H2.226v-.158l.988-1.198a.477.477 0 00.126-.416v.003-4.157a.363.363 0 00-.118-.307l-.878-1.058v-.158h2.727l2.107 4.622L9.031 3.16h2.6v.158z",
  34182. fill: color2
  34183. }
  34184. )
  34185. )), ReduxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34186. "svg",
  34187. {
  34188. width: size,
  34189. height: size,
  34190. viewBox: "0 0 14 14",
  34191. fill: "none",
  34192. xmlns: "http://www.w3.org/2000/svg",
  34193. ref: forwardedRef,
  34194. ...props
  34195. },
  34196. React255.createElement(
  34197. "path",
  34198. {
  34199. fillRule: "evenodd",
  34200. clipRule: "evenodd",
  34201. d: "M4.06 9.689c.016.49.423.88.912.88h.032a.911.911 0 00.88-.945.916.916 0 00-.912-.88h-.033c-.033 0-.08 0-.113.016-.669-1.108-.946-2.314-.848-3.618.065-.978.391-1.825.961-2.526.473-.603 1.386-.896 2.005-.913 1.728-.032 2.461 2.119 2.51 2.983.212.049.57.163.815.244C10.073 2.29 8.444.92 6.88.92c-1.467 0-2.82 1.06-3.357 2.625-.75 2.086-.261 4.09.651 5.671a.74.74 0 00-.114.473zm8.279-2.298c-1.239-1.45-3.064-2.249-5.15-2.249h-.261a.896.896 0 00-.798-.489h-.033A.912.912 0 006.13 6.48h.031a.919.919 0 00.8-.554h.293c1.239 0 2.412.358 3.472 1.059.814.538 1.401 1.238 1.727 2.086.277.684.261 1.353-.033 1.923-.456.864-1.222 1.337-2.232 1.337a4.16 4.16 0 01-1.597-.343 9.58 9.58 0 01-.734.587c.7.326 1.418.505 2.102.505 1.565 0 2.722-.863 3.162-1.727.473-.946.44-2.575-.782-3.961zm-7.433 5.51a4.005 4.005 0 01-.977.113c-1.206 0-2.298-.505-2.836-1.32C.376 10.603.13 8.289 2.494 6.577c.05.261.147.62.212.832-.31.228-.798.685-1.108 1.303-.44.864-.391 1.729.13 2.527.359.537.93.864 1.663.962.896.114 1.793-.05 2.657-.505 1.271-.669 2.119-1.467 2.672-2.56a.944.944 0 01-.26-.603.913.913 0 01.88-.945h.033a.915.915 0 01.098 1.825c-.897 1.842-2.478 3.08-4.565 3.488z",
  34202. fill: color2
  34203. }
  34204. )
  34205. )), TwitterIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34206. "svg",
  34207. {
  34208. width: size,
  34209. height: size,
  34210. viewBox: "0 0 14 14",
  34211. fill: "none",
  34212. xmlns: "http://www.w3.org/2000/svg",
  34213. ref: forwardedRef,
  34214. ...props
  34215. },
  34216. React255.createElement(
  34217. "path",
  34218. {
  34219. fillRule: "evenodd",
  34220. clipRule: "evenodd",
  34221. d: "M14 2.547a5.632 5.632 0 01-1.65.464 2.946 2.946 0 001.263-1.63 5.67 5.67 0 01-1.823.715 2.837 2.837 0 00-2.097-.93c-1.586 0-2.872 1.319-2.872 2.946 0 .23.025.456.074.67C4.508 4.66 2.392 3.488.975 1.706c-.247.435-.389.941-.389 1.481 0 1.022.507 1.923 1.278 2.452a2.806 2.806 0 01-1.3-.368l-.001.037c0 1.427.99 2.617 2.303 2.888a2.82 2.82 0 01-1.297.05c.366 1.17 1.427 2.022 2.683 2.045A5.671 5.671 0 010 11.51a7.985 7.985 0 004.403 1.323c5.283 0 8.172-4.488 8.172-8.38 0-.128-.003-.255-.009-.38A5.926 5.926 0 0014 2.546z",
  34222. fill: color2
  34223. }
  34224. )
  34225. )), YoutubeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34226. "svg",
  34227. {
  34228. width: size,
  34229. height: size,
  34230. viewBox: "0 0 14 14",
  34231. fill: "none",
  34232. xmlns: "http://www.w3.org/2000/svg",
  34233. ref: forwardedRef,
  34234. ...props
  34235. },
  34236. React255.createElement(
  34237. "path",
  34238. {
  34239. fillRule: "evenodd",
  34240. clipRule: "evenodd",
  34241. d: "M13.99 8.172c.005-.281.007-.672.007-1.172 0-.5-.002-.89-.007-1.172a14.952 14.952 0 00-.066-1.066 9.638 9.638 0 00-.169-1.153c-.083-.38-.264-.7-.542-.96a1.667 1.667 0 00-.972-.454C11.084 2.065 9.337 2 6.999 2s-4.085.065-5.241.195a1.65 1.65 0 00-.969.453c-.276.26-.455.58-.539.961a8.648 8.648 0 00-.176 1.153c-.039.43-.061.785-.066 1.066C.002 6.11 0 6.5 0 7c0 .5.002.89.008 1.172.005.281.027.637.066 1.067.04.43.095.813.168 1.152.084.38.265.7.543.96.279.261.603.412.973.453 1.156.13 2.902.196 5.24.196 2.34 0 4.087-.065 5.243-.196a1.65 1.65 0 00.967-.453c.276-.26.456-.58.54-.96.077-.339.136-.722.175-1.152.04-.43.062-.786.067-1.067zM9.762 6.578A.45.45 0 019.997 7a.45.45 0 01-.235.422l-3.998 2.5a.442.442 0 01-.266.078.538.538 0 01-.242-.063.465.465 0 01-.258-.437v-5c0-.197.086-.343.258-.437a.471.471 0 01.508.016l3.998 2.5z",
  34242. fill: color2
  34243. }
  34244. )
  34245. )), VSCodeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34246. "svg",
  34247. {
  34248. width: size,
  34249. height: size,
  34250. viewBox: "0 0 14 14",
  34251. fill: "none",
  34252. xmlns: "http://www.w3.org/2000/svg",
  34253. ref: forwardedRef,
  34254. ...props
  34255. },
  34256. React255.createElement(
  34257. "path",
  34258. {
  34259. fillRule: "evenodd",
  34260. clipRule: "evenodd",
  34261. d: "M10.243.04a.87.87 0 01.38.087l2.881 1.386a.874.874 0 01.496.79V11.713a.875.875 0 01-.496.775l-2.882 1.386a.872.872 0 01-.994-.17L4.11 8.674l-2.404 1.823a.583.583 0 01-.744-.034l-.771-.7a.583.583 0 010-.862L2.274 7 .19 5.1a.583.583 0 010-.862l.772-.701a.583.583 0 01.744-.033L4.11 5.327 9.628.296a.871.871 0 01.615-.255zm.259 3.784L6.315 7l4.187 3.176V3.824z",
  34262. fill: color2
  34263. }
  34264. )
  34265. )), LinkedinIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34266. "svg",
  34267. {
  34268. width: size,
  34269. height: size,
  34270. viewBox: "0 0 14 14",
  34271. fill: "none",
  34272. xmlns: "http://www.w3.org/2000/svg",
  34273. ref: forwardedRef,
  34274. ...props
  34275. },
  34276. React255.createElement(
  34277. "path",
  34278. {
  34279. fillRule: "evenodd",
  34280. clipRule: "evenodd",
  34281. d: "M11.667 13H2.333A1.333 1.333 0 011 11.667V2.333C1 1.597 1.597 1 2.333 1h9.334C12.403 1 13 1.597 13 2.333v9.334c0 .736-.597 1.333-1.333 1.333zm-2.114-1.667h1.78V7.675c0-1.548-.877-2.296-2.102-2.296-1.226 0-1.742.955-1.742.955v-.778H5.773v5.777h1.716V8.3c0-.812.374-1.296 1.09-1.296.658 0 .974.465.974 1.296v3.033zm-6.886-7.6c0 .589.474 1.066 1.058 1.066.585 0 1.058-.477 1.058-1.066 0-.589-.473-1.066-1.058-1.066-.584 0-1.058.477-1.058 1.066zm1.962 7.6h-1.79V5.556h1.79v5.777z",
  34282. fill: color2
  34283. }
  34284. )
  34285. )), XIcon = React255.forwardRef(
  34286. ({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34287. "svg",
  34288. {
  34289. width: size,
  34290. height: size,
  34291. viewBox: "0 0 14 14",
  34292. fill: "none",
  34293. xmlns: "http://www.w3.org/2000/svg",
  34294. ref: forwardedRef,
  34295. ...props
  34296. },
  34297. React255.createElement(
  34298. "path",
  34299. {
  34300. d: "M11.02.446h2.137L8.49 5.816l5.51 7.28H9.67L6.298 8.683l-3.88 4.413H.282l5.004-5.735L0 .446h4.442l3.064 4.048L11.02.446zm-.759 11.357h1.18L3.796 1.655H2.502l7.759 10.148z",
  34301. fill: color2
  34302. }
  34303. )
  34304. )
  34305. ), BrowserIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34306. "svg",
  34307. {
  34308. width: size,
  34309. height: size,
  34310. viewBox: "0 0 14 14",
  34311. fill: "none",
  34312. xmlns: "http://www.w3.org/2000/svg",
  34313. ref: forwardedRef,
  34314. ...props
  34315. },
  34316. React255.createElement(
  34317. "path",
  34318. {
  34319. fillRule: "evenodd",
  34320. clipRule: "evenodd",
  34321. d: "M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-8h12v8H1zm1-9.5a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0z",
  34322. fill: color2
  34323. }
  34324. )
  34325. )), TabletIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34326. "svg",
  34327. {
  34328. width: size,
  34329. height: size,
  34330. viewBox: "0 0 14 15",
  34331. fill: "none",
  34332. xmlns: "http://www.w3.org/2000/svg",
  34333. ref: forwardedRef,
  34334. ...props
  34335. },
  34336. React255.createElement(
  34337. "path",
  34338. {
  34339. fillRule: "evenodd",
  34340. clipRule: "evenodd",
  34341. d: "M3.5.004a1.5 1.5 0 00-1.5 1.5v11a1.5 1.5 0 001.5 1.5h7a1.5 1.5 0 001.5-1.5v-11a1.5 1.5 0 00-1.5-1.5h-7zm0 1h7a.5.5 0 01.5.5v9.5H3v-9.5a.5.5 0 01.5-.5zm2.5 11a.5.5 0 000 1h2a.5.5 0 000-1H6z",
  34342. fill: color2
  34343. }
  34344. )
  34345. )), MobileIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34346. "svg",
  34347. {
  34348. width: size,
  34349. height: size,
  34350. viewBox: "0 0 14 15",
  34351. fill: "none",
  34352. xmlns: "http://www.w3.org/2000/svg",
  34353. ref: forwardedRef,
  34354. ...props
  34355. },
  34356. React255.createElement(
  34357. "path",
  34358. {
  34359. fillRule: "evenodd",
  34360. clipRule: "evenodd",
  34361. d: "M3 1.504a1.5 1.5 0 011.5-1.5h5a1.5 1.5 0 011.5 1.5v11a1.5 1.5 0 01-1.5 1.5h-5a1.5 1.5 0 01-1.5-1.5v-11zm1 10.5v-10h6v10H4z",
  34362. fill: color2
  34363. }
  34364. )
  34365. )), WatchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34366. "svg",
  34367. {
  34368. width: size,
  34369. height: size,
  34370. viewBox: "0 0 14 15",
  34371. fill: "none",
  34372. xmlns: "http://www.w3.org/2000/svg",
  34373. ref: forwardedRef,
  34374. ...props
  34375. },
  34376. React255.createElement(
  34377. "path",
  34378. {
  34379. fillRule: "evenodd",
  34380. clipRule: "evenodd",
  34381. d: "M4 .504a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zm5.5 2.5h-5a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-5-1a1.5 1.5 0 00-1.5 1.5v7a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5v-7a1.5 1.5 0 00-1.5-1.5h-5zm2.5 2a.5.5 0 01.5.5v2h1a.5.5 0 110 1H7a.5.5 0 01-.5-.5v-2.5a.5.5 0 01.5-.5zm-2.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5z",
  34382. fill: color2
  34383. }
  34384. )
  34385. )), SidebarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34386. "svg",
  34387. {
  34388. width: size,
  34389. height: size,
  34390. viewBox: "0 0 14 14",
  34391. fill: "none",
  34392. xmlns: "http://www.w3.org/2000/svg",
  34393. ref: forwardedRef,
  34394. ...props
  34395. },
  34396. React255.createElement(
  34397. "path",
  34398. {
  34399. d: "M2.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5zM3 6.004a.5.5 0 100 1h1a.5.5 0 000-1H3zM2.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5z",
  34400. fill: color2
  34401. }
  34402. ),
  34403. React255.createElement(
  34404. "path",
  34405. {
  34406. fillRule: "evenodd",
  34407. clipRule: "evenodd",
  34408. d: "M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h3v10H2zm4-10h6v10H6v-10z",
  34409. fill: color2
  34410. }
  34411. )
  34412. )), SidebarAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34413. "svg",
  34414. {
  34415. width: size,
  34416. height: size,
  34417. viewBox: "0 0 14 14",
  34418. fill: "none",
  34419. xmlns: "http://www.w3.org/2000/svg",
  34420. ref: forwardedRef,
  34421. ...props
  34422. },
  34423. React255.createElement(
  34424. "path",
  34425. {
  34426. d: "M9.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM10 6.004a.5.5 0 100 1h1a.5.5 0 000-1h-1zM9.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",
  34427. fill: color2
  34428. }
  34429. ),
  34430. React255.createElement(
  34431. "path",
  34432. {
  34433. fillRule: "evenodd",
  34434. clipRule: "evenodd",
  34435. d: "M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h6v10H2zm7-10h3v10H9v-10z",
  34436. fill: color2
  34437. }
  34438. )
  34439. )), SidebarAltToggleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34440. "svg",
  34441. {
  34442. width: size,
  34443. height: size,
  34444. viewBox: "0 0 14 14",
  34445. fill: "none",
  34446. xmlns: "http://www.w3.org/2000/svg",
  34447. ref: forwardedRef,
  34448. ...props
  34449. },
  34450. React255.createElement(
  34451. "path",
  34452. {
  34453. d: "M11.5 4.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5zM11 6.004a.5.5 0 010 1h-1a.5.5 0 010-1h1zM11.5 8.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5z",
  34454. fill: color2
  34455. }
  34456. ),
  34457. React255.createElement(
  34458. "path",
  34459. {
  34460. fillRule: "evenodd",
  34461. clipRule: "evenodd",
  34462. d: "M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm7.5-1h3v-10H9v10zm-1 0H2v-10h6v4.5H5.207l.65-.65a.5.5 0 10-.707-.708L3.646 6.65a.5.5 0 000 .707l1.497 1.497a.5.5 0 10.707-.708l-.643-.642H8v4.5z",
  34463. fill: color2
  34464. }
  34465. )
  34466. )), SidebarToggleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34467. "svg",
  34468. {
  34469. width: size,
  34470. height: size,
  34471. viewBox: "0 0 14 14",
  34472. fill: "none",
  34473. xmlns: "http://www.w3.org/2000/svg",
  34474. ref: forwardedRef,
  34475. ...props
  34476. },
  34477. React255.createElement(
  34478. "path",
  34479. {
  34480. d: "M1.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5zM2 6.004a.5.5 0 100 1h1a.5.5 0 000-1H2zM1.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5z",
  34481. fill: color2
  34482. }
  34483. ),
  34484. React255.createElement(
  34485. "path",
  34486. {
  34487. fillRule: "evenodd",
  34488. clipRule: "evenodd",
  34489. d: "M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-10h3v10H1zm4 0v-4.5h2.793l-.643.642a.5.5 0 10.707.708l1.497-1.497a.5.5 0 000-.707L7.85 5.146a.5.5 0 10-.707.708l.65.65H5v-4.5h6v10H5z",
  34490. fill: color2
  34491. }
  34492. )
  34493. )), BottomBarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34494. "svg",
  34495. {
  34496. width: size,
  34497. height: size,
  34498. viewBox: "0 0 14 14",
  34499. fill: "none",
  34500. xmlns: "http://www.w3.org/2000/svg",
  34501. ref: forwardedRef,
  34502. ...props
  34503. },
  34504. React255.createElement(
  34505. "path",
  34506. {
  34507. d: "M3 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM6.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM9 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",
  34508. fill: color2
  34509. }
  34510. ),
  34511. React255.createElement(
  34512. "path",
  34513. {
  34514. fillRule: "evenodd",
  34515. clipRule: "evenodd",
  34516. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 6.5v-6h10v6H2zm10 1v3H2v-3h10z",
  34517. fill: color2
  34518. }
  34519. )
  34520. )), BottomBarToggleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34521. "svg",
  34522. {
  34523. width: size,
  34524. height: size,
  34525. viewBox: "0 0 14 14",
  34526. fill: "none",
  34527. xmlns: "http://www.w3.org/2000/svg",
  34528. ref: forwardedRef,
  34529. ...props
  34530. },
  34531. React255.createElement(
  34532. "path",
  34533. {
  34534. d: "M3.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM6 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM9.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1z",
  34535. fill: color2
  34536. }
  34537. ),
  34538. React255.createElement(
  34539. "path",
  34540. {
  34541. fillRule: "evenodd",
  34542. clipRule: "evenodd",
  34543. d: "M1 12.504v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5zm1-.5v-3h10v3H2zm4.5-4H2v-6h10v6H7.5V5.21l.646.646a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0l-1.5 1.5a.5.5 0 10.708.707l.646-.646v2.793z",
  34544. fill: color2
  34545. }
  34546. )
  34547. )), CPUIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34548. "svg",
  34549. {
  34550. width: size,
  34551. height: size,
  34552. viewBox: "0 0 14 15",
  34553. fill: "none",
  34554. xmlns: "http://www.w3.org/2000/svg",
  34555. ref: forwardedRef,
  34556. ...props
  34557. },
  34558. React255.createElement(
  34559. "path",
  34560. {
  34561. fillRule: "evenodd",
  34562. clipRule: "evenodd",
  34563. d: "M5 5.504a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5v-3zm1 2.5v-2h2v2H6z",
  34564. fill: color2
  34565. }
  34566. ),
  34567. React255.createElement(
  34568. "path",
  34569. {
  34570. fillRule: "evenodd",
  34571. clipRule: "evenodd",
  34572. d: "M5.5.004a.5.5 0 01.5.5v1.5h2v-1.5a.5.5 0 011 0v1.5h2.5a.5.5 0 01.5.5v2.5h1.5a.5.5 0 010 1H12v2h1.5a.5.5 0 010 1H12v2.5a.5.5 0 01-.5.5H9v1.5a.5.5 0 01-1 0v-1.5H6v1.5a.5.5 0 01-1 0v-1.5H2.5a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 010-1H2v-2H.5a.5.5 0 010-1H2v-2.5a.5.5 0 01.5-.5H5v-1.5a.5.5 0 01.5-.5zm5.5 3H3v8h8v-8z",
  34573. fill: color2
  34574. }
  34575. )
  34576. )), DatabaseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34577. "svg",
  34578. {
  34579. width: size,
  34580. height: size,
  34581. viewBox: "0 0 14 14",
  34582. fill: "none",
  34583. xmlns: "http://www.w3.org/2000/svg",
  34584. ref: forwardedRef,
  34585. ...props
  34586. },
  34587. React255.createElement(
  34588. "path",
  34589. {
  34590. fillRule: "evenodd",
  34591. clipRule: "evenodd",
  34592. d: "M12 3c0-1.105-2.239-2-5-2s-5 .895-5 2v8c0 .426.26.752.544.977.29.228.68.413 1.116.558.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.436-.145.825-.33 1.116-.558.285-.225.544-.551.544-.977V3zm-1.03 0a.787.787 0 00-.05-.052c-.13-.123-.373-.28-.756-.434C9.404 2.21 8.286 2 7 2c-1.286 0-2.404.21-3.164.514-.383.153-.625.31-.756.434A.756.756 0 003.03 3a.756.756 0 00.05.052c.13.123.373.28.756.434C4.596 3.79 5.714 4 7 4c1.286 0 2.404-.21 3.164-.514.383-.153.625-.31.756-.434A.787.787 0 0010.97 3zM11 5.75V4.2c-.912.486-2.364.8-4 .8-1.636 0-3.088-.314-4-.8v1.55l.002.008a.147.147 0 00.016.033.618.618 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.62.62 0 00.146-.15.149.149 0 00.015-.033A.03.03 0 0011 5.75zM3 7.013c.2.103.423.193.66.272.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.237-.079.46-.17.66-.272V8.5l-.002.008a.149.149 0 01-.015.033.62.62 0 01-.146.15c-.165.13-.435.27-.813.395-.751.25-1.82.414-3.024.414s-2.273-.163-3.024-.414c-.378-.126-.648-.265-.813-.395a.618.618 0 01-.145-.15.147.147 0 01-.016-.033A.027.027 0 013 8.5V7.013zm0 2.75V11l.002.008a.147.147 0 00.016.033.617.617 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 00.146-.15.148.148 0 00.015-.033L11 11V9.763c-.2.103-.423.193-.66.272-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465A4.767 4.767 0 013 9.763z",
  34593. fill: color2
  34594. }
  34595. )
  34596. )), MemoryIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34597. "svg",
  34598. {
  34599. width: size,
  34600. height: size,
  34601. viewBox: "0 0 14 15",
  34602. fill: "none",
  34603. xmlns: "http://www.w3.org/2000/svg",
  34604. ref: forwardedRef,
  34605. ...props
  34606. },
  34607. React255.createElement(
  34608. "path",
  34609. {
  34610. d: "M5 3a.5.5 0 00-1 0v3a.5.5 0 001 0V3zM7 2.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V3a.5.5 0 01.5-.5zM10 4.504a.5.5 0 10-1 0V6a.5.5 0 001 0V4.504z",
  34611. fill: color2
  34612. }
  34613. ),
  34614. React255.createElement(
  34615. "path",
  34616. {
  34617. fillRule: "evenodd",
  34618. clipRule: "evenodd",
  34619. d: "M12 3.54l-.001-.002a.499.499 0 00-.145-.388l-3-3a.499.499 0 00-.388-.145L8.464.004H2.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h9a.5.5 0 00.5-.5V3.54zM3 1.004h5.293L11 3.71v5.293H3v-8zm0 9v3h8v-3H3z",
  34620. fill: color2
  34621. }
  34622. )
  34623. )), StructureIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34624. "svg",
  34625. {
  34626. width: size,
  34627. height: size,
  34628. viewBox: "0 0 14 14",
  34629. fill: "none",
  34630. xmlns: "http://www.w3.org/2000/svg",
  34631. ref: forwardedRef,
  34632. ...props
  34633. },
  34634. React255.createElement(
  34635. "path",
  34636. {
  34637. fillRule: "evenodd",
  34638. clipRule: "evenodd",
  34639. d: "M8.164 3.446a1.5 1.5 0 10-2.328 0L1.81 10.032A1.503 1.503 0 000 11.5a1.5 1.5 0 002.915.5h8.17a1.5 1.5 0 101.104-1.968L8.164 3.446zm-1.475.522a1.506 1.506 0 00.622 0l4.025 6.586a1.495 1.495 0 00-.25.446H2.914a1.497 1.497 0 00-.25-.446l4.024-6.586z",
  34640. fill: color2
  34641. }
  34642. )
  34643. )), BoxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34644. "svg",
  34645. {
  34646. width: size,
  34647. height: size,
  34648. viewBox: "0 0 14 14",
  34649. fill: "none",
  34650. xmlns: "http://www.w3.org/2000/svg",
  34651. ref: forwardedRef,
  34652. ...props
  34653. },
  34654. React255.createElement(
  34655. "path",
  34656. {
  34657. fillRule: "evenodd",
  34658. clipRule: "evenodd",
  34659. d: "M7.21.046l6.485 2.994A.5.5 0 0114 3.51v6.977a.495.495 0 01-.23.432.481.481 0 01-.071.038L7.23 13.944a.499.499 0 01-.46 0L.3 10.958a.498.498 0 01-.3-.47V3.511a.497.497 0 01.308-.473L6.78.051a.499.499 0 01.43-.005zM1 4.282v5.898l5.5 2.538V6.82L1 4.282zm6.5 8.436L13 10.18V4.282L7.5 6.82v5.898zM12.307 3.5L7 5.95 1.693 3.5 7 1.05l5.307 2.45z",
  34660. fill: color2
  34661. }
  34662. )
  34663. )), PowerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34664. "svg",
  34665. {
  34666. width: size,
  34667. height: size,
  34668. viewBox: "0 0 14 14",
  34669. fill: "none",
  34670. xmlns: "http://www.w3.org/2000/svg",
  34671. ref: forwardedRef,
  34672. ...props
  34673. },
  34674. React255.createElement("path", { d: "M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z", fill: color2 }),
  34675. React255.createElement(
  34676. "path",
  34677. {
  34678. d: "M4.273 2.808a.5.5 0 00-.546-.837 6 6 0 106.546 0 .5.5 0 00-.546.837 5 5 0 11-5.454 0z",
  34679. fill: color2
  34680. }
  34681. )
  34682. )), EditIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34683. "svg",
  34684. {
  34685. width: size,
  34686. height: size,
  34687. viewBox: "0 0 14 14",
  34688. fill: "none",
  34689. xmlns: "http://www.w3.org/2000/svg",
  34690. ref: forwardedRef,
  34691. ...props
  34692. },
  34693. React255.createElement(
  34694. "path",
  34695. {
  34696. fillRule: "evenodd",
  34697. clipRule: "evenodd",
  34698. d: "M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",
  34699. fill: color2
  34700. }
  34701. )
  34702. )), CogIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34703. "svg",
  34704. {
  34705. width: size,
  34706. height: size,
  34707. viewBox: "0 0 14 14",
  34708. fill: "none",
  34709. xmlns: "http://www.w3.org/2000/svg",
  34710. ref: forwardedRef,
  34711. ...props
  34712. },
  34713. React255.createElement(
  34714. "path",
  34715. {
  34716. d: "M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",
  34717. fill: color2
  34718. }
  34719. ),
  34720. React255.createElement(
  34721. "path",
  34722. {
  34723. fillRule: "evenodd",
  34724. clipRule: "evenodd",
  34725. d: "M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",
  34726. fill: color2
  34727. }
  34728. )
  34729. )), NutIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34730. "svg",
  34731. {
  34732. width: size,
  34733. height: size,
  34734. viewBox: "0 0 14 14",
  34735. fill: "none",
  34736. xmlns: "http://www.w3.org/2000/svg",
  34737. ref: forwardedRef,
  34738. ...props
  34739. },
  34740. React255.createElement(
  34741. "path",
  34742. {
  34743. d: "M5.585 8.414a2 2 0 113.277-.683.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 00-.365-.93 2 2 0 01-2.146-.449z",
  34744. fill: color2
  34745. }
  34746. ),
  34747. React255.createElement(
  34748. "path",
  34749. {
  34750. fillRule: "evenodd",
  34751. clipRule: "evenodd",
  34752. d: "M6.5.289a1 1 0 011 0l5.062 2.922a1 1 0 01.5.866v5.846a1 1 0 01-.5.866L7.5 13.71a1 1 0 01-1 0L1.437 10.79a1 1 0 01-.5-.866V4.077a1 1 0 01.5-.866L6.5.29zm.5.866l5.062 2.922v5.846L7 12.845 1.937 9.923V4.077L7 1.155z",
  34753. fill: color2
  34754. }
  34755. )
  34756. )), WrenchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34757. "svg",
  34758. {
  34759. width: size,
  34760. height: size,
  34761. viewBox: "0 0 14 14",
  34762. fill: "none",
  34763. xmlns: "http://www.w3.org/2000/svg",
  34764. ref: forwardedRef,
  34765. ...props
  34766. },
  34767. React255.createElement(
  34768. "path",
  34769. {
  34770. fillRule: "evenodd",
  34771. clipRule: "evenodd",
  34772. d: "M10.5 1c.441 0 .564.521.252.833l-.806.807a.51.51 0 000 .72l.694.694a.51.51 0 00.72 0l.807-.806c.312-.312.833-.19.833.252a2.5 2.5 0 01-3.414 2.328l-6.879 6.88a1 1 0 01-1.414-1.415l6.88-6.88A2.5 2.5 0 0110.5 1zM2 12.5a.5.5 0 100-1 .5.5 0 000 1z",
  34773. fill: color2
  34774. }
  34775. )
  34776. )), EllipsisIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34777. "svg",
  34778. {
  34779. width: size,
  34780. height: size,
  34781. viewBox: "0 0 14 14",
  34782. fill: "none",
  34783. xmlns: "http://www.w3.org/2000/svg",
  34784. ref: forwardedRef,
  34785. ...props
  34786. },
  34787. React255.createElement(
  34788. "path",
  34789. {
  34790. d: "M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",
  34791. fill: color2
  34792. }
  34793. )
  34794. )), WandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34795. "svg",
  34796. {
  34797. width: size,
  34798. height: size,
  34799. viewBox: "0 0 14 15",
  34800. fill: "none",
  34801. xmlns: "http://www.w3.org/2000/svg",
  34802. ref: forwardedRef,
  34803. ...props
  34804. },
  34805. React255.createElement(
  34806. "path",
  34807. {
  34808. d: "M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.633l-.486.272a.107.107 0 01-.157-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.217-1.09.817-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.217-1.09.817-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",
  34809. fill: color2
  34810. }
  34811. ),
  34812. React255.createElement(
  34813. "path",
  34814. {
  34815. fillRule: "evenodd",
  34816. clipRule: "evenodd",
  34817. d: "M.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2zm2.353.94l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.039l1.293 1.293z",
  34818. fill: color2
  34819. }
  34820. )
  34821. )), SweepIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34822. "svg",
  34823. {
  34824. width: size,
  34825. height: size,
  34826. viewBox: "0 0 14 14",
  34827. fill: "none",
  34828. xmlns: "http://www.w3.org/2000/svg",
  34829. ref: forwardedRef,
  34830. ...props
  34831. },
  34832. React255.createElement(
  34833. "path",
  34834. {
  34835. fillRule: "evenodd",
  34836. clipRule: "evenodd",
  34837. d: "M9.621 3.914l.379.379 3.146-3.147a.5.5 0 01.708.708L10.707 5l.379.379a3 3 0 010 4.242l-.707.707-.005.005-.008.008-.012.013-1.733 1.732a3 3 0 01-4.242 0L.146 7.854a.5.5 0 01.708-.707.915.915 0 001.292 0L4.64 4.654a.52.52 0 01.007-.008l.733-.732a3 3 0 014.242 0zm-4.26 1.432l.139-.139 3.146 3.147a.5.5 0 10.708-.707L6.212 4.505a2 2 0 012.702.116l.731.731.001.002h.002l.73.732a2 2 0 010 2.828l-.706.707-.012.013a.503.503 0 00-.014.013l-1.732 1.732a2 2 0 01-2.828 0L3.354 9.647a2.489 2.489 0 001.414-.708l1.086-1.085a.5.5 0 10-.708-.707L4.061 8.232a1.5 1.5 0 01-2.01.102c.294-.088.57-.248.803-.48l2.5-2.5a.475.475 0 00.007-.008z",
  34838. fill: color2
  34839. }
  34840. ),
  34841. React255.createElement(
  34842. "path",
  34843. {
  34844. d: "M2 5.004a1 1 0 11-2 0 1 1 0 012 0zM4 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  34845. fill: color2
  34846. }
  34847. )
  34848. )), CheckIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34849. "svg",
  34850. {
  34851. width: size,
  34852. height: size,
  34853. viewBox: "0 0 14 14",
  34854. fill: "none",
  34855. xmlns: "http://www.w3.org/2000/svg",
  34856. ref: forwardedRef,
  34857. ...props
  34858. },
  34859. React255.createElement(
  34860. "path",
  34861. {
  34862. d: "M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",
  34863. fill: color2
  34864. }
  34865. )
  34866. )), FormIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34867. "svg",
  34868. {
  34869. width: size,
  34870. height: size,
  34871. viewBox: "0 0 14 14",
  34872. fill: "none",
  34873. xmlns: "http://www.w3.org/2000/svg",
  34874. ref: forwardedRef,
  34875. ...props
  34876. },
  34877. React255.createElement(
  34878. "path",
  34879. {
  34880. d: "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V6.393a.5.5 0 00-1 0v5.61H2v-10h7.5a.5.5 0 000-1H2z",
  34881. fill: color2
  34882. }
  34883. ),
  34884. React255.createElement(
  34885. "path",
  34886. {
  34887. d: "M6.354 9.857l7.5-7.5a.5.5 0 00-.708-.707L6 8.797 3.854 6.65a.5.5 0 10-.708.707l2.5 2.5a.5.5 0 00.708 0z",
  34888. fill: color2
  34889. }
  34890. )
  34891. )), BatchDenyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34892. "svg",
  34893. {
  34894. width: size,
  34895. height: size,
  34896. viewBox: "0 0 14 14",
  34897. fill: "none",
  34898. xmlns: "http://www.w3.org/2000/svg",
  34899. ref: forwardedRef,
  34900. ...props
  34901. },
  34902. React255.createElement(
  34903. "path",
  34904. {
  34905. d: "M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8.854 2.646a.5.5 0 010 .708L5.207 7l3.647 3.646a.5.5 0 01-.708.708L4.5 7.707.854 11.354a.5.5 0 01-.708-.708L3.793 7 .146 3.354a.5.5 0 11.708-.708L4.5 6.293l3.646-3.647a.5.5 0 01.708 0zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",
  34906. fill: color2
  34907. }
  34908. )
  34909. )), BatchAcceptIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34910. "svg",
  34911. {
  34912. width: size,
  34913. height: size,
  34914. viewBox: "0 0 14 14",
  34915. fill: "none",
  34916. xmlns: "http://www.w3.org/2000/svg",
  34917. ref: forwardedRef,
  34918. ...props
  34919. },
  34920. React255.createElement(
  34921. "path",
  34922. {
  34923. d: "M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",
  34924. fill: color2
  34925. }
  34926. )
  34927. )), ControlsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34928. "svg",
  34929. {
  34930. width: size,
  34931. height: size,
  34932. viewBox: "0 0 14 14",
  34933. fill: "none",
  34934. xmlns: "http://www.w3.org/2000/svg",
  34935. ref: forwardedRef,
  34936. ...props
  34937. },
  34938. React255.createElement(
  34939. "path",
  34940. {
  34941. d: "M10.5 1a.5.5 0 01.5.5V2h1.5a.5.5 0 010 1H11v.5a.5.5 0 01-1 0V3H1.5a.5.5 0 010-1H10v-.5a.5.5 0 01.5-.5zM1.5 11a.5.5 0 000 1H10v.5a.5.5 0 001 0V12h1.5a.5.5 0 000-1H11v-.5a.5.5 0 00-1 0v.5H1.5zM1 7a.5.5 0 01.5-.5H3V6a.5.5 0 011 0v.5h8.5a.5.5 0 010 1H4V8a.5.5 0 01-1 0v-.5H1.5A.5.5 0 011 7z",
  34942. fill: color2
  34943. }
  34944. )
  34945. )), PlusIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34946. "svg",
  34947. {
  34948. width: size,
  34949. height: size,
  34950. viewBox: "0 0 14 14",
  34951. fill: "none",
  34952. xmlns: "http://www.w3.org/2000/svg",
  34953. ref: forwardedRef,
  34954. ...props
  34955. },
  34956. React255.createElement(
  34957. "path",
  34958. {
  34959. d: "M7 1a.5.5 0 01.5.5v5h5a.5.5 0 010 1h-5v5a.5.5 0 01-1 0v-5h-5a.5.5 0 010-1h5v-5A.5.5 0 017 1z",
  34960. fill: color2
  34961. }
  34962. )
  34963. )), CloseAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34964. "svg",
  34965. {
  34966. width: size,
  34967. height: size,
  34968. viewBox: "0 0 14 14",
  34969. fill: "none",
  34970. xmlns: "http://www.w3.org/2000/svg",
  34971. ref: forwardedRef,
  34972. ...props
  34973. },
  34974. React255.createElement(
  34975. "path",
  34976. {
  34977. d: "M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",
  34978. fill: color2
  34979. }
  34980. )
  34981. )), CrossIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34982. "svg",
  34983. {
  34984. width: size,
  34985. height: size,
  34986. viewBox: "0 0 14 14",
  34987. fill: "none",
  34988. xmlns: "http://www.w3.org/2000/svg",
  34989. ref: forwardedRef,
  34990. ...props
  34991. },
  34992. React255.createElement(
  34993. "path",
  34994. {
  34995. d: "M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",
  34996. fill: color2
  34997. }
  34998. )
  34999. )), TrashIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35000. "svg",
  35001. {
  35002. width: size,
  35003. height: size,
  35004. viewBox: "0 0 14 14",
  35005. fill: "none",
  35006. xmlns: "http://www.w3.org/2000/svg",
  35007. ref: forwardedRef,
  35008. ...props
  35009. },
  35010. React255.createElement(
  35011. "path",
  35012. {
  35013. d: "M5.5 4.5A.5.5 0 016 5v5a.5.5 0 01-1 0V5a.5.5 0 01.5-.5zM9 5a.5.5 0 00-1 0v5a.5.5 0 001 0V5z",
  35014. fill: color2
  35015. }
  35016. ),
  35017. React255.createElement(
  35018. "path",
  35019. {
  35020. fillRule: "evenodd",
  35021. clipRule: "evenodd",
  35022. d: "M4.5.5A.5.5 0 015 0h4a.5.5 0 01.5.5V2h3a.5.5 0 010 1H12v8a2 2 0 01-2 2H4a2 2 0 01-2-2V3h-.5a.5.5 0 010-1h3V.5zM3 3v8a1 1 0 001 1h6a1 1 0 001-1V3H3zm2.5-2h3v1h-3V1z",
  35023. fill: color2
  35024. }
  35025. )
  35026. )), PinAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35027. "svg",
  35028. {
  35029. width: size,
  35030. height: size,
  35031. viewBox: "0 0 14 14",
  35032. fill: "none",
  35033. xmlns: "http://www.w3.org/2000/svg",
  35034. ref: forwardedRef,
  35035. ...props
  35036. },
  35037. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3502)" }, React255.createElement(
  35038. "path",
  35039. {
  35040. fillRule: "evenodd",
  35041. clipRule: "evenodd",
  35042. d: "M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5 5H3.657A4 4 0 00.828 6.17l-.474.475a.5.5 0 000 .707l2.793 2.793-3 3a.5.5 0 00.707.708l3-3 2.792 2.792a.5.5 0 00.708 0l.474-.475A4 4 0 009 10.343V9l2-2a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM11 5.585l-3 3v1.757a3 3 0 01-.879 2.121L7 12.586 1.414 7l.122-.122A3 3 0 013.656 6h1.758l3-3-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586z",
  35043. fill: color2
  35044. }
  35045. )),
  35046. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3502" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  35047. )), UnpinIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35048. "svg",
  35049. {
  35050. width: size,
  35051. height: size,
  35052. viewBox: "0 0 14 14",
  35053. fill: "none",
  35054. xmlns: "http://www.w3.org/2000/svg",
  35055. ref: forwardedRef,
  35056. ...props
  35057. },
  35058. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3501)", fill: color2 }, React255.createElement("path", { d: "M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5.707 4.293 6.414 5l2-2-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586l-2 2 .707.707L11 7a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM.828 6.171a4 4 0 012.758-1.17l1 .999h-.93a3 3 0 00-2.12.878L1.414 7 7 12.586l.121-.122A3 3 0 008 10.343v-.929l1 1a4 4 0 01-1.172 2.757l-.474.475a.5.5 0 01-.708 0l-2.792-2.792-3 3a.5.5 0 01-.708-.708l3-3L.355 7.353a.5.5 0 010-.707l.474-.475zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z" })),
  35059. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3501" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  35060. )), AddIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35061. "svg",
  35062. {
  35063. width: size,
  35064. height: size,
  35065. viewBox: "0 0 14 14",
  35066. fill: "none",
  35067. xmlns: "http://www.w3.org/2000/svg",
  35068. ref: forwardedRef,
  35069. ...props
  35070. },
  35071. React255.createElement(
  35072. "path",
  35073. {
  35074. d: "M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",
  35075. fill: color2
  35076. }
  35077. ),
  35078. React255.createElement(
  35079. "path",
  35080. {
  35081. fillRule: "evenodd",
  35082. clipRule: "evenodd",
  35083. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  35084. fill: color2
  35085. }
  35086. )
  35087. )), SubtractIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35088. "svg",
  35089. {
  35090. width: size,
  35091. height: size,
  35092. viewBox: "0 0 14 14",
  35093. fill: "none",
  35094. xmlns: "http://www.w3.org/2000/svg",
  35095. ref: forwardedRef,
  35096. ...props
  35097. },
  35098. React255.createElement("path", { d: "M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z", fill: color2 }),
  35099. React255.createElement(
  35100. "path",
  35101. {
  35102. fillRule: "evenodd",
  35103. clipRule: "evenodd",
  35104. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  35105. fill: color2
  35106. }
  35107. )
  35108. )), CloseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35109. "svg",
  35110. {
  35111. width: size,
  35112. height: size,
  35113. viewBox: "0 0 14 14",
  35114. fill: "none",
  35115. xmlns: "http://www.w3.org/2000/svg",
  35116. ref: forwardedRef,
  35117. ...props
  35118. },
  35119. React255.createElement(
  35120. "path",
  35121. {
  35122. d: "M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",
  35123. fill: color2
  35124. }
  35125. ),
  35126. React255.createElement(
  35127. "path",
  35128. {
  35129. fillRule: "evenodd",
  35130. clipRule: "evenodd",
  35131. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  35132. fill: color2
  35133. }
  35134. )
  35135. )), DeleteIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35136. "svg",
  35137. {
  35138. width: size,
  35139. height: size,
  35140. viewBox: "0 0 14 14",
  35141. fill: "none",
  35142. xmlns: "http://www.w3.org/2000/svg",
  35143. ref: forwardedRef,
  35144. ...props
  35145. },
  35146. React255.createElement(
  35147. "path",
  35148. {
  35149. fillRule: "evenodd",
  35150. clipRule: "evenodd",
  35151. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0a6 6 0 01-9.874 4.582l8.456-8.456A5.976 5.976 0 0113 7zM2.418 10.874l8.456-8.456a6 6 0 00-8.456 8.456z",
  35152. fill: color2
  35153. }
  35154. )
  35155. )), PassedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35156. "svg",
  35157. {
  35158. width: size,
  35159. height: size,
  35160. viewBox: "0 0 14 14",
  35161. fill: "none",
  35162. xmlns: "http://www.w3.org/2000/svg",
  35163. ref: forwardedRef,
  35164. ...props
  35165. },
  35166. React255.createElement(
  35167. "path",
  35168. {
  35169. fillRule: "evenodd",
  35170. clipRule: "evenodd",
  35171. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",
  35172. fill: color2
  35173. }
  35174. )
  35175. )), ChangedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35176. "svg",
  35177. {
  35178. width: size,
  35179. height: size,
  35180. viewBox: "0 0 14 14",
  35181. fill: "none",
  35182. xmlns: "http://www.w3.org/2000/svg",
  35183. ref: forwardedRef,
  35184. ...props
  35185. },
  35186. React255.createElement(
  35187. "path",
  35188. {
  35189. fillRule: "evenodd",
  35190. clipRule: "evenodd",
  35191. d: "M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",
  35192. fill: color2
  35193. }
  35194. )
  35195. )), FailedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35196. "svg",
  35197. {
  35198. width: size,
  35199. height: size,
  35200. viewBox: "0 0 14 14",
  35201. fill: "none",
  35202. xmlns: "http://www.w3.org/2000/svg",
  35203. ref: forwardedRef,
  35204. ...props
  35205. },
  35206. React255.createElement(
  35207. "path",
  35208. {
  35209. fillRule: "evenodd",
  35210. clipRule: "evenodd",
  35211. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",
  35212. fill: color2
  35213. }
  35214. )
  35215. )), ClearIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35216. "svg",
  35217. {
  35218. width: size,
  35219. height: size,
  35220. viewBox: "0 0 14 14",
  35221. fill: "none",
  35222. xmlns: "http://www.w3.org/2000/svg",
  35223. ref: forwardedRef,
  35224. ...props
  35225. },
  35226. React255.createElement(
  35227. "path",
  35228. {
  35229. fillRule: "evenodd",
  35230. clipRule: "evenodd",
  35231. d: "M5 2h7a2 2 0 012 2v6a2 2 0 01-2 2H5a1.994 1.994 0 01-1.414-.586l-3-3a2 2 0 010-2.828l3-3A1.994 1.994 0 015 2zm1.146 3.146a.5.5 0 01.708 0L8 6.293l1.146-1.147a.5.5 0 11.708.708L8.707 7l1.147 1.146a.5.5 0 01-.708.708L8 7.707 6.854 8.854a.5.5 0 11-.708-.708L7.293 7 6.146 5.854a.5.5 0 010-.708z",
  35232. fill: color2
  35233. }
  35234. )
  35235. )), CommentIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35236. "svg",
  35237. {
  35238. width: size,
  35239. height: size,
  35240. viewBox: "0 0 14 15",
  35241. fill: "none",
  35242. xmlns: "http://www.w3.org/2000/svg",
  35243. ref: forwardedRef,
  35244. ...props
  35245. },
  35246. React255.createElement(
  35247. "path",
  35248. {
  35249. d: "M3.5 5.004a.5.5 0 100 1h7a.5.5 0 000-1h-7zM3 8.504a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5z",
  35250. fill: color2
  35251. }
  35252. ),
  35253. React255.createElement(
  35254. "path",
  35255. {
  35256. fillRule: "evenodd",
  35257. clipRule: "evenodd",
  35258. d: "M12.5 12.004H5.707l-1.853 1.854a.5.5 0 01-.351.146h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5zm-10.5-1v-8h10v8H2z",
  35259. fill: color2
  35260. }
  35261. )
  35262. )), CommentAddIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35263. "svg",
  35264. {
  35265. width: size,
  35266. height: size,
  35267. viewBox: "0 0 14 15",
  35268. fill: "none",
  35269. xmlns: "http://www.w3.org/2000/svg",
  35270. ref: forwardedRef,
  35271. ...props
  35272. },
  35273. React255.createElement(
  35274. "path",
  35275. {
  35276. d: "M7.5 5.004a.5.5 0 10-1 0v1.5H5a.5.5 0 100 1h1.5v1.5a.5.5 0 001 0v-1.5H9a.5.5 0 000-1H7.5v-1.5z",
  35277. fill: color2
  35278. }
  35279. ),
  35280. React255.createElement(
  35281. "path",
  35282. {
  35283. fillRule: "evenodd",
  35284. clipRule: "evenodd",
  35285. d: "M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",
  35286. fill: color2
  35287. }
  35288. )
  35289. )), RequestChangeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35290. "svg",
  35291. {
  35292. width: size,
  35293. height: size,
  35294. viewBox: "0 0 14 15",
  35295. fill: "none",
  35296. xmlns: "http://www.w3.org/2000/svg",
  35297. ref: forwardedRef,
  35298. ...props
  35299. },
  35300. React255.createElement(
  35301. "path",
  35302. {
  35303. d: "M9.854 6.65a.5.5 0 010 .707l-2 2a.5.5 0 11-.708-.707l1.15-1.15-3.796.004a.5.5 0 010-1L8.29 6.5 7.145 5.357a.5.5 0 11.708-.707l2 2z",
  35304. fill: color2
  35305. }
  35306. ),
  35307. React255.createElement(
  35308. "path",
  35309. {
  35310. fillRule: "evenodd",
  35311. clipRule: "evenodd",
  35312. d: "M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",
  35313. fill: color2
  35314. }
  35315. )
  35316. )), CommentsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35317. "svg",
  35318. {
  35319. width: size,
  35320. height: size,
  35321. viewBox: "0 0 14 15",
  35322. fill: "none",
  35323. xmlns: "http://www.w3.org/2000/svg",
  35324. ref: forwardedRef,
  35325. ...props
  35326. },
  35327. React255.createElement(
  35328. "path",
  35329. {
  35330. d: "M8.5 7.004a.5.5 0 000-1h-5a.5.5 0 100 1h5zM9 8.504a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5z",
  35331. fill: color2
  35332. }
  35333. ),
  35334. React255.createElement(
  35335. "path",
  35336. {
  35337. fillRule: "evenodd",
  35338. clipRule: "evenodd",
  35339. d: "M12 11.504v-1.5h1.5a.5.5 0 00.5-.5v-8a.5.5 0 00-.5-.5h-11a.5.5 0 00-.5.5v1.5H.5a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H2v1.5a.499.499 0 00.497.5h.006a.498.498 0 00.35-.146l1.854-1.854H11.5a.5.5 0 00.5-.5zm-9-8.5v-1h10v7h-1v-5.5a.5.5 0 00-.5-.5H3zm-2 8v-7h10v7H1z",
  35340. fill: color2
  35341. }
  35342. )
  35343. )), ChatIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35344. "svg",
  35345. {
  35346. width: size,
  35347. height: size,
  35348. viewBox: "0 0 14 14",
  35349. fill: "none",
  35350. xmlns: "http://www.w3.org/2000/svg",
  35351. ref: forwardedRef,
  35352. ...props
  35353. },
  35354. React255.createElement(
  35355. "path",
  35356. {
  35357. fillRule: "evenodd",
  35358. clipRule: "evenodd",
  35359. d: "M1 2a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H6.986a.444.444 0 01-.124.103l-3.219 1.84A.43.43 0 013 13.569V12a2 2 0 01-2-2V2zm3.42 4.78a.921.921 0 110-1.843.921.921 0 010 1.842zm1.658-.922a.921.921 0 101.843 0 .921.921 0 00-1.843 0zm2.58 0a.921.921 0 101.842 0 .921.921 0 00-1.843 0z",
  35360. fill: color2
  35361. }
  35362. )
  35363. )), LockIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35364. "svg",
  35365. {
  35366. width: size,
  35367. height: size,
  35368. viewBox: "0 0 14 15",
  35369. fill: "none",
  35370. xmlns: "http://www.w3.org/2000/svg",
  35371. ref: forwardedRef,
  35372. ...props
  35373. },
  35374. React255.createElement(
  35375. "path",
  35376. {
  35377. d: "M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",
  35378. fill: color2
  35379. }
  35380. ),
  35381. React255.createElement(
  35382. "path",
  35383. {
  35384. fillRule: "evenodd",
  35385. clipRule: "evenodd",
  35386. d: "M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",
  35387. fill: color2
  35388. }
  35389. )
  35390. )), UnlockIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35391. "svg",
  35392. {
  35393. width: size,
  35394. height: size,
  35395. viewBox: "0 0 14 14",
  35396. fill: "none",
  35397. xmlns: "http://www.w3.org/2000/svg",
  35398. ref: forwardedRef,
  35399. ...props
  35400. },
  35401. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3614)", fill: color2 }, React255.createElement("path", { d: "M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z" }), React255.createElement(
  35402. "path",
  35403. {
  35404. fillRule: "evenodd",
  35405. clipRule: "evenodd",
  35406. d: "M7 1a3 3 0 00-3 3v1.004h8.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3V4a4 4 0 017.755-1.381.5.5 0 01-.939.345A3.001 3.001 0 007 1zM2 6.004h10v7H2v-7z"
  35407. }
  35408. )),
  35409. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3614" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  35410. )), KeyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35411. "svg",
  35412. {
  35413. width: size,
  35414. height: size,
  35415. viewBox: "0 0 14 14",
  35416. fill: "none",
  35417. xmlns: "http://www.w3.org/2000/svg",
  35418. ref: forwardedRef,
  35419. ...props
  35420. },
  35421. React255.createElement("path", { d: "M11 4a1 1 0 11-2 0 1 1 0 012 0z", fill: color2 }),
  35422. React255.createElement(
  35423. "path",
  35424. {
  35425. fillRule: "evenodd",
  35426. clipRule: "evenodd",
  35427. d: "M7.5 8.532V9.5a.5.5 0 01-.5.5H5.5v1.5a.5.5 0 01-.5.5H3.5v1.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-2a.5.5 0 01.155-.362l5.11-5.11A4.5 4.5 0 117.5 8.532zM6 4.5a3.5 3.5 0 111.5 2.873c-.29-.203-1-.373-1 .481V9H5a.5.5 0 00-.5.5V11H3a.5.5 0 00-.5.5V13H1v-1.293l5.193-5.193a.552.552 0 00.099-.613A3.473 3.473 0 016 4.5z",
  35428. fill: color2
  35429. }
  35430. )
  35431. )), OutboxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35432. "svg",
  35433. {
  35434. width: size,
  35435. height: size,
  35436. viewBox: "0 0 14 14",
  35437. fill: "none",
  35438. xmlns: "http://www.w3.org/2000/svg",
  35439. ref: forwardedRef,
  35440. ...props
  35441. },
  35442. React255.createElement(
  35443. "path",
  35444. {
  35445. d: "M7.354.15a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.707L6.5 1.711v6.793a.5.5 0 001 0V1.71l1.146 1.146a.5.5 0 10.708-.707l-2-2z",
  35446. fill: color2
  35447. }
  35448. ),
  35449. React255.createElement(
  35450. "path",
  35451. {
  35452. d: "M2 7.504a.5.5 0 10-1 0v5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-5a.5.5 0 00-1 0v4.5H2v-4.5z",
  35453. fill: color2
  35454. }
  35455. )
  35456. )), CreditIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35457. "svg",
  35458. {
  35459. width: size,
  35460. height: size,
  35461. viewBox: "0 0 14 14",
  35462. fill: "none",
  35463. xmlns: "http://www.w3.org/2000/svg",
  35464. ref: forwardedRef,
  35465. ...props
  35466. },
  35467. React255.createElement("path", { d: "M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z", fill: color2 }),
  35468. React255.createElement(
  35469. "path",
  35470. {
  35471. fillRule: "evenodd",
  35472. clipRule: "evenodd",
  35473. d: "M0 11.504a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v9zm1-8.5v1h12v-1H1zm0 8h12v-5H1v5z",
  35474. fill: color2
  35475. }
  35476. )
  35477. )), ButtonIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35478. "svg",
  35479. {
  35480. width: size,
  35481. height: size,
  35482. viewBox: "0 0 14 14",
  35483. fill: "none",
  35484. xmlns: "http://www.w3.org/2000/svg",
  35485. ref: forwardedRef,
  35486. ...props
  35487. },
  35488. React255.createElement(
  35489. "path",
  35490. {
  35491. d: "M1 3.004a1 1 0 00-1 1v5a1 1 0 001 1h3.5a.5.5 0 100-1H1v-5h12v5h-1a.5.5 0 000 1h1a1 1 0 001-1v-5a1 1 0 00-1-1H1z",
  35492. fill: color2
  35493. }
  35494. ),
  35495. React255.createElement(
  35496. "path",
  35497. {
  35498. d: "M6.45 7.006a.498.498 0 01.31.07L10.225 9.1a.5.5 0 01-.002.873l-1.074.621.75 1.3a.75.75 0 01-1.3.75l-.75-1.3-1.074.62a.497.497 0 01-.663-.135.498.498 0 01-.095-.3L6 7.515a.497.497 0 01.45-.509z",
  35499. fill: color2
  35500. }
  35501. )
  35502. )), TypeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35503. "svg",
  35504. {
  35505. width: size,
  35506. height: size,
  35507. viewBox: "0 0 14 14",
  35508. fill: "none",
  35509. xmlns: "http://www.w3.org/2000/svg",
  35510. ref: forwardedRef,
  35511. ...props
  35512. },
  35513. React255.createElement(
  35514. "path",
  35515. {
  35516. d: "M4 1.504a.5.5 0 01.5-.5h5a.5.5 0 110 1h-2v10h2a.5.5 0 010 1h-5a.5.5 0 010-1h2v-10h-2a.5.5 0 01-.5-.5z",
  35517. fill: color2
  35518. }
  35519. ),
  35520. React255.createElement(
  35521. "path",
  35522. {
  35523. d: "M0 4.504a.5.5 0 01.5-.5h4a.5.5 0 110 1H1v4h3.5a.5.5 0 110 1h-4a.5.5 0 01-.5-.5v-5zM9.5 4.004a.5.5 0 100 1H13v4H9.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-4z",
  35524. fill: color2
  35525. }
  35526. )
  35527. )), PointerDefaultIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35528. "svg",
  35529. {
  35530. width: size,
  35531. height: size,
  35532. viewBox: "0 0 14 14",
  35533. fill: "none",
  35534. xmlns: "http://www.w3.org/2000/svg",
  35535. ref: forwardedRef,
  35536. ...props
  35537. },
  35538. React255.createElement(
  35539. "path",
  35540. {
  35541. fillRule: "evenodd",
  35542. clipRule: "evenodd",
  35543. d: "M5.943 12.457a.27.27 0 00.248-.149L7.77 9.151l2.54 2.54a.257.257 0 00.188.073c.082 0 .158-.03.21-.077l.788-.79a.27.27 0 000-.392L8.891 7.9l3.416-1.708a.29.29 0 00.117-.106.222.222 0 00.033-.134.332.332 0 00-.053-.161.174.174 0 00-.092-.072l-.02-.007-10.377-4.15a.274.274 0 00-.355.354l4.15 10.372a.275.275 0 00.233.169zm-.036 1l-.02-.002c-.462-.03-.912-.31-1.106-.796L.632 2.287A1.274 1.274 0 012.286.633l10.358 4.143c.516.182.782.657.81 1.114a1.25 1.25 0 01-.7 1.197L10.58 8.174l1.624 1.624a1.27 1.27 0 010 1.807l-.8.801-.008.007c-.491.46-1.298.48-1.792-.014l-1.56-1.56-.957 1.916a1.27 1.27 0 01-1.142.702h-.037z",
  35544. fill: color2
  35545. }
  35546. )
  35547. )), PointerHandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35548. "svg",
  35549. {
  35550. width: size,
  35551. height: size,
  35552. viewBox: "0 0 14 14",
  35553. fill: "none",
  35554. xmlns: "http://www.w3.org/2000/svg",
  35555. ref: forwardedRef,
  35556. ...props
  35557. },
  35558. React255.createElement(
  35559. "path",
  35560. {
  35561. fillRule: "evenodd",
  35562. clipRule: "evenodd",
  35563. d: "M11.87 6.008a.505.505 0 00-.003-.028v-.002c-.026-.27-.225-.48-.467-.498a.5.5 0 00-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47V5.17a.6.6 0 00-.002-.05c-.023-.268-.223-.49-.468-.5a.5.5 0 00-.52.5v1.65a.486.486 0 01-.47.47.48.48 0 01-.47-.47V4.62a.602.602 0 00-.002-.05v-.002c-.023-.266-.224-.48-.468-.498a.5.5 0 00-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 01-.47-.47V1.8c0-.017 0-.034-.002-.05-.022-.268-.214-.49-.468-.5a.5.5 0 00-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47l.001-.1c.001-.053.002-.104 0-.155a.775.775 0 00-.06-.315.65.65 0 00-.16-.22 29.67 29.67 0 01-.21-.189c-.2-.182-.4-.365-.617-.532l-.003-.003A6.366 6.366 0 003.06 7l-.01-.007c-.433-.331-.621-.243-.69-.193-.26.14-.29.5-.13.74l1.73 2.6v.01h-.016l-.035.023.05-.023s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.039-.591.036-1.189.032-1.783l-.002-.507v-.032zm.969 2.376c-.057 1.285-.254 2.667-1.082 3.72-.88 1.118-2.283 1.646-4.227 1.646-1.574 0-2.714-.87-3.406-1.623a6.958 6.958 0 01-1.046-1.504l-.006-.012-1.674-2.516a1.593 1.593 0 01-.25-1.107 1.44 1.44 0 01.69-1.041c.195-.124.485-.232.856-.186.357.044.681.219.976.446.137.106.272.22.4.331V1.75A1.5 1.5 0 015.63.25c.93.036 1.431.856 1.431 1.55v1.335a1.5 1.5 0 01.53-.063h.017c.512.04.915.326 1.153.71a1.5 1.5 0 01.74-.161c.659.025 1.115.458 1.316.964a1.493 1.493 0 01.644-.103h.017c.856.067 1.393.814 1.393 1.558l.002.48c.004.596.007 1.237-.033 1.864z",
  35564. fill: color2
  35565. }
  35566. )
  35567. )), CommandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35568. "svg",
  35569. {
  35570. width: size,
  35571. height: size,
  35572. viewBox: "0 0 14 14",
  35573. fill: "none",
  35574. xmlns: "http://www.w3.org/2000/svg",
  35575. ref: forwardedRef,
  35576. ...props
  35577. },
  35578. React255.createElement(
  35579. "path",
  35580. {
  35581. fillRule: "evenodd",
  35582. clipRule: "evenodd",
  35583. d: "M3.5 6A2.5 2.5 0 116 3.5V5h2V3.5A2.5 2.5 0 1110.5 6H9v2h1.5A2.5 2.5 0 118 10.5V9H6v1.5A2.5 2.5 0 113.5 8H5V6H3.5zM2 3.5a1.5 1.5 0 113 0V5H3.5A1.5 1.5 0 012 3.5zM6 6v2h2V6H6zm3-1h1.5A1.5 1.5 0 109 3.5V5zM3.5 9H5v1.5A1.5 1.5 0 113.5 9zM9 9v1.5A1.5 1.5 0 1010.5 9H9z",
  35584. fill: color2
  35585. }
  35586. )
  35587. )), SaveIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35588. "svg",
  35589. {
  35590. width: size,
  35591. height: size,
  35592. viewBox: "0 0 14 14",
  35593. fill: "none",
  35594. xmlns: "http://www.w3.org/2000/svg",
  35595. ref: forwardedRef,
  35596. ...props
  35597. },
  35598. React255.createElement(
  35599. "path",
  35600. {
  35601. fillRule: "evenodd",
  35602. clipRule: "evenodd",
  35603. d: "M8.896 1c.2 0 .39.08.53.22l3.354 3.353c.14.14.22.332.22.53V11a2 2 0 01-2 2H3a2 2 0 01-2-2V3a2 2 0 012-2h5.896zM3 2a1 1 0 00-1 1v8a1 1 0 001 1h1V8.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5V12h1a1 1 0 001-1V5.207L8.793 2H5v2h3.5a.5.5 0 010 1h-4a.5.5 0 01-.5-.5V2H3zm2 10h4V9H5v3z",
  35604. fill: color2
  35605. }
  35606. )
  35607. )), SortDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35608. "svg",
  35609. {
  35610. width: size,
  35611. height: size,
  35612. viewBox: "0 0 14 14",
  35613. fill: "none",
  35614. xmlns: "http://www.w3.org/2000/svg",
  35615. ref: forwardedRef,
  35616. ...props
  35617. },
  35618. React255.createElement(
  35619. "path",
  35620. {
  35621. d: "M4.5 2a.5.5 0 01.5.5v8.293l2.146-2.147a.5.5 0 11.708.708L4.86 12.346l-.007.008a.499.499 0 01-.351.146h-.006a.5.5 0 01-.35-.146l-3-3a.5.5 0 11.707-.708L4 10.793V2.5a.5.5 0 01.5-.5zM7 2.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM7 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM10.5 8a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8 11.5a.5.5 0 01.5-.5h4a.5.5 0 010 1h-4a.5.5 0 01-.5-.5z",
  35622. fill: color2
  35623. }
  35624. )
  35625. )), SortUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35626. "svg",
  35627. {
  35628. width: size,
  35629. height: size,
  35630. viewBox: "0 0 14 14",
  35631. fill: "none",
  35632. xmlns: "http://www.w3.org/2000/svg",
  35633. ref: forwardedRef,
  35634. ...props
  35635. },
  35636. React255.createElement(
  35637. "path",
  35638. {
  35639. d: "M4.308 1.538a.496.496 0 00-.162.108l-3 3a.5.5 0 10.708.707L4 3.207V11.5a.5.5 0 001 0V3.207l2.146 2.147a.5.5 0 10.708-.708l-3-3a.5.5 0 00-.546-.108zM8 2.5a.5.5 0 01.5-.5h4a.5.5 0 010 1h-4a.5.5 0 01-.5-.5zM10.5 5a.5.5 0 000 1h2a.5.5 0 000-1h-2zM13 8.5a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5zM7 11.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",
  35640. fill: color2
  35641. }
  35642. )
  35643. )), BugIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35644. "svg",
  35645. {
  35646. width: size,
  35647. height: size,
  35648. viewBox: "0 0 14 14",
  35649. fill: "none",
  35650. xmlns: "http://www.w3.org/2000/svg",
  35651. ref: forwardedRef,
  35652. ...props
  35653. },
  35654. React255.createElement(
  35655. "path",
  35656. {
  35657. fillRule: "evenodd",
  35658. clipRule: "evenodd",
  35659. d: "M11 0a.5.5 0 010 1 2 2 0 00-1.987 1.78C9.618 3.33 10 4.12 10 5a3 3 0 003-3 .5.5 0 011 0 4.002 4.002 0 01-3 3.874V7h2.5a.5.5 0 010 1H11v.626c1.725.444 3 2.01 3 3.874a.5.5 0 01-1 0 3 3 0 00-2.055-2.846 4 4 0 01-7.891 0A3 3 0 001 12.5a.5.5 0 01-1 0 4.002 4.002 0 013-3.874V8H.5a.5.5 0 010-1H3V5.874A4.002 4.002 0 010 2a.5.5 0 011 0 3 3 0 003 3c0-.88.382-1.67.986-2.22A1.999 1.999 0 003 1a.5.5 0 010-1c1.384 0 2.545.938 2.892 2.213a2.99 2.99 0 012.215 0A2.999 2.999 0 0111 0zM4 9a3 3 0 002.5 2.958V6H4v3zm3.5 2.958A3 3 0 0010 9V6H7.5v5.958zM7 3a2 2 0 00-2 2h4a2 2 0 00-2-2z",
  35660. fill: color2
  35661. }
  35662. )
  35663. )), EditorIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35664. "svg",
  35665. {
  35666. width: size,
  35667. height: size,
  35668. viewBox: "0 0 14 14",
  35669. fill: "none",
  35670. xmlns: "http://www.w3.org/2000/svg",
  35671. ref: forwardedRef,
  35672. ...props
  35673. },
  35674. React255.createElement(
  35675. "path",
  35676. {
  35677. d: "M7.536 5.314a.5.5 0 01.928.372l-2 5a.5.5 0 01-.928-.371l2-5zM3.646 6.146a.5.5 0 01.708.708L3.207 8l1.147 1.146a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 01-.063-.63l.063-.078 1.5-1.5zM9.646 6.146a.5.5 0 01.707 0l1.5 1.5.065.079a.497.497 0 01-.064.629l-1.5 1.5a.5.5 0 01-.708-.708L10.793 8 9.646 6.854a.5.5 0 010-.708z",
  35678. fill: color2
  35679. }
  35680. ),
  35681. React255.createElement(
  35682. "path",
  35683. {
  35684. fillRule: "evenodd",
  35685. clipRule: "evenodd",
  35686. d: "M13.5 1.004a.5.5 0 01.5.5v11l-.01.1a.501.501 0 01-.39.39l-.1.01H.5l-.1-.01a.501.501 0 01-.39-.39l-.01-.1v-11a.5.5 0 01.5-.5h13zm-12.5 11h12v-8H1v8zm.5-10a.5.5 0 100 1 .5.5 0 000-1zm2 0a.5.5 0 100 1 .5.5 0 000-1zm2 0a.5.5 0 100 1 .5.5 0 000-1z",
  35687. fill: color2
  35688. }
  35689. )
  35690. )), InfoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35691. "svg",
  35692. {
  35693. width: size,
  35694. height: size,
  35695. viewBox: "0 0 14 14",
  35696. fill: "none",
  35697. xmlns: "http://www.w3.org/2000/svg",
  35698. ref: forwardedRef,
  35699. ...props
  35700. },
  35701. React255.createElement(
  35702. "path",
  35703. {
  35704. fillRule: "evenodd",
  35705. clipRule: "evenodd",
  35706. d: "M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",
  35707. fill: color2
  35708. }
  35709. ),
  35710. React255.createElement(
  35711. "path",
  35712. {
  35713. fillRule: "evenodd",
  35714. clipRule: "evenodd",
  35715. d: "M7 5.5a.5.5 0 01.5.5v4.5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z",
  35716. fill: color2
  35717. }
  35718. ),
  35719. React255.createElement("path", { d: "M7.75 3.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0z", fill: color2 })
  35720. )), QuestionIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35721. "svg",
  35722. {
  35723. width: size,
  35724. height: size,
  35725. viewBox: "0 0 14 14",
  35726. fill: "none",
  35727. xmlns: "http://www.w3.org/2000/svg",
  35728. ref: forwardedRef,
  35729. ...props
  35730. },
  35731. React255.createElement(
  35732. "path",
  35733. {
  35734. d: "M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",
  35735. fill: color2
  35736. }
  35737. ),
  35738. React255.createElement(
  35739. "path",
  35740. {
  35741. fillRule: "evenodd",
  35742. clipRule: "evenodd",
  35743. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  35744. fill: color2
  35745. }
  35746. )
  35747. )), SupportIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35748. "svg",
  35749. {
  35750. width: size,
  35751. height: size,
  35752. viewBox: "0 0 14 14",
  35753. fill: "none",
  35754. xmlns: "http://www.w3.org/2000/svg",
  35755. ref: forwardedRef,
  35756. ...props
  35757. },
  35758. React255.createElement(
  35759. "path",
  35760. {
  35761. fillRule: "evenodd",
  35762. clipRule: "evenodd",
  35763. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",
  35764. fill: color2
  35765. }
  35766. )
  35767. )), AlertIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35768. "svg",
  35769. {
  35770. width: size,
  35771. height: size,
  35772. viewBox: "0 0 14 14",
  35773. fill: "none",
  35774. xmlns: "http://www.w3.org/2000/svg",
  35775. ref: forwardedRef,
  35776. ...props
  35777. },
  35778. React255.createElement(
  35779. "path",
  35780. {
  35781. d: "M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  35782. fill: color2
  35783. }
  35784. ),
  35785. React255.createElement(
  35786. "path",
  35787. {
  35788. fillRule: "evenodd",
  35789. clipRule: "evenodd",
  35790. d: "M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",
  35791. fill: color2
  35792. }
  35793. )
  35794. )), AlertAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35795. "svg",
  35796. {
  35797. width: size,
  35798. height: size,
  35799. viewBox: "0 0 14 14",
  35800. fill: "none",
  35801. xmlns: "http://www.w3.org/2000/svg",
  35802. ref: forwardedRef,
  35803. ...props
  35804. },
  35805. React255.createElement(
  35806. "path",
  35807. {
  35808. fillRule: "evenodd",
  35809. clipRule: "evenodd",
  35810. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zM6.5 8a.5.5 0 001 0V4a.5.5 0 00-1 0v4zm-.25 2.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z",
  35811. fill: color2
  35812. }
  35813. )
  35814. )), EmailIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35815. "svg",
  35816. {
  35817. width: size,
  35818. height: size,
  35819. viewBox: "0 0 14 14",
  35820. fill: "none",
  35821. xmlns: "http://www.w3.org/2000/svg",
  35822. ref: forwardedRef,
  35823. ...props
  35824. },
  35825. React255.createElement(
  35826. "path",
  35827. {
  35828. fillRule: "evenodd",
  35829. clipRule: "evenodd",
  35830. d: "M0 2.504a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-9zm1 1.012v7.488h12V3.519L7.313 7.894a.496.496 0 01-.526.062.497.497 0 01-.1-.062L1 3.516zm11.03-.512H1.974L7 6.874l5.03-3.87z",
  35831. fill: color2
  35832. }
  35833. )
  35834. )), PhoneIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35835. "svg",
  35836. {
  35837. width: size,
  35838. height: size,
  35839. viewBox: "0 0 14 14",
  35840. fill: "none",
  35841. xmlns: "http://www.w3.org/2000/svg",
  35842. ref: forwardedRef,
  35843. ...props
  35844. },
  35845. React255.createElement(
  35846. "path",
  35847. {
  35848. fillRule: "evenodd",
  35849. clipRule: "evenodd",
  35850. d: "M7.76 8.134l-.05.05a.2.2 0 01-.28.03 6.76 6.76 0 01-1.63-1.65.21.21 0 01.04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 00-.51.13A3.23 3.23 0 00.9 3.424c-.13 1.1.26 2.37 1.17 3.78a16.679 16.679 0 004.55 4.6 6.57 6.57 0 003.53 1.32 3.2 3.2 0 002.85-1.66c.14-.24.24-.64-.07-1.18a7.803 7.803 0 00-1.73-1.81c-.64-.5-1.52-1.11-2.13-1.11a.97.97 0 00-.34.06c-.472.164-.74.458-.947.685l-.023.025zm4.32 2.678a6.801 6.801 0 00-1.482-1.54l-.007-.005-.006-.005a8.418 8.418 0 00-.957-.662 2.7 2.7 0 00-.4-.193.683.683 0 00-.157-.043l-.004.002-.009.003c-.224.078-.343.202-.56.44l-.014.016-.046.045a1.2 1.2 0 01-1.602.149A7.76 7.76 0 014.98 7.134l-.013-.019-.013-.02a1.21 1.21 0 01.195-1.522l.06-.06.026-.024c.219-.19.345-.312.422-.533l.003-.01v-.008a.518.518 0 00-.032-.142c-.06-.178-.203-.453-.502-.872l-.005-.008-.005-.007A10.18 10.18 0 004.013 2.59l-.005-.005c-.31-.314-.543-.5-.716-.605-.147-.088-.214-.096-.222-.097h-.016l-.006.003-.01.006a2.23 2.23 0 00-1.145 1.656c-.09.776.175 1.806 1.014 3.108a15.68 15.68 0 004.274 4.32l.022.014.022.016a5.57 5.57 0 002.964 1.117 2.2 2.2 0 001.935-1.141l.006-.012.004-.007a.182.182 0 00-.007-.038.574.574 0 00-.047-.114z",
  35851. fill: color2
  35852. }
  35853. )
  35854. )), LinkIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35855. "svg",
  35856. {
  35857. width: size,
  35858. height: size,
  35859. viewBox: "0 0 14 14",
  35860. fill: "none",
  35861. xmlns: "http://www.w3.org/2000/svg",
  35862. ref: forwardedRef,
  35863. ...props
  35864. },
  35865. React255.createElement(
  35866. "path",
  35867. {
  35868. d: "M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",
  35869. fill: color2
  35870. }
  35871. ),
  35872. React255.createElement(
  35873. "path",
  35874. {
  35875. d: "M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",
  35876. fill: color2
  35877. }
  35878. )
  35879. )), LinkBrokenIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35880. "svg",
  35881. {
  35882. width: size,
  35883. height: size,
  35884. viewBox: "0 0 14 14",
  35885. fill: "none",
  35886. xmlns: "http://www.w3.org/2000/svg",
  35887. ref: forwardedRef,
  35888. ...props
  35889. },
  35890. React255.createElement(
  35891. "path",
  35892. {
  35893. d: "M1.452 7.952l1.305-1.305.708.707-1.306 1.305a2.25 2.25 0 103.182 3.182l1.306-1.305.707.707-1.306 1.305a3.25 3.25 0 01-4.596-4.596zM12.548 6.048l-1.305 1.306-.707-.708 1.305-1.305a2.25 2.25 0 10-3.182-3.182L7.354 3.464l-.708-.707 1.306-1.305a3.25 3.25 0 014.596 4.596zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.707-.707l-11-11z",
  35894. fill: color2
  35895. }
  35896. )
  35897. )), BellIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35898. "svg",
  35899. {
  35900. width: size,
  35901. height: size,
  35902. viewBox: "0 0 14 14",
  35903. fill: "none",
  35904. xmlns: "http://www.w3.org/2000/svg",
  35905. ref: forwardedRef,
  35906. ...props
  35907. },
  35908. React255.createElement(
  35909. "path",
  35910. {
  35911. fillRule: "evenodd",
  35912. clipRule: "evenodd",
  35913. d: "M7.994 1.11a1 1 0 10-1.988 0A4.502 4.502 0 002.5 5.5v3.882l-.943 1.885a.497.497 0 00-.053.295.5.5 0 00.506.438h3.575a1.5 1.5 0 102.83 0h3.575a.5.5 0 00.453-.733L11.5 9.382V5.5a4.502 4.502 0 00-3.506-4.39zM2.81 11h8.382l-.5-1H3.31l-.5 1zM10.5 9V5.5a3.5 3.5 0 10-7 0V9h7zm-4 3.5a.5.5 0 111 0 .5.5 0 01-1 0z",
  35914. fill: color2
  35915. }
  35916. )
  35917. )), RSSIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35918. "svg",
  35919. {
  35920. width: size,
  35921. height: size,
  35922. viewBox: "0 0 14 14",
  35923. fill: "none",
  35924. xmlns: "http://www.w3.org/2000/svg",
  35925. ref: forwardedRef,
  35926. ...props
  35927. },
  35928. React255.createElement(
  35929. "path",
  35930. {
  35931. d: "M1.5.5A.5.5 0 012 0c6.627 0 12 5.373 12 12a.5.5 0 01-1 0C13 5.925 8.075 1 2 1a.5.5 0 01-.5-.5z",
  35932. fill: color2
  35933. }
  35934. ),
  35935. React255.createElement(
  35936. "path",
  35937. {
  35938. d: "M1.5 4.5A.5.5 0 012 4a8 8 0 018 8 .5.5 0 01-1 0 7 7 0 00-7-7 .5.5 0 01-.5-.5z",
  35939. fill: color2
  35940. }
  35941. ),
  35942. React255.createElement(
  35943. "path",
  35944. {
  35945. fillRule: "evenodd",
  35946. clipRule: "evenodd",
  35947. d: "M5 11a2 2 0 11-4 0 2 2 0 014 0zm-1 0a1 1 0 11-2 0 1 1 0 012 0z",
  35948. fill: color2
  35949. }
  35950. )
  35951. )), ShareAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35952. "svg",
  35953. {
  35954. width: size,
  35955. height: size,
  35956. viewBox: "0 0 14 14",
  35957. fill: "none",
  35958. xmlns: "http://www.w3.org/2000/svg",
  35959. ref: forwardedRef,
  35960. ...props
  35961. },
  35962. React255.createElement(
  35963. "path",
  35964. {
  35965. d: "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",
  35966. fill: color2
  35967. }
  35968. ),
  35969. React255.createElement(
  35970. "path",
  35971. {
  35972. d: "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",
  35973. fill: color2
  35974. }
  35975. )
  35976. )), ShareIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35977. "svg",
  35978. {
  35979. width: size,
  35980. height: size,
  35981. viewBox: "0 0 14 14",
  35982. fill: "none",
  35983. xmlns: "http://www.w3.org/2000/svg",
  35984. ref: forwardedRef,
  35985. ...props
  35986. },
  35987. React255.createElement(
  35988. "path",
  35989. {
  35990. d: "M6.646.15a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.707L7.5 1.711v6.793a.5.5 0 01-1 0V1.71L5.354 2.857a.5.5 0 11-.708-.707l2-2z",
  35991. fill: color2
  35992. }
  35993. ),
  35994. React255.createElement(
  35995. "path",
  35996. {
  35997. d: "M2 4.004a1 1 0 00-1 1v7a1 1 0 001 1h10a1 1 0 001-1v-7a1 1 0 00-1-1H9.5a.5.5 0 100 1H12v7H2v-7h2.5a.5.5 0 000-1H2z",
  35998. fill: color2
  35999. }
  36000. )
  36001. )), JumpToIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36002. "svg",
  36003. {
  36004. width: size,
  36005. height: size,
  36006. viewBox: "0 0 14 14",
  36007. fill: "none",
  36008. xmlns: "http://www.w3.org/2000/svg",
  36009. ref: forwardedRef,
  36010. ...props
  36011. },
  36012. React255.createElement(
  36013. "path",
  36014. {
  36015. d: "M13.854 6.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 7.5H5.5a.5.5 0 010-1h6.793l-1.147-1.146a.5.5 0 01.708-.708l2 2z",
  36016. fill: color2
  36017. }
  36018. ),
  36019. React255.createElement(
  36020. "path",
  36021. {
  36022. d: "M10 2a1 1 0 00-1-1H2a1 1 0 00-1 1v10a1 1 0 001 1h7a1 1 0 001-1V9.5a.5.5 0 00-1 0V12H2V2h7v2.5a.5.5 0 001 0V2z",
  36023. fill: color2
  36024. }
  36025. )
  36026. )), CircleHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36027. "svg",
  36028. {
  36029. width: size,
  36030. height: size,
  36031. viewBox: "0 0 14 14",
  36032. fill: "none",
  36033. xmlns: "http://www.w3.org/2000/svg",
  36034. ref: forwardedRef,
  36035. ...props
  36036. },
  36037. React255.createElement(
  36038. "path",
  36039. {
  36040. fillRule: "evenodd",
  36041. clipRule: "evenodd",
  36042. d: "M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",
  36043. fill: color2
  36044. }
  36045. )
  36046. )), CircleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36047. "svg",
  36048. {
  36049. width: size,
  36050. height: size,
  36051. viewBox: "0 0 14 14",
  36052. fill: "none",
  36053. xmlns: "http://www.w3.org/2000/svg",
  36054. ref: forwardedRef,
  36055. ...props
  36056. },
  36057. React255.createElement("path", { d: "M14 7A7 7 0 110 7a7 7 0 0114 0z", fill: color2 })
  36058. )), BookmarkHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36059. "svg",
  36060. {
  36061. width: size,
  36062. height: size,
  36063. viewBox: "0 0 14 15",
  36064. fill: "none",
  36065. xmlns: "http://www.w3.org/2000/svg",
  36066. ref: forwardedRef,
  36067. ...props
  36068. },
  36069. React255.createElement(
  36070. "path",
  36071. {
  36072. fillRule: "evenodd",
  36073. clipRule: "evenodd",
  36074. d: "M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",
  36075. fill: color2
  36076. }
  36077. )
  36078. )), BookmarkIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36079. "svg",
  36080. {
  36081. width: size,
  36082. height: size,
  36083. viewBox: "0 0 14 15",
  36084. fill: "none",
  36085. xmlns: "http://www.w3.org/2000/svg",
  36086. ref: forwardedRef,
  36087. ...props
  36088. },
  36089. React255.createElement(
  36090. "path",
  36091. {
  36092. fillRule: "evenodd",
  36093. clipRule: "evenodd",
  36094. d: "M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5z",
  36095. fill: color2
  36096. }
  36097. )
  36098. )), DiamondIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36099. "svg",
  36100. {
  36101. width: size,
  36102. height: size,
  36103. viewBox: "0 0 14 14",
  36104. fill: "none",
  36105. xmlns: "http://www.w3.org/2000/svg",
  36106. ref: forwardedRef,
  36107. ...props
  36108. },
  36109. React255.createElement("g", { clipPath: "url(#prefix__clip0_1449_588)" }, React255.createElement(
  36110. "path",
  36111. {
  36112. fillRule: "evenodd",
  36113. clipRule: "evenodd",
  36114. d: "M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",
  36115. fill: color2
  36116. }
  36117. )),
  36118. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1449_588" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  36119. )), HeartHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36120. "svg",
  36121. {
  36122. width: size,
  36123. height: size,
  36124. viewBox: "0 0 14 14",
  36125. fill: "none",
  36126. xmlns: "http://www.w3.org/2000/svg",
  36127. ref: forwardedRef,
  36128. ...props
  36129. },
  36130. React255.createElement(
  36131. "path",
  36132. {
  36133. fillRule: "evenodd",
  36134. clipRule: "evenodd",
  36135. d: "M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584zM1.2 3.526c.128-.333.304-.598.52-.806.218-.212.497-.389.849-.522m-1.37 1.328A3.324 3.324 0 001 4.708c0 .225.032.452.101.686.082.265.183.513.307.737.135.246.294.484.479.716.188.237.386.454.59.652l.001.002 4.514 4.355 4.519-4.344c.2-.193.398-.41.585-.648l.003-.003c.184-.23.345-.472.486-.726l.004-.007c.131-.23.232-.474.31-.732v-.002c.068-.224.101-.45.101-.686 0-.457-.07-.849-.195-1.185a2.177 2.177 0 00-.515-.802l.007-.012-.008.009a2.383 2.383 0 00-.85-.518l-.003-.001C11.1 2.072 10.692 2 10.203 2c-.21 0-.406.03-.597.09h-.001c-.22.07-.443.167-.663.289l-.007.003c-.22.12-.434.262-.647.426-.226.174-.42.341-.588.505l-.684.672-.7-.656a9.967 9.967 0 00-.615-.527 4.82 4.82 0 00-.635-.422l-.01-.005a3.289 3.289 0 00-.656-.281l-.008-.003A2.014 2.014 0 003.785 2c-.481 0-.881.071-1.217.198",
  36136. fill: color2
  36137. }
  36138. )
  36139. )), HeartIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36140. "svg",
  36141. {
  36142. width: size,
  36143. height: size,
  36144. viewBox: "0 0 14 14",
  36145. fill: "none",
  36146. xmlns: "http://www.w3.org/2000/svg",
  36147. ref: forwardedRef,
  36148. ...props
  36149. },
  36150. React255.createElement(
  36151. "path",
  36152. {
  36153. d: "M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584z",
  36154. fill: color2
  36155. }
  36156. )
  36157. )), StarHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36158. "svg",
  36159. {
  36160. width: size,
  36161. height: size,
  36162. viewBox: "0 0 14 14",
  36163. fill: "none",
  36164. xmlns: "http://www.w3.org/2000/svg",
  36165. ref: forwardedRef,
  36166. ...props
  36167. },
  36168. React255.createElement(
  36169. "path",
  36170. {
  36171. fillRule: "evenodd",
  36172. clipRule: "evenodd",
  36173. d: "M6.319.783a.75.75 0 011.362 0l1.63 3.535 3.867.458a.75.75 0 01.42 1.296L10.74 8.715l.76 3.819a.75.75 0 01-1.103.8L7 11.434l-3.398 1.902a.75.75 0 01-1.101-.801l.758-3.819L.401 6.072a.75.75 0 01.42-1.296l3.867-.458L6.318.783zm.68.91l-1.461 3.17a.75.75 0 01-.593.431l-3.467.412 2.563 2.37a.75.75 0 01.226.697l-.68 3.424 3.046-1.705a.75.75 0 01.733 0l3.047 1.705-.68-3.424a.75.75 0 01.226-.697l2.563-2.37-3.467-.412a.75.75 0 01-.593-.43L7 1.694z",
  36174. fill: color2
  36175. }
  36176. )
  36177. )), StarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36178. "svg",
  36179. {
  36180. width: size,
  36181. height: size,
  36182. viewBox: "0 0 14 14",
  36183. fill: "none",
  36184. xmlns: "http://www.w3.org/2000/svg",
  36185. ref: forwardedRef,
  36186. ...props
  36187. },
  36188. React255.createElement(
  36189. "path",
  36190. {
  36191. d: "M7.68.783a.75.75 0 00-1.361 0l-1.63 3.535-3.867.458A.75.75 0 00.4 6.072l2.858 2.643-.758 3.819a.75.75 0 001.101.8L7 11.434l3.397 1.902a.75.75 0 001.102-.801l-.759-3.819L13.6 6.072a.75.75 0 00-.421-1.296l-3.866-.458L7.68.783z",
  36192. fill: color2
  36193. }
  36194. )
  36195. )), CertificateIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36196. "svg",
  36197. {
  36198. width: size,
  36199. height: size,
  36200. viewBox: "0 0 14 14",
  36201. fill: "none",
  36202. xmlns: "http://www.w3.org/2000/svg",
  36203. ref: forwardedRef,
  36204. ...props
  36205. },
  36206. React255.createElement(
  36207. "path",
  36208. {
  36209. fillRule: "evenodd",
  36210. clipRule: "evenodd",
  36211. d: "M10 7.854a4.5 4.5 0 10-6 0V13a.5.5 0 00.497.5h.006c.127 0 .254-.05.35-.146L7 11.207l2.146 2.147A.5.5 0 0010 13V7.854zM7 8a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm-.354 2.146a.5.5 0 01.708 0L9 11.793v-3.26C8.398 8.831 7.718 9 7 9a4.481 4.481 0 01-2-.468v3.26l1.646-1.646z",
  36212. fill: color2
  36213. }
  36214. )
  36215. )), VerifiedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36216. "svg",
  36217. {
  36218. width: size,
  36219. height: size,
  36220. viewBox: "0 0 14 14",
  36221. fill: "none",
  36222. xmlns: "http://www.w3.org/2000/svg",
  36223. ref: forwardedRef,
  36224. ...props
  36225. },
  36226. React255.createElement(
  36227. "path",
  36228. {
  36229. fillRule: "evenodd",
  36230. clipRule: "evenodd",
  36231. d: "M6.565 13.123a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97c.25.473.83.661 1.31.426l.987-.482zm4.289-8.477a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",
  36232. fill: color2
  36233. }
  36234. )
  36235. )), ThumbsUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36236. "svg",
  36237. {
  36238. width: size,
  36239. height: size,
  36240. viewBox: "0 0 14 14",
  36241. fill: "none",
  36242. xmlns: "http://www.w3.org/2000/svg",
  36243. ref: forwardedRef,
  36244. ...props
  36245. },
  36246. React255.createElement(
  36247. "path",
  36248. {
  36249. fillRule: "evenodd",
  36250. clipRule: "evenodd",
  36251. d: "M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",
  36252. fill: color2
  36253. }
  36254. )
  36255. )), ShieldIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36256. "svg",
  36257. {
  36258. width: size,
  36259. height: size,
  36260. viewBox: "0 0 14 14",
  36261. fill: "none",
  36262. xmlns: "http://www.w3.org/2000/svg",
  36263. ref: forwardedRef,
  36264. ...props
  36265. },
  36266. React255.createElement(
  36267. "path",
  36268. {
  36269. fillRule: "evenodd",
  36270. clipRule: "evenodd",
  36271. d: "M11.765 2.076A.5.5 0 0112 2.5v6.009a.497.497 0 01-.17.366L7.337 12.87a.497.497 0 01-.674 0L2.17 8.875l-.009-.007a.498.498 0 01-.16-.358L2 8.5v-6a.5.5 0 01.235-.424l.018-.011c.016-.01.037-.024.065-.04.056-.032.136-.077.24-.128a6.97 6.97 0 01.909-.371C4.265 1.26 5.443 1 7 1s2.735.26 3.533.526c.399.133.702.267.91.37a4.263 4.263 0 01.304.169l.018.01zM3 2.793v5.482l1.068.95 6.588-6.588a6.752 6.752 0 00-.44-.163C9.517 2.24 8.444 2 7 2c-1.443 0-2.515.24-3.217.474-.351.117-.61.233-.778.317L3 2.793zm4 9.038l-2.183-1.94L11 3.706v4.568l-4 3.556z",
  36272. fill: color2
  36273. }
  36274. )
  36275. )), BasketIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36276. "svg",
  36277. {
  36278. width: size,
  36279. height: size,
  36280. viewBox: "0 0 14 14",
  36281. fill: "none",
  36282. xmlns: "http://www.w3.org/2000/svg",
  36283. ref: forwardedRef,
  36284. ...props
  36285. },
  36286. React255.createElement(
  36287. "path",
  36288. {
  36289. d: "M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z",
  36290. fill: color2
  36291. }
  36292. ),
  36293. React255.createElement(
  36294. "path",
  36295. {
  36296. d: "M2.09 6H4.5a.5.5 0 000-1H1.795a.75.75 0 00-.74.873l.813 4.874A1.5 1.5 0 003.348 12h7.305a1.5 1.5 0 001.48-1.253l.812-4.874a.75.75 0 00-.74-.873H10a.5.5 0 000 1h1.91l-.764 4.582a.5.5 0 01-.493.418H3.347a.5.5 0 01-.493-.418L2.09 6z",
  36297. fill: color2
  36298. }
  36299. ),
  36300. React255.createElement(
  36301. "path",
  36302. {
  36303. d: "M4.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 7.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2zM6.5 9.5v-2a.5.5 0 011 0v2a.5.5 0 01-1 0z",
  36304. fill: color2
  36305. }
  36306. )
  36307. )), BeakerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36308. "svg",
  36309. {
  36310. width: size,
  36311. height: size,
  36312. viewBox: "0 0 14 14",
  36313. fill: "none",
  36314. xmlns: "http://www.w3.org/2000/svg",
  36315. ref: forwardedRef,
  36316. ...props
  36317. },
  36318. React255.createElement(
  36319. "path",
  36320. {
  36321. fillRule: "evenodd",
  36322. clipRule: "evenodd",
  36323. d: "M4.5 2h.75v3.866l-3.034 5.26A1.25 1.25 0 003.299 13H10.7a1.25 1.25 0 001.083-1.875L8.75 5.866V2h.75a.5.5 0 100-1h-5a.5.5 0 000 1zm1.75 0h1.5v4.134L8.827 8H5.173L6.25 6.134V2zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z",
  36324. fill: color2
  36325. }
  36326. )
  36327. )), HourglassIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36328. "svg",
  36329. {
  36330. width: size,
  36331. height: size,
  36332. viewBox: "0 0 14 14",
  36333. fill: "none",
  36334. xmlns: "http://www.w3.org/2000/svg",
  36335. ref: forwardedRef,
  36336. ...props
  36337. },
  36338. React255.createElement("path", { d: "M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z", fill: color2 }),
  36339. React255.createElement(
  36340. "path",
  36341. {
  36342. fillRule: "evenodd",
  36343. clipRule: "evenodd",
  36344. d: "M3.5 1a.5.5 0 00-.5.5c0 1.063.137 1.892.678 2.974.346.692.858 1.489 1.598 2.526-.89 1.247-1.455 2.152-1.798 2.956-.377.886-.477 1.631-.478 2.537v.007a.5.5 0 00.5.5h7c.017 0 .034 0 .051-.003A.5.5 0 0011 12.5v-.007c0-.906-.1-1.65-.478-2.537-.343-.804-.909-1.709-1.798-2.956.74-1.037 1.252-1.834 1.598-2.526C10.863 3.392 11 2.563 11 1.5a.5.5 0 00-.5-.5h-7zm6.487 11a4.675 4.675 0 00-.385-1.652c-.277-.648-.735-1.407-1.499-2.494-.216.294-.448.606-.696.937a.497.497 0 01-.195.162.5.5 0 01-.619-.162c-.248-.331-.48-.643-.696-.937-.764 1.087-1.222 1.846-1.499 2.494A4.675 4.675 0 004.013 12h5.974zM6.304 6.716c.212.293.443.609.696.948a90.058 90.058 0 00.709-.965c.48-.664.86-1.218 1.163-1.699H5.128a32.672 32.672 0 001.176 1.716zM4.559 4h4.882c.364-.735.505-1.312.546-2H4.013c.04.688.182 1.265.546 2z",
  36345. fill: color2
  36346. }
  36347. )
  36348. )), FlagIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36349. "svg",
  36350. {
  36351. width: size,
  36352. height: size,
  36353. viewBox: "0 0 14 14",
  36354. fill: "none",
  36355. xmlns: "http://www.w3.org/2000/svg",
  36356. ref: forwardedRef,
  36357. ...props
  36358. },
  36359. React255.createElement(
  36360. "path",
  36361. {
  36362. fillRule: "evenodd",
  36363. clipRule: "evenodd",
  36364. d: "M11.5 1h-9a.5.5 0 00-.5.5v11a.5.5 0 001 0V8h8.5a.5.5 0 00.354-.854L9.207 4.5l2.647-2.646A.499.499 0 0011.5 1zM8.146 4.146L10.293 2H3v5h7.293L8.146 4.854a.5.5 0 010-.708z",
  36365. fill: color2
  36366. }
  36367. )
  36368. )), CloudHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36369. "svg",
  36370. {
  36371. width: size,
  36372. height: size,
  36373. viewBox: "0 0 14 14",
  36374. fill: "none",
  36375. xmlns: "http://www.w3.org/2000/svg",
  36376. ref: forwardedRef,
  36377. ...props
  36378. },
  36379. React255.createElement(
  36380. "path",
  36381. {
  36382. fillRule: "evenodd",
  36383. clipRule: "evenodd",
  36384. d: "M10 7V6a3 3 0 00-5.91-.736l-.17.676-.692.075A2.5 2.5 0 003.5 11h3c.063 0 .125-.002.187-.007l.076-.005.076.006c.053.004.106.006.161.006h4a2 2 0 100-4h-1zM3.12 5.02A3.5 3.5 0 003.5 12h3c.087 0 .174-.003.26-.01.079.007.16.01.24.01h4a3 3 0 100-6 4 4 0 00-7.88-.98z",
  36385. fill: color2
  36386. }
  36387. )
  36388. )), CloudIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36389. "svg",
  36390. {
  36391. width: size,
  36392. height: size,
  36393. viewBox: "0 0 14 14",
  36394. fill: "none",
  36395. xmlns: "http://www.w3.org/2000/svg",
  36396. ref: forwardedRef,
  36397. ...props
  36398. },
  36399. React255.createElement(
  36400. "path",
  36401. {
  36402. d: "M7 2a4 4 0 014 4 3 3 0 110 6H7c-.08 0-.161-.003-.24-.01-.086.007-.173.01-.26.01h-3a3.5 3.5 0 01-.38-6.98A4.002 4.002 0 017 2z",
  36403. fill: color2
  36404. }
  36405. )
  36406. )), StickerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36407. "svg",
  36408. {
  36409. width: size,
  36410. height: size,
  36411. viewBox: "0 0 14 14",
  36412. fill: "none",
  36413. xmlns: "http://www.w3.org/2000/svg",
  36414. ref: forwardedRef,
  36415. ...props
  36416. },
  36417. React255.createElement(
  36418. "path",
  36419. {
  36420. fillRule: "evenodd",
  36421. clipRule: "evenodd",
  36422. d: "M11 7a4 4 0 11-8 0 4 4 0 018 0zm-1 0a3 3 0 11-6 0 3 3 0 016 0z",
  36423. fill: color2
  36424. }
  36425. ),
  36426. React255.createElement(
  36427. "path",
  36428. {
  36429. fillRule: "evenodd",
  36430. clipRule: "evenodd",
  36431. d: "M4.268 13.18c.25.472.83.66 1.31.425l.987-.482a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97zm5.096-1.44l-.511.963-.979-.478a1.99 1.99 0 00-1.748 0l-.979.478-.51-.962a1.991 1.991 0 00-1.415-1.028l-1.073-.188.152-1.079a1.991 1.991 0 00-.54-1.663L1.004 7l.757-.783a1.991 1.991 0 00.54-1.663L2.15 3.475l1.073-.188A1.991 1.991 0 004.636 2.26l.511-.962.979.478a1.99 1.99 0 001.748 0l.979-.478.51.962c.288.543.81.922 1.415 1.028l1.073.188-.152 1.079a1.99 1.99 0 00.54 1.663l.757.783-.757.783a1.99 1.99 0 00-.54 1.663l.152 1.079-1.073.188a1.991 1.991 0 00-1.414 1.028z",
  36432. fill: color2
  36433. }
  36434. )
  36435. )), StatusFailIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36436. "svg",
  36437. {
  36438. width: size,
  36439. height: size,
  36440. viewBox: "0 0 14 14",
  36441. fill: "none",
  36442. xmlns: "http://www.w3.org/2000/svg",
  36443. ref: forwardedRef,
  36444. ...props
  36445. },
  36446. React255.createElement(
  36447. "path",
  36448. {
  36449. d: "M9.147 4.146a.5.5 0 11.707.707L7.707 7l2.147 2.146a.5.5 0 11-.707.707L7 7.707 4.854 9.853a.5.5 0 01-.707-.707L6.293 7 4.147 4.853a.5.5 0 11.707-.707L7 6.293l2.147-2.147z",
  36450. fill: color2
  36451. }
  36452. )
  36453. )), StatusIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36454. "svg",
  36455. {
  36456. width: size,
  36457. height: size,
  36458. viewBox: "0 0 14 14",
  36459. fill: "none",
  36460. xmlns: "http://www.w3.org/2000/svg",
  36461. ref: forwardedRef,
  36462. ...props
  36463. },
  36464. React255.createElement("circle", { cx: 7, cy: 7, r: 3, fill: color2 })
  36465. )), StatusWarnIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36466. "svg",
  36467. {
  36468. width: size,
  36469. height: size,
  36470. viewBox: "0 0 14 14",
  36471. fill: "none",
  36472. xmlns: "http://www.w3.org/2000/svg",
  36473. ref: forwardedRef,
  36474. ...props
  36475. },
  36476. React255.createElement(
  36477. "path",
  36478. {
  36479. fillRule: "evenodd",
  36480. clipRule: "evenodd",
  36481. d: "M7.206 3.044a.498.498 0 01.23.212l3.492 5.985a.494.494 0 01.006.507.497.497 0 01-.443.252H3.51a.499.499 0 01-.437-.76l3.492-5.984a.497.497 0 01.642-.212zM7 4.492L4.37 9h5.26L7 4.492z",
  36482. fill: color2
  36483. }
  36484. )
  36485. )), StatusPassIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36486. "svg",
  36487. {
  36488. width: size,
  36489. height: size,
  36490. viewBox: "0 0 14 14",
  36491. fill: "none",
  36492. xmlns: "http://www.w3.org/2000/svg",
  36493. ref: forwardedRef,
  36494. ...props
  36495. },
  36496. React255.createElement(
  36497. "path",
  36498. {
  36499. fillRule: "evenodd",
  36500. clipRule: "evenodd",
  36501. d: "M10.854 4.146a.5.5 0 010 .708l-5 5a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708L5.5 8.793l4.646-4.647a.5.5 0 01.708 0z",
  36502. fill: color2
  36503. }
  36504. )
  36505. )), GiftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36506. "svg",
  36507. {
  36508. width: size,
  36509. height: size,
  36510. viewBox: "0 0 14 14",
  36511. fill: "none",
  36512. xmlns: "http://www.w3.org/2000/svg",
  36513. ref: forwardedRef,
  36514. ...props
  36515. },
  36516. React255.createElement(
  36517. "path",
  36518. {
  36519. fillRule: "evenodd",
  36520. clipRule: "evenodd",
  36521. d: "M9 0a2.5 2.5 0 011.997 4H12.5A1.5 1.5 0 0114 5.5v1c0 .653-.418 1.206-1 1.412V11.5a1.5 1.5 0 01-1.5 1.5h-9A1.5 1.5 0 011 11.5V7.912c-.582-.206-1-.76-1-1.412v-1A1.5 1.5 0 011.5 4h1.883A2.234 2.234 0 013 2.75c0-.6.208-1.142.597-1.535.39-.394.93-.607 1.533-.607.637 0 1.197.349 1.602.843A2.498 2.498 0 019 0zM7.5 12h4a.5.5 0 00.5-.5V8H7.5v4zM2 11.5a.5.5 0 00.5.5h4V8H2v3.5zM7.5 7h5a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5h-5v2zm-6-2a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h5V5h-5zm3.63-3.392c-.363 0-.639.125-.822.31-.184.187-.308.466-.308.832C4 3.44 4.56 4 5.25 4H6.5v-.25c0-.648-.197-1.203-.477-1.585-.283-.388-.616-.557-.893-.557zM9 1a1.5 1.5 0 00-1.5 1.5V4H9a1.5 1.5 0 100-3z",
  36522. fill: color2
  36523. }
  36524. )
  36525. )), StatusNewIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36526. "svg",
  36527. {
  36528. width: size,
  36529. height: size,
  36530. viewBox: "0 0 14 14",
  36531. fill: "none",
  36532. xmlns: "http://www.w3.org/2000/svg",
  36533. ref: forwardedRef,
  36534. ...props
  36535. },
  36536. React255.createElement(
  36537. "path",
  36538. {
  36539. d: "M7.052 3.004c.01 0 .02 0 .03.002.004 0 .01.003.015.004a.493.493 0 01.051.013l.043.015a.497.497 0 01.089.049l.03.023c.015.012.029.023.042.036.012.012.023.026.035.04l.023.03c.01.015.019.03.027.047.008.014.016.028.022.043.006.014.01.028.015.043.005.017.01.034.013.051l.005.017.03.182A3.5 3.5 0 0010.4 6.476l.182.03c.005 0 .01.003.016.004a.494.494 0 01.051.013l.043.015a.503.503 0 01.089.049l.03.023c.015.012.029.023.042.036.012.012.023.026.035.04l.023.03c.01.015.019.03.027.047.008.014.016.028.022.043l.014.04.014.054.005.017c.002.01 0 .019.001.028.002.018.004.036.004.054 0 .018-.002.035-.004.053v.03l-.006.015a.479.479 0 01-.013.051l-.015.043a.507.507 0 01-.049.089l-.023.03-.035.042-.042.035-.03.023a.503.503 0 01-.046.027c-.014.008-.028.016-.043.022-.014.006-.028.01-.043.015a.491.491 0 01-.051.013l-.016.005-.182.03A3.5 3.5 0 007.522 10.4l-.03.182c0 .005-.004.01-.005.016a.491.491 0 01-.013.051l-.015.043a.503.503 0 01-.049.089l-.023.03-.035.042-.041.035-.03.023a.507.507 0 01-.047.027c-.014.008-.028.016-.043.022-.014.006-.028.01-.043.015a.479.479 0 01-.051.013l-.016.005c-.01.002-.02 0-.03.001-.017.002-.034.004-.052.004-.018 0-.036-.002-.054-.004h-.028c-.006-.002-.011-.005-.017-.006a.503.503 0 01-.051-.013l-.043-.015a.505.505 0 01-.089-.049l-.03-.023c-.015-.012-.029-.023-.041-.035-.013-.013-.024-.027-.036-.042l-.023-.03a.503.503 0 01-.027-.046c-.008-.014-.016-.028-.022-.043-.006-.014-.01-.028-.015-.043a.494.494 0 01-.013-.051l-.004-.016-.03-.182a3.5 3.5 0 00-2.877-2.877l-.182-.03c-.006 0-.011-.004-.017-.005a.493.493 0 01-.051-.013l-.043-.015a.492.492 0 01-.089-.049l-.03-.023c-.015-.012-.029-.023-.041-.035-.013-.013-.024-.027-.036-.041l-.023-.03a.497.497 0 01-.027-.047c-.008-.014-.016-.028-.022-.043-.006-.013-.01-.028-.015-.043a.493.493 0 01-.013-.051l-.004-.016c-.002-.01-.001-.02-.002-.03C3.002 7.035 3 7.018 3 7c0-.018.002-.036.004-.054 0-.009 0-.019.002-.028 0-.006.003-.011.004-.017l.015-.054.013-.04a.498.498 0 01.049-.089l.023-.03.026-.032.02-.02.03-.025.03-.023a.498.498 0 01.047-.027c.014-.008.028-.016.043-.022.014-.006.028-.01.043-.015A.493.493 0 013.4 6.51l.017-.004.182-.03a3.5 3.5 0 002.877-2.877l.03-.182c0-.006.003-.011.004-.017a.493.493 0 01.013-.051l.015-.043a.498.498 0 01.049-.089l.023-.03.026-.032.02-.02.03-.025.03-.023a.498.498 0 01.047-.027c.014-.008.028-.016.043-.022.014-.006.028-.01.043-.015A.493.493 0 016.9 3.01l.017-.004c.01-.002.019-.001.028-.002C6.963 3.002 6.981 3 7 3c.018 0 .035.002.053.004z",
  36540. fill: color2
  36541. }
  36542. )
  36543. )), PopOutIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36544. "svg",
  36545. {
  36546. width: size,
  36547. height: size,
  36548. viewBox: "0 0 14 14",
  36549. fill: "none",
  36550. xmlns: "http://www.w3.org/2000/svg",
  36551. ref: forwardedRef,
  36552. ...props
  36553. },
  36554. React255.createElement("g", { clipPath: "url(#prefix__clip0_3002_502)", fill: color2 }, React255.createElement("path", { d: "M10.5 12a.5.5 0 01.5.5v.504a1 1 0 01-1 1H8.5a.5.5 0 010-1H10V12.5a.5.5 0 01.5-.5zM.498 11a.5.5 0 01.5.5v1.502H2.5a.5.5 0 110 1H.998a1 1 0 01-1-1V11.5a.5.5 0 01.5-.5zM6.5 13a.5.5 0 010 1h-2a.5.5 0 010-1h2zM10.501 3.004h.006a.495.495 0 01.232.063c.04.022.08.049.115.083a.497.497 0 01.077.104.493.493 0 01.06.151l.003.038c.003.02.006.04.006.06V6.5a.5.5 0 01-1 0V4.71L6.857 7.855a.5.5 0 11-.707-.708l3.144-3.144L7.499 4a.5.5 0 01.002-1l3 .004z" }), React255.createElement(
  36555. "path",
  36556. {
  36557. fillRule: "evenodd",
  36558. clipRule: "evenodd",
  36559. d: "M13.6.014a.5.5 0 01.4.49v10l-.01.1a.501.501 0 01-.39.39l-.1.01h-10a.5.5 0 01-.49-.4l-.01-.1v-10a.5.5 0 01.5-.5h10l.1.01zM4 10.004h9v-9H4v9z"
  36560. }
  36561. ), React255.createElement("path", { d: "M.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2A.5.5 0 01.5 7zM1.5 3.002a.5.5 0 010 1H.998L1 5.499a.5.5 0 01-1 .002l-.002-1.498a1 1 0 011-1.001H1.5z" })),
  36562. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_3002_502" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  36563. )), ChevronUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36564. "svg",
  36565. {
  36566. width: size,
  36567. height: size,
  36568. viewBox: "0 0 14 14",
  36569. fill: "none",
  36570. xmlns: "http://www.w3.org/2000/svg",
  36571. ref: forwardedRef,
  36572. ...props
  36573. },
  36574. React255.createElement(
  36575. "path",
  36576. {
  36577. d: "M7.354 3.896l5.5 5.5a.5.5 0 01-.708.708L7 4.957l-5.146 5.147a.5.5 0 01-.708-.708l5.5-5.5a.5.5 0 01.708 0z",
  36578. fill: color2
  36579. }
  36580. )
  36581. )), ChevronDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36582. "svg",
  36583. {
  36584. width: size,
  36585. height: size,
  36586. viewBox: "0 0 14 14",
  36587. fill: "none",
  36588. xmlns: "http://www.w3.org/2000/svg",
  36589. ref: forwardedRef,
  36590. ...props
  36591. },
  36592. React255.createElement(
  36593. "path",
  36594. {
  36595. d: "M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",
  36596. fill: color2
  36597. }
  36598. )
  36599. )), ChevronLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36600. "svg",
  36601. {
  36602. width: size,
  36603. height: size,
  36604. viewBox: "0 0 14 14",
  36605. fill: "none",
  36606. xmlns: "http://www.w3.org/2000/svg",
  36607. ref: forwardedRef,
  36608. ...props
  36609. },
  36610. React255.createElement(
  36611. "path",
  36612. {
  36613. d: "M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",
  36614. fill: color2
  36615. }
  36616. )
  36617. )), ChevronRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36618. "svg",
  36619. {
  36620. width: size,
  36621. height: size,
  36622. viewBox: "0 0 14 14",
  36623. fill: "none",
  36624. xmlns: "http://www.w3.org/2000/svg",
  36625. ref: forwardedRef,
  36626. ...props
  36627. },
  36628. React255.createElement(
  36629. "path",
  36630. {
  36631. d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",
  36632. fill: color2
  36633. }
  36634. )
  36635. )), ChevronSmallUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36636. "svg",
  36637. {
  36638. width: size,
  36639. height: size,
  36640. viewBox: "0 0 14 14",
  36641. fill: "none",
  36642. xmlns: "http://www.w3.org/2000/svg",
  36643. ref: forwardedRef,
  36644. ...props
  36645. },
  36646. React255.createElement(
  36647. "path",
  36648. {
  36649. d: "M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",
  36650. fill: color2
  36651. }
  36652. )
  36653. )), ChevronSmallDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36654. "svg",
  36655. {
  36656. width: size,
  36657. height: size,
  36658. viewBox: "0 0 14 14",
  36659. fill: "none",
  36660. xmlns: "http://www.w3.org/2000/svg",
  36661. ref: forwardedRef,
  36662. ...props
  36663. },
  36664. React255.createElement(
  36665. "path",
  36666. {
  36667. d: "M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",
  36668. fill: color2
  36669. }
  36670. )
  36671. )), ChevronSmallLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36672. "svg",
  36673. {
  36674. width: size,
  36675. height: size,
  36676. viewBox: "0 0 14 14",
  36677. fill: "none",
  36678. xmlns: "http://www.w3.org/2000/svg",
  36679. ref: forwardedRef,
  36680. ...props
  36681. },
  36682. React255.createElement(
  36683. "path",
  36684. {
  36685. fillRule: "evenodd",
  36686. clipRule: "evenodd",
  36687. d: "M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",
  36688. fill: color2
  36689. }
  36690. )
  36691. )), ChevronSmallRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36692. "svg",
  36693. {
  36694. width: size,
  36695. height: size,
  36696. viewBox: "0 0 14 14",
  36697. fill: "none",
  36698. xmlns: "http://www.w3.org/2000/svg",
  36699. ref: forwardedRef,
  36700. ...props
  36701. },
  36702. React255.createElement(
  36703. "path",
  36704. {
  36705. fillRule: "evenodd",
  36706. clipRule: "evenodd",
  36707. d: "M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",
  36708. fill: color2
  36709. }
  36710. )
  36711. )), ArrowUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36712. "svg",
  36713. {
  36714. width: size,
  36715. height: size,
  36716. viewBox: "0 0 14 14",
  36717. fill: "none",
  36718. xmlns: "http://www.w3.org/2000/svg",
  36719. ref: forwardedRef,
  36720. ...props
  36721. },
  36722. React255.createElement(
  36723. "path",
  36724. {
  36725. d: "M11.854 4.646l-4.5-4.5a.5.5 0 00-.708 0l-4.5 4.5a.5.5 0 10.708.708L6.5 1.707V13.5a.5.5 0 001 0V1.707l3.646 3.647a.5.5 0 00.708-.708z",
  36726. fill: color2
  36727. }
  36728. )
  36729. )), ArrowDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36730. "svg",
  36731. {
  36732. width: size,
  36733. height: size,
  36734. viewBox: "0 0 14 14",
  36735. fill: "none",
  36736. xmlns: "http://www.w3.org/2000/svg",
  36737. ref: forwardedRef,
  36738. ...props
  36739. },
  36740. React255.createElement(
  36741. "path",
  36742. {
  36743. d: "M7.5.5a.5.5 0 00-1 0v11.793L2.854 8.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.351.146h.006c.127 0 .254-.05.35-.146l4.5-4.5a.5.5 0 00-.707-.708L7.5 12.293V.5z",
  36744. fill: color2
  36745. }
  36746. )
  36747. )), ArrowLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36748. "svg",
  36749. {
  36750. width: size,
  36751. height: size,
  36752. viewBox: "0 0 14 14",
  36753. fill: "none",
  36754. xmlns: "http://www.w3.org/2000/svg",
  36755. ref: forwardedRef,
  36756. ...props
  36757. },
  36758. React255.createElement(
  36759. "path",
  36760. {
  36761. d: "M5.354 2.146a.5.5 0 010 .708L1.707 6.5H13.5a.5.5 0 010 1H1.707l3.647 3.646a.5.5 0 01-.708.708l-4.5-4.5a.5.5 0 010-.708l4.5-4.5a.5.5 0 01.708 0z",
  36762. fill: color2
  36763. }
  36764. )
  36765. )), ArrowRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36766. "svg",
  36767. {
  36768. width: size,
  36769. height: size,
  36770. viewBox: "0 0 14 14",
  36771. fill: "none",
  36772. xmlns: "http://www.w3.org/2000/svg",
  36773. ref: forwardedRef,
  36774. ...props
  36775. },
  36776. React255.createElement(
  36777. "path",
  36778. {
  36779. d: "M8.646 2.146a.5.5 0 01.708 0l4.5 4.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708L12.293 7.5H.5a.5.5 0 010-1h11.793L8.646 2.854a.5.5 0 010-.708z",
  36780. fill: color2
  36781. }
  36782. )
  36783. )), ArrowTopLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36784. "svg",
  36785. {
  36786. width: size,
  36787. height: size,
  36788. viewBox: "0 0 14 14",
  36789. fill: "none",
  36790. xmlns: "http://www.w3.org/2000/svg",
  36791. ref: forwardedRef,
  36792. ...props
  36793. },
  36794. React255.createElement(
  36795. "path",
  36796. {
  36797. d: "M1.904 8.768V2.404a.5.5 0 01.5-.5h6.364a.5.5 0 110 1H3.61l8.339 8.339a.5.5 0 01-.707.707l-8.34-8.34v5.158a.5.5 0 01-1 0z",
  36798. fill: color2
  36799. }
  36800. )
  36801. )), ArrowTopRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36802. "svg",
  36803. {
  36804. width: size,
  36805. height: size,
  36806. viewBox: "0 0 14 14",
  36807. fill: "none",
  36808. xmlns: "http://www.w3.org/2000/svg",
  36809. ref: forwardedRef,
  36810. ...props
  36811. },
  36812. React255.createElement(
  36813. "path",
  36814. {
  36815. d: "M12.096 8.768V2.404a.5.5 0 00-.5-.5H5.232a.5.5 0 100 1h5.157L2.05 11.243a.5.5 0 10.707.707l8.34-8.34v5.158a.5.5 0 101 0z",
  36816. fill: color2
  36817. }
  36818. )
  36819. )), ArrowBottomLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36820. "svg",
  36821. {
  36822. width: size,
  36823. height: size,
  36824. viewBox: "0 0 14 14",
  36825. fill: "none",
  36826. xmlns: "http://www.w3.org/2000/svg",
  36827. ref: forwardedRef,
  36828. ...props
  36829. },
  36830. React255.createElement(
  36831. "path",
  36832. {
  36833. d: "M1.904 5.232v6.364a.5.5 0 00.5.5h6.364a.5.5 0 000-1H3.61l8.339-8.339a.5.5 0 00-.707-.707l-8.34 8.34V5.231a.5.5 0 00-1 0z",
  36834. fill: color2
  36835. }
  36836. )
  36837. )), ArrowBottomRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36838. "svg",
  36839. {
  36840. width: size,
  36841. height: size,
  36842. viewBox: "0 0 14 14",
  36843. fill: "none",
  36844. xmlns: "http://www.w3.org/2000/svg",
  36845. ref: forwardedRef,
  36846. ...props
  36847. },
  36848. React255.createElement(
  36849. "path",
  36850. {
  36851. d: "M12.096 5.232v6.364a.5.5 0 01-.5.5H5.232a.5.5 0 010-1h5.157L2.05 2.757a.5.5 0 01.707-.707l8.34 8.34V5.231a.5.5 0 111 0z",
  36852. fill: color2
  36853. }
  36854. )
  36855. )), ArrowSolidUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36856. "svg",
  36857. {
  36858. width: size,
  36859. height: size,
  36860. viewBox: "0 0 14 14",
  36861. fill: "none",
  36862. xmlns: "http://www.w3.org/2000/svg",
  36863. ref: forwardedRef,
  36864. ...props
  36865. },
  36866. React255.createElement(
  36867. "path",
  36868. {
  36869. fillRule: "evenodd",
  36870. clipRule: "evenodd",
  36871. d: "M6.772 3.59c.126-.12.33-.12.456 0l5.677 5.387c.203.193.06.523-.228.523H1.323c-.287 0-.431-.33-.228-.523L6.772 3.59z",
  36872. fill: color2
  36873. }
  36874. )
  36875. )), ArrowSolidDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36876. "svg",
  36877. {
  36878. width: size,
  36879. height: size,
  36880. viewBox: "0 0 14 14",
  36881. fill: "none",
  36882. xmlns: "http://www.w3.org/2000/svg",
  36883. ref: forwardedRef,
  36884. ...props
  36885. },
  36886. React255.createElement(
  36887. "path",
  36888. {
  36889. fillRule: "evenodd",
  36890. clipRule: "evenodd",
  36891. d: "M7.228 10.41a.335.335 0 01-.456 0L1.095 5.023c-.203-.193-.06-.523.228-.523h11.354c.287 0 .431.33.228.523L7.228 10.41z",
  36892. fill: color2
  36893. }
  36894. )
  36895. )), ArrowSolidLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36896. "svg",
  36897. {
  36898. width: size,
  36899. height: size,
  36900. viewBox: "0 0 14 14",
  36901. fill: "none",
  36902. xmlns: "http://www.w3.org/2000/svg",
  36903. ref: forwardedRef,
  36904. ...props
  36905. },
  36906. React255.createElement(
  36907. "path",
  36908. {
  36909. fillRule: "evenodd",
  36910. clipRule: "evenodd",
  36911. d: "M3.712 7.212a.3.3 0 010-.424l5.276-5.276a.3.3 0 01.512.212v10.552a.3.3 0 01-.512.212L3.712 7.212z",
  36912. fill: color2
  36913. }
  36914. )
  36915. )), ArrowSolidRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36916. "svg",
  36917. {
  36918. width: size,
  36919. height: size,
  36920. viewBox: "0 0 14 14",
  36921. fill: "none",
  36922. xmlns: "http://www.w3.org/2000/svg",
  36923. ref: forwardedRef,
  36924. ...props
  36925. },
  36926. React255.createElement(
  36927. "path",
  36928. {
  36929. fillRule: "evenodd",
  36930. clipRule: "evenodd",
  36931. d: "M10.288 7.212a.3.3 0 000-.424L5.012 1.512a.3.3 0 00-.512.212v10.552a.3.3 0 00.512.212l5.276-5.276z",
  36932. fill: color2
  36933. }
  36934. )
  36935. )), ExpandAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36936. "svg",
  36937. {
  36938. width: size,
  36939. height: size,
  36940. viewBox: "0 0 14 14",
  36941. fill: "none",
  36942. xmlns: "http://www.w3.org/2000/svg",
  36943. ref: forwardedRef,
  36944. ...props
  36945. },
  36946. React255.createElement(
  36947. "path",
  36948. {
  36949. d: "M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",
  36950. fill: color2
  36951. }
  36952. )
  36953. )), CollapseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36954. "svg",
  36955. {
  36956. width: size,
  36957. height: size,
  36958. viewBox: "0 0 14 14",
  36959. fill: "none",
  36960. xmlns: "http://www.w3.org/2000/svg",
  36961. ref: forwardedRef,
  36962. ...props
  36963. },
  36964. React255.createElement(
  36965. "path",
  36966. {
  36967. d: "M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",
  36968. fill: color2
  36969. }
  36970. )
  36971. )), ExpandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36972. "svg",
  36973. {
  36974. width: size,
  36975. height: size,
  36976. viewBox: "0 0 14 14",
  36977. fill: "none",
  36978. xmlns: "http://www.w3.org/2000/svg",
  36979. ref: forwardedRef,
  36980. ...props
  36981. },
  36982. React255.createElement(
  36983. "path",
  36984. {
  36985. d: "M1.5 1h2a.5.5 0 010 1h-.793l3.147 3.146a.5.5 0 11-.708.708L2 2.707V3.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-.793L8.854 5.854a.5.5 0 11-.708-.708L11.293 2H10.5a.5.5 0 01-.5-.5zM12.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1h.793L8.146 8.854a.5.5 0 11.708-.708L12 11.293V10.5a.5.5 0 01.5-.5zM2 11.293V10.5a.5.5 0 00-1 0v2a.5.5 0 00.5.5h2a.5.5 0 000-1h-.793l3.147-3.146a.5.5 0 10-.708-.708L2 11.293z",
  36986. fill: color2
  36987. }
  36988. )
  36989. )), UnfoldIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36990. "svg",
  36991. {
  36992. width: size,
  36993. height: size,
  36994. viewBox: "0 0 14 14",
  36995. fill: "none",
  36996. xmlns: "http://www.w3.org/2000/svg",
  36997. ref: forwardedRef,
  36998. ...props
  36999. },
  37000. React255.createElement(
  37001. "path",
  37002. {
  37003. d: "M6.646.147l-1.5 1.5a.5.5 0 10.708.707l.646-.647V5a.5.5 0 001 0V1.707l.646.647a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0z",
  37004. fill: color2
  37005. }
  37006. ),
  37007. React255.createElement(
  37008. "path",
  37009. {
  37010. d: "M1.309 4.038a.498.498 0 00-.16.106l-.005.005a.498.498 0 00.002.705L3.293 7 1.146 9.146A.498.498 0 001.5 10h3a.5.5 0 000-1H2.707l1.5-1.5h5.586l2.353 2.354a.5.5 0 00.708-.708L10.707 7l2.146-2.146.11-.545-.107.542A.499.499 0 0013 4.503v-.006a.5.5 0 00-.144-.348l-.005-.005A.498.498 0 0012.5 4h-3a.5.5 0 000 1h1.793l-1.5 1.5H4.207L2.707 5H4.5a.5.5 0 000-1h-3a.498.498 0 00-.191.038z",
  37011. fill: color2
  37012. }
  37013. ),
  37014. React255.createElement(
  37015. "path",
  37016. {
  37017. d: "M7 8.5a.5.5 0 01.5.5v3.293l.646-.647a.5.5 0 01.708.708l-1.5 1.5a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708l.646.647V9a.5.5 0 01.5-.5zM9 9.5a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3a.5.5 0 01-.5-.5z",
  37018. fill: color2
  37019. }
  37020. )
  37021. )), TransferIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37022. "svg",
  37023. {
  37024. width: size,
  37025. height: size,
  37026. viewBox: "0 0 14 14",
  37027. fill: "none",
  37028. xmlns: "http://www.w3.org/2000/svg",
  37029. ref: forwardedRef,
  37030. ...props
  37031. },
  37032. React255.createElement(
  37033. "path",
  37034. {
  37035. d: "M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",
  37036. fill: color2
  37037. }
  37038. )
  37039. )), RedirectIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37040. "svg",
  37041. {
  37042. width: size,
  37043. height: size,
  37044. viewBox: "0 0 14 14",
  37045. fill: "none",
  37046. xmlns: "http://www.w3.org/2000/svg",
  37047. ref: forwardedRef,
  37048. ...props
  37049. },
  37050. React255.createElement(
  37051. "path",
  37052. {
  37053. d: "M1.5 1a.5.5 0 01.5.5V10a2 2 0 004 0V4a3 3 0 016 0v7.793l1.146-1.147a.5.5 0 01.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L11 11.793V4a2 2 0 10-4 0v6.002a3 3 0 01-6 0V1.5a.5.5 0 01.5-.5z",
  37054. fill: color2
  37055. }
  37056. )
  37057. )), UndoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37058. "svg",
  37059. {
  37060. width: size,
  37061. height: size,
  37062. viewBox: "0 0 14 14",
  37063. fill: "none",
  37064. xmlns: "http://www.w3.org/2000/svg",
  37065. ref: forwardedRef,
  37066. ...props
  37067. },
  37068. React255.createElement(
  37069. "path",
  37070. {
  37071. d: "M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",
  37072. fill: color2
  37073. }
  37074. )
  37075. )), ReplyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37076. "svg",
  37077. {
  37078. width: size,
  37079. height: size,
  37080. viewBox: "0 0 14 14",
  37081. fill: "none",
  37082. xmlns: "http://www.w3.org/2000/svg",
  37083. ref: forwardedRef,
  37084. ...props
  37085. },
  37086. React255.createElement(
  37087. "path",
  37088. {
  37089. d: "M4.354 2.146a.5.5 0 010 .708L1.707 5.5H9.5A4.5 4.5 0 0114 10v1.5a.5.5 0 01-1 0V10a3.5 3.5 0 00-3.5-3.5H1.707l2.647 2.646a.5.5 0 11-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0z",
  37090. fill: color2
  37091. }
  37092. )
  37093. )), SyncIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37094. "svg",
  37095. {
  37096. width: size,
  37097. height: size,
  37098. viewBox: "0 0 14 14",
  37099. fill: "none",
  37100. xmlns: "http://www.w3.org/2000/svg",
  37101. ref: forwardedRef,
  37102. ...props
  37103. },
  37104. React255.createElement(
  37105. "path",
  37106. {
  37107. d: "M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",
  37108. fill: color2
  37109. }
  37110. )
  37111. )), UploadIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37112. "svg",
  37113. {
  37114. width: size,
  37115. height: size,
  37116. viewBox: "0 0 14 14",
  37117. fill: "none",
  37118. xmlns: "http://www.w3.org/2000/svg",
  37119. ref: forwardedRef,
  37120. ...props
  37121. },
  37122. React255.createElement(
  37123. "path",
  37124. {
  37125. d: "M8.646 5.854L7.5 4.707V10.5a.5.5 0 01-1 0V4.707L5.354 5.854a.5.5 0 11-.708-.708l2-2a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.708z",
  37126. fill: color2
  37127. }
  37128. ),
  37129. React255.createElement(
  37130. "path",
  37131. {
  37132. fillRule: "evenodd",
  37133. clipRule: "evenodd",
  37134. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37135. fill: color2
  37136. }
  37137. )
  37138. )), DownloadIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37139. "svg",
  37140. {
  37141. width: size,
  37142. height: size,
  37143. viewBox: "0 0 14 14",
  37144. fill: "none",
  37145. xmlns: "http://www.w3.org/2000/svg",
  37146. ref: forwardedRef,
  37147. ...props
  37148. },
  37149. React255.createElement(
  37150. "path",
  37151. {
  37152. d: "M5.354 8.146L6.5 9.293V3.5a.5.5 0 011 0v5.793l1.146-1.147a.5.5 0 11.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708z",
  37153. fill: color2
  37154. }
  37155. ),
  37156. React255.createElement(
  37157. "path",
  37158. {
  37159. fillRule: "evenodd",
  37160. clipRule: "evenodd",
  37161. d: "M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z",
  37162. fill: color2
  37163. }
  37164. )
  37165. )), BackIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37166. "svg",
  37167. {
  37168. width: size,
  37169. height: size,
  37170. viewBox: "0 0 14 14",
  37171. fill: "none",
  37172. xmlns: "http://www.w3.org/2000/svg",
  37173. ref: forwardedRef,
  37174. ...props
  37175. },
  37176. React255.createElement(
  37177. "path",
  37178. {
  37179. d: "M5.854 5.354L4.707 6.5H10.5a.5.5 0 010 1H4.707l1.147 1.146a.5.5 0 11-.708.708l-2-2a.5.5 0 010-.708l2-2a.5.5 0 11.708.708z",
  37180. fill: color2
  37181. }
  37182. ),
  37183. React255.createElement(
  37184. "path",
  37185. {
  37186. fillRule: "evenodd",
  37187. clipRule: "evenodd",
  37188. d: "M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z",
  37189. fill: color2
  37190. }
  37191. )
  37192. )), ProceedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37193. "svg",
  37194. {
  37195. width: size,
  37196. height: size,
  37197. viewBox: "0 0 14 14",
  37198. fill: "none",
  37199. xmlns: "http://www.w3.org/2000/svg",
  37200. ref: forwardedRef,
  37201. ...props
  37202. },
  37203. React255.createElement(
  37204. "path",
  37205. {
  37206. d: "M3.5 6.5h5.793L8.146 5.354a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 11-.708-.708L9.293 7.5H3.5a.5.5 0 010-1z",
  37207. fill: color2
  37208. }
  37209. ),
  37210. React255.createElement(
  37211. "path",
  37212. {
  37213. fillRule: "evenodd",
  37214. clipRule: "evenodd",
  37215. d: "M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z",
  37216. fill: color2
  37217. }
  37218. )
  37219. )), RefreshIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37220. "svg",
  37221. {
  37222. width: size,
  37223. height: size,
  37224. viewBox: "0 0 14 14",
  37225. fill: "none",
  37226. xmlns: "http://www.w3.org/2000/svg",
  37227. ref: forwardedRef,
  37228. ...props
  37229. },
  37230. React255.createElement(
  37231. "path",
  37232. {
  37233. d: "M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",
  37234. fill: color2
  37235. }
  37236. )
  37237. )), GlobeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37238. "svg",
  37239. {
  37240. width: size,
  37241. height: size,
  37242. viewBox: "0 0 14 14",
  37243. fill: "none",
  37244. xmlns: "http://www.w3.org/2000/svg",
  37245. ref: forwardedRef,
  37246. ...props
  37247. },
  37248. React255.createElement(
  37249. "path",
  37250. {
  37251. fillRule: "evenodd",
  37252. clipRule: "evenodd",
  37253. d: "M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z",
  37254. fill: color2
  37255. }
  37256. )
  37257. )), CompassIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37258. "svg",
  37259. {
  37260. width: size,
  37261. height: size,
  37262. viewBox: "0 0 14 14",
  37263. fill: "none",
  37264. xmlns: "http://www.w3.org/2000/svg",
  37265. ref: forwardedRef,
  37266. ...props
  37267. },
  37268. React255.createElement(
  37269. "path",
  37270. {
  37271. fillRule: "evenodd",
  37272. clipRule: "evenodd",
  37273. d: "M10.087 3.397L5.95 5.793a.374.374 0 00-.109.095.377.377 0 00-.036.052l-2.407 4.147a.374.374 0 00-.004.384c.104.179.334.24.513.136l4.142-2.404a.373.373 0 00.148-.143l2.406-4.146a.373.373 0 00-.037-.443.373.373 0 00-.478-.074zM4.75 9.25l2.847-1.652-1.195-1.195L4.75 9.25z",
  37274. fill: color2
  37275. }
  37276. ),
  37277. React255.createElement(
  37278. "path",
  37279. {
  37280. fillRule: "evenodd",
  37281. clipRule: "evenodd",
  37282. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37283. fill: color2
  37284. }
  37285. )
  37286. )), LocationIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37287. "svg",
  37288. {
  37289. width: size,
  37290. height: size,
  37291. viewBox: "0 0 14 14",
  37292. fill: "none",
  37293. xmlns: "http://www.w3.org/2000/svg",
  37294. ref: forwardedRef,
  37295. ...props
  37296. },
  37297. React255.createElement(
  37298. "path",
  37299. {
  37300. fillRule: "evenodd",
  37301. clipRule: "evenodd",
  37302. d: "M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",
  37303. fill: color2
  37304. }
  37305. )
  37306. )), PinIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37307. "svg",
  37308. {
  37309. width: size,
  37310. height: size,
  37311. viewBox: "0 0 14 14",
  37312. fill: "none",
  37313. xmlns: "http://www.w3.org/2000/svg",
  37314. ref: forwardedRef,
  37315. ...props
  37316. },
  37317. React255.createElement(
  37318. "path",
  37319. {
  37320. fillRule: "evenodd",
  37321. clipRule: "evenodd",
  37322. d: "M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z",
  37323. fill: color2
  37324. }
  37325. ),
  37326. React255.createElement(
  37327. "path",
  37328. {
  37329. fillRule: "evenodd",
  37330. clipRule: "evenodd",
  37331. d: "M12 5A5 5 0 002 5c0 2.633 2.273 6.154 4.65 8.643.192.2.508.2.7 0C9.726 11.153 12 7.633 12 5zM7 1a4 4 0 014 4c0 1.062-.471 2.42-1.303 3.88-.729 1.282-1.69 2.562-2.697 3.67-1.008-1.108-1.968-2.388-2.697-3.67C3.47 7.42 3 6.063 3 5a4 4 0 014-4z",
  37332. fill: color2
  37333. }
  37334. )
  37335. )), TimeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37336. "svg",
  37337. {
  37338. width: size,
  37339. height: size,
  37340. viewBox: "0 0 14 14",
  37341. fill: "none",
  37342. xmlns: "http://www.w3.org/2000/svg",
  37343. ref: forwardedRef,
  37344. ...props
  37345. },
  37346. React255.createElement(
  37347. "path",
  37348. {
  37349. d: "M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",
  37350. fill: color2
  37351. }
  37352. ),
  37353. React255.createElement(
  37354. "path",
  37355. {
  37356. fillRule: "evenodd",
  37357. clipRule: "evenodd",
  37358. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  37359. fill: color2
  37360. }
  37361. )
  37362. )), DashboardIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37363. "svg",
  37364. {
  37365. width: size,
  37366. height: size,
  37367. viewBox: "0 0 14 14",
  37368. fill: "none",
  37369. xmlns: "http://www.w3.org/2000/svg",
  37370. ref: forwardedRef,
  37371. ...props
  37372. },
  37373. React255.createElement(
  37374. "path",
  37375. {
  37376. d: "M9.79 4.093a.5.5 0 01.117.698L7.91 7.586a1 1 0 11-.814-.581l1.997-2.796a.5.5 0 01.698-.116z",
  37377. fill: color2
  37378. }
  37379. ),
  37380. React255.createElement(
  37381. "path",
  37382. {
  37383. fillRule: "evenodd",
  37384. clipRule: "evenodd",
  37385. d: "M2.069 12.968a7 7 0 119.863 0A12.962 12.962 0 007 12c-1.746 0-3.41.344-4.931.968zm9.582-1.177a6 6 0 10-9.301 0A13.98 13.98 0 017 11c1.629 0 3.194.279 4.65.791z",
  37386. fill: color2
  37387. }
  37388. )
  37389. )), TimerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37390. "svg",
  37391. {
  37392. width: size,
  37393. height: size,
  37394. viewBox: "0 0 14 14",
  37395. fill: "none",
  37396. xmlns: "http://www.w3.org/2000/svg",
  37397. ref: forwardedRef,
  37398. ...props
  37399. },
  37400. React255.createElement("path", { d: "M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z", fill: color2 }),
  37401. React255.createElement(
  37402. "path",
  37403. {
  37404. fillRule: "evenodd",
  37405. clipRule: "evenodd",
  37406. d: "M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",
  37407. fill: color2
  37408. }
  37409. )
  37410. )), HomeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37411. "svg",
  37412. {
  37413. width: size,
  37414. height: size,
  37415. viewBox: "0 0 14 14",
  37416. fill: "none",
  37417. xmlns: "http://www.w3.org/2000/svg",
  37418. ref: forwardedRef,
  37419. ...props
  37420. },
  37421. React255.createElement(
  37422. "path",
  37423. {
  37424. fillRule: "evenodd",
  37425. clipRule: "evenodd",
  37426. d: "M7.354 1.146l5.5 5.5a.5.5 0 01-.708.708L12 7.207V12.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V9H6v3.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V7.207l-.146.147a.5.5 0 11-.708-.708l1-1 4.5-4.5a.5.5 0 01.708 0zM3 6.207V12h2V8.5a.5.5 0 01.5-.5h3a.5.5 0 01.5.5V12h2V6.207l-4-4-4 4z",
  37427. fill: color2
  37428. }
  37429. )
  37430. )), AdminIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37431. "svg",
  37432. {
  37433. width: size,
  37434. height: size,
  37435. viewBox: "0 0 14 14",
  37436. fill: "none",
  37437. xmlns: "http://www.w3.org/2000/svg",
  37438. ref: forwardedRef,
  37439. ...props
  37440. },
  37441. React255.createElement(
  37442. "path",
  37443. {
  37444. fillRule: "evenodd",
  37445. clipRule: "evenodd",
  37446. d: "M1.213 4.094a.5.5 0 01.056-.034l5.484-2.995a.498.498 0 01.494 0L12.73 4.06a.507.507 0 01.266.389.498.498 0 01-.507.555H1.51a.5.5 0 01-.297-.91zm2.246-.09h7.082L7 2.07 3.459 4.004z",
  37447. fill: color2
  37448. }
  37449. ),
  37450. React255.createElement(
  37451. "path",
  37452. {
  37453. d: "M4 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM11 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM5.75 5.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM8.75 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM1.5 12.504a.5.5 0 01.5-.5h10a.5.5 0 010 1H2a.5.5 0 01-.5-.5z",
  37454. fill: color2
  37455. }
  37456. )
  37457. )), DirectionIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37458. "svg",
  37459. {
  37460. width: size,
  37461. height: size,
  37462. viewBox: "0 0 14 14",
  37463. fill: "none",
  37464. xmlns: "http://www.w3.org/2000/svg",
  37465. ref: forwardedRef,
  37466. ...props
  37467. },
  37468. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3594)" }, React255.createElement(
  37469. "path",
  37470. {
  37471. d: "M11.451.537l.01 12.922L7.61 8.946a1.078 1.078 0 00-.731-.374L.965 8.087 11.45.537z",
  37472. stroke: color2,
  37473. strokeWidth: 1.077
  37474. }
  37475. )),
  37476. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3594" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  37477. )), UserIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37478. "svg",
  37479. {
  37480. width: size,
  37481. height: size,
  37482. viewBox: "0 0 14 14",
  37483. fill: "none",
  37484. xmlns: "http://www.w3.org/2000/svg",
  37485. ref: forwardedRef,
  37486. ...props
  37487. },
  37488. React255.createElement(
  37489. "path",
  37490. {
  37491. fillRule: "evenodd",
  37492. clipRule: "evenodd",
  37493. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",
  37494. fill: color2
  37495. }
  37496. )
  37497. )), UserAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37498. "svg",
  37499. {
  37500. width: size,
  37501. height: size,
  37502. viewBox: "0 0 14 14",
  37503. fill: "none",
  37504. xmlns: "http://www.w3.org/2000/svg",
  37505. ref: forwardedRef,
  37506. ...props
  37507. },
  37508. React255.createElement(
  37509. "path",
  37510. {
  37511. d: "M7.275 13.16a11.388 11.388 0 005.175-1.232v-.25c0-1.566-3.237-2.994-4.104-3.132-.27-.043-.276-.783-.276-.783s.791-.783.964-1.836c.463 0 .75-1.119.286-1.513C9.34 4 9.916 1.16 6.997 1.16c-2.92 0-2.343 2.84-2.324 3.254-.463.394-.177 1.513.287 1.513.172 1.053.963 1.836.963 1.836s-.006.74-.275.783c-.858.136-4.036 1.536-4.103 3.082a11.388 11.388 0 005.73 1.532z",
  37512. fill: color2
  37513. }
  37514. )
  37515. )), UserAddIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37516. "svg",
  37517. {
  37518. width: size,
  37519. height: size,
  37520. viewBox: "0 0 14 14",
  37521. fill: "none",
  37522. xmlns: "http://www.w3.org/2000/svg",
  37523. ref: forwardedRef,
  37524. ...props
  37525. },
  37526. React255.createElement(
  37527. "path",
  37528. {
  37529. d: "M1.183 11.906a10.645 10.645 0 01-1.181-.589c.062-1.439 3.02-2.74 3.818-2.868.25-.04.256-.728.256-.728s-.736-.729-.896-1.709c-.432 0-.698-1.041-.267-1.408A2.853 2.853 0 002.9 4.46c-.072-.672-.31-2.884 2.175-2.884 2.486 0 2.248 2.212 2.176 2.884-.007.062-.012.112-.014.144.432.367.165 1.408-.266 1.408-.16.98-.896 1.709-.896 1.709s.005.688.256.728c.807.129 3.82 1.457 3.82 2.915v.233a10.598 10.598 0 01-4.816 1.146c-1.441 0-2.838-.282-4.152-.837zM11.5 2.16a.5.5 0 01.5.5v1.5h1.5a.5.5 0 010 1H12v1.5a.5.5 0 01-1 0v-1.5H9.5a.5.5 0 110-1H11v-1.5a.5.5 0 01.5-.5z",
  37530. fill: color2
  37531. }
  37532. )
  37533. )), UsersIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37534. "svg",
  37535. {
  37536. width: size,
  37537. height: size,
  37538. viewBox: "0 0 14 14",
  37539. fill: "none",
  37540. xmlns: "http://www.w3.org/2000/svg",
  37541. ref: forwardedRef,
  37542. ...props
  37543. },
  37544. React255.createElement(
  37545. "path",
  37546. {
  37547. d: "M9.21 11.623a10.586 10.586 0 01-4.031.787A10.585 10.585 0 010 11.07c.06-1.354 2.933-2.578 3.708-2.697.243-.038.249-.685.249-.685s-.715-.685-.87-1.607c-.42 0-.679-.979-.26-1.323a2.589 2.589 0 00-.013-.136c-.07-.632-.3-2.712 2.113-2.712 2.414 0 2.183 2.08 2.113 2.712-.007.059-.012.105-.013.136.419.344.16 1.323-.259 1.323-.156.922-.87 1.607-.87 1.607s.005.647.248.685c.784.12 3.71 1.37 3.71 2.74v.22c-.212.103-.427.2-.646.29z",
  37548. fill: color2
  37549. }
  37550. ),
  37551. React255.createElement(
  37552. "path",
  37553. {
  37554. d: "M8.81 8.417a9.643 9.643 0 00-.736-.398c.61-.42 1.396-.71 1.7-.757.167-.026.171-.471.171-.471s-.491-.471-.598-1.104c-.288 0-.466-.674-.178-.91-.001-.022-.005-.053-.01-.094-.048-.434-.206-1.864 1.453-1.864 1.66 0 1.5 1.43 1.453 1.864l-.01.094c.289.236.11.91-.178.91-.107.633-.598 1.104-.598 1.104s.004.445.171.47c.539.084 2.55.942 2.55 1.884v.628a10.604 10.604 0 01-3.302.553 2.974 2.974 0 00-.576-.879c-.375-.408-.853-.754-1.312-1.03z",
  37555. fill: color2
  37556. }
  37557. )
  37558. )), ProfileIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37559. "svg",
  37560. {
  37561. width: size,
  37562. height: size,
  37563. viewBox: "0 0 14 14",
  37564. fill: "none",
  37565. xmlns: "http://www.w3.org/2000/svg",
  37566. ref: forwardedRef,
  37567. ...props
  37568. },
  37569. React255.createElement(
  37570. "path",
  37571. {
  37572. d: "M9.106 7.354c-.627.265-1.295.4-1.983.4a5.062 5.062 0 01-2.547-.681c.03-.688 1.443-1.31 1.824-1.37.12-.02.122-.348.122-.348s-.351-.348-.428-.816c-.206 0-.333-.498-.127-.673 0-.016-.003-.04-.007-.07C5.926 3.477 5.812 2.42 7 2.42c1.187 0 1.073 1.057 1.039 1.378l-.007.069c.207.175.08.673-.127.673-.076.468-.428.816-.428.816s.003.329.122.348c.386.06 1.825.696 1.825 1.392v.111c-.104.053-.21.102-.318.148zM3.75 11.25A.25.25 0 014 11h6a.25.25 0 110 .5H4a.25.25 0 01-.25-.25zM4 9a.25.25 0 000 .5h6a.25.25 0 100-.5H4z",
  37573. fill: color2
  37574. }
  37575. ),
  37576. React255.createElement(
  37577. "path",
  37578. {
  37579. fillRule: "evenodd",
  37580. clipRule: "evenodd",
  37581. d: "M1 .5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v13a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5V.5zM2 13V1h10v12H2z",
  37582. fill: color2
  37583. }
  37584. )
  37585. )), FaceHappyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37586. "svg",
  37587. {
  37588. width: size,
  37589. height: size,
  37590. viewBox: "0 0 14 14",
  37591. fill: "none",
  37592. xmlns: "http://www.w3.org/2000/svg",
  37593. ref: forwardedRef,
  37594. ...props
  37595. },
  37596. React255.createElement(
  37597. "path",
  37598. {
  37599. d: "M3.968 8.75a.5.5 0 00-.866.5A4.498 4.498 0 007 11.5c1.666 0 3.12-.906 3.898-2.25a.5.5 0 10-.866-.5A3.498 3.498 0 017 10.5a3.498 3.498 0 01-3.032-1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",
  37600. fill: color2
  37601. }
  37602. ),
  37603. React255.createElement(
  37604. "path",
  37605. {
  37606. fillRule: "evenodd",
  37607. clipRule: "evenodd",
  37608. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37609. fill: color2
  37610. }
  37611. )
  37612. )), FaceNeutralIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37613. "svg",
  37614. {
  37615. width: size,
  37616. height: size,
  37617. viewBox: "0 0 14 14",
  37618. fill: "none",
  37619. xmlns: "http://www.w3.org/2000/svg",
  37620. ref: forwardedRef,
  37621. ...props
  37622. },
  37623. React255.createElement(
  37624. "path",
  37625. {
  37626. d: "M4.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",
  37627. fill: color2
  37628. }
  37629. ),
  37630. React255.createElement(
  37631. "path",
  37632. {
  37633. fillRule: "evenodd",
  37634. clipRule: "evenodd",
  37635. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37636. fill: color2
  37637. }
  37638. )
  37639. )), FaceSadIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37640. "svg",
  37641. {
  37642. width: size,
  37643. height: size,
  37644. viewBox: "0 0 14 14",
  37645. fill: "none",
  37646. xmlns: "http://www.w3.org/2000/svg",
  37647. ref: forwardedRef,
  37648. ...props
  37649. },
  37650. React255.createElement(
  37651. "path",
  37652. {
  37653. d: "M3.968 10.25a.5.5 0 01-.866-.5A4.498 4.498 0 017 7.5c1.666 0 3.12.906 3.898 2.25a.5.5 0 11-.866.5A3.498 3.498 0 007 8.5a3.498 3.498 0 00-3.032 1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",
  37654. fill: color2
  37655. }
  37656. ),
  37657. React255.createElement(
  37658. "path",
  37659. {
  37660. fillRule: "evenodd",
  37661. clipRule: "evenodd",
  37662. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37663. fill: color2
  37664. }
  37665. )
  37666. )), AccessibilityIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37667. "svg",
  37668. {
  37669. width: size,
  37670. height: size,
  37671. viewBox: "0 0 14 14",
  37672. fill: "none",
  37673. xmlns: "http://www.w3.org/2000/svg",
  37674. ref: forwardedRef,
  37675. ...props
  37676. },
  37677. React255.createElement(
  37678. "path",
  37679. {
  37680. d: "M3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",
  37681. fill: color2
  37682. }
  37683. ),
  37684. React255.createElement("path", { d: "M7 4.5a1 1 0 100-2 1 1 0 000 2z", fill: color2 }),
  37685. React255.createElement(
  37686. "path",
  37687. {
  37688. fillRule: "evenodd",
  37689. clipRule: "evenodd",
  37690. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  37691. fill: color2
  37692. }
  37693. )
  37694. )), AccessibilityAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37695. "svg",
  37696. {
  37697. width: size,
  37698. height: size,
  37699. viewBox: "0 0 14 14",
  37700. fill: "none",
  37701. xmlns: "http://www.w3.org/2000/svg",
  37702. ref: forwardedRef,
  37703. ...props
  37704. },
  37705. React255.createElement(
  37706. "path",
  37707. {
  37708. fillRule: "evenodd",
  37709. clipRule: "evenodd",
  37710. d: "M7 14A7 7 0 107 0a7 7 0 000 14zM8 3.5a1 1 0 11-2 0 1 1 0 012 0zM3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",
  37711. fill: color2
  37712. }
  37713. )
  37714. )), AccessibilityIgnoredIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37715. "svg",
  37716. {
  37717. width: size,
  37718. height: size,
  37719. viewBox: "0 0 14 14",
  37720. fill: "none",
  37721. xmlns: "http://www.w3.org/2000/svg",
  37722. ref: forwardedRef,
  37723. ...props
  37724. },
  37725. React255.createElement("g", { clipPath: "url(#prefix__clip0_2359_558)", fill: color2 }, React255.createElement("path", { d: "M7.636 13.972a7 7 0 116.335-6.335c-.28-.34-.609-.637-.976-.883a6 6 0 10-6.24 6.241c.245.367.542.696.881.977z" }), React255.createElement("path", { d: "M7.511 7.136a4.489 4.489 0 00-1.478 3.915l-.086.173a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01.316-.948l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243c0 .105.004.21.011.316z" }), React255.createElement("path", { d: "M8 3.5a1 1 0 11-2 0 1 1 0 012 0z" }), React255.createElement(
  37726. "path",
  37727. {
  37728. fillRule: "evenodd",
  37729. clipRule: "evenodd",
  37730. d: "M14 10.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-5.5 0A.5.5 0 019 10h3a.5.5 0 010 1H9a.5.5 0 01-.5-.5z"
  37731. }
  37732. )),
  37733. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_2359_558" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  37734. ));
  37735. // src/components/components/typography/link/link.tsx
  37736. init_polished_esm();
  37737. init_theming();
  37738. var LEFT_BUTTON = 0, isPlainLeftClick = (e) => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey, cancelled = (e, cb) => {
  37739. isPlainLeftClick(e) && (e.preventDefault(), cb(e));
  37740. }, LinkInner = styled.span(
  37741. ({ withArrow }) => withArrow ? {
  37742. "> svg:last-of-type": {
  37743. height: "0.7em",
  37744. width: "0.7em",
  37745. marginRight: 0,
  37746. marginLeft: "0.25em",
  37747. bottom: "auto",
  37748. verticalAlign: "inherit"
  37749. }
  37750. } : {},
  37751. ({ containsIcon }) => containsIcon ? {
  37752. svg: {
  37753. height: "1em",
  37754. width: "1em",
  37755. verticalAlign: "middle",
  37756. position: "relative",
  37757. bottom: 0,
  37758. marginRight: 0
  37759. }
  37760. } : {}
  37761. ), A2 = styled.a(
  37762. ({ theme: theme3 }) => ({
  37763. display: "inline-block",
  37764. transition: "all 150ms ease-out",
  37765. textDecoration: "none",
  37766. color: theme3.color.secondary,
  37767. "&:hover, &:focus": {
  37768. cursor: "pointer",
  37769. color: curriedDarken$1(0.07, theme3.color.secondary),
  37770. "svg path:not([fill])": {
  37771. fill: curriedDarken$1(0.07, theme3.color.secondary)
  37772. }
  37773. },
  37774. "&:active": {
  37775. color: curriedDarken$1(0.1, theme3.color.secondary),
  37776. "svg path:not([fill])": {
  37777. fill: curriedDarken$1(0.1, theme3.color.secondary)
  37778. }
  37779. },
  37780. svg: {
  37781. display: "inline-block",
  37782. height: "1em",
  37783. width: "1em",
  37784. verticalAlign: "text-top",
  37785. position: "relative",
  37786. bottom: "-0.125em",
  37787. marginRight: "0.4em",
  37788. "& path": {
  37789. fill: theme3.color.secondary
  37790. }
  37791. }
  37792. }),
  37793. ({ theme: theme3, secondary, tertiary }) => {
  37794. let colors3;
  37795. return secondary && (colors3 = [theme3.textMutedColor, theme3.color.secondary, theme3.color.secondary]), tertiary && (colors3 = [theme3.color.dark, theme3.color.secondary, theme3.color.secondary]), colors3 ? {
  37796. color: colors3[0],
  37797. "svg path:not([fill])": {
  37798. fill: colors3[0]
  37799. },
  37800. "&:hover": {
  37801. color: colors3[1],
  37802. "svg path:not([fill])": {
  37803. fill: colors3[1]
  37804. }
  37805. },
  37806. "&:active": {
  37807. color: colors3[2],
  37808. "svg path:not([fill])": {
  37809. fill: colors3[2]
  37810. }
  37811. }
  37812. } : {};
  37813. },
  37814. ({ nochrome }) => nochrome ? {
  37815. color: "inherit",
  37816. "&:hover, &:active": {
  37817. color: "inherit",
  37818. textDecoration: "underline"
  37819. }
  37820. } : {},
  37821. ({ theme: theme3, inverse }) => inverse ? {
  37822. color: theme3.color.lightest,
  37823. ":not([fill])": {
  37824. fill: theme3.color.lightest
  37825. },
  37826. "&:hover": {
  37827. color: theme3.color.lighter,
  37828. "svg path:not([fill])": {
  37829. fill: theme3.color.lighter
  37830. }
  37831. },
  37832. "&:active": {
  37833. color: theme3.color.light,
  37834. "svg path:not([fill])": {
  37835. fill: theme3.color.light
  37836. }
  37837. }
  37838. } : {},
  37839. ({ isButton: isButton2, theme: theme3 }) => isButton2 ? {
  37840. border: 0,
  37841. borderRadius: theme3.input.borderRadius,
  37842. background: "none",
  37843. padding: 0,
  37844. fontSize: "inherit",
  37845. lineHeight: "inherit",
  37846. "&:focus-visible": {
  37847. outline: `2px solid ${theme3.color.secondary}`,
  37848. outlineOffset: 2,
  37849. // Should ensure focus outline gets drawn above next sibling
  37850. zIndex: "1"
  37851. }
  37852. } : {}
  37853. ), Link2 = (0, import_react18.forwardRef)(
  37854. ({
  37855. cancel = !0,
  37856. children,
  37857. onClick = void 0,
  37858. withArrow = !1,
  37859. containsIcon = !1,
  37860. className = void 0,
  37861. isButton: isButton2 = void 0,
  37862. href,
  37863. ...rest
  37864. }, ref) => (isButton2 !== void 0 && deprecate(
  37865. "Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."
  37866. ), import_react18.default.createElement(
  37867. A2,
  37868. {
  37869. as: href ? "a" : "button",
  37870. href,
  37871. ...rest,
  37872. ref,
  37873. isButton: !href || isButton2 === !0,
  37874. onClick: onClick && cancel ? (e) => cancelled(e, onClick) : onClick,
  37875. className
  37876. },
  37877. import_react18.default.createElement(LinkInner, { withArrow, containsIcon }, children, withArrow && import_react18.default.createElement(ChevronRightIcon, null))
  37878. ))
  37879. );
  37880. Link2.displayName = "Link";
  37881. // src/components/components/typography/DocumentWrapper.tsx
  37882. init_theming();
  37883. var DocumentWrapper = styled.div(({ theme: theme3 }) => ({
  37884. fontSize: `${theme3.typography.size.s2}px`,
  37885. lineHeight: "1.6",
  37886. h1: {
  37887. fontSize: `${theme3.typography.size.l1}px`,
  37888. fontWeight: theme3.typography.weight.bold
  37889. },
  37890. h2: {
  37891. fontSize: `${theme3.typography.size.m2}px`,
  37892. borderBottom: `1px solid ${theme3.appBorderColor}`
  37893. },
  37894. h3: {
  37895. fontSize: `${theme3.typography.size.m1}px`
  37896. },
  37897. h4: {
  37898. fontSize: `${theme3.typography.size.s3}px`
  37899. },
  37900. h5: {
  37901. fontSize: `${theme3.typography.size.s2}px`
  37902. },
  37903. h6: {
  37904. fontSize: `${theme3.typography.size.s2}px`,
  37905. color: theme3.color.dark
  37906. },
  37907. "pre:not(.prismjs)": {
  37908. background: "transparent",
  37909. border: "none",
  37910. borderRadius: 0,
  37911. padding: 0,
  37912. margin: 0
  37913. },
  37914. "pre pre, pre.prismjs": {
  37915. padding: 15,
  37916. margin: 0,
  37917. whiteSpace: "pre-wrap",
  37918. color: "inherit",
  37919. fontSize: "13px",
  37920. lineHeight: "19px"
  37921. },
  37922. "pre pre code, pre.prismjs code": {
  37923. color: "inherit",
  37924. fontSize: "inherit"
  37925. },
  37926. "pre code": {
  37927. margin: 0,
  37928. padding: 0,
  37929. whiteSpace: "pre",
  37930. border: "none",
  37931. background: "transparent"
  37932. },
  37933. "pre code, pre tt": {
  37934. backgroundColor: "transparent",
  37935. border: "none"
  37936. },
  37937. /* GitHub inspired Markdown styles loosely from https://gist.github.com/tuzz/3331384 */
  37938. "body > *:first-of-type": {
  37939. marginTop: "0 !important"
  37940. },
  37941. "body > *:last-child": {
  37942. marginBottom: "0 !important"
  37943. },
  37944. a: {
  37945. color: theme3.color.secondary,
  37946. // Ensure WCAG Level A compliance (SC 1.4.1), see https://www.w3.org/WAI/WCAG22/Techniques/failures/F73
  37947. textDecoration: "underline",
  37948. textDecorationThickness: "0.03125rem",
  37949. textUnderlineOffset: "0.11em",
  37950. "& code": {
  37951. color: "inherit",
  37952. textDecoration: "underline",
  37953. textDecorationThickness: "0.03125rem",
  37954. paddingLeft: 0,
  37955. paddingRight: 0,
  37956. "&::before": {
  37957. content: '"\\00a0"',
  37958. fontSize: "0.5em"
  37959. },
  37960. "&::after": {
  37961. content: '"\\00a0"',
  37962. fontSize: "0.5em"
  37963. }
  37964. }
  37965. },
  37966. "a.absent": {
  37967. color: "#cc0000"
  37968. },
  37969. "a.anchor": {
  37970. display: "block",
  37971. paddingLeft: 30,
  37972. marginLeft: -30,
  37973. cursor: "pointer",
  37974. position: "absolute",
  37975. top: 0,
  37976. left: 0,
  37977. bottom: 0,
  37978. textDecoration: "none"
  37979. },
  37980. "&.anchor:hover, &.anchor:focus": {
  37981. textDecoration: "underline"
  37982. },
  37983. "h1, h2, h3, h4, h5, h6": {
  37984. margin: "20px 0 10px",
  37985. padding: 0,
  37986. cursor: "text",
  37987. position: "relative",
  37988. "&:first-of-type": {
  37989. marginTop: 0,
  37990. paddingTop: 0
  37991. },
  37992. "&:hover a.anchor": {
  37993. textDecoration: "none"
  37994. },
  37995. "& tt, & code": {
  37996. fontSize: "inherit"
  37997. }
  37998. },
  37999. "h1:first-of-type + h2": {
  38000. marginTop: 0,
  38001. paddingTop: 0
  38002. },
  38003. "p, blockquote, ul, ol, dl, li, table, pre": {
  38004. margin: "15px 0"
  38005. },
  38006. hr: {
  38007. border: "0 none",
  38008. borderTop: `1px solid ${theme3.appBorderColor}`,
  38009. height: 4,
  38010. padding: 0
  38011. },
  38012. "body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type": {
  38013. marginTop: 0,
  38014. paddingTop: 0
  38015. },
  38016. "body > h1:first-of-type + h2": {
  38017. marginTop: 0,
  38018. paddingTop: 0
  38019. },
  38020. "a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6": {
  38021. marginTop: 0,
  38022. paddingTop: 0
  38023. },
  38024. "h1 p, h2 p, h3 p, h4 p, h5 p, h6 p": {
  38025. marginTop: 0
  38026. },
  38027. "li p.first": {
  38028. display: "inline-block"
  38029. },
  38030. "ul, ol": {
  38031. paddingLeft: 30,
  38032. "& :first-of-type": {
  38033. marginTop: 0
  38034. },
  38035. "& :last-child": {
  38036. marginBottom: 0
  38037. }
  38038. },
  38039. dl: {
  38040. padding: 0
  38041. },
  38042. "dl dt": {
  38043. fontSize: "14px",
  38044. fontWeight: "bold",
  38045. fontStyle: "italic",
  38046. margin: "0 0 15px",
  38047. padding: "0 15px",
  38048. "&:first-of-type": {
  38049. padding: 0
  38050. },
  38051. "& > :first-of-type": {
  38052. marginTop: 0
  38053. },
  38054. "& > :last-child": {
  38055. marginBottom: 0
  38056. }
  38057. },
  38058. blockquote: {
  38059. borderLeft: `4px solid ${theme3.color.medium}`,
  38060. padding: "0 15px",
  38061. color: theme3.color.dark,
  38062. "& > :first-of-type": {
  38063. marginTop: 0
  38064. },
  38065. "& > :last-child": {
  38066. marginBottom: 0
  38067. }
  38068. },
  38069. table: {
  38070. padding: 0,
  38071. borderCollapse: "collapse",
  38072. "& tr": {
  38073. borderTop: `1px solid ${theme3.appBorderColor}`,
  38074. backgroundColor: "white",
  38075. margin: 0,
  38076. padding: 0,
  38077. "& th": {
  38078. fontWeight: "bold",
  38079. border: `1px solid ${theme3.appBorderColor}`,
  38080. textAlign: "left",
  38081. margin: 0,
  38082. padding: "6px 13px"
  38083. },
  38084. "& td": {
  38085. border: `1px solid ${theme3.appBorderColor}`,
  38086. textAlign: "left",
  38087. margin: 0,
  38088. padding: "6px 13px"
  38089. },
  38090. "&:nth-of-type(2n)": {
  38091. backgroundColor: theme3.color.lighter
  38092. },
  38093. "& th :first-of-type, & td :first-of-type": {
  38094. marginTop: 0
  38095. },
  38096. "& th :last-child, & td :last-child": {
  38097. marginBottom: 0
  38098. }
  38099. }
  38100. },
  38101. img: {
  38102. maxWidth: "100%"
  38103. },
  38104. "span.frame": {
  38105. display: "block",
  38106. overflow: "hidden",
  38107. "& > span": {
  38108. border: `1px solid ${theme3.color.medium}`,
  38109. display: "block",
  38110. float: "left",
  38111. overflow: "hidden",
  38112. margin: "13px 0 0",
  38113. padding: 7,
  38114. width: "auto"
  38115. },
  38116. "& span img": {
  38117. display: "block",
  38118. float: "left"
  38119. },
  38120. "& span span": {
  38121. clear: "both",
  38122. color: theme3.color.darkest,
  38123. display: "block",
  38124. padding: "5px 0 0"
  38125. }
  38126. },
  38127. "span.align-center": {
  38128. display: "block",
  38129. overflow: "hidden",
  38130. clear: "both",
  38131. "& > span": {
  38132. display: "block",
  38133. overflow: "hidden",
  38134. margin: "13px auto 0",
  38135. textAlign: "center"
  38136. },
  38137. "& span img": {
  38138. margin: "0 auto",
  38139. textAlign: "center"
  38140. }
  38141. },
  38142. "span.align-right": {
  38143. display: "block",
  38144. overflow: "hidden",
  38145. clear: "both",
  38146. "& > span": {
  38147. display: "block",
  38148. overflow: "hidden",
  38149. margin: "13px 0 0",
  38150. textAlign: "right"
  38151. },
  38152. "& span img": {
  38153. margin: 0,
  38154. textAlign: "right"
  38155. }
  38156. },
  38157. "span.float-left": {
  38158. display: "block",
  38159. marginRight: 13,
  38160. overflow: "hidden",
  38161. float: "left",
  38162. "& span": {
  38163. margin: "13px 0 0"
  38164. }
  38165. },
  38166. "span.float-right": {
  38167. display: "block",
  38168. marginLeft: 13,
  38169. overflow: "hidden",
  38170. float: "right",
  38171. "& > span": {
  38172. display: "block",
  38173. overflow: "hidden",
  38174. margin: "13px auto 0",
  38175. textAlign: "right"
  38176. }
  38177. },
  38178. "code, tt": {
  38179. margin: "0 2px",
  38180. padding: "0 5px",
  38181. whiteSpace: "nowrap",
  38182. border: `1px solid ${theme3.color.mediumlight}`,
  38183. backgroundColor: theme3.color.lighter,
  38184. borderRadius: 3,
  38185. color: theme3.base === "dark" ? theme3.color.darkest : theme3.color.dark
  38186. }
  38187. }));
  38188. // src/components/components/syntaxhighlighter/clipboard.ts
  38189. init_dist();
  38190. var { document: document3, window: globalWindow2 } = scope;
  38191. async function copyUsingClipboardAPI(text) {
  38192. try {
  38193. await globalWindow2.top?.navigator.clipboard.writeText(text);
  38194. } catch {
  38195. await globalWindow2.navigator.clipboard.writeText(text);
  38196. }
  38197. }
  38198. async function copyUsingWorkAround(text) {
  38199. let tmp = document3.createElement("TEXTAREA"), focus = document3.activeElement;
  38200. tmp.value = text, document3.body.appendChild(tmp), tmp.select(), document3.execCommand("copy"), document3.body.removeChild(tmp), focus.focus();
  38201. }
  38202. function createCopyToClipboardFunction() {
  38203. return globalWindow2.navigator?.clipboard ? copyUsingClipboardAPI : copyUsingWorkAround;
  38204. }
  38205. // src/components/index.ts
  38206. init_ActionBar();
  38207. // src/components/components/ActionList/ActionList.tsx
  38208. var import_react96 = __toESM(require_react(), 1);
  38209. init_polished_esm();
  38210. init_theming();
  38211. // src/components/components/Button/Button.tsx
  38212. var import_react94 = __toESM(require_react(), 1);
  38213. init_client_logger();
  38214. // ../../node_modules/@radix-ui/react-slot/dist/index.mjs
  38215. var React28 = __toESM(require_react(), 1);
  38216. // ../../node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
  38217. var React27 = __toESM(require_react(), 1);
  38218. function setRef2(ref, value) {
  38219. if (typeof ref == "function")
  38220. return ref(value);
  38221. ref != null && (ref.current = value);
  38222. }
  38223. function composeRefs2(...refs) {
  38224. return (node2) => {
  38225. let hasCleanup = !1, cleanups = refs.map((ref) => {
  38226. let cleanup = setRef2(ref, node2);
  38227. return !hasCleanup && typeof cleanup == "function" && (hasCleanup = !0), cleanup;
  38228. });
  38229. if (hasCleanup)
  38230. return () => {
  38231. for (let i = 0; i < cleanups.length; i++) {
  38232. let cleanup = cleanups[i];
  38233. typeof cleanup == "function" ? cleanup() : setRef2(refs[i], null);
  38234. }
  38235. };
  38236. };
  38237. }
  38238. // ../../node_modules/@radix-ui/react-slot/dist/index.mjs
  38239. var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), use = React28[" use ".trim().toString()];
  38240. function isPromiseLike(value) {
  38241. return typeof value == "object" && value !== null && "then" in value;
  38242. }
  38243. function isLazyComponent(element) {
  38244. return element != null && typeof element == "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
  38245. }
  38246. function createSlot(ownerName) {
  38247. let SlotClone2 = createSlotClone(ownerName), Slot22 = React28.forwardRef((props, forwardedRef) => {
  38248. let { children, ...slotProps } = props;
  38249. isLazyComponent(children) && typeof use == "function" && (children = use(children._payload));
  38250. let childrenArray = React28.Children.toArray(children), slottable = childrenArray.find(isSlottable2);
  38251. if (slottable) {
  38252. let newElement = slottable.props.children, newChildren = childrenArray.map((child) => child === slottable ? React28.Children.count(newElement) > 1 ? React28.Children.only(null) : React28.isValidElement(newElement) ? newElement.props.children : null : child);
  38253. return (0, import_jsx_runtime6.jsx)(SlotClone2, { ...slotProps, ref: forwardedRef, children: React28.isValidElement(newElement) ? React28.cloneElement(newElement, void 0, newChildren) : null });
  38254. }
  38255. return (0, import_jsx_runtime6.jsx)(SlotClone2, { ...slotProps, ref: forwardedRef, children });
  38256. });
  38257. return Slot22.displayName = `${ownerName}.Slot`, Slot22;
  38258. }
  38259. var Slot2 = createSlot("Slot");
  38260. function createSlotClone(ownerName) {
  38261. let SlotClone2 = React28.forwardRef((props, forwardedRef) => {
  38262. let { children, ...slotProps } = props;
  38263. if (isLazyComponent(children) && typeof use == "function" && (children = use(children._payload)), React28.isValidElement(children)) {
  38264. let childrenRef = getElementRef3(children), props2 = mergeProps2(slotProps, children.props);
  38265. return children.type !== React28.Fragment && (props2.ref = forwardedRef ? composeRefs2(forwardedRef, childrenRef) : childrenRef), React28.cloneElement(children, props2);
  38266. }
  38267. return React28.Children.count(children) > 1 ? React28.Children.only(null) : null;
  38268. });
  38269. return SlotClone2.displayName = `${ownerName}.SlotClone`, SlotClone2;
  38270. }
  38271. var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
  38272. function createSlottable(ownerName) {
  38273. let Slottable22 = ({ children }) => (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children });
  38274. return Slottable22.displayName = `${ownerName}.Slottable`, Slottable22.__radixId = SLOTTABLE_IDENTIFIER, Slottable22;
  38275. }
  38276. var Slottable2 = createSlottable("Slottable");
  38277. function isSlottable2(child) {
  38278. return React28.isValidElement(child) && typeof child.type == "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
  38279. }
  38280. function mergeProps2(slotProps, childProps) {
  38281. let overrideProps = { ...childProps };
  38282. for (let propName in childProps) {
  38283. let slotPropValue = slotProps[propName], childPropValue = childProps[propName];
  38284. /^on[A-Z]/.test(propName) ? slotPropValue && childPropValue ? overrideProps[propName] = (...args) => {
  38285. let result = childPropValue(...args);
  38286. return slotPropValue(...args), result;
  38287. } : slotPropValue && (overrideProps[propName] = slotPropValue) : propName === "style" ? overrideProps[propName] = { ...slotPropValue, ...childPropValue } : propName === "className" && (overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" "));
  38288. }
  38289. return { ...slotProps, ...overrideProps };
  38290. }
  38291. function getElementRef3(element) {
  38292. let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
  38293. return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
  38294. }
  38295. // src/components/components/Button/Button.tsx
  38296. init_polished_esm();
  38297. // src/manager-api/index.ts
  38298. var manager_api_exports = {};
  38299. __export(manager_api_exports, {
  38300. ActiveTabs: () => ActiveTabs2,
  38301. Consumer: () => ManagerConsumer,
  38302. ManagerContext: () => ManagerContext,
  38303. Provider: () => ManagerProvider,
  38304. RequestResponseError: () => RequestResponseError,
  38305. Tag: () => Tag,
  38306. addons: () => addons,
  38307. combineParameters: () => combineParameters2,
  38308. controlOrMetaKey: () => controlOrMetaKey,
  38309. controlOrMetaSymbol: () => controlOrMetaSymbol,
  38310. eventMatchesShortcut: () => eventMatchesShortcut,
  38311. eventToShortcut: () => eventToShortcut,
  38312. experimental_MockUniversalStore: () => MockUniversalStore,
  38313. experimental_UniversalStore: () => UniversalStore,
  38314. experimental_getStatusStore: () => getStatusStoreByTypeId,
  38315. experimental_getTestProviderStore: () => getTestProviderStoreById,
  38316. experimental_requestResponse: () => experimental_requestResponse,
  38317. experimental_useStatusStore: () => useStatusStore,
  38318. experimental_useTestProviderStore: () => useTestProviderStore,
  38319. experimental_useUniversalStore: () => useUniversalStore,
  38320. internal_checklistStore: () => checklistStore,
  38321. internal_fullStatusStore: () => fullStatusStore,
  38322. internal_fullTestProviderStore: () => fullTestProviderStore,
  38323. internal_universalChecklistStore: () => universalChecklistStore,
  38324. internal_universalStatusStore: () => universalStatusStore,
  38325. internal_universalTestProviderStore: () => universalTestProviderStore,
  38326. isMacLike: () => isMacLike,
  38327. isShortcutTaken: () => isShortcutTaken,
  38328. keyToSymbol: () => keyToSymbol,
  38329. merge: () => merge_default,
  38330. mockChannel: () => mockChannel,
  38331. optionOrAltSymbol: () => optionOrAltSymbol,
  38332. shortcutMatchesShortcut: () => shortcutMatchesShortcut,
  38333. shortcutToAriaKeyshortcuts: () => shortcutToAriaKeyshortcuts,
  38334. shortcutToHumanString: () => shortcutToHumanString,
  38335. types: () => typesX,
  38336. useAddonState: () => useAddonState,
  38337. useArgTypes: () => useArgTypes,
  38338. useArgs: () => useArgs2,
  38339. useChannel: () => useChannel2,
  38340. useGlobalTypes: () => useGlobalTypes,
  38341. useGlobals: () => useGlobals2,
  38342. useParameter: () => useParameter2,
  38343. useSharedState: () => useSharedState,
  38344. useStoryPrepared: () => useStoryPrepared,
  38345. useStorybookApi: () => useStorybookApi,
  38346. useStorybookState: () => useStorybookState
  38347. });
  38348. // src/manager-api/root.tsx
  38349. var import_react23 = __toESM(require_react(), 1);
  38350. // ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
  38351. function isPlainObject(value) {
  38352. if (!value || typeof value != "object")
  38353. return !1;
  38354. let proto = Object.getPrototypeOf(value);
  38355. return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
  38356. }
  38357. // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
  38358. function getSymbols(object) {
  38359. return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
  38360. }
  38361. // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
  38362. function getTag(value) {
  38363. return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value);
  38364. }
  38365. // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
  38366. var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag2 = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", functionTag = "[object Function]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", errorTag = "[object Error]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", bigUint64ArrayTag = "[object BigUint64Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", bigInt64ArrayTag = "[object BigInt64Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
  38367. // ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
  38368. function eq2(value, other) {
  38369. return value === other || Number.isNaN(value) && Number.isNaN(other);
  38370. }
  38371. // ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
  38372. function isEqualWith(a3, b, areValuesEqual) {
  38373. return isEqualWithImpl(a3, b, void 0, void 0, void 0, void 0, areValuesEqual);
  38374. }
  38375. function isEqualWithImpl(a3, b, property, aParent, bParent, stack, areValuesEqual) {
  38376. let result = areValuesEqual(a3, b, property, aParent, bParent, stack);
  38377. if (result !== void 0)
  38378. return result;
  38379. if (typeof a3 == typeof b)
  38380. switch (typeof a3) {
  38381. case "bigint":
  38382. case "string":
  38383. case "boolean":
  38384. case "symbol":
  38385. case "undefined":
  38386. return a3 === b;
  38387. case "number":
  38388. return a3 === b || Object.is(a3, b);
  38389. case "function":
  38390. return a3 === b;
  38391. case "object":
  38392. return areObjectsEqual(a3, b, stack, areValuesEqual);
  38393. }
  38394. return areObjectsEqual(a3, b, stack, areValuesEqual);
  38395. }
  38396. function areObjectsEqual(a3, b, stack, areValuesEqual) {
  38397. if (Object.is(a3, b))
  38398. return !0;
  38399. let aTag = getTag(a3), bTag = getTag(b);
  38400. if (aTag === argumentsTag && (aTag = objectTag), bTag === argumentsTag && (bTag = objectTag), aTag !== bTag)
  38401. return !1;
  38402. switch (aTag) {
  38403. case stringTag:
  38404. return a3.toString() === b.toString();
  38405. case numberTag: {
  38406. let x = a3.valueOf(), y = b.valueOf();
  38407. return eq2(x, y);
  38408. }
  38409. case booleanTag:
  38410. case dateTag:
  38411. case symbolTag2:
  38412. return Object.is(a3.valueOf(), b.valueOf());
  38413. case regexpTag:
  38414. return a3.source === b.source && a3.flags === b.flags;
  38415. case functionTag:
  38416. return a3 === b;
  38417. }
  38418. stack = stack ?? /* @__PURE__ */ new Map();
  38419. let aStack = stack.get(a3), bStack = stack.get(b);
  38420. if (aStack != null && bStack != null)
  38421. return aStack === b;
  38422. stack.set(a3, b), stack.set(b, a3);
  38423. try {
  38424. switch (aTag) {
  38425. case mapTag: {
  38426. if (a3.size !== b.size)
  38427. return !1;
  38428. for (let [key, value] of a3.entries())
  38429. if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a3, b, stack, areValuesEqual))
  38430. return !1;
  38431. return !0;
  38432. }
  38433. case setTag: {
  38434. if (a3.size !== b.size)
  38435. return !1;
  38436. let aValues = Array.from(a3.values()), bValues = Array.from(b.values());
  38437. for (let i = 0; i < aValues.length; i++) {
  38438. let aValue = aValues[i], index4 = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0, a3, b, stack, areValuesEqual));
  38439. if (index4 === -1)
  38440. return !1;
  38441. bValues.splice(index4, 1);
  38442. }
  38443. return !0;
  38444. }
  38445. case arrayTag:
  38446. case uint8ArrayTag:
  38447. case uint8ClampedArrayTag:
  38448. case uint16ArrayTag:
  38449. case uint32ArrayTag:
  38450. case bigUint64ArrayTag:
  38451. case int8ArrayTag:
  38452. case int16ArrayTag:
  38453. case int32ArrayTag:
  38454. case bigInt64ArrayTag:
  38455. case float32ArrayTag:
  38456. case float64ArrayTag: {
  38457. if (typeof Buffer < "u" && Buffer.isBuffer(a3) !== Buffer.isBuffer(b) || a3.length !== b.length)
  38458. return !1;
  38459. for (let i = 0; i < a3.length; i++)
  38460. if (!isEqualWithImpl(a3[i], b[i], i, a3, b, stack, areValuesEqual))
  38461. return !1;
  38462. return !0;
  38463. }
  38464. case arrayBufferTag:
  38465. return a3.byteLength !== b.byteLength ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual);
  38466. case dataViewTag:
  38467. return a3.byteLength !== b.byteLength || a3.byteOffset !== b.byteOffset ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual);
  38468. case errorTag:
  38469. return a3.name === b.name && a3.message === b.message;
  38470. case objectTag: {
  38471. if (!(areObjectsEqual(a3.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a3) && isPlainObject(b)))
  38472. return !1;
  38473. let aKeys = [...Object.keys(a3), ...getSymbols(a3)], bKeys = [...Object.keys(b), ...getSymbols(b)];
  38474. if (aKeys.length !== bKeys.length)
  38475. return !1;
  38476. for (let i = 0; i < aKeys.length; i++) {
  38477. let propKey = aKeys[i], aProp = a3[propKey];
  38478. if (!Object.hasOwn(b, propKey))
  38479. return !1;
  38480. let bProp = b[propKey];
  38481. if (!isEqualWithImpl(aProp, bProp, propKey, a3, b, stack, areValuesEqual))
  38482. return !1;
  38483. }
  38484. return !0;
  38485. }
  38486. default:
  38487. return !1;
  38488. }
  38489. } finally {
  38490. stack.delete(a3), stack.delete(b);
  38491. }
  38492. }
  38493. // ../../node_modules/es-toolkit/dist/function/noop.mjs
  38494. function noop() {
  38495. }
  38496. // ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
  38497. function isEqual(a3, b) {
  38498. return isEqualWith(a3, b, noop);
  38499. }
  38500. // ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
  38501. function isPrimitive(value) {
  38502. return value == null || typeof value != "object" && typeof value != "function";
  38503. }
  38504. // ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
  38505. function isTypedArray(x) {
  38506. return ArrayBuffer.isView(x) && !(x instanceof DataView);
  38507. }
  38508. // src/manager-api/context.ts
  38509. var import_react19 = __toESM(require_react(), 1), createContext4 = ({ api, state: state3 }) => (0, import_react19.createContext)({ api, state: state3 });
  38510. // src/manager-api/lib/merge.ts
  38511. init_client_logger();
  38512. // ../../node_modules/es-toolkit/dist/object/clone.mjs
  38513. function clone(obj) {
  38514. if (isPrimitive(obj))
  38515. return obj;
  38516. if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer)
  38517. return obj.slice(0);
  38518. let prototype = Object.getPrototypeOf(obj), Constructor = prototype.constructor;
  38519. if (obj instanceof Date || obj instanceof Map || obj instanceof Set)
  38520. return new Constructor(obj);
  38521. if (obj instanceof RegExp) {
  38522. let newRegExp = new Constructor(obj);
  38523. return newRegExp.lastIndex = obj.lastIndex, newRegExp;
  38524. }
  38525. if (obj instanceof DataView)
  38526. return new Constructor(obj.buffer.slice(0));
  38527. if (obj instanceof Error) {
  38528. let newError = new Constructor(obj.message);
  38529. return newError.stack = obj.stack, newError.name = obj.name, newError.cause = obj.cause, newError;
  38530. }
  38531. if (typeof File < "u" && obj instanceof File)
  38532. return new Constructor([obj], obj.name, { type: obj.type, lastModified: obj.lastModified });
  38533. if (typeof obj == "object") {
  38534. let newObject = Object.create(prototype);
  38535. return Object.assign(newObject, obj);
  38536. }
  38537. return obj;
  38538. }
  38539. // ../../node_modules/es-toolkit/dist/object/mapValues.mjs
  38540. function mapValues(object, getNewValue) {
  38541. let result = {}, keys3 = Object.keys(object);
  38542. for (let i = 0; i < keys3.length; i++) {
  38543. let key = keys3[i], value = object[key];
  38544. result[key] = getNewValue(value, key, object);
  38545. }
  38546. return result;
  38547. }
  38548. // ../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
  38549. function isUnsafeProperty(key) {
  38550. return key === "__proto__";
  38551. }
  38552. // ../../node_modules/es-toolkit/dist/object/mergeWith.mjs
  38553. function mergeWith(target, source, merge3) {
  38554. let sourceKeys = Object.keys(source);
  38555. for (let i = 0; i < sourceKeys.length; i++) {
  38556. let key = sourceKeys[i];
  38557. if (isUnsafeProperty(key))
  38558. continue;
  38559. let sourceValue = source[key], targetValue = target[key], merged = merge3(targetValue, sourceValue, key, target, source);
  38560. merged !== void 0 ? target[key] = merged : Array.isArray(sourceValue) ? Array.isArray(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge3) : target[key] = mergeWith([], sourceValue, merge3) : isPlainObject(sourceValue) ? isPlainObject(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge3) : target[key] = mergeWith({}, sourceValue, merge3) : (targetValue === void 0 || sourceValue !== void 0) && (target[key] = sourceValue);
  38561. }
  38562. return target;
  38563. }
  38564. // ../../node_modules/es-toolkit/dist/object/omit.mjs
  38565. function omit(obj, keys3) {
  38566. let result = { ...obj };
  38567. for (let i = 0; i < keys3.length; i++) {
  38568. let key = keys3[i];
  38569. delete result[key];
  38570. }
  38571. return result;
  38572. }
  38573. // ../../node_modules/es-toolkit/dist/object/pick.mjs
  38574. function pick(obj, keys3) {
  38575. let result = {};
  38576. for (let i = 0; i < keys3.length; i++) {
  38577. let key = keys3[i];
  38578. Object.hasOwn(obj, key) && (result[key] = obj[key]);
  38579. }
  38580. return result;
  38581. }
  38582. // ../../node_modules/es-toolkit/dist/object/pickBy.mjs
  38583. function pickBy(obj, shouldPick) {
  38584. let result = {}, keys3 = Object.keys(obj);
  38585. for (let i = 0; i < keys3.length; i++) {
  38586. let key = keys3[i], value = obj[key];
  38587. shouldPick(value, key) && (result[key] = value);
  38588. }
  38589. return result;
  38590. }
  38591. // ../../node_modules/es-toolkit/dist/string/words.mjs
  38592. var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
  38593. // ../../node_modules/es-toolkit/dist/object/toMerged.mjs
  38594. function toMerged(target, source) {
  38595. return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) {
  38596. if (Array.isArray(sourceValue))
  38597. return Array.isArray(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith([], sourceValue, mergeRecursively);
  38598. if (isPlainObject(sourceValue))
  38599. return isPlainObject(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith({}, sourceValue, mergeRecursively);
  38600. });
  38601. }
  38602. // src/manager-api/lib/merge.ts
  38603. var merge_default = (a3, ...b) => {
  38604. let target = {};
  38605. target = mergeWith(
  38606. {},
  38607. a3,
  38608. (objValue, srcValue) => {
  38609. if (Array.isArray(srcValue) && Array.isArray(objValue))
  38610. return srcValue.forEach((s3) => {
  38611. objValue.find((o) => o === s3 || isEqual(o, s3)) || objValue.push(s3);
  38612. }), objValue;
  38613. if (Array.isArray(objValue))
  38614. return logger.log(["the types mismatch, picking", objValue]), objValue;
  38615. }
  38616. );
  38617. for (let obj of b)
  38618. target = mergeWith(target, obj, (objValue, srcValue) => {
  38619. if (Array.isArray(srcValue) && Array.isArray(objValue))
  38620. return srcValue.forEach((s3) => {
  38621. objValue.find((o) => o === s3 || isEqual(o, s3)) || objValue.push(s3);
  38622. }), objValue;
  38623. if (Array.isArray(objValue))
  38624. return logger.log(["the types mismatch, picking", objValue]), objValue;
  38625. });
  38626. return target;
  38627. }, noArrayMerge = (a3, ...b) => {
  38628. let target = {};
  38629. target = mergeWith(
  38630. {},
  38631. a3,
  38632. (objValue, srcValue) => {
  38633. if (Array.isArray(srcValue))
  38634. return srcValue;
  38635. }
  38636. );
  38637. for (let obj of b)
  38638. target = mergeWith(target, obj, (objValue, srcValue) => {
  38639. if (Array.isArray(srcValue))
  38640. return srcValue;
  38641. });
  38642. return target;
  38643. };
  38644. // src/manager-api/initial-state.ts
  38645. var main = (...additions) => additions.reduce((acc, item) => merge_default(acc, item), {}), initial_state_default = main;
  38646. // src/manager-api/lib/addons.ts
  38647. init_client_logger();
  38648. // src/types/index.ts
  38649. var types_exports = {};
  38650. __export(types_exports, {
  38651. Addon_TypesEnum: () => Addon_TypesEnum,
  38652. CHANGE_DETECTION_STATUS_TYPE_ID: () => CHANGE_DETECTION_STATUS_TYPE_ID,
  38653. CoreWebpackCompiler: () => CoreWebpackCompiler,
  38654. Feature: () => Feature,
  38655. SupportedBuilder: () => SupportedBuilder,
  38656. SupportedFramework: () => SupportedFramework,
  38657. SupportedLanguage: () => SupportedLanguage,
  38658. SupportedRenderer: () => SupportedRenderer
  38659. });
  38660. // src/types/modules/addons.ts
  38661. var Addon_TypesEnum = /* @__PURE__ */ ((Addon_TypesEnum2) => (Addon_TypesEnum2.TAB = "tab", Addon_TypesEnum2.PANEL = "panel", Addon_TypesEnum2.TOOL = "tool", Addon_TypesEnum2.TOOLEXTRA = "toolextra", Addon_TypesEnum2.PREVIEW = "preview", Addon_TypesEnum2.experimental_PAGE = "page", Addon_TypesEnum2.experimental_TEST_PROVIDER = "test-provider", Addon_TypesEnum2))(Addon_TypesEnum || {});
  38662. // src/types/modules/frameworks.ts
  38663. var SupportedFramework = /* @__PURE__ */ ((SupportedFramework2) => (SupportedFramework2.ANGULAR = "angular", SupportedFramework2.EMBER = "ember", SupportedFramework2.HTML_VITE = "html-vite", SupportedFramework2.NEXTJS = "nextjs", SupportedFramework2.NEXTJS_VITE = "nextjs-vite", SupportedFramework2.PREACT_VITE = "preact-vite", SupportedFramework2.REACT_NATIVE_WEB_VITE = "react-native-web-vite", SupportedFramework2.REACT_VITE = "react-vite", SupportedFramework2.REACT_WEBPACK5 = "react-webpack5", SupportedFramework2.SERVER_WEBPACK5 = "server-webpack5", SupportedFramework2.SVELTE_VITE = "svelte-vite", SupportedFramework2.SVELTEKIT = "sveltekit", SupportedFramework2.TANSTACK_REACT = "tanstack-react", SupportedFramework2.VUE3_VITE = "vue3-vite", SupportedFramework2.WEB_COMPONENTS_VITE = "web-components-vite", SupportedFramework2.HTML_RSBUILD = "html-rsbuild", SupportedFramework2.NUXT = "nuxt", SupportedFramework2.QWIK = "qwik", SupportedFramework2.REACT_RSBUILD = "react-rsbuild", SupportedFramework2.SOLID = "solid", SupportedFramework2.VUE3_RSBUILD = "vue3-rsbuild", SupportedFramework2.WEB_COMPONENTS_RSBUILD = "web-components-rsbuild", SupportedFramework2))(SupportedFramework || {});
  38664. // src/types/modules/renderers.ts
  38665. var SupportedRenderer = /* @__PURE__ */ ((SupportedRenderer2) => (SupportedRenderer2.REACT = "react", SupportedRenderer2.REACT_NATIVE = "react-native", SupportedRenderer2.VUE3 = "vue3", SupportedRenderer2.ANGULAR = "angular", SupportedRenderer2.EMBER = "ember", SupportedRenderer2.PREACT = "preact", SupportedRenderer2.SVELTE = "svelte", SupportedRenderer2.QWIK = "qwik", SupportedRenderer2.HTML = "html", SupportedRenderer2.WEB_COMPONENTS = "web-components", SupportedRenderer2.SERVER = "server", SupportedRenderer2.SOLID = "solid", SupportedRenderer2.NUXT = "nuxt", SupportedRenderer2))(SupportedRenderer || {});
  38666. // src/manager-errors.ts
  38667. var manager_errors_exports = {};
  38668. __export(manager_errors_exports, {
  38669. Category: () => Category,
  38670. ProviderDoesNotExtendBaseProviderError: () => ProviderDoesNotExtendBaseProviderError,
  38671. StatusTypeIdMismatchError: () => StatusTypeIdMismatchError,
  38672. UncaughtManagerError: () => UncaughtManagerError
  38673. });
  38674. // src/storybook-error.ts
  38675. function parseErrorCode({
  38676. code,
  38677. category
  38678. }) {
  38679. let paddedCode = String(code).padStart(4, "0");
  38680. return `SB_${category}_${paddedCode}`;
  38681. }
  38682. function appendErrorRef(url) {
  38683. if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url))
  38684. return url;
  38685. try {
  38686. let urlObj = new URL(url);
  38687. return urlObj.searchParams.set("ref", "error"), urlObj.toString();
  38688. } catch {
  38689. return url;
  38690. }
  38691. }
  38692. var StorybookError = class _StorybookError extends Error {
  38693. constructor(props) {
  38694. super(
  38695. _StorybookError.getFullMessage(props),
  38696. props.cause === void 0 ? void 0 : { cause: props.cause }
  38697. );
  38698. /**
  38699. * Data associated with the error. Used to provide additional information in the error message or
  38700. * to be passed to telemetry.
  38701. */
  38702. this.data = {};
  38703. /** Flag used to easily determine if the error originates from Storybook. */
  38704. this.fromStorybook = !0;
  38705. /**
  38706. * Flag used to determine if the error is handled by us and should therefore not be shown to the
  38707. * user.
  38708. */
  38709. this.isHandledError = !1;
  38710. /**
  38711. * A collection of sub errors which relate to a parent error.
  38712. *
  38713. * Sub-errors are used to represent multiple related errors that occurred together. When a
  38714. * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
  38715. * are sent as separate telemetry events. This allows for better error tracking and debugging.
  38716. *
  38717. * @example
  38718. *
  38719. * ```ts
  38720. * const error1 = new SomeError();
  38721. * const error2 = new AnotherError();
  38722. * const parentError = new ParentError({
  38723. * // ... other props
  38724. * subErrors: [error1, error2],
  38725. * });
  38726. * ```
  38727. */
  38728. this.subErrors = [];
  38729. this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
  38730. }
  38731. get fullErrorCode() {
  38732. return parseErrorCode({ code: this.code, category: this.category });
  38733. }
  38734. /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
  38735. get name() {
  38736. let errorName = this._name || this.constructor.name;
  38737. return `${this.fullErrorCode} (${errorName})`;
  38738. }
  38739. set name(name) {
  38740. this._name = name;
  38741. }
  38742. /** Generates the error message along with additional documentation link (if applicable). */
  38743. static getFullMessage({
  38744. documentation,
  38745. code,
  38746. category,
  38747. message
  38748. }) {
  38749. let page;
  38750. return documentation === !0 ? page = `https://storybook.js.org/error/${parseErrorCode({ code, category })}?ref=error` : typeof documentation == "string" ? page = appendErrorRef(documentation) : Array.isArray(documentation) && (page = `
  38751. ${documentation.map((doc) => ` - ${appendErrorRef(doc)}`).join(`
  38752. `)}`), `${message}${page != null ? `
  38753. More info: ${page}
  38754. ` : ""}`;
  38755. }
  38756. };
  38757. // src/manager-errors.ts
  38758. var Category = /* @__PURE__ */ ((Category2) => (Category2.MANAGER_UNCAUGHT = "MANAGER_UNCAUGHT", Category2.MANAGER_UI = "MANAGER_UI", Category2.MANAGER_API = "MANAGER_API", Category2.MANAGER_CLIENT_LOGGER = "MANAGER_CLIENT-LOGGER", Category2.MANAGER_CHANNELS = "MANAGER_CHANNELS", Category2.MANAGER_CORE_EVENTS = "MANAGER_CORE-EVENTS", Category2.MANAGER_ROUTER = "MANAGER_ROUTER", Category2.MANAGER_THEMING = "MANAGER_THEMING", Category2))(Category || {}), ProviderDoesNotExtendBaseProviderError = class extends StorybookError {
  38759. constructor() {
  38760. super({
  38761. name: "ProviderDoesNotExtendBaseProviderError",
  38762. category: "MANAGER_UI" /* MANAGER_UI */,
  38763. code: 1,
  38764. message: "The Provider passed into Storybook's UI is not extended from the base Provider. Please check your Provider implementation."
  38765. });
  38766. }
  38767. }, UncaughtManagerError = class extends StorybookError {
  38768. constructor(data) {
  38769. super({
  38770. name: "UncaughtManagerError",
  38771. category: "MANAGER_UNCAUGHT" /* MANAGER_UNCAUGHT */,
  38772. code: 1,
  38773. message: data.error.message
  38774. });
  38775. this.data = data;
  38776. this.stack = data.error.stack;
  38777. }
  38778. }, StatusTypeIdMismatchError = class extends StorybookError {
  38779. constructor(data) {
  38780. super({
  38781. name: "StatusTypeIdMismatchError",
  38782. category: "MANAGER_API" /* MANAGER_API */,
  38783. code: 1,
  38784. message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
  38785. data.status,
  38786. null,
  38787. 2
  38788. )}`
  38789. });
  38790. this.data = data;
  38791. }
  38792. };
  38793. // src/preview-errors.ts
  38794. init_esm();
  38795. var StatusTypeIdMismatchError2 = class extends StorybookError {
  38796. constructor(data) {
  38797. super({
  38798. name: "StatusTypeIdMismatchError",
  38799. category: "PREVIEW_API" /* PREVIEW_API */,
  38800. code: 16,
  38801. message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
  38802. data.status,
  38803. null,
  38804. 2
  38805. )}`
  38806. });
  38807. this.data = data;
  38808. }
  38809. };
  38810. // src/server-errors.ts
  38811. var import_picocolors = __toESM(require_picocolors_browser(), 1);
  38812. init_esm();
  38813. var StatusTypeIdMismatchError3 = class extends StorybookError {
  38814. constructor(data) {
  38815. super({
  38816. name: "StatusTypeIdMismatchError",
  38817. category: "CORE-SERVER" /* CORE_SERVER */,
  38818. code: 16,
  38819. message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
  38820. data.status,
  38821. null,
  38822. 2
  38823. )}`
  38824. });
  38825. this.data = data;
  38826. }
  38827. };
  38828. // src/shared/status-store/index.ts
  38829. var STATUS_VALUE_PREFIX = "status-value:", STATUS_VALUES = [
  38830. "status-value:pending",
  38831. "status-value:success",
  38832. "status-value:new",
  38833. "status-value:modified",
  38834. "status-value:affected",
  38835. "status-value:warning",
  38836. "status-value:error",
  38837. "status-value:unknown"
  38838. ], toStatusValue = (shortName) => {
  38839. if (shortName === "related") return "status-value:affected";
  38840. let candidate = `${STATUS_VALUE_PREFIX}${shortName}`;
  38841. return STATUS_VALUES.includes(candidate) ? candidate : void 0;
  38842. }, statusValueShortName = (value) => value === "status-value:affected" ? "related" : value.slice(STATUS_VALUE_PREFIX.length);
  38843. var CHANGE_DETECTION_STATUS_TYPE_ID = "storybook/change-detection", UNIVERSAL_STATUS_STORE_OPTIONS = {
  38844. id: "storybook/status",
  38845. leader: !0,
  38846. initialState: {}
  38847. }, StatusStoreEventType = {
  38848. SELECT: "select"
  38849. };
  38850. function countStatusesByValue(allStatuses) {
  38851. let counts = {};
  38852. for (let statusByTypeId of Object.values(allStatuses))
  38853. for (let status of Object.values(statusByTypeId))
  38854. counts[status.value] = (counts[status.value] ?? 0) + 1;
  38855. return counts;
  38856. }
  38857. function createStatusStore({
  38858. universalStatusStore: universalStatusStore2,
  38859. useUniversalStore: useUniversalStore2,
  38860. environment
  38861. }) {
  38862. let fullStatusStore2 = {
  38863. getAll() {
  38864. return universalStatusStore2.getState();
  38865. },
  38866. set(statuses) {
  38867. universalStatusStore2.setState((state3) => {
  38868. let newState = { ...state3 };
  38869. for (let status of statuses) {
  38870. let { storyId, typeId } = status;
  38871. newState[storyId] = { ...newState[storyId] ?? {}, [typeId]: status };
  38872. }
  38873. return newState;
  38874. });
  38875. },
  38876. onAllStatusChange(listener) {
  38877. return universalStatusStore2.onStateChange((state3, prevState) => {
  38878. listener(state3, prevState);
  38879. });
  38880. },
  38881. onSelect(listener) {
  38882. return universalStatusStore2.subscribe(StatusStoreEventType.SELECT, (event) => {
  38883. listener(event.payload);
  38884. });
  38885. },
  38886. selectStatuses: (statuses) => {
  38887. universalStatusStore2.send({ type: StatusStoreEventType.SELECT, payload: statuses });
  38888. },
  38889. unset(storyIds) {
  38890. if (!storyIds) {
  38891. universalStatusStore2.setState({});
  38892. return;
  38893. }
  38894. universalStatusStore2.setState((state3) => {
  38895. let newState = { ...state3 };
  38896. for (let storyId of storyIds)
  38897. delete newState[storyId];
  38898. return newState;
  38899. });
  38900. },
  38901. typeId: void 0
  38902. }, getStatusStoreByTypeId2 = (typeId) => ({
  38903. getAll: fullStatusStore2.getAll,
  38904. set(statuses) {
  38905. universalStatusStore2.setState((state3) => {
  38906. let newState = { ...state3 };
  38907. for (let status of statuses) {
  38908. let { storyId } = status;
  38909. if (status.typeId !== typeId)
  38910. switch (environment) {
  38911. case "server":
  38912. throw new StatusTypeIdMismatchError3({
  38913. status,
  38914. typeId
  38915. });
  38916. case "manager":
  38917. throw new StatusTypeIdMismatchError({
  38918. status,
  38919. typeId
  38920. });
  38921. default:
  38922. throw new StatusTypeIdMismatchError2({
  38923. status,
  38924. typeId
  38925. });
  38926. }
  38927. newState[storyId] = { ...newState[storyId] ?? {}, [typeId]: status };
  38928. }
  38929. return newState;
  38930. });
  38931. },
  38932. onAllStatusChange: fullStatusStore2.onAllStatusChange,
  38933. onSelect(listener) {
  38934. return universalStatusStore2.subscribe(StatusStoreEventType.SELECT, (event) => {
  38935. event.payload.some((status) => status.typeId === typeId) && listener(event.payload);
  38936. });
  38937. },
  38938. unset(storyIds) {
  38939. universalStatusStore2.setState((state3) => {
  38940. let newState = { ...state3 };
  38941. for (let storyId in newState)
  38942. if (newState[storyId]?.[typeId] && (!storyIds || storyIds?.includes(storyId))) {
  38943. let { [typeId]: omittedStatus, ...storyStatusesWithoutTypeId } = newState[storyId];
  38944. newState[storyId] = storyStatusesWithoutTypeId;
  38945. }
  38946. return newState;
  38947. });
  38948. },
  38949. typeId
  38950. });
  38951. return useUniversalStore2 ? {
  38952. getStatusStoreByTypeId: getStatusStoreByTypeId2,
  38953. fullStatusStore: fullStatusStore2,
  38954. universalStatusStore: universalStatusStore2,
  38955. useStatusStore: (selector) => useUniversalStore2(universalStatusStore2, selector)[0]
  38956. } : { getStatusStoreByTypeId: getStatusStoreByTypeId2, fullStatusStore: fullStatusStore2, universalStatusStore: universalStatusStore2 };
  38957. }
  38958. // src/types/modules/webpack.ts
  38959. var CoreWebpackCompiler = /* @__PURE__ */ ((CoreWebpackCompiler2) => (CoreWebpackCompiler2.Babel = "babel", CoreWebpackCompiler2.SWC = "swc", CoreWebpackCompiler2))(CoreWebpackCompiler || {});
  38960. // src/types/modules/builders.ts
  38961. var SupportedBuilder = /* @__PURE__ */ ((SupportedBuilder2) => (SupportedBuilder2.WEBPACK5 = "webpack5", SupportedBuilder2.VITE = "vite", SupportedBuilder2.RSBUILD = "rsbuild", SupportedBuilder2))(SupportedBuilder || {});
  38962. // src/types/modules/features.ts
  38963. var Feature = /* @__PURE__ */ ((Feature2) => (Feature2.DOCS = "docs", Feature2.TEST = "test", Feature2.ONBOARDING = "onboarding", Feature2.A11Y = "a11y", Feature2.AI = "ai", Feature2))(Feature || {});
  38964. // src/types/modules/languages.ts
  38965. var SupportedLanguage = /* @__PURE__ */ ((SupportedLanguage2) => (SupportedLanguage2.JAVASCRIPT = "javascript", SupportedLanguage2.TYPESCRIPT = "typescript", SupportedLanguage2))(SupportedLanguage || {});
  38966. // src/manager-api/lib/addons.ts
  38967. init_dist();
  38968. // src/manager-api/lib/storybook-channel-mock.ts
  38969. function mockChannel() {
  38970. let transport = {
  38971. setHandler: () => {
  38972. },
  38973. send: () => {
  38974. }
  38975. };
  38976. return new Channel({ transport });
  38977. }
  38978. // src/manager-api/lib/addons.ts
  38979. var AddonStore = class {
  38980. constructor() {
  38981. this.loaders = {};
  38982. this.elements = {};
  38983. this.config = {};
  38984. this.getChannel = () => (this.channel || this.setChannel(mockChannel()), this.channel);
  38985. this.ready = () => this.promise;
  38986. this.hasChannel = () => !!this.channel;
  38987. this.setChannel = (channel) => {
  38988. this.channel = channel, this.resolve();
  38989. };
  38990. this.setConfig = (value) => {
  38991. Object.assign(this.config, value), this.hasChannel() ? this.getChannel().emit(SET_CONFIG, this.config) : this.ready().then((channel) => {
  38992. channel.emit(SET_CONFIG, this.config);
  38993. });
  38994. };
  38995. this.getConfig = () => this.config;
  38996. /**
  38997. * Registers an addon loader function.
  38998. *
  38999. * @param {string} id - The id of the addon loader.
  39000. * @param {(api: API) => void} callback - The function that will be called to register the addon.
  39001. * @returns {void}
  39002. */
  39003. this.register = (id, callback) => {
  39004. this.loaders[id] && logger.warn(`${id} was loaded twice, this could have bad side-effects`), this.loaders[id] = callback;
  39005. };
  39006. this.loadAddons = (api) => {
  39007. Object.values(this.loaders).forEach((value) => value(api));
  39008. };
  39009. this.promise = new Promise((res) => {
  39010. this.resolve = () => res(this.getChannel());
  39011. });
  39012. }
  39013. getElements(type5) {
  39014. return this.elements[type5] || (this.elements[type5] = {}), this.elements[type5];
  39015. }
  39016. /**
  39017. * Adds an addon to the addon store.
  39018. *
  39019. * @param {string} id - The id of the addon.
  39020. * @param {Addon_Type} addon - The addon to add.
  39021. * @returns {void}
  39022. */
  39023. add(id, addon) {
  39024. let { type: type5 } = addon, collection = this.getElements(type5);
  39025. collection[id] = { ...addon, id };
  39026. }
  39027. experimental_getRegisteredAddons(type5) {
  39028. return Object.keys(type5 ? this.getElements(type5) : this.loaders);
  39029. }
  39030. }, KEY2 = "__STORYBOOK_ADDONS_MANAGER";
  39031. function getAddonsStore() {
  39032. return scope[KEY2] || (scope[KEY2] = new AddonStore()), scope[KEY2];
  39033. }
  39034. var addons = getAddonsStore();
  39035. // src/manager-api/modules/addons.ts
  39036. var addons_exports = {};
  39037. __export(addons_exports, {
  39038. ensurePanel: () => ensurePanel,
  39039. init: () => init
  39040. });
  39041. init_client_logger();
  39042. function ensurePanel(panels, selectedPanel, currentPanel) {
  39043. let keys3 = Object.keys(panels ?? {});
  39044. return keys3.indexOf(selectedPanel) >= 0 ? selectedPanel : keys3.length ? keys3[0] : currentPanel;
  39045. }
  39046. var init = ({ provider, store: store2, fullAPI }) => {
  39047. let api = {
  39048. getElements: (type5) => provider.getElements(type5),
  39049. clearStatuses: () => {
  39050. let testProviders = api.getElements("test-provider" /* experimental_TEST_PROVIDER */);
  39051. Object.values(testProviders).forEach((testProvider) => {
  39052. try {
  39053. testProvider.clear?.();
  39054. } catch (e) {
  39055. try {
  39056. logger.warn(`Failed to clear test provider "${testProvider.id}":`, e);
  39057. } catch {
  39058. }
  39059. }
  39060. });
  39061. },
  39062. getSelectedPanel: () => {
  39063. let { selectedPanel } = store2.getState();
  39064. return ensurePanel(api.getElements("panel" /* PANEL */), selectedPanel, selectedPanel);
  39065. },
  39066. setSelectedPanel: (panelName) => {
  39067. store2.setState({ selectedPanel: panelName }, { persistence: "session" });
  39068. },
  39069. setAddonState(addonId, newStateOrMerger, options) {
  39070. let merger = typeof newStateOrMerger == "function" ? newStateOrMerger : () => newStateOrMerger;
  39071. return store2.setState(
  39072. (s3) => ({ ...s3, addons: { ...s3.addons, [addonId]: merger(s3.addons[addonId]) } }),
  39073. options
  39074. ).then(() => api.getAddonState(addonId));
  39075. },
  39076. getAddonState: (addonId) => store2.getState().addons[addonId] || globalThis?.STORYBOOK_ADDON_STATE[addonId]
  39077. };
  39078. return {
  39079. api,
  39080. state: {
  39081. selectedPanel: ensurePanel(
  39082. api.getElements("panel" /* PANEL */),
  39083. store2.getState().selectedPanel
  39084. ),
  39085. addons: {}
  39086. }
  39087. };
  39088. };
  39089. // src/manager-api/modules/channel.ts
  39090. var channel_exports = {};
  39091. __export(channel_exports, {
  39092. init: () => init2
  39093. });
  39094. var init2 = ({ provider }) => ({ api: {
  39095. getChannel: () => provider.channel,
  39096. on: (type5, handler) => (provider.channel?.on(type5, handler), () => provider.channel?.off(type5, handler)),
  39097. off: (type5, handler) => provider.channel?.off(type5, handler),
  39098. once: (type5, handler) => provider.channel?.once(type5, handler),
  39099. emit: (type5, data, ...args) => {
  39100. data?.options?.target && data.options.target !== "storybook-preview-iframe" && !data.options.target.startsWith("storybook-ref-") && (data.options.target = data.options.target !== "storybook_internal" ? `storybook-ref-${data.options.target}` : "storybook-preview-iframe"), provider.channel?.emit(type5, data, ...args);
  39101. }
  39102. }, state: {} });
  39103. // src/manager-api/modules/globals.ts
  39104. var globals_exports = {};
  39105. __export(globals_exports, {
  39106. init: () => init5
  39107. });
  39108. init_client_logger();
  39109. // ../../node_modules/dequal/dist/index.mjs
  39110. var has = Object.prototype.hasOwnProperty;
  39111. function find(iter, tar, key) {
  39112. for (key of iter.keys())
  39113. if (dequal(key, tar)) return key;
  39114. }
  39115. function dequal(foo, bar) {
  39116. var ctor, len, tmp;
  39117. if (foo === bar) return !0;
  39118. if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
  39119. if (ctor === Date) return foo.getTime() === bar.getTime();
  39120. if (ctor === RegExp) return foo.toString() === bar.toString();
  39121. if (ctor === Array) {
  39122. if ((len = foo.length) === bar.length)
  39123. for (; len-- && dequal(foo[len], bar[len]); ) ;
  39124. return len === -1;
  39125. }
  39126. if (ctor === Set) {
  39127. if (foo.size !== bar.size)
  39128. return !1;
  39129. for (len of foo)
  39130. if (tmp = len, tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !bar.has(tmp)) return !1;
  39131. return !0;
  39132. }
  39133. if (ctor === Map) {
  39134. if (foo.size !== bar.size)
  39135. return !1;
  39136. for (len of foo)
  39137. if (tmp = len[0], tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !dequal(len[1], bar.get(tmp)))
  39138. return !1;
  39139. return !0;
  39140. }
  39141. if (ctor === ArrayBuffer)
  39142. foo = new Uint8Array(foo), bar = new Uint8Array(bar);
  39143. else if (ctor === DataView) {
  39144. if ((len = foo.byteLength) === bar.byteLength)
  39145. for (; len-- && foo.getInt8(len) === bar.getInt8(len); ) ;
  39146. return len === -1;
  39147. }
  39148. if (ArrayBuffer.isView(foo)) {
  39149. if ((len = foo.byteLength) === bar.byteLength)
  39150. for (; len-- && foo[len] === bar[len]; ) ;
  39151. return len === -1;
  39152. }
  39153. if (!ctor || typeof foo == "object") {
  39154. len = 0;
  39155. for (ctor in foo)
  39156. if (has.call(foo, ctor) && ++len && !has.call(bar, ctor) || !(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return !1;
  39157. return Object.keys(bar).length === len;
  39158. }
  39159. }
  39160. return foo !== foo && bar !== bar;
  39161. }
  39162. // src/manager-api/lib/events.ts
  39163. init_client_logger();
  39164. // src/manager-api/modules/refs.ts
  39165. var refs_exports = {};
  39166. __export(refs_exports, {
  39167. defaultStoryMapper: () => defaultStoryMapper,
  39168. getSourceType: () => getSourceType,
  39169. init: () => init4
  39170. });
  39171. init_dist();
  39172. init_esm();
  39173. // src/csf/includeConditionalArg.ts
  39174. var import_tiny_isequal = __toESM(require_tiny_isequal(), 1);
  39175. // src/preview-api/modules/addons/main.ts
  39176. init_dist();
  39177. // src/preview-api/modules/addons/storybook-channel-mock.ts
  39178. function mockChannel2() {
  39179. let transport = {
  39180. setHandler: () => {
  39181. },
  39182. send: () => {
  39183. }
  39184. };
  39185. return new Channel({ transport });
  39186. }
  39187. // src/preview-api/modules/addons/main.ts
  39188. var AddonStore2 = class {
  39189. constructor() {
  39190. this.getChannel = () => {
  39191. if (!this.channel) {
  39192. let channel = mockChannel2();
  39193. return this.setChannel(channel), channel;
  39194. }
  39195. return this.channel;
  39196. };
  39197. this.ready = () => this.promise;
  39198. this.hasChannel = () => !!this.channel;
  39199. this.setChannel = (channel) => {
  39200. this.channel = channel, this.resolve();
  39201. };
  39202. this.promise = new Promise((res) => {
  39203. this.resolve = () => res(this.getChannel());
  39204. });
  39205. }
  39206. }, KEY3 = "__STORYBOOK_ADDONS_PREVIEW";
  39207. function getAddonsStore2() {
  39208. return scope[KEY3] || (scope[KEY3] = new AddonStore2()), scope[KEY3];
  39209. }
  39210. var addons2 = getAddonsStore2();
  39211. // src/preview-api/modules/addons/hooks.ts
  39212. init_client_logger();
  39213. init_dist();
  39214. var areDepsEqual = (deps, nextDeps) => deps.length === nextDeps.length && deps.every((dep, i) => dep === nextDeps[i]), invalidHooksError = () => new Error(
  39215. `Storybook preview hooks can only be called inside decorators and story functions.
  39216. When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`
  39217. );
  39218. function getHooksContextOrNull() {
  39219. return scope.STORYBOOK_HOOKS_CONTEXT || null;
  39220. }
  39221. function getHooksContextOrThrow() {
  39222. let hooks = getHooksContextOrNull();
  39223. if (hooks == null)
  39224. throw invalidHooksError();
  39225. return hooks;
  39226. }
  39227. function useHook(name, callback, deps) {
  39228. let hooks = getHooksContextOrThrow();
  39229. if (hooks.currentPhase === "MOUNT") {
  39230. deps != null && !Array.isArray(deps) && logger.warn(
  39231. `${name} received a final argument that is not an array (instead, received ${deps}). When specified, the final argument must be an array.`
  39232. );
  39233. let hook = { name, deps };
  39234. return hooks.currentHooks.push(hook), callback(hook), hook;
  39235. }
  39236. if (hooks.currentPhase === "UPDATE") {
  39237. let hook = hooks.getNextHook();
  39238. if (hook == null)
  39239. throw new Error("Rendered more hooks than during the previous render.");
  39240. return hook.name !== name && logger.warn(
  39241. `Storybook has detected a change in the order of Hooks${hooks.currentDecoratorName ? ` called by ${hooks.currentDecoratorName}` : ""}. This will lead to bugs and errors if not fixed.`
  39242. ), deps != null && hook.deps == null && logger.warn(
  39243. `${name} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`
  39244. ), deps != null && hook.deps != null && deps.length !== hook.deps.length && logger.warn(`The final argument passed to ${name} changed size between renders. The order and size of this array must remain constant.
  39245. Previous: ${hook.deps}
  39246. Incoming: ${deps}`), (deps == null || hook.deps == null || !areDepsEqual(deps, hook.deps)) && (callback(hook), hook.deps = deps), hook;
  39247. }
  39248. throw invalidHooksError();
  39249. }
  39250. function useMemoLike(name, nextCreate, deps) {
  39251. let { memoizedState } = useHook(
  39252. name,
  39253. (hook) => {
  39254. hook.memoizedState = nextCreate();
  39255. },
  39256. deps
  39257. );
  39258. return memoizedState;
  39259. }
  39260. function useMemo4(nextCreate, deps) {
  39261. return useMemoLike("useMemo", nextCreate, deps);
  39262. }
  39263. function useEffect6(create4, deps) {
  39264. let hooks = getHooksContextOrThrow(), effect4 = useMemoLike("useEffect", () => ({ create: create4 }), deps);
  39265. hooks.currentEffects.includes(effect4) || hooks.currentEffects.push(effect4);
  39266. }
  39267. // src/preview-api/modules/store/StoryStore.ts
  39268. var import_memoizerific5 = __toESM(require_memoizerific(), 1);
  39269. // src/preview-api/modules/store/args.ts
  39270. init_client_logger();
  39271. init_esm();
  39272. // src/preview-api/modules/store/GlobalsStore.ts
  39273. init_client_logger();
  39274. // src/preview-api/modules/store/StoryIndexStore.ts
  39275. var import_memoizerific4 = __toESM(require_memoizerific(), 1), getImportPathMap = (0, import_memoizerific4.default)(1)(
  39276. (entries) => Object.values(entries).reduce(
  39277. (acc, entry) => (acc[entry.importPath] = acc[entry.importPath] || entry, acc),
  39278. {}
  39279. )
  39280. );
  39281. // src/preview-api/modules/store/csf/normalizeStory.ts
  39282. init_client_logger();
  39283. init_esm();
  39284. var deprecatedStoryAnnotation = dedent`
  39285. CSF .story annotations deprecated; annotate story functions directly:
  39286. - StoryFn.story.name => StoryFn.storyName
  39287. - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
  39288. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
  39289. `;
  39290. // src/preview-api/modules/store/csf/processCSFFile.ts
  39291. init_client_logger();
  39292. // src/preview-api/modules/store/csf/prepareStory.ts
  39293. init_dist();
  39294. init_dist();
  39295. // src/shared/constants/tags.ts
  39296. var Tag = {
  39297. /** Indicates that autodocs should be generated for this component */
  39298. AUTODOCS: "autodocs",
  39299. /** MDX documentation attached to a component's stories file */
  39300. ATTACHED_MDX: "attached-mdx",
  39301. /** Standalone MDX documentation not attached to stories */
  39302. UNATTACHED_MDX: "unattached-mdx",
  39303. /** Story has a play function */
  39304. PLAY_FN: "play-fn",
  39305. /** Story has a test function */
  39306. TEST_FN: "test-fn",
  39307. /** Development environment tag */
  39308. DEV: "dev",
  39309. /** Test environment tag */
  39310. TEST: "test",
  39311. /** Manifest generation tag */
  39312. MANIFEST: "manifest"
  39313. }, BUILT_IN_FILTERS = {
  39314. _docs: (entry, excluded) => excluded ? entry.type !== "docs" : entry.type === "docs",
  39315. _play: (entry, excluded) => excluded ? entry.type !== "story" || !entry.tags?.includes(Tag.PLAY_FN) : entry.type === "story" && !!entry.tags?.includes(Tag.PLAY_FN),
  39316. _test: (entry, excluded) => excluded ? entry.type !== "story" || entry.subtype !== "test" : entry.type === "story" && entry.subtype === "test"
  39317. }, USER_TAG_FILTER = (tag) => (entry, excluded) => excluded ? !entry.tags?.includes(tag) : !!entry.tags?.includes(tag);
  39318. // src/preview-api/modules/store/parameters.ts
  39319. var combineParameters = (...parameterSets) => {
  39320. let mergeKeys = {}, definedParametersSets = parameterSets.filter(Boolean), combined = definedParametersSets.reduce((acc, parameters2) => (Object.entries(parameters2).forEach(([key, value]) => {
  39321. let existing = acc[key];
  39322. Array.isArray(value) || typeof existing > "u" ? acc[key] = value : isPlainObject(value) && isPlainObject(existing) ? mergeKeys[key] = !0 : typeof value < "u" && (acc[key] = value);
  39323. }), acc), {});
  39324. return Object.keys(mergeKeys).forEach((key) => {
  39325. let mergeValues = definedParametersSets.filter(Boolean).map((p3) => p3[key]).filter((value) => typeof value < "u");
  39326. mergeValues.every((value) => isPlainObject(value)) ? combined[key] = combineParameters(...mergeValues) : combined[key] = mergeValues[mergeValues.length - 1];
  39327. }), combined;
  39328. };
  39329. // src/preview-api/modules/store/inferArgTypes.ts
  39330. init_client_logger();
  39331. init_esm();
  39332. var inferType = (value, name, visited, cache) => {
  39333. let type5 = typeof value;
  39334. switch (type5) {
  39335. case "boolean":
  39336. case "string":
  39337. case "number":
  39338. case "function":
  39339. case "symbol":
  39340. return { name: type5 };
  39341. default:
  39342. break;
  39343. }
  39344. if (value) {
  39345. if (cache.has(value))
  39346. return cache.get(value);
  39347. if (visited.has(value))
  39348. return logger.warn(dedent`
  39349. We've detected a cycle in arg '${name}'. Args should be JSON-serializable.
  39350. Consider using the mapping feature or fully custom args:
  39351. - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
  39352. - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
  39353. `), { name: "other", value: "cyclic object" };
  39354. visited.add(value);
  39355. let result;
  39356. return Array.isArray(value) ? result = { name: "array", value: value.length > 0 ? inferType(value[0], name, visited, cache) : { name: "other", value: "unknown" } } : result = { name: "object", value: mapValues(value, (field) => inferType(field, name, visited, cache)) }, visited.delete(value), cache.set(value, result), result;
  39357. }
  39358. return { name: "object", value: {} };
  39359. }, inferArgTypes = (context) => {
  39360. let { id, argTypes: userArgTypes = {}, initialArgs = {} } = context, cache = /* @__PURE__ */ new Map(), argTypes = mapValues(initialArgs, (arg, key) => ({
  39361. name: key,
  39362. type: inferType(arg, `${id}.${key}`, /* @__PURE__ */ new Set(), cache)
  39363. })), userArgTypesNames = mapValues(userArgTypes, (argType, key) => ({
  39364. name: key
  39365. }));
  39366. return combineParameters(argTypes, userArgTypesNames, userArgTypes);
  39367. };
  39368. inferArgTypes.secondPass = !0;
  39369. // src/preview-api/modules/store/inferControls.ts
  39370. init_client_logger();
  39371. // src/preview-api/modules/store/filterArgTypes.ts
  39372. var matches = (name, descriptor) => Array.isArray(descriptor) ? descriptor.includes(name) : name.match(descriptor), filterArgTypes = (argTypes, include2, exclude) => !include2 && !exclude ? argTypes : argTypes && pickBy(argTypes, (argType, key) => {
  39373. let name = argType.name || key.toString();
  39374. return !!(!include2 || matches(name, include2)) && (!exclude || !matches(name, exclude));
  39375. });
  39376. // src/preview-api/modules/store/inferControls.ts
  39377. var inferControl = (argType, name, matchers) => {
  39378. let { type: type5, options } = argType;
  39379. if (type5) {
  39380. if (matchers.color && matchers.color.test(name)) {
  39381. let controlType = type5.name;
  39382. if (controlType === "string")
  39383. return { control: { type: "color" } };
  39384. controlType !== "enum" && logger.warn(
  39385. `Addon controls: Control of type color only supports string, received "${controlType}" instead`
  39386. );
  39387. }
  39388. if (matchers.date && matchers.date.test(name))
  39389. return { control: { type: "date" } };
  39390. switch (type5.name) {
  39391. case "array":
  39392. return { control: { type: "object" } };
  39393. case "boolean":
  39394. return { control: { type: "boolean" } };
  39395. case "string":
  39396. return { control: { type: "text" } };
  39397. case "number":
  39398. return { control: { type: "number" } };
  39399. case "enum": {
  39400. let { value } = type5;
  39401. return { control: { type: value?.length <= 5 ? "radio" : "select" }, options: value };
  39402. }
  39403. case "function":
  39404. case "symbol":
  39405. return null;
  39406. default:
  39407. return { control: { type: options ? "select" : "object" } };
  39408. }
  39409. }
  39410. }, inferControls = (context) => {
  39411. let {
  39412. argTypes,
  39413. parameters: { __isArgsStory, controls: { include: include2 = null, exclude = null, matchers = {} } = {} }
  39414. } = context;
  39415. if (!__isArgsStory)
  39416. return argTypes;
  39417. let filteredArgTypes = filterArgTypes(argTypes, include2, exclude), withControls = mapValues(filteredArgTypes, (argType, name) => argType?.type && inferControl(argType, name.toString(), matchers));
  39418. return combineParameters(withControls, filteredArgTypes);
  39419. };
  39420. inferControls.secondPass = !0;
  39421. // src/preview-api/modules/store/csf/composeConfigs.ts
  39422. init_dist();
  39423. // src/preview-api/modules/store/csf/portable-stories.ts
  39424. init_esm();
  39425. // src/preview-api/modules/preview-web/render/animation-utils.ts
  39426. function isTestEnvironment() {
  39427. try {
  39428. return (
  39429. // @ts-expect-error This property exists in Vitest browser mode
  39430. !!globalThis.__vitest_browser__ || !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)
  39431. );
  39432. } catch {
  39433. return !1;
  39434. }
  39435. }
  39436. // src/preview-api/modules/store/autoTitle.ts
  39437. init_client_logger();
  39438. init_esm();
  39439. // src/preview-api/modules/store/sortStories.ts
  39440. init_esm();
  39441. // src/preview-api/modules/preview-web/Preview.tsx
  39442. init_client_logger();
  39443. init_dist();
  39444. // src/preview-api/modules/preview-web/render/Render.ts
  39445. var PREPARE_ABORTED = new Error("prepareAborted");
  39446. // src/preview-api/modules/preview-web/render/StoryRender.ts
  39447. var { AbortController: AbortController2 } = globalThis;
  39448. // src/preview-api/modules/preview-web/Preview.tsx
  39449. var { fetch } = scope;
  39450. // src/preview-api/modules/preview-web/PreviewWeb.tsx
  39451. init_dist();
  39452. // src/preview-api/modules/preview-web/PreviewWithSelection.tsx
  39453. init_client_logger();
  39454. // src/shared/utils/story-index-filters.ts
  39455. var getActiveFilterCount = ({
  39456. includedTagFilters,
  39457. excludedTagFilters,
  39458. includedStatusFilters,
  39459. excludedStatusFilters
  39460. }) => (includedTagFilters?.length ?? 0) + (excludedTagFilters?.length ?? 0) + (includedStatusFilters?.length ?? 0) + (excludedStatusFilters?.length ?? 0), hasActiveFilters = (filters) => getActiveFilterCount(filters) > 0;
  39461. // src/preview-api/modules/preview-web/docs-context/DocsContext.ts
  39462. init_esm();
  39463. // src/preview-api/modules/preview-web/UrlStore.ts
  39464. init_dist();
  39465. var import_picoquery2 = __toESM(require_main(), 1);
  39466. // src/preview-api/modules/preview-web/parseArgsParam.ts
  39467. init_client_logger();
  39468. var import_picoquery = __toESM(require_main(), 1);
  39469. init_esm();
  39470. // src/preview-api/modules/preview-web/UrlStore.ts
  39471. var { history, document: document4 } = scope;
  39472. // src/preview-api/modules/preview-web/WebView.ts
  39473. init_client_logger();
  39474. init_dist();
  39475. var import_ansi_to_html = __toESM(require_ansi_to_html(), 1), import_picoquery3 = __toESM(require_main(), 1);
  39476. init_esm();
  39477. var { document: document5 } = scope;
  39478. var ansiConverter = new import_ansi_to_html.default({
  39479. escapeXML: !0
  39480. });
  39481. // src/preview-api/modules/preview-web/simulate-pageload.ts
  39482. init_dist();
  39483. var { document: document6 } = scope;
  39484. // ../../node_modules/comment-parser/es6/primitives.js
  39485. var Markers;
  39486. (function(Markers2) {
  39487. Markers2.start = "/**", Markers2.nostart = "/***", Markers2.delim = "*", Markers2.end = "*/";
  39488. })(Markers = Markers || (Markers = {}));
  39489. // ../../node_modules/comment-parser/es6/stringifier/index.js
  39490. function join(tokens2) {
  39491. return tokens2.start + tokens2.delimiter + tokens2.postDelimiter + tokens2.tag + tokens2.postTag + tokens2.type + tokens2.postType + tokens2.name + tokens2.postName + tokens2.description + tokens2.end + tokens2.lineEnd;
  39492. }
  39493. function getStringifier() {
  39494. return (block) => block.source.map(({ tokens: tokens2 }) => join(tokens2)).join(`
  39495. `);
  39496. }
  39497. // ../../node_modules/comment-parser/es6/stringifier/inspect.js
  39498. var zeroWidth = {
  39499. line: 0,
  39500. start: 0,
  39501. delimiter: 0,
  39502. postDelimiter: 0,
  39503. tag: 0,
  39504. postTag: 0,
  39505. name: 0,
  39506. postName: 0,
  39507. type: 0,
  39508. postType: 0,
  39509. description: 0,
  39510. end: 0,
  39511. lineEnd: 0
  39512. };
  39513. var fields = Object.keys(zeroWidth);
  39514. // ../../node_modules/comment-parser/es6/index.js
  39515. var stringify4 = getStringifier();
  39516. // src/docs-tools/argTypes/jsdocParser.ts
  39517. var import_jsdoc_type_pratt_parser = __toESM(require_dist(), 1);
  39518. var jsdocStringifyRules = (0, import_jsdoc_type_pratt_parser.stringifyRules)(), originalJsdocStringifyObject = jsdocStringifyRules.JsdocTypeObject;
  39519. jsdocStringifyRules.JsdocTypeAny = () => "any";
  39520. jsdocStringifyRules.JsdocTypeObject = (result, transform) => `(${originalJsdocStringifyObject(result, transform)})`;
  39521. jsdocStringifyRules.JsdocTypeOptional = (result, transform) => transform(result.element);
  39522. jsdocStringifyRules.JsdocTypeNullable = (result, transform) => transform(result.element);
  39523. jsdocStringifyRules.JsdocTypeNotNullable = (result, transform) => transform(result.element);
  39524. jsdocStringifyRules.JsdocTypeUnion = (result, transform) => result.elements.map(transform).join("|");
  39525. // src/docs-tools/shared.ts
  39526. var ADDON_ID = "storybook/docs", PANEL_ID = `${ADDON_ID}/panel`;
  39527. var SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`;
  39528. // src/actions/runtime/action.ts
  39529. init_dist();
  39530. // src/actions/constants.ts
  39531. var ADDON_ID2 = "storybook/actions", PANEL_ID2 = `${ADDON_ID2}/panel`, EVENT_ID = `${ADDON_ID2}/action-event`, CLEAR_ID = `${ADDON_ID2}/action-clear`;
  39532. // src/test/index.ts
  39533. var test_exports = {};
  39534. __export(test_exports, {
  39535. buildQueries: () => buildQueries2,
  39536. clearAllMocks: () => clearAllMocks,
  39537. configure: () => configure2,
  39538. createEvent: () => createEvent3,
  39539. expect: () => expect3,
  39540. findAllByAltText: () => findAllByAltText2,
  39541. findAllByDisplayValue: () => findAllByDisplayValue2,
  39542. findAllByLabelText: () => findAllByLabelText2,
  39543. findAllByPlaceholderText: () => findAllByPlaceholderText2,
  39544. findAllByRole: () => findAllByRole2,
  39545. findAllByTestId: () => findAllByTestId2,
  39546. findAllByText: () => findAllByText2,
  39547. findAllByTitle: () => findAllByTitle2,
  39548. findByAltText: () => findByAltText2,
  39549. findByDisplayValue: () => findByDisplayValue2,
  39550. findByLabelText: () => findByLabelText2,
  39551. findByPlaceholderText: () => findByPlaceholderText2,
  39552. findByRole: () => findByRole2,
  39553. findByTestId: () => findByTestId2,
  39554. findByText: () => findByText2,
  39555. findByTitle: () => findByTitle2,
  39556. fireEvent: () => fireEvent2,
  39557. fn: () => fn2,
  39558. getAllByAltText: () => getAllByAltText2,
  39559. getAllByDisplayValue: () => getAllByDisplayValue2,
  39560. getAllByLabelText: () => getAllByLabelText2,
  39561. getAllByPlaceholderText: () => getAllByPlaceholderText2,
  39562. getAllByRole: () => getAllByRole2,
  39563. getAllByTestId: () => getAllByTestId2,
  39564. getAllByText: () => getAllByText2,
  39565. getAllByTitle: () => getAllByTitle2,
  39566. getByAltText: () => getByAltText2,
  39567. getByDisplayValue: () => getByDisplayValue2,
  39568. getByLabelText: () => getByLabelText2,
  39569. getByPlaceholderText: () => getByPlaceholderText2,
  39570. getByRole: () => getByRole2,
  39571. getByTestId: () => getByTestId2,
  39572. getByText: () => getByText2,
  39573. getByTitle: () => getByTitle2,
  39574. getConfig: () => getConfig3,
  39575. getDefaultNormalizer: () => getDefaultNormalizer2,
  39576. getElementError: () => getElementError2,
  39577. getNodeText: () => getNodeText2,
  39578. getQueriesForElement: () => getQueriesForElement2,
  39579. getRoles: () => getRoles2,
  39580. getSuggestedQuery: () => getSuggestedQuery2,
  39581. isInaccessible: () => isInaccessible2,
  39582. isMockFunction: () => isMockFunction2,
  39583. logDOM: () => logDOM2,
  39584. logRoles: () => logRoles2,
  39585. mocked: () => mocked,
  39586. mocks: () => mocks,
  39587. onMockCall: () => onMockCall,
  39588. prettyDOM: () => prettyDOM2,
  39589. prettyFormat: () => prettyFormat2,
  39590. queries: () => queries2,
  39591. queryAllByAltText: () => queryAllByAltText2,
  39592. queryAllByAttribute: () => queryAllByAttribute2,
  39593. queryAllByDisplayValue: () => queryAllByDisplayValue2,
  39594. queryAllByLabelText: () => queryAllByLabelText2,
  39595. queryAllByPlaceholderText: () => queryAllByPlaceholderText2,
  39596. queryAllByRole: () => queryAllByRole2,
  39597. queryAllByTestId: () => queryAllByTestId2,
  39598. queryAllByText: () => queryAllByText2,
  39599. queryAllByTitle: () => queryAllByTitle2,
  39600. queryByAltText: () => queryByAltText2,
  39601. queryByAttribute: () => queryByAttribute2,
  39602. queryByDisplayValue: () => queryByDisplayValue2,
  39603. queryByLabelText: () => queryByLabelText2,
  39604. queryByPlaceholderText: () => queryByPlaceholderText2,
  39605. queryByRole: () => queryByRole2,
  39606. queryByTestId: () => queryByTestId2,
  39607. queryByText: () => queryByText2,
  39608. queryByTitle: () => queryByTitle2,
  39609. queryHelpers: () => queryHelpers2,
  39610. resetAllMocks: () => resetAllMocks,
  39611. restoreAllMocks: () => restoreAllMocks,
  39612. sb: () => sb,
  39613. screen: () => screen2,
  39614. spyOn: () => spyOn2,
  39615. uninstrumentedUserEvent: () => uninstrumentedUserEvent,
  39616. userEvent: () => userEvent2,
  39617. waitFor: () => waitFor2,
  39618. waitForElementToBeRemoved: () => waitForElementToBeRemoved2,
  39619. within: () => within
  39620. });
  39621. // src/instrumenter/instrumenter.ts
  39622. init_client_logger();
  39623. init_dist();
  39624. // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
  39625. var f = {
  39626. reset: [0, 0],
  39627. bold: [1, 22, "\x1B[22m\x1B[1m"],
  39628. dim: [2, 22, "\x1B[22m\x1B[2m"],
  39629. italic: [3, 23],
  39630. underline: [4, 24],
  39631. inverse: [7, 27],
  39632. hidden: [8, 28],
  39633. strikethrough: [9, 29],
  39634. black: [30, 39],
  39635. red: [31, 39],
  39636. green: [32, 39],
  39637. yellow: [33, 39],
  39638. blue: [34, 39],
  39639. magenta: [35, 39],
  39640. cyan: [36, 39],
  39641. white: [37, 39],
  39642. gray: [90, 39],
  39643. bgBlack: [40, 49],
  39644. bgRed: [41, 49],
  39645. bgGreen: [42, 49],
  39646. bgYellow: [43, 49],
  39647. bgBlue: [44, 49],
  39648. bgMagenta: [45, 49],
  39649. bgCyan: [46, 49],
  39650. bgWhite: [47, 49],
  39651. blackBright: [90, 39],
  39652. redBright: [91, 39],
  39653. greenBright: [92, 39],
  39654. yellowBright: [93, 39],
  39655. blueBright: [94, 39],
  39656. magentaBright: [95, 39],
  39657. cyanBright: [96, 39],
  39658. whiteBright: [97, 39],
  39659. bgBlackBright: [100, 49],
  39660. bgRedBright: [101, 49],
  39661. bgGreenBright: [102, 49],
  39662. bgYellowBright: [103, 49],
  39663. bgBlueBright: [104, 49],
  39664. bgMagentaBright: [105, 49],
  39665. bgCyanBright: [106, 49],
  39666. bgWhiteBright: [107, 49]
  39667. }, h = Object.entries(f);
  39668. function a(n) {
  39669. return String(n);
  39670. }
  39671. a.open = "";
  39672. a.close = "";
  39673. var B = h.reduce(
  39674. (n, [e]) => (n[e] = a, n),
  39675. { isColorSupported: !1 }
  39676. );
  39677. function C(n = !1) {
  39678. let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || [];
  39679. return !("NO_COLOR" in i || g2.includes("--no-color")) && ("FORCE_COLOR" in i || g2.includes("--color") || e?.platform === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window < "u" && !!window.chrome;
  39680. }
  39681. function p(n = !1) {
  39682. let e = C(n), i = (r2, t, c, o) => {
  39683. let l = "", s3 = 0;
  39684. do
  39685. l += r2.substring(s3, o) + c, s3 = o + t.length, o = r2.indexOf(t, s3);
  39686. while (~o);
  39687. return l + r2.substring(s3);
  39688. }, g2 = (r2, t, c = r2) => {
  39689. let o = (l) => {
  39690. let s3 = String(l), b = s3.indexOf(t, r2.length);
  39691. return ~b ? r2 + i(s3, t, c, b) + t : r2 + s3 + t;
  39692. };
  39693. return o.open = r2, o.close = t, o;
  39694. }, u2 = {
  39695. isColorSupported: e
  39696. }, d = (r2) => `\x1B[${r2}m`;
  39697. for (let [r2, t] of h)
  39698. u2[r2] = e ? g2(
  39699. d(t[0]),
  39700. d(t[1]),
  39701. t[2]
  39702. ) : a;
  39703. return u2;
  39704. }
  39705. // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/browser.js
  39706. var s = p();
  39707. // ../../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
  39708. function _mergeNamespaces(n, m3) {
  39709. return m3.forEach(function(e) {
  39710. e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
  39711. if (k !== "default" && !(k in n)) {
  39712. var d = Object.getOwnPropertyDescriptor(e, k);
  39713. Object.defineProperty(n, k, d.get ? d : {
  39714. enumerable: !0,
  39715. get: function() {
  39716. return e[k];
  39717. }
  39718. });
  39719. }
  39720. });
  39721. }), Object.freeze(n);
  39722. }
  39723. function getKeysOfEnumerableProperties(object, compareKeys) {
  39724. let rawKeys = Object.keys(object), keys3 = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
  39725. if (Object.getOwnPropertySymbols)
  39726. for (let symbol of Object.getOwnPropertySymbols(object))
  39727. Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys3.push(symbol);
  39728. return keys3;
  39729. }
  39730. function printIteratorEntries(iterator, config4, indentation, depth, refs, printer2, separator = ": ") {
  39731. let result = "", width = 0, current = iterator.next();
  39732. if (!current.done) {
  39733. result += config4.spacingOuter;
  39734. let indentationNext = indentation + config4.indent;
  39735. for (; !current.done; ) {
  39736. if (result += indentationNext, width++ === config4.maxWidth) {
  39737. result += "\u2026";
  39738. break;
  39739. }
  39740. let name = printer2(current.value[0], config4, indentationNext, depth, refs), value = printer2(current.value[1], config4, indentationNext, depth, refs);
  39741. result += name + separator + value, current = iterator.next(), current.done ? config4.min || (result += ",") : result += `,${config4.spacingInner}`;
  39742. }
  39743. result += config4.spacingOuter + indentation;
  39744. }
  39745. return result;
  39746. }
  39747. function printIteratorValues(iterator, config4, indentation, depth, refs, printer2) {
  39748. let result = "", width = 0, current = iterator.next();
  39749. if (!current.done) {
  39750. result += config4.spacingOuter;
  39751. let indentationNext = indentation + config4.indent;
  39752. for (; !current.done; ) {
  39753. if (result += indentationNext, width++ === config4.maxWidth) {
  39754. result += "\u2026";
  39755. break;
  39756. }
  39757. result += printer2(current.value, config4, indentationNext, depth, refs), current = iterator.next(), current.done ? config4.min || (result += ",") : result += `,${config4.spacingInner}`;
  39758. }
  39759. result += config4.spacingOuter + indentation;
  39760. }
  39761. return result;
  39762. }
  39763. function printListItems(list, config4, indentation, depth, refs, printer2) {
  39764. let result = "";
  39765. list = list instanceof ArrayBuffer ? new DataView(list) : list;
  39766. let isDataView = (l) => l instanceof DataView, length2 = isDataView(list) ? list.byteLength : list.length;
  39767. if (length2 > 0) {
  39768. result += config4.spacingOuter;
  39769. let indentationNext = indentation + config4.indent;
  39770. for (let i = 0; i < length2; i++) {
  39771. if (result += indentationNext, i === config4.maxWidth) {
  39772. result += "\u2026";
  39773. break;
  39774. }
  39775. (isDataView(list) || i in list) && (result += printer2(isDataView(list) ? list.getInt8(i) : list[i], config4, indentationNext, depth, refs)), i < length2 - 1 ? result += `,${config4.spacingInner}` : config4.min || (result += ",");
  39776. }
  39777. result += config4.spacingOuter + indentation;
  39778. }
  39779. return result;
  39780. }
  39781. function printObjectProperties(val, config4, indentation, depth, refs, printer2) {
  39782. let result = "", keys3 = getKeysOfEnumerableProperties(val, config4.compareKeys);
  39783. if (keys3.length > 0) {
  39784. result += config4.spacingOuter;
  39785. let indentationNext = indentation + config4.indent;
  39786. for (let i = 0; i < keys3.length; i++) {
  39787. let key = keys3[i], name = printer2(key, config4, indentationNext, depth, refs), value = printer2(val[key], config4, indentationNext, depth, refs);
  39788. result += `${indentationNext + name}: ${value}`, i < keys3.length - 1 ? result += `,${config4.spacingInner}` : config4.min || (result += ",");
  39789. }
  39790. result += config4.spacingOuter + indentation;
  39791. }
  39792. return result;
  39793. }
  39794. var asymmetricMatcher = typeof Symbol == "function" && Symbol.for ? /* @__PURE__ */ Symbol.for("jest.asymmetricMatcher") : 1267621, SPACE$2 = " ", serialize$5 = (val, config4, indentation, depth, refs, printer2) => {
  39795. let stringedValue = val.toString();
  39796. if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining")
  39797. return ++depth > config4.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}[${printListItems(val.sample, config4, indentation, depth, refs, printer2)}]`;
  39798. if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining")
  39799. return ++depth > config4.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config4, indentation, depth, refs, printer2)}}`;
  39800. if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining")
  39801. return stringedValue + SPACE$2 + printer2(val.sample, config4, indentation, depth, refs);
  39802. if (typeof val.toAsymmetricMatcher != "function")
  39803. throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
  39804. return val.toAsymmetricMatcher();
  39805. }, test$5 = (val) => val && val.$$typeof === asymmetricMatcher, plugin$5 = {
  39806. serialize: serialize$5,
  39807. test: test$5
  39808. }, SPACE$1 = " ", OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
  39809. function testName(name) {
  39810. return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
  39811. }
  39812. var test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
  39813. function isNamedNodeMap(collection) {
  39814. return collection.constructor.name === "NamedNodeMap";
  39815. }
  39816. var serialize$4 = (collection, config4, indentation, depth, refs, printer2) => {
  39817. let name = collection.constructor.name;
  39818. return ++depth > config4.maxDepth ? `[${name}]` : (config4.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection }, config4, indentation, depth, refs, printer2)}}` : `[${printListItems([...collection], config4, indentation, depth, refs, printer2)}]`);
  39819. }, plugin$4 = {
  39820. serialize: serialize$4,
  39821. test: test$4
  39822. };
  39823. function escapeHTML(str2) {
  39824. return str2.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
  39825. }
  39826. function printProps(keys3, props, config4, indentation, depth, refs, printer2) {
  39827. let indentationNext = indentation + config4.indent, colors3 = config4.colors;
  39828. return keys3.map((key) => {
  39829. let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs);
  39830. return typeof value != "string" && (printed.includes(`
  39831. `) && (printed = config4.spacingOuter + indentationNext + printed + config4.spacingOuter + indentation), printed = `{${printed}}`), `${config4.spacingInner + indentation + colors3.prop.open + key + colors3.prop.close}=${colors3.value.open}${printed}${colors3.value.close}`;
  39832. }).join("");
  39833. }
  39834. function printChildren(children, config4, indentation, depth, refs, printer2) {
  39835. return children.map((child) => config4.spacingOuter + indentation + (typeof child == "string" ? printText(child, config4) : printer2(child, config4, indentation, depth, refs))).join("");
  39836. }
  39837. function printText(text, config4) {
  39838. let contentColor = config4.colors.content;
  39839. return contentColor.open + escapeHTML(text) + contentColor.close;
  39840. }
  39841. function printComment(comment2, config4) {
  39842. let commentColor = config4.colors.comment;
  39843. return `${commentColor.open}<!--${escapeHTML(comment2)}-->${commentColor.close}`;
  39844. }
  39845. function printElement(type5, printedProps, printedChildren, config4, indentation) {
  39846. let tagColor = config4.colors.tag;
  39847. return `${tagColor.open}<${type5}${printedProps && tagColor.close + printedProps + config4.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config4.spacingOuter}${indentation}${tagColor.open}</${type5}` : `${printedProps && !config4.min ? "" : " "}/`}>${tagColor.close}`;
  39848. }
  39849. function printElementAsLeaf(type5, config4) {
  39850. let tagColor = config4.colors.tag;
  39851. return `${tagColor.open}<${type5}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
  39852. }
  39853. var ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/;
  39854. function testHasAttribute(val) {
  39855. try {
  39856. return typeof val.hasAttribute == "function" && val.hasAttribute("is");
  39857. } catch {
  39858. return !1;
  39859. }
  39860. }
  39861. function testNode(val) {
  39862. let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement3 = typeof tagName == "string" && tagName.includes("-") || testHasAttribute(val);
  39863. return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement3) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
  39864. }
  39865. var test$3 = (val) => {
  39866. var _val$constructor;
  39867. return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
  39868. };
  39869. function nodeIsText(node2) {
  39870. return node2.nodeType === TEXT_NODE;
  39871. }
  39872. function nodeIsComment(node2) {
  39873. return node2.nodeType === COMMENT_NODE;
  39874. }
  39875. function nodeIsFragment(node2) {
  39876. return node2.nodeType === FRAGMENT_NODE;
  39877. }
  39878. var serialize$3 = (node2, config4, indentation, depth, refs, printer2) => {
  39879. if (nodeIsText(node2))
  39880. return printText(node2.data, config4);
  39881. if (nodeIsComment(node2))
  39882. return printComment(node2.data, config4);
  39883. let type5 = nodeIsFragment(node2) ? "DocumentFragment" : node2.tagName.toLowerCase();
  39884. return ++depth > config4.maxDepth ? printElementAsLeaf(type5, config4) : printElement(type5, printProps(nodeIsFragment(node2) ? [] : Array.from(node2.attributes, (attr) => attr.name).sort(), nodeIsFragment(node2) ? {} : [...node2.attributes].reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config4, indentation + config4.indent, depth, refs, printer2), printChildren(Array.prototype.slice.call(node2.childNodes || node2.children), config4, indentation + config4.indent, depth, refs, printer2), config4, indentation);
  39885. }, plugin$3 = {
  39886. serialize: serialize$3,
  39887. test: test$3
  39888. }, IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@", getImmutableName = (name) => `Immutable.${name}`, printAsLeaf = (name) => `[${name}]`, SPACE = " ", LAZY = "\u2026";
  39889. function printImmutableEntries(val, config4, indentation, depth, refs, printer2, type5) {
  39890. return ++depth > config4.maxDepth ? printAsLeaf(getImmutableName(type5)) : `${getImmutableName(type5) + SPACE}{${printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer2)}}`;
  39891. }
  39892. function getRecordEntries(val) {
  39893. let i = 0;
  39894. return { next() {
  39895. if (i < val._keys.length) {
  39896. let key = val._keys[i++];
  39897. return {
  39898. done: !1,
  39899. value: [key, val.get(key)]
  39900. };
  39901. }
  39902. return {
  39903. done: !0,
  39904. value: void 0
  39905. };
  39906. } };
  39907. }
  39908. function printImmutableRecord(val, config4, indentation, depth, refs, printer2) {
  39909. let name = getImmutableName(val._name || "Record");
  39910. return ++depth > config4.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config4, indentation, depth, refs, printer2)}}`;
  39911. }
  39912. function printImmutableSeq(val, config4, indentation, depth, refs, printer2) {
  39913. let name = getImmutableName("Seq");
  39914. return ++depth > config4.maxDepth ? printAsLeaf(name) : val[IS_KEYED_SENTINEL] ? `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer2) : LAZY}}` : `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config4, indentation, depth, refs, printer2) : LAZY}]`;
  39915. }
  39916. function printImmutableValues(val, config4, indentation, depth, refs, printer2, type5) {
  39917. return ++depth > config4.maxDepth ? printAsLeaf(getImmutableName(type5)) : `${getImmutableName(type5) + SPACE}[${printIteratorValues(val.values(), config4, indentation, depth, refs, printer2)}]`;
  39918. }
  39919. var serialize$2 = (val, config4, indentation, depth, refs, printer2) => val[IS_MAP_SENTINEL] ? printImmutableEntries(val, config4, indentation, depth, refs, printer2, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map") : val[IS_LIST_SENTINEL] ? printImmutableValues(val, config4, indentation, depth, refs, printer2, "List") : val[IS_SET_SENTINEL] ? printImmutableValues(val, config4, indentation, depth, refs, printer2, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set") : val[IS_STACK_SENTINEL] ? printImmutableValues(val, config4, indentation, depth, refs, printer2, "Stack") : val[IS_SEQ_SENTINEL] ? printImmutableSeq(val, config4, indentation, depth, refs, printer2) : printImmutableRecord(val, config4, indentation, depth, refs, printer2), test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === !0 || val[IS_RECORD_SENTINEL] === !0), plugin$2 = {
  39920. serialize: serialize$2,
  39921. test: test$2
  39922. };
  39923. function getDefaultExportFromCjs(x) {
  39924. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
  39925. }
  39926. var reactIs$1 = { exports: {} }, reactIs_production = {};
  39927. var hasRequiredReactIs_production;
  39928. function requireReactIs_production() {
  39929. if (hasRequiredReactIs_production) return reactIs_production;
  39930. hasRequiredReactIs_production = 1;
  39931. var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE2 = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
  39932. function typeOf(object) {
  39933. if (typeof object == "object" && object !== null) {
  39934. var $$typeof = object.$$typeof;
  39935. switch ($$typeof) {
  39936. case REACT_ELEMENT_TYPE:
  39937. switch (object = object.type, object) {
  39938. case REACT_FRAGMENT_TYPE:
  39939. case REACT_PROFILER_TYPE:
  39940. case REACT_STRICT_MODE_TYPE:
  39941. case REACT_SUSPENSE_TYPE:
  39942. case REACT_SUSPENSE_LIST_TYPE:
  39943. case REACT_VIEW_TRANSITION_TYPE:
  39944. return object;
  39945. default:
  39946. switch (object = object && object.$$typeof, object) {
  39947. case REACT_CONTEXT_TYPE:
  39948. case REACT_FORWARD_REF_TYPE:
  39949. case REACT_LAZY_TYPE2:
  39950. case REACT_MEMO_TYPE:
  39951. return object;
  39952. case REACT_CONSUMER_TYPE:
  39953. return object;
  39954. default:
  39955. return $$typeof;
  39956. }
  39957. }
  39958. case REACT_PORTAL_TYPE:
  39959. return $$typeof;
  39960. }
  39961. }
  39962. }
  39963. return reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE, reactIs_production.ContextProvider = REACT_CONTEXT_TYPE, reactIs_production.Element = REACT_ELEMENT_TYPE, reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE, reactIs_production.Fragment = REACT_FRAGMENT_TYPE, reactIs_production.Lazy = REACT_LAZY_TYPE2, reactIs_production.Memo = REACT_MEMO_TYPE, reactIs_production.Portal = REACT_PORTAL_TYPE, reactIs_production.Profiler = REACT_PROFILER_TYPE, reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE, reactIs_production.Suspense = REACT_SUSPENSE_TYPE, reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE, reactIs_production.isContextConsumer = function(object) {
  39964. return typeOf(object) === REACT_CONSUMER_TYPE;
  39965. }, reactIs_production.isContextProvider = function(object) {
  39966. return typeOf(object) === REACT_CONTEXT_TYPE;
  39967. }, reactIs_production.isElement = function(object) {
  39968. return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  39969. }, reactIs_production.isForwardRef = function(object) {
  39970. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  39971. }, reactIs_production.isFragment = function(object) {
  39972. return typeOf(object) === REACT_FRAGMENT_TYPE;
  39973. }, reactIs_production.isLazy = function(object) {
  39974. return typeOf(object) === REACT_LAZY_TYPE2;
  39975. }, reactIs_production.isMemo = function(object) {
  39976. return typeOf(object) === REACT_MEMO_TYPE;
  39977. }, reactIs_production.isPortal = function(object) {
  39978. return typeOf(object) === REACT_PORTAL_TYPE;
  39979. }, reactIs_production.isProfiler = function(object) {
  39980. return typeOf(object) === REACT_PROFILER_TYPE;
  39981. }, reactIs_production.isStrictMode = function(object) {
  39982. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  39983. }, reactIs_production.isSuspense = function(object) {
  39984. return typeOf(object) === REACT_SUSPENSE_TYPE;
  39985. }, reactIs_production.isSuspenseList = function(object) {
  39986. return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
  39987. }, reactIs_production.isValidElementType = function(type5) {
  39988. return typeof type5 == "string" || typeof type5 == "function" || type5 === REACT_FRAGMENT_TYPE || type5 === REACT_PROFILER_TYPE || type5 === REACT_STRICT_MODE_TYPE || type5 === REACT_SUSPENSE_TYPE || type5 === REACT_SUSPENSE_LIST_TYPE || typeof type5 == "object" && type5 !== null && (type5.$$typeof === REACT_LAZY_TYPE2 || type5.$$typeof === REACT_MEMO_TYPE || type5.$$typeof === REACT_CONTEXT_TYPE || type5.$$typeof === REACT_CONSUMER_TYPE || type5.$$typeof === REACT_FORWARD_REF_TYPE || type5.$$typeof === REACT_CLIENT_REFERENCE || type5.getModuleId !== void 0);
  39989. }, reactIs_production.typeOf = typeOf, reactIs_production;
  39990. }
  39991. var hasRequiredReactIs$1;
  39992. function requireReactIs$1() {
  39993. return hasRequiredReactIs$1 || (hasRequiredReactIs$1 = 1, reactIs$1.exports = requireReactIs_production()), reactIs$1.exports;
  39994. }
  39995. var reactIsExports$1 = requireReactIs$1(), index$1 = getDefaultExportFromCjs(reactIsExports$1), ReactIs19 = _mergeNamespaces({
  39996. __proto__: null,
  39997. default: index$1
  39998. }, [reactIsExports$1]), reactIs = { exports: {} }, reactIs_production_min = {};
  39999. var hasRequiredReactIs_production_min;
  40000. function requireReactIs_production_min() {
  40001. if (hasRequiredReactIs_production_min) return reactIs_production_min;
  40002. hasRequiredReactIs_production_min = 1;
  40003. var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e = /* @__PURE__ */ Symbol.for("react.strict_mode"), f4 = /* @__PURE__ */ Symbol.for("react.profiler"), g2 = /* @__PURE__ */ Symbol.for("react.provider"), h3 = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), m3 = /* @__PURE__ */ Symbol.for("react.suspense"), n = /* @__PURE__ */ Symbol.for("react.suspense_list"), p3 = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t = /* @__PURE__ */ Symbol.for("react.offscreen"), u2;
  40004. u2 = /* @__PURE__ */ Symbol.for("react.module.reference");
  40005. function v(a3) {
  40006. if (typeof a3 == "object" && a3 !== null) {
  40007. var r2 = a3.$$typeof;
  40008. switch (r2) {
  40009. case b:
  40010. switch (a3 = a3.type, a3) {
  40011. case d:
  40012. case f4:
  40013. case e:
  40014. case m3:
  40015. case n:
  40016. return a3;
  40017. default:
  40018. switch (a3 = a3 && a3.$$typeof, a3) {
  40019. case k:
  40020. case h3:
  40021. case l:
  40022. case q:
  40023. case p3:
  40024. case g2:
  40025. return a3;
  40026. default:
  40027. return r2;
  40028. }
  40029. }
  40030. case c:
  40031. return r2;
  40032. }
  40033. }
  40034. }
  40035. return reactIs_production_min.ContextConsumer = h3, reactIs_production_min.ContextProvider = g2, reactIs_production_min.Element = b, reactIs_production_min.ForwardRef = l, reactIs_production_min.Fragment = d, reactIs_production_min.Lazy = q, reactIs_production_min.Memo = p3, reactIs_production_min.Portal = c, reactIs_production_min.Profiler = f4, reactIs_production_min.StrictMode = e, reactIs_production_min.Suspense = m3, reactIs_production_min.SuspenseList = n, reactIs_production_min.isAsyncMode = function() {
  40036. return !1;
  40037. }, reactIs_production_min.isConcurrentMode = function() {
  40038. return !1;
  40039. }, reactIs_production_min.isContextConsumer = function(a3) {
  40040. return v(a3) === h3;
  40041. }, reactIs_production_min.isContextProvider = function(a3) {
  40042. return v(a3) === g2;
  40043. }, reactIs_production_min.isElement = function(a3) {
  40044. return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
  40045. }, reactIs_production_min.isForwardRef = function(a3) {
  40046. return v(a3) === l;
  40047. }, reactIs_production_min.isFragment = function(a3) {
  40048. return v(a3) === d;
  40049. }, reactIs_production_min.isLazy = function(a3) {
  40050. return v(a3) === q;
  40051. }, reactIs_production_min.isMemo = function(a3) {
  40052. return v(a3) === p3;
  40053. }, reactIs_production_min.isPortal = function(a3) {
  40054. return v(a3) === c;
  40055. }, reactIs_production_min.isProfiler = function(a3) {
  40056. return v(a3) === f4;
  40057. }, reactIs_production_min.isStrictMode = function(a3) {
  40058. return v(a3) === e;
  40059. }, reactIs_production_min.isSuspense = function(a3) {
  40060. return v(a3) === m3;
  40061. }, reactIs_production_min.isSuspenseList = function(a3) {
  40062. return v(a3) === n;
  40063. }, reactIs_production_min.isValidElementType = function(a3) {
  40064. return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f4 || a3 === e || a3 === m3 || a3 === n || a3 === t || typeof a3 == "object" && a3 !== null && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || a3.getModuleId !== void 0);
  40065. }, reactIs_production_min.typeOf = v, reactIs_production_min;
  40066. }
  40067. var hasRequiredReactIs;
  40068. function requireReactIs() {
  40069. return hasRequiredReactIs || (hasRequiredReactIs = 1, reactIs.exports = requireReactIs_production_min()), reactIs.exports;
  40070. }
  40071. var reactIsExports = requireReactIs(), index = getDefaultExportFromCjs(reactIsExports), ReactIs18 = _mergeNamespaces({
  40072. __proto__: null,
  40073. default: index
  40074. }, [reactIsExports]), reactIsMethods = [
  40075. "isAsyncMode",
  40076. "isConcurrentMode",
  40077. "isContextConsumer",
  40078. "isContextProvider",
  40079. "isElement",
  40080. "isForwardRef",
  40081. "isFragment",
  40082. "isLazy",
  40083. "isMemo",
  40084. "isPortal",
  40085. "isProfiler",
  40086. "isStrictMode",
  40087. "isSuspense",
  40088. "isSuspenseList",
  40089. "isValidElementType"
  40090. ], ReactIs = Object.fromEntries(reactIsMethods.map((m3) => [m3, (v) => ReactIs18[m3](v) || ReactIs19[m3](v)]));
  40091. function getChildren(arg, children = []) {
  40092. if (Array.isArray(arg))
  40093. for (let item of arg)
  40094. getChildren(item, children);
  40095. else arg != null && arg !== !1 && arg !== "" && children.push(arg);
  40096. return children;
  40097. }
  40098. function getType(element) {
  40099. let type5 = element.type;
  40100. if (typeof type5 == "string")
  40101. return type5;
  40102. if (typeof type5 == "function")
  40103. return type5.displayName || type5.name || "Unknown";
  40104. if (ReactIs.isFragment(element))
  40105. return "React.Fragment";
  40106. if (ReactIs.isSuspense(element))
  40107. return "React.Suspense";
  40108. if (typeof type5 == "object" && type5 !== null) {
  40109. if (ReactIs.isContextProvider(element))
  40110. return "Context.Provider";
  40111. if (ReactIs.isContextConsumer(element))
  40112. return "Context.Consumer";
  40113. if (ReactIs.isForwardRef(element)) {
  40114. if (type5.displayName)
  40115. return type5.displayName;
  40116. let functionName = type5.render.displayName || type5.render.name || "";
  40117. return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`;
  40118. }
  40119. if (ReactIs.isMemo(element)) {
  40120. let functionName = type5.displayName || type5.type.displayName || type5.type.name || "";
  40121. return functionName === "" ? "Memo" : `Memo(${functionName})`;
  40122. }
  40123. }
  40124. return "UNDEFINED";
  40125. }
  40126. function getPropKeys$1(element) {
  40127. let { props } = element;
  40128. return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
  40129. }
  40130. var serialize$1 = (element, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? printElementAsLeaf(getType(element), config4) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config4, indentation + config4.indent, depth, refs, printer2), printChildren(getChildren(element.props.children), config4, indentation + config4.indent, depth, refs, printer2), config4, indentation), test$1 = (val) => val != null && ReactIs.isElement(val), plugin$1 = {
  40131. serialize: serialize$1,
  40132. test: test$1
  40133. }, testSymbol = typeof Symbol == "function" && Symbol.for ? /* @__PURE__ */ Symbol.for("react.test.json") : 245830487;
  40134. function getPropKeys(object) {
  40135. let { props } = object;
  40136. return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
  40137. }
  40138. var serialize2 = (object, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? printElementAsLeaf(object.type, config4) : printElement(object.type, object.props ? printProps(getPropKeys(object), object.props, config4, indentation + config4.indent, depth, refs, printer2) : "", object.children ? printChildren(object.children, config4, indentation + config4.indent, depth, refs, printer2) : "", config4, indentation), test = (val) => val && val.$$typeof === testSymbol, plugin = {
  40139. serialize: serialize2,
  40140. test
  40141. }, toString2 = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString;
  40142. function getConstructorName(val) {
  40143. return typeof val.constructor == "function" && val.constructor.name || "Object";
  40144. }
  40145. function isWindow(val) {
  40146. return typeof window < "u" && val === window;
  40147. }
  40148. var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/g, PrettyFormatPluginError = class extends Error {
  40149. constructor(message, stack) {
  40150. super(message), this.stack = stack, this.name = this.constructor.name;
  40151. }
  40152. };
  40153. function isToStringedArrayType(toStringed) {
  40154. return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
  40155. }
  40156. function printNumber(val) {
  40157. return Object.is(val, -0) ? "-0" : String(val);
  40158. }
  40159. function printBigInt(val) {
  40160. return `${val}n`;
  40161. }
  40162. function printFunction(val, printFunctionName) {
  40163. return printFunctionName ? `[Function ${val.name || "anonymous"}]` : "[Function]";
  40164. }
  40165. function printSymbol(val) {
  40166. return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
  40167. }
  40168. function printError(val) {
  40169. return `[${errorToString.call(val)}]`;
  40170. }
  40171. function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
  40172. if (val === !0 || val === !1)
  40173. return `${val}`;
  40174. if (val === void 0)
  40175. return "undefined";
  40176. if (val === null)
  40177. return "null";
  40178. let typeOf = typeof val;
  40179. if (typeOf === "number")
  40180. return printNumber(val);
  40181. if (typeOf === "bigint")
  40182. return printBigInt(val);
  40183. if (typeOf === "string")
  40184. return escapeString ? `"${val.replaceAll(/"|\\/g, "\\$&")}"` : `"${val}"`;
  40185. if (typeOf === "function")
  40186. return printFunction(val, printFunctionName);
  40187. if (typeOf === "symbol")
  40188. return printSymbol(val);
  40189. let toStringed = toString2.call(val);
  40190. return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction(val, printFunctionName) : toStringed === "[object Symbol]" ? printSymbol(val) : toStringed === "[object Date]" ? Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val) : toStringed === "[object Error]" ? printError(val) : toStringed === "[object RegExp]" ? escapeRegex ? regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : regExpToString.call(val) : val instanceof Error ? printError(val) : null;
  40191. }
  40192. function printComplexValue(val, config4, indentation, depth, refs, hasCalledToJSON) {
  40193. if (refs.includes(val))
  40194. return "[Circular]";
  40195. refs = [...refs], refs.push(val);
  40196. let hitMaxDepth = ++depth > config4.maxDepth, min2 = config4.min;
  40197. if (config4.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
  40198. return printer(val.toJSON(), config4, indentation, depth, refs, !0);
  40199. let toStringed = toString2.call(val);
  40200. return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : `${min2 ? "" : "Arguments "}[${printListItems(val, config4, indentation, depth, refs, printer)}]` : isToStringedArrayType(toStringed) ? hitMaxDepth ? `[${val.constructor.name}]` : `${min2 || !config4.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config4, indentation, depth, refs, printer)}]` : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer, " => ")}}` : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config4, indentation, depth, refs, printer)}}` : hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min2 || !config4.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${printObjectProperties(val, config4, indentation, depth, refs, printer)}}`;
  40201. }
  40202. var ErrorPlugin = {
  40203. test: (val) => val && val instanceof Error,
  40204. serialize(val, config4, indentation, depth, refs, printer2) {
  40205. if (refs.includes(val))
  40206. return "[Circular]";
  40207. refs = [...refs, val];
  40208. let hitMaxDepth = ++depth > config4.maxDepth, { message, cause, ...rest } = val, entries = {
  40209. message,
  40210. ...typeof cause < "u" ? { cause } : {},
  40211. ...val instanceof AggregateError ? { errors: val.errors } : {},
  40212. ...rest
  40213. }, name = val.name !== "Error" ? val.name : getConstructorName(val);
  40214. return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config4, indentation, depth, refs, printer2)}}`;
  40215. }
  40216. };
  40217. function isNewPlugin(plugin2) {
  40218. return plugin2.serialize != null;
  40219. }
  40220. function printPlugin(plugin2, val, config4, indentation, depth, refs) {
  40221. let printed;
  40222. try {
  40223. printed = isNewPlugin(plugin2) ? plugin2.serialize(val, config4, indentation, depth, refs, printer) : plugin2.print(val, (valChild) => printer(valChild, config4, indentation, depth, refs), (str2) => {
  40224. let indentationNext = indentation + config4.indent;
  40225. return indentationNext + str2.replaceAll(NEWLINE_REGEXP, `
  40226. ${indentationNext}`);
  40227. }, {
  40228. edgeSpacing: config4.spacingOuter,
  40229. min: config4.min,
  40230. spacing: config4.spacingInner
  40231. }, config4.colors);
  40232. } catch (error) {
  40233. throw new PrettyFormatPluginError(error.message, error.stack);
  40234. }
  40235. if (typeof printed != "string")
  40236. throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
  40237. return printed;
  40238. }
  40239. function findPlugin(plugins3, val) {
  40240. for (let plugin2 of plugins3)
  40241. try {
  40242. if (plugin2.test(val))
  40243. return plugin2;
  40244. } catch (error) {
  40245. throw new PrettyFormatPluginError(error.message, error.stack);
  40246. }
  40247. return null;
  40248. }
  40249. function printer(val, config4, indentation, depth, refs, hasCalledToJSON) {
  40250. let plugin2 = findPlugin(config4.plugins, val);
  40251. if (plugin2 !== null)
  40252. return printPlugin(plugin2, val, config4, indentation, depth, refs);
  40253. let basicResult = printBasicValue(val, config4.printFunctionName, config4.escapeRegex, config4.escapeString);
  40254. return basicResult !== null ? basicResult : printComplexValue(val, config4, indentation, depth, refs, hasCalledToJSON);
  40255. }
  40256. var DEFAULT_THEME = {
  40257. comment: "gray",
  40258. content: "reset",
  40259. prop: "yellow",
  40260. tag: "cyan",
  40261. value: "green"
  40262. }, DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME), DEFAULT_OPTIONS = {
  40263. callToJSON: !0,
  40264. compareKeys: void 0,
  40265. escapeRegex: !1,
  40266. escapeString: !0,
  40267. highlight: !1,
  40268. indent: 2,
  40269. maxDepth: Number.POSITIVE_INFINITY,
  40270. maxWidth: Number.POSITIVE_INFINITY,
  40271. min: !1,
  40272. plugins: [],
  40273. printBasicPrototype: !0,
  40274. printFunctionName: !0,
  40275. theme: DEFAULT_THEME
  40276. };
  40277. function validateOptions2(options) {
  40278. for (let key of Object.keys(options))
  40279. if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key))
  40280. throw new Error(`pretty-format: Unknown option "${key}".`);
  40281. if (options.min && options.indent !== void 0 && options.indent !== 0)
  40282. throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
  40283. }
  40284. function getColorsHighlight() {
  40285. return DEFAULT_THEME_KEYS.reduce((colors3, key) => {
  40286. let value = DEFAULT_THEME[key], color2 = value && s[value];
  40287. if (color2 && typeof color2.close == "string" && typeof color2.open == "string")
  40288. colors3[key] = color2;
  40289. else
  40290. throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
  40291. return colors3;
  40292. }, /* @__PURE__ */ Object.create(null));
  40293. }
  40294. function getColorsEmpty() {
  40295. return DEFAULT_THEME_KEYS.reduce((colors3, key) => (colors3[key] = {
  40296. close: "",
  40297. open: ""
  40298. }, colors3), /* @__PURE__ */ Object.create(null));
  40299. }
  40300. function getPrintFunctionName(options) {
  40301. return options?.printFunctionName ?? DEFAULT_OPTIONS.printFunctionName;
  40302. }
  40303. function getEscapeRegex(options) {
  40304. return options?.escapeRegex ?? DEFAULT_OPTIONS.escapeRegex;
  40305. }
  40306. function getEscapeString(options) {
  40307. return options?.escapeString ?? DEFAULT_OPTIONS.escapeString;
  40308. }
  40309. function getConfig(options) {
  40310. return {
  40311. callToJSON: options?.callToJSON ?? DEFAULT_OPTIONS.callToJSON,
  40312. colors: options?.highlight ? getColorsHighlight() : getColorsEmpty(),
  40313. compareKeys: typeof options?.compareKeys == "function" || options?.compareKeys === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
  40314. escapeRegex: getEscapeRegex(options),
  40315. escapeString: getEscapeString(options),
  40316. indent: options?.min ? "" : createIndent(options?.indent ?? DEFAULT_OPTIONS.indent),
  40317. maxDepth: options?.maxDepth ?? DEFAULT_OPTIONS.maxDepth,
  40318. maxWidth: options?.maxWidth ?? DEFAULT_OPTIONS.maxWidth,
  40319. min: options?.min ?? DEFAULT_OPTIONS.min,
  40320. plugins: options?.plugins ?? DEFAULT_OPTIONS.plugins,
  40321. printBasicPrototype: options?.printBasicPrototype ?? !0,
  40322. printFunctionName: getPrintFunctionName(options),
  40323. spacingInner: options?.min ? " " : `
  40324. `,
  40325. spacingOuter: options?.min ? "" : `
  40326. `
  40327. };
  40328. }
  40329. function createIndent(indent2) {
  40330. return Array.from({ length: indent2 + 1 }).join(" ");
  40331. }
  40332. function format(val, options) {
  40333. if (options && (validateOptions2(options), options.plugins)) {
  40334. let plugin2 = findPlugin(options.plugins, val);
  40335. if (plugin2 !== null)
  40336. return printPlugin(plugin2, val, getConfig(options), "", 0, []);
  40337. }
  40338. let basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
  40339. return basicResult !== null ? basicResult : printComplexValue(val, getConfig(options), "", 0, []);
  40340. }
  40341. var plugins = {
  40342. AsymmetricMatcher: plugin$5,
  40343. DOMCollection: plugin$4,
  40344. DOMElement: plugin$3,
  40345. Immutable: plugin$2,
  40346. ReactElement: plugin$1,
  40347. ReactTestComponent: plugin,
  40348. Error: ErrorPlugin
  40349. };
  40350. // ../../node_modules/loupe/lib/helpers.js
  40351. var ansiColors = {
  40352. bold: ["1", "22"],
  40353. dim: ["2", "22"],
  40354. italic: ["3", "23"],
  40355. underline: ["4", "24"],
  40356. // 5 & 6 are blinking
  40357. inverse: ["7", "27"],
  40358. hidden: ["8", "28"],
  40359. strike: ["9", "29"],
  40360. // 10-20 are fonts
  40361. // 21-29 are resets for 1-9
  40362. black: ["30", "39"],
  40363. red: ["31", "39"],
  40364. green: ["32", "39"],
  40365. yellow: ["33", "39"],
  40366. blue: ["34", "39"],
  40367. magenta: ["35", "39"],
  40368. cyan: ["36", "39"],
  40369. white: ["37", "39"],
  40370. brightblack: ["30;1", "39"],
  40371. brightred: ["31;1", "39"],
  40372. brightgreen: ["32;1", "39"],
  40373. brightyellow: ["33;1", "39"],
  40374. brightblue: ["34;1", "39"],
  40375. brightmagenta: ["35;1", "39"],
  40376. brightcyan: ["36;1", "39"],
  40377. brightwhite: ["37;1", "39"],
  40378. grey: ["90", "39"]
  40379. }, styles = {
  40380. special: "cyan",
  40381. number: "yellow",
  40382. bigint: "yellow",
  40383. boolean: "yellow",
  40384. undefined: "grey",
  40385. null: "bold",
  40386. string: "green",
  40387. symbol: "green",
  40388. date: "magenta",
  40389. regexp: "red"
  40390. }, truncator = "\u2026";
  40391. function colorise(value, styleType) {
  40392. let color2 = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
  40393. return color2 ? `\x1B[${color2[0]}m${String(value)}\x1B[${color2[1]}m` : String(value);
  40394. }
  40395. function normaliseOptions({
  40396. showHidden = !1,
  40397. depth = 2,
  40398. colors: colors3 = !1,
  40399. customInspect = !0,
  40400. showProxy = !1,
  40401. maxArrayLength = 1 / 0,
  40402. breakLength = 1 / 0,
  40403. seen = [],
  40404. // eslint-disable-next-line no-shadow
  40405. truncate: truncate3 = 1 / 0,
  40406. stylize = String
  40407. } = {}, inspect5) {
  40408. let options = {
  40409. showHidden: !!showHidden,
  40410. depth: Number(depth),
  40411. colors: !!colors3,
  40412. customInspect: !!customInspect,
  40413. showProxy: !!showProxy,
  40414. maxArrayLength: Number(maxArrayLength),
  40415. breakLength: Number(breakLength),
  40416. truncate: Number(truncate3),
  40417. seen,
  40418. inspect: inspect5,
  40419. stylize
  40420. };
  40421. return options.colors && (options.stylize = colorise), options;
  40422. }
  40423. function isHighSurrogate(char2) {
  40424. return char2 >= "\uD800" && char2 <= "\uDBFF";
  40425. }
  40426. function truncate(string, length2, tail2 = truncator) {
  40427. string = String(string);
  40428. let tailLength = tail2.length, stringLength = string.length;
  40429. if (tailLength > length2 && stringLength > tailLength)
  40430. return tail2;
  40431. if (stringLength > length2 && stringLength > tailLength) {
  40432. let end2 = length2 - tailLength;
  40433. return end2 > 0 && isHighSurrogate(string[end2 - 1]) && (end2 = end2 - 1), `${string.slice(0, end2)}${tail2}`;
  40434. }
  40435. return string;
  40436. }
  40437. function inspectList(list, options, inspectItem, separator = ", ") {
  40438. inspectItem = inspectItem || options.inspect;
  40439. let size = list.length;
  40440. if (size === 0)
  40441. return "";
  40442. let originalLength = options.truncate, output = "", peek2 = "", truncated = "";
  40443. for (let i = 0; i < size; i += 1) {
  40444. let last2 = i + 1 === list.length, secondToLast = i + 2 === list.length;
  40445. truncated = `${truncator}(${list.length - i})`;
  40446. let value = list[i];
  40447. options.truncate = originalLength - output.length - (last2 ? 0 : separator.length);
  40448. let string = peek2 || inspectItem(value, options) + (last2 ? "" : separator), nextLength = output.length + string.length, truncatedLength = nextLength + truncated.length;
  40449. if (last2 && nextLength > originalLength && output.length + truncated.length <= originalLength || !last2 && !secondToLast && truncatedLength > originalLength || (peek2 = last2 ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator), !last2 && secondToLast && truncatedLength > originalLength && nextLength + peek2.length > originalLength))
  40450. break;
  40451. if (output += string, !last2 && !secondToLast && nextLength + peek2.length >= originalLength) {
  40452. truncated = `${truncator}(${list.length - i - 1})`;
  40453. break;
  40454. }
  40455. truncated = "";
  40456. }
  40457. return `${output}${truncated}`;
  40458. }
  40459. function quoteComplexKey(key) {
  40460. return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
  40461. }
  40462. function inspectProperty([key, value], options) {
  40463. return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey(key) : typeof key != "number" && (key = `[${options.inspect(key, options)}]`), options.truncate -= key.length, value = options.inspect(value, options), `${key}: ${value}`;
  40464. }
  40465. // ../../node_modules/loupe/lib/array.js
  40466. function inspectArray(array, options) {
  40467. let nonIndexProperties = Object.keys(array).slice(array.length);
  40468. if (!array.length && !nonIndexProperties.length)
  40469. return "[]";
  40470. options.truncate -= 4;
  40471. let listContents = inspectList(array, options);
  40472. options.truncate -= listContents.length;
  40473. let propertyContents = "";
  40474. return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  40475. }
  40476. // ../../node_modules/loupe/lib/typedarray.js
  40477. var getArrayName = (array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name;
  40478. function inspectTypedArray(array, options) {
  40479. let name = getArrayName(array);
  40480. options.truncate -= name.length + 4;
  40481. let nonIndexProperties = Object.keys(array).slice(array.length);
  40482. if (!array.length && !nonIndexProperties.length)
  40483. return `${name}[]`;
  40484. let output = "";
  40485. for (let i = 0; i < array.length; i++) {
  40486. let string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
  40487. if (options.truncate -= string.length, array[i] !== array.length && options.truncate <= 3) {
  40488. output += `${truncator}(${array.length - array[i] + 1})`;
  40489. break;
  40490. }
  40491. output += string;
  40492. }
  40493. let propertyContents = "";
  40494. return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  40495. }
  40496. // ../../node_modules/loupe/lib/date.js
  40497. function inspectDate(dateObject, options) {
  40498. let stringRepresentation = dateObject.toJSON();
  40499. if (stringRepresentation === null)
  40500. return "Invalid Date";
  40501. let split = stringRepresentation.split("T"), date = split[0];
  40502. return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
  40503. }
  40504. // ../../node_modules/loupe/lib/function.js
  40505. function inspectFunction(func, options) {
  40506. let functionType = func[Symbol.toStringTag] || "Function", name = func.name;
  40507. return name ? options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special");
  40508. }
  40509. // ../../node_modules/loupe/lib/map.js
  40510. function inspectMapEntry([key, value], options) {
  40511. return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`;
  40512. }
  40513. function mapToEntries(map2) {
  40514. let entries = [];
  40515. return map2.forEach((value, key) => {
  40516. entries.push([key, value]);
  40517. }), entries;
  40518. }
  40519. function inspectMap(map2, options) {
  40520. return map2.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`);
  40521. }
  40522. // ../../node_modules/loupe/lib/number.js
  40523. var isNaN2 = Number.isNaN || ((i) => i !== i);
  40524. function inspectNumber(number, options) {
  40525. return isNaN2(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate(String(number), options.truncate), "number");
  40526. }
  40527. // ../../node_modules/loupe/lib/bigint.js
  40528. function inspectBigInt(number, options) {
  40529. let nums = truncate(number.toString(), options.truncate - 1);
  40530. return nums !== truncator && (nums += "n"), options.stylize(nums, "bigint");
  40531. }
  40532. // ../../node_modules/loupe/lib/regexp.js
  40533. function inspectRegExp(value, options) {
  40534. let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
  40535. return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
  40536. }
  40537. // ../../node_modules/loupe/lib/set.js
  40538. function arrayFromSet(set3) {
  40539. let values = [];
  40540. return set3.forEach((value) => {
  40541. values.push(value);
  40542. }), values;
  40543. }
  40544. function inspectSet(set3, options) {
  40545. return set3.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList(arrayFromSet(set3), options)} }`);
  40546. }
  40547. // ../../node_modules/loupe/lib/string.js
  40548. var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters = {
  40549. "\b": "\\b",
  40550. " ": "\\t",
  40551. "\n": "\\n",
  40552. "\f": "\\f",
  40553. "\r": "\\r",
  40554. "'": "\\'",
  40555. "\\": "\\\\"
  40556. }, hex = 16, unicodeLength = 4;
  40557. function escape(char2) {
  40558. return escapeCharacters[char2] || `\\u${`0000${char2.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;
  40559. }
  40560. function inspectString(string, options) {
  40561. return stringEscapeChars.test(string) && (string = string.replace(stringEscapeChars, escape)), options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
  40562. }
  40563. // ../../node_modules/loupe/lib/symbol.js
  40564. function inspectSymbol(value) {
  40565. return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString();
  40566. }
  40567. // ../../node_modules/loupe/lib/promise.js
  40568. var getPromiseValue = () => "Promise{\u2026}";
  40569. try {
  40570. let { getPromiseDetails, kPending, kRejected } = process.binding("util");
  40571. Array.isArray(getPromiseDetails(Promise.resolve())) && (getPromiseValue = (value, options) => {
  40572. let [state3, innerValue] = getPromiseDetails(value);
  40573. return state3 === kPending ? "Promise{<pending>}" : `Promise${state3 === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
  40574. });
  40575. } catch {
  40576. }
  40577. var promise_default = getPromiseValue;
  40578. // ../../node_modules/loupe/lib/object.js
  40579. function inspectObject(object, options) {
  40580. let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
  40581. if (properties.length === 0 && symbols.length === 0)
  40582. return "{}";
  40583. if (options.truncate -= 4, options.seen = options.seen || [], options.seen.includes(object))
  40584. return "[Circular]";
  40585. options.seen.push(object);
  40586. let propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty), symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);
  40587. options.seen.pop();
  40588. let sep = "";
  40589. return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`;
  40590. }
  40591. // ../../node_modules/loupe/lib/class.js
  40592. var toStringTag = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
  40593. function inspectClass(value, options) {
  40594. let name = "";
  40595. return toStringTag && toStringTag in value && (name = value[toStringTag]), name = name || value.constructor.name, (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, `${name}${inspectObject(value, options)}`;
  40596. }
  40597. // ../../node_modules/loupe/lib/arguments.js
  40598. function inspectArguments(args, options) {
  40599. return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList(args, options)} ]`);
  40600. }
  40601. // ../../node_modules/loupe/lib/error.js
  40602. var errorKeys = [
  40603. "stack",
  40604. "line",
  40605. "column",
  40606. "name",
  40607. "message",
  40608. "fileName",
  40609. "lineNumber",
  40610. "columnNumber",
  40611. "number",
  40612. "description",
  40613. "cause"
  40614. ];
  40615. function inspectObject2(error, options) {
  40616. let properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1), name = error.name;
  40617. options.truncate -= name.length;
  40618. let message = "";
  40619. if (typeof error.message == "string" ? message = truncate(error.message, options.truncate) : properties.unshift("message"), message = message ? `: ${message}` : "", options.truncate -= message.length + 5, options.seen = options.seen || [], options.seen.includes(error))
  40620. return "[Circular]";
  40621. options.seen.push(error);
  40622. let propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
  40623. return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
  40624. }
  40625. // ../../node_modules/loupe/lib/html.js
  40626. function inspectAttribute([key, value], options) {
  40627. return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`;
  40628. }
  40629. function inspectNodeCollection(collection, options) {
  40630. return inspectList(collection, options, inspectNode, `
  40631. `);
  40632. }
  40633. function inspectNode(node2, options) {
  40634. switch (node2.nodeType) {
  40635. case 1:
  40636. return inspectHTML(node2, options);
  40637. case 3:
  40638. return options.inspect(node2.data, options);
  40639. default:
  40640. return options.inspect(node2, options);
  40641. }
  40642. }
  40643. function inspectHTML(element, options) {
  40644. let properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head2 = options.stylize(`<${name}`, "special"), headClose = options.stylize(">", "special"), tail2 = options.stylize(`</${name}>`, "special");
  40645. options.truncate -= name.length * 2 + 5;
  40646. let propertyContents = "";
  40647. properties.length > 0 && (propertyContents += " ", propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ")), options.truncate -= propertyContents.length;
  40648. let truncate3 = options.truncate, children = inspectNodeCollection(element.children, options);
  40649. return children && children.length > truncate3 && (children = `${truncator}(${element.children.length})`), `${head2}${propertyContents}${headClose}${children}${tail2}`;
  40650. }
  40651. // ../../node_modules/loupe/lib/index.js
  40652. var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect = symbolsSupported ? /* @__PURE__ */ Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), constructorMap = /* @__PURE__ */ new WeakMap(), stringTagMap = {}, baseTypesMap = {
  40653. undefined: (value, options) => options.stylize("undefined", "undefined"),
  40654. null: (value, options) => options.stylize("null", "null"),
  40655. boolean: (value, options) => options.stylize(String(value), "boolean"),
  40656. Boolean: (value, options) => options.stylize(String(value), "boolean"),
  40657. number: inspectNumber,
  40658. Number: inspectNumber,
  40659. bigint: inspectBigInt,
  40660. BigInt: inspectBigInt,
  40661. string: inspectString,
  40662. String: inspectString,
  40663. function: inspectFunction,
  40664. Function: inspectFunction,
  40665. symbol: inspectSymbol,
  40666. // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
  40667. Symbol: inspectSymbol,
  40668. Array: inspectArray,
  40669. Date: inspectDate,
  40670. Map: inspectMap,
  40671. Set: inspectSet,
  40672. RegExp: inspectRegExp,
  40673. Promise: promise_default,
  40674. // WeakSet, WeakMap are totally opaque to us
  40675. WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"),
  40676. WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"),
  40677. Arguments: inspectArguments,
  40678. Int8Array: inspectTypedArray,
  40679. Uint8Array: inspectTypedArray,
  40680. Uint8ClampedArray: inspectTypedArray,
  40681. Int16Array: inspectTypedArray,
  40682. Uint16Array: inspectTypedArray,
  40683. Int32Array: inspectTypedArray,
  40684. Uint32Array: inspectTypedArray,
  40685. Float32Array: inspectTypedArray,
  40686. Float64Array: inspectTypedArray,
  40687. Generator: () => "",
  40688. DataView: () => "",
  40689. ArrayBuffer: () => "",
  40690. Error: inspectObject2,
  40691. HTMLCollection: inspectNodeCollection,
  40692. NodeList: inspectNodeCollection
  40693. }, inspectCustom = (value, options, type5) => chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type5] ? stringTagMap[type5](value, options) : "", toString3 = Object.prototype.toString;
  40694. function inspect2(value, opts = {}) {
  40695. let options = normaliseOptions(opts, inspect2), { customInspect } = options, type5 = value === null ? "null" : typeof value;
  40696. if (type5 === "object" && (type5 = toString3.call(value).slice(8, -1)), type5 in baseTypesMap)
  40697. return baseTypesMap[type5](value, options);
  40698. if (customInspect && value) {
  40699. let output = inspectCustom(value, options, type5);
  40700. if (output)
  40701. return typeof output == "string" ? output : inspect2(output, options);
  40702. }
  40703. let proto = value ? Object.getPrototypeOf(value) : !1;
  40704. return proto === Object.prototype || proto === null ? inspectObject(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass(value, options) : inspectObject(value, options) : value === Object(value) ? inspectObject(value, options) : options.stylize(String(value), type5);
  40705. }
  40706. // ../../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
  40707. var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins, PLUGINS = [
  40708. ReactTestComponent,
  40709. ReactElement,
  40710. DOMElement,
  40711. DOMCollection,
  40712. Immutable,
  40713. AsymmetricMatcher
  40714. ];
  40715. function stringify5(object, maxDepth = 10, { maxLength, ...options } = {}) {
  40716. let MAX_LENGTH = maxLength ?? 1e4, result;
  40717. try {
  40718. result = format(object, {
  40719. maxDepth,
  40720. escapeString: !1,
  40721. plugins: PLUGINS,
  40722. ...options
  40723. });
  40724. } catch {
  40725. result = format(object, {
  40726. callToJSON: !1,
  40727. maxDepth,
  40728. escapeString: !1,
  40729. plugins: PLUGINS,
  40730. ...options
  40731. });
  40732. }
  40733. return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify5(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {
  40734. maxLength,
  40735. ...options
  40736. }) : result;
  40737. }
  40738. var formatRegExp = /%[sdjifoOc%]/g;
  40739. function format2(...args) {
  40740. if (typeof args[0] != "string") {
  40741. let objects = [];
  40742. for (let i2 = 0; i2 < args.length; i2++)
  40743. objects.push(inspect3(args[i2], {
  40744. depth: 0,
  40745. colors: !1
  40746. }));
  40747. return objects.join(" ");
  40748. }
  40749. let len = args.length, i = 1, template = args[0], str2 = String(template).replace(formatRegExp, (x) => {
  40750. if (x === "%%")
  40751. return "%";
  40752. if (i >= len)
  40753. return x;
  40754. switch (x) {
  40755. case "%s": {
  40756. let value = args[i++];
  40757. return typeof value == "bigint" ? `${value.toString()}n` : typeof value == "number" && value === 0 && 1 / value < 0 ? "-0" : typeof value == "object" && value !== null ? typeof value.toString == "function" && value.toString !== Object.prototype.toString ? value.toString() : inspect3(value, {
  40758. depth: 0,
  40759. colors: !1
  40760. }) : String(value);
  40761. }
  40762. case "%d": {
  40763. let value = args[i++];
  40764. return typeof value == "bigint" ? `${value.toString()}n` : Number(value).toString();
  40765. }
  40766. case "%i": {
  40767. let value = args[i++];
  40768. return typeof value == "bigint" ? `${value.toString()}n` : Number.parseInt(String(value)).toString();
  40769. }
  40770. case "%f":
  40771. return Number.parseFloat(String(args[i++])).toString();
  40772. case "%o":
  40773. return inspect3(args[i++], {
  40774. showHidden: !0,
  40775. showProxy: !0
  40776. });
  40777. case "%O":
  40778. return inspect3(args[i++]);
  40779. case "%c":
  40780. return i++, "";
  40781. case "%j":
  40782. try {
  40783. return JSON.stringify(args[i++]);
  40784. } catch (err) {
  40785. let m3 = err.message;
  40786. if (m3.includes("circular structure") || m3.includes("cyclic structures") || m3.includes("cyclic object"))
  40787. return "[Circular]";
  40788. throw err;
  40789. }
  40790. default:
  40791. return x;
  40792. }
  40793. });
  40794. for (let x = args[i]; i < len; x = args[++i])
  40795. x === null || typeof x != "object" ? str2 += ` ${x}` : str2 += ` ${inspect3(x)}`;
  40796. return str2;
  40797. }
  40798. function inspect3(obj, options = {}) {
  40799. return options.truncate === 0 && (options.truncate = Number.POSITIVE_INFINITY), inspect2(obj, options);
  40800. }
  40801. function getDefaultExportFromCjs2(x) {
  40802. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
  40803. }
  40804. // ../../node_modules/@vitest/utils/dist/helpers.js
  40805. function assertTypes(value, name, types) {
  40806. let receivedType = typeof value;
  40807. if (!types.includes(receivedType))
  40808. throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`);
  40809. }
  40810. function isObject5(item) {
  40811. return item != null && typeof item == "object" && !Array.isArray(item);
  40812. }
  40813. function isFinalObj(obj) {
  40814. return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;
  40815. }
  40816. function getType2(value) {
  40817. return Object.prototype.toString.apply(value).slice(8, -1);
  40818. }
  40819. function collectOwnProperties(obj, collector) {
  40820. let collect = typeof collector == "function" ? collector : (key) => collector.add(key);
  40821. Object.getOwnPropertyNames(obj).forEach(collect), Object.getOwnPropertySymbols(obj).forEach(collect);
  40822. }
  40823. function getOwnProperties(obj) {
  40824. let ownProps = /* @__PURE__ */ new Set();
  40825. return isFinalObj(obj) ? [] : (collectOwnProperties(obj, ownProps), Array.from(ownProps));
  40826. }
  40827. var defaultCloneOptions = { forceWritable: !1 };
  40828. function deepClone(val, options = defaultCloneOptions) {
  40829. return clone2(val, /* @__PURE__ */ new WeakMap(), options);
  40830. }
  40831. function clone2(val, seen, options = defaultCloneOptions) {
  40832. let k, out;
  40833. if (seen.has(val))
  40834. return seen.get(val);
  40835. if (Array.isArray(val)) {
  40836. for (out = Array.from({ length: k = val.length }), seen.set(val, out); k--; )
  40837. out[k] = clone2(val[k], seen, options);
  40838. return out;
  40839. }
  40840. if (Object.prototype.toString.call(val) === "[object Object]") {
  40841. out = Object.create(Object.getPrototypeOf(val)), seen.set(val, out);
  40842. let props = getOwnProperties(val);
  40843. for (let k2 of props) {
  40844. let descriptor = Object.getOwnPropertyDescriptor(val, k2);
  40845. if (!descriptor)
  40846. continue;
  40847. let cloned = clone2(val[k2], seen, options);
  40848. options.forceWritable ? Object.defineProperty(out, k2, {
  40849. enumerable: descriptor.enumerable,
  40850. configurable: !0,
  40851. writable: !0,
  40852. value: cloned
  40853. }) : "get" in descriptor ? Object.defineProperty(out, k2, {
  40854. ...descriptor,
  40855. get() {
  40856. return cloned;
  40857. }
  40858. }) : Object.defineProperty(out, k2, {
  40859. ...descriptor,
  40860. value: cloned
  40861. });
  40862. }
  40863. return out;
  40864. }
  40865. return val;
  40866. }
  40867. function noop2() {
  40868. }
  40869. // ../../node_modules/@vitest/utils/dist/diff.js
  40870. var DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0, Diff = class {
  40871. 0;
  40872. 1;
  40873. constructor(op, text) {
  40874. this[0] = op, this[1] = text;
  40875. }
  40876. };
  40877. function diff_commonPrefix(text1, text2) {
  40878. if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0))
  40879. return 0;
  40880. let pointermin = 0, pointermax = Math.min(text1.length, text2.length), pointermid = pointermax, pointerstart = 0;
  40881. for (; pointermin < pointermid; )
  40882. text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid) ? (pointermin = pointermid, pointerstart = pointermin) : pointermax = pointermid, pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  40883. return pointermid;
  40884. }
  40885. function diff_commonSuffix(text1, text2) {
  40886. if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1))
  40887. return 0;
  40888. let pointermin = 0, pointermax = Math.min(text1.length, text2.length), pointermid = pointermax, pointerend = 0;
  40889. for (; pointermin < pointermid; )
  40890. text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend) ? (pointermin = pointermid, pointerend = pointermin) : pointermax = pointermid, pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  40891. return pointermid;
  40892. }
  40893. function diff_commonOverlap_(text1, text2) {
  40894. let text1_length = text1.length, text2_length = text2.length;
  40895. if (text1_length === 0 || text2_length === 0)
  40896. return 0;
  40897. text1_length > text2_length ? text1 = text1.substring(text1_length - text2_length) : text1_length < text2_length && (text2 = text2.substring(0, text1_length));
  40898. let text_length = Math.min(text1_length, text2_length);
  40899. if (text1 === text2)
  40900. return text_length;
  40901. let best = 0, length2 = 1;
  40902. for (; ; ) {
  40903. let pattern = text1.substring(text_length - length2), found = text2.indexOf(pattern);
  40904. if (found === -1)
  40905. return best;
  40906. length2 += found, (found === 0 || text1.substring(text_length - length2) === text2.substring(0, length2)) && (best = length2, length2++);
  40907. }
  40908. }
  40909. function diff_cleanupSemantic(diffs) {
  40910. let changes = !1, equalities = [], equalitiesLength = 0, lastEquality = null, pointer4 = 0, length_insertions1 = 0, length_deletions1 = 0, length_insertions2 = 0, length_deletions2 = 0;
  40911. for (; pointer4 < diffs.length; )
  40912. diffs[pointer4][0] === DIFF_EQUAL ? (equalities[equalitiesLength++] = pointer4, length_insertions1 = length_insertions2, length_deletions1 = length_deletions2, length_insertions2 = 0, length_deletions2 = 0, lastEquality = diffs[pointer4][1]) : (diffs[pointer4][0] === DIFF_INSERT ? length_insertions2 += diffs[pointer4][1].length : length_deletions2 += diffs[pointer4][1].length, lastEquality && lastEquality.length <= Math.max(length_insertions1, length_deletions1) && lastEquality.length <= Math.max(length_insertions2, length_deletions2) && (diffs.splice(equalities[equalitiesLength - 1], 0, new Diff(DIFF_DELETE, lastEquality)), diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT, equalitiesLength--, equalitiesLength--, pointer4 = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1, length_insertions1 = 0, length_deletions1 = 0, length_insertions2 = 0, length_deletions2 = 0, lastEquality = null, changes = !0)), pointer4++;
  40913. for (changes && diff_cleanupMerge(diffs), diff_cleanupSemanticLossless(diffs), pointer4 = 1; pointer4 < diffs.length; ) {
  40914. if (diffs[pointer4 - 1][0] === DIFF_DELETE && diffs[pointer4][0] === DIFF_INSERT) {
  40915. let deletion = diffs[pointer4 - 1][1], insertion = diffs[pointer4][1], overlap_length1 = diff_commonOverlap_(deletion, insertion), overlap_length2 = diff_commonOverlap_(insertion, deletion);
  40916. overlap_length1 >= overlap_length2 ? (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) && (diffs.splice(pointer4, 0, new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1))), diffs[pointer4 - 1][1] = deletion.substring(0, deletion.length - overlap_length1), diffs[pointer4 + 1][1] = insertion.substring(overlap_length1), pointer4++) : (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) && (diffs.splice(pointer4, 0, new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2))), diffs[pointer4 - 1][0] = DIFF_INSERT, diffs[pointer4 - 1][1] = insertion.substring(0, insertion.length - overlap_length2), diffs[pointer4 + 1][0] = DIFF_DELETE, diffs[pointer4 + 1][1] = deletion.substring(overlap_length2), pointer4++), pointer4++;
  40917. }
  40918. pointer4++;
  40919. }
  40920. }
  40921. var nonAlphaNumericRegex_ = /[^a-z0-9]/i, whitespaceRegex_ = /\s/, linebreakRegex_ = /[\r\n]/, blanklineEndRegex_ = /\n\r?\n$/, blanklineStartRegex_ = /^\r?\n\r?\n/;
  40922. function diff_cleanupSemanticLossless(diffs) {
  40923. let pointer4 = 1;
  40924. for (; pointer4 < diffs.length - 1; ) {
  40925. if (diffs[pointer4 - 1][0] === DIFF_EQUAL && diffs[pointer4 + 1][0] === DIFF_EQUAL) {
  40926. let equality1 = diffs[pointer4 - 1][1], edit = diffs[pointer4][1], equality2 = diffs[pointer4 + 1][1], commonOffset = diff_commonSuffix(equality1, edit);
  40927. if (commonOffset) {
  40928. let commonString = edit.substring(edit.length - commonOffset);
  40929. equality1 = equality1.substring(0, equality1.length - commonOffset), edit = commonString + edit.substring(0, edit.length - commonOffset), equality2 = commonString + equality2;
  40930. }
  40931. let bestEquality1 = equality1, bestEdit = edit, bestEquality2 = equality2, bestScore = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);
  40932. for (; edit.charAt(0) === equality2.charAt(0); ) {
  40933. equality1 += edit.charAt(0), edit = edit.substring(1) + equality2.charAt(0), equality2 = equality2.substring(1);
  40934. let score = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);
  40935. score >= bestScore && (bestScore = score, bestEquality1 = equality1, bestEdit = edit, bestEquality2 = equality2);
  40936. }
  40937. diffs[pointer4 - 1][1] !== bestEquality1 && (bestEquality1 ? diffs[pointer4 - 1][1] = bestEquality1 : (diffs.splice(pointer4 - 1, 1), pointer4--), diffs[pointer4][1] = bestEdit, bestEquality2 ? diffs[pointer4 + 1][1] = bestEquality2 : (diffs.splice(pointer4 + 1, 1), pointer4--));
  40938. }
  40939. pointer4++;
  40940. }
  40941. }
  40942. function diff_cleanupMerge(diffs) {
  40943. diffs.push(new Diff(DIFF_EQUAL, ""));
  40944. let pointer4 = 0, count_delete = 0, count_insert = 0, text_delete = "", text_insert = "", commonlength;
  40945. for (; pointer4 < diffs.length; )
  40946. switch (diffs[pointer4][0]) {
  40947. case DIFF_INSERT:
  40948. count_insert++, text_insert += diffs[pointer4][1], pointer4++;
  40949. break;
  40950. case DIFF_DELETE:
  40951. count_delete++, text_delete += diffs[pointer4][1], pointer4++;
  40952. break;
  40953. case DIFF_EQUAL:
  40954. count_delete + count_insert > 1 ? (count_delete !== 0 && count_insert !== 0 && (commonlength = diff_commonPrefix(text_insert, text_delete), commonlength !== 0 && (pointer4 - count_delete - count_insert > 0 && diffs[pointer4 - count_delete - count_insert - 1][0] === DIFF_EQUAL ? diffs[pointer4 - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength) : (diffs.splice(0, 0, new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength))), pointer4++), text_insert = text_insert.substring(commonlength), text_delete = text_delete.substring(commonlength)), commonlength = diff_commonSuffix(text_insert, text_delete), commonlength !== 0 && (diffs[pointer4][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer4][1], text_insert = text_insert.substring(0, text_insert.length - commonlength), text_delete = text_delete.substring(0, text_delete.length - commonlength))), pointer4 -= count_delete + count_insert, diffs.splice(pointer4, count_delete + count_insert), text_delete.length && (diffs.splice(pointer4, 0, new Diff(DIFF_DELETE, text_delete)), pointer4++), text_insert.length && (diffs.splice(pointer4, 0, new Diff(DIFF_INSERT, text_insert)), pointer4++), pointer4++) : pointer4 !== 0 && diffs[pointer4 - 1][0] === DIFF_EQUAL ? (diffs[pointer4 - 1][1] += diffs[pointer4][1], diffs.splice(pointer4, 1)) : pointer4++, count_insert = 0, count_delete = 0, text_delete = "", text_insert = "";
  40955. break;
  40956. }
  40957. diffs[diffs.length - 1][1] === "" && diffs.pop();
  40958. let changes = !1;
  40959. for (pointer4 = 1; pointer4 < diffs.length - 1; )
  40960. diffs[pointer4 - 1][0] === DIFF_EQUAL && diffs[pointer4 + 1][0] === DIFF_EQUAL && (diffs[pointer4][1].substring(diffs[pointer4][1].length - diffs[pointer4 - 1][1].length) === diffs[pointer4 - 1][1] ? (diffs[pointer4][1] = diffs[pointer4 - 1][1] + diffs[pointer4][1].substring(0, diffs[pointer4][1].length - diffs[pointer4 - 1][1].length), diffs[pointer4 + 1][1] = diffs[pointer4 - 1][1] + diffs[pointer4 + 1][1], diffs.splice(pointer4 - 1, 1), changes = !0) : diffs[pointer4][1].substring(0, diffs[pointer4 + 1][1].length) === diffs[pointer4 + 1][1] && (diffs[pointer4 - 1][1] += diffs[pointer4 + 1][1], diffs[pointer4][1] = diffs[pointer4][1].substring(diffs[pointer4 + 1][1].length) + diffs[pointer4 + 1][1], diffs.splice(pointer4 + 1, 1), changes = !0)), pointer4++;
  40961. changes && diff_cleanupMerge(diffs);
  40962. }
  40963. function diff_cleanupSemanticScore_(one, two) {
  40964. if (!one || !two)
  40965. return 6;
  40966. let char1 = one.charAt(one.length - 1), char2 = two.charAt(0), nonAlphaNumeric1 = char1.match(nonAlphaNumericRegex_), nonAlphaNumeric2 = char2.match(nonAlphaNumericRegex_), whitespace1 = nonAlphaNumeric1 && char1.match(whitespaceRegex_), whitespace2 = nonAlphaNumeric2 && char2.match(whitespaceRegex_), lineBreak1 = whitespace1 && char1.match(linebreakRegex_), lineBreak2 = whitespace2 && char2.match(linebreakRegex_), blankLine1 = lineBreak1 && one.match(blanklineEndRegex_), blankLine2 = lineBreak2 && two.match(blanklineStartRegex_);
  40967. return blankLine1 || blankLine2 ? 5 : lineBreak1 || lineBreak2 ? 4 : nonAlphaNumeric1 && !whitespace1 && whitespace2 ? 3 : whitespace1 || whitespace2 ? 2 : nonAlphaNumeric1 || nonAlphaNumeric2 ? 1 : 0;
  40968. }
  40969. var NO_DIFF_MESSAGE = "Compared values have no visual difference.", SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.", build = {}, hasRequiredBuild;
  40970. function requireBuild() {
  40971. if (hasRequiredBuild) return build;
  40972. hasRequiredBuild = 1, Object.defineProperty(build, "__esModule", {
  40973. value: !0
  40974. }), build.default = diffSequence;
  40975. let pkg = "diff-sequences", NOT_YET_SET = 0, countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {
  40976. let nCommon = 0;
  40977. for (; aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex); )
  40978. aIndex += 1, bIndex += 1, nCommon += 1;
  40979. return nCommon;
  40980. }, countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => {
  40981. let nCommon = 0;
  40982. for (; aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex); )
  40983. aIndex -= 1, bIndex -= 1, nCommon += 1;
  40984. return nCommon;
  40985. }, extendPathsF = (d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF) => {
  40986. let iF = 0, kF = -d, aFirst = aIndexesF[iF], aIndexPrev1 = aFirst;
  40987. aIndexesF[iF] += countCommonItemsF(
  40988. aFirst + 1,
  40989. aEnd,
  40990. bF + aFirst - kF + 1,
  40991. bEnd,
  40992. isCommon
  40993. );
  40994. let nF = d < iMaxF ? d : iMaxF;
  40995. for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {
  40996. if (iF !== d && aIndexPrev1 < aIndexesF[iF])
  40997. aFirst = aIndexesF[iF];
  40998. else if (aFirst = aIndexPrev1 + 1, aEnd <= aFirst)
  40999. return iF - 1;
  41000. aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aFirst + countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);
  41001. }
  41002. return iMaxF;
  41003. }, extendPathsR = (d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR) => {
  41004. let iR = 0, kR = d, aFirst = aIndexesR[iR], aIndexPrev1 = aFirst;
  41005. aIndexesR[iR] -= countCommonItemsR(
  41006. aStart,
  41007. aFirst - 1,
  41008. bStart,
  41009. bR + aFirst - kR - 1,
  41010. isCommon
  41011. );
  41012. let nR = d < iMaxR ? d : iMaxR;
  41013. for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {
  41014. if (iR !== d && aIndexesR[iR] < aIndexPrev1)
  41015. aFirst = aIndexesR[iR];
  41016. else if (aFirst = aIndexPrev1 - 1, aFirst < aStart)
  41017. return iR - 1;
  41018. aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aFirst - countCommonItemsR(
  41019. aStart,
  41020. aFirst - 1,
  41021. bStart,
  41022. bR + aFirst - kR - 1,
  41023. isCommon
  41024. );
  41025. }
  41026. return iMaxR;
  41027. }, extendOverlappablePathsF = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
  41028. let bF = bStart - aStart, aLength = aEnd - aStart, baDeltaLength = bEnd - bStart - aLength, kMinOverlapF = -baDeltaLength - (d - 1), kMaxOverlapF = -baDeltaLength + (d - 1), aIndexPrev1 = NOT_YET_SET, nF = d < iMaxF ? d : iMaxF;
  41029. for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) {
  41030. let insert = iF === 0 || iF !== d && aIndexPrev1 < aIndexesF[iF], aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1, aFirst = insert ? aLastPrev : aLastPrev + 1, bFirst = bF + aFirst - kF, nCommonF = countCommonItemsF(
  41031. aFirst + 1,
  41032. aEnd,
  41033. bFirst + 1,
  41034. bEnd,
  41035. isCommon
  41036. ), aLast = aFirst + nCommonF;
  41037. if (aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aLast, kMinOverlapF <= kF && kF <= kMaxOverlapF) {
  41038. let iR = (d - 1 - (kF + baDeltaLength)) / 2;
  41039. if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {
  41040. let bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1), nCommonR = countCommonItemsR(
  41041. aStart,
  41042. aLastPrev,
  41043. bStart,
  41044. bLastPrev,
  41045. isCommon
  41046. ), aIndexPrevFirst = aLastPrev - nCommonR, bIndexPrevFirst = bLastPrev - nCommonR, aEndPreceding = aIndexPrevFirst + 1, bEndPreceding = bIndexPrevFirst + 1;
  41047. division.nChangePreceding = d - 1, d - 1 === aEndPreceding + bEndPreceding - aStart - bStart ? (division.aEndPreceding = aStart, division.bEndPreceding = bStart) : (division.aEndPreceding = aEndPreceding, division.bEndPreceding = bEndPreceding), division.nCommonPreceding = nCommonR, nCommonR !== 0 && (division.aCommonPreceding = aEndPreceding, division.bCommonPreceding = bEndPreceding), division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aFirst + 1, division.bCommonFollowing = bFirst + 1);
  41048. let aStartFollowing = aLast + 1, bStartFollowing = bFirst + nCommonF + 1;
  41049. return division.nChangeFollowing = d - 1, d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing), !0;
  41050. }
  41051. }
  41052. }
  41053. return !1;
  41054. }, extendOverlappablePathsR = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
  41055. let bR = bEnd - aEnd, aLength = aEnd - aStart, baDeltaLength = bEnd - bStart - aLength, kMinOverlapR = baDeltaLength - d, kMaxOverlapR = baDeltaLength + d, aIndexPrev1 = NOT_YET_SET, nR = d < iMaxR ? d : iMaxR;
  41056. for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) {
  41057. let insert = iR === 0 || iR !== d && aIndexesR[iR] < aIndexPrev1, aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1, aFirst = insert ? aLastPrev : aLastPrev - 1, bFirst = bR + aFirst - kR, nCommonR = countCommonItemsR(
  41058. aStart,
  41059. aFirst - 1,
  41060. bStart,
  41061. bFirst - 1,
  41062. isCommon
  41063. ), aLast = aFirst - nCommonR;
  41064. if (aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aLast, kMinOverlapR <= kR && kR <= kMaxOverlapR) {
  41065. let iF = (d + (kR - baDeltaLength)) / 2;
  41066. if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) {
  41067. let bLast = bFirst - nCommonR;
  41068. if (division.nChangePreceding = d, d === aLast + bLast - aStart - bStart ? (division.aEndPreceding = aStart, division.bEndPreceding = bStart) : (division.aEndPreceding = aLast, division.bEndPreceding = bLast), division.nCommonPreceding = nCommonR, nCommonR !== 0 && (division.aCommonPreceding = aLast, division.bCommonPreceding = bLast), division.nChangeFollowing = d - 1, d === 1)
  41069. division.nCommonFollowing = 0, division.aStartFollowing = aEnd, division.bStartFollowing = bEnd;
  41070. else {
  41071. let bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1), nCommonF = countCommonItemsF(
  41072. aLastPrev,
  41073. aEnd,
  41074. bLastPrev,
  41075. bEnd,
  41076. isCommon
  41077. );
  41078. division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aLastPrev, division.bCommonFollowing = bLastPrev);
  41079. let aStartFollowing = aLastPrev + nCommonF, bStartFollowing = bLastPrev + nCommonF;
  41080. d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing);
  41081. }
  41082. return !0;
  41083. }
  41084. }
  41085. }
  41086. return !1;
  41087. }, divide = (nChange, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, aIndexesR, division) => {
  41088. let bF = bStart - aStart, bR = bEnd - aEnd, aLength = aEnd - aStart, bLength = bEnd - bStart, baDeltaLength = bLength - aLength, iMaxF = aLength, iMaxR = aLength;
  41089. if (aIndexesF[0] = aStart - 1, aIndexesR[0] = aEnd, baDeltaLength % 2 === 0) {
  41090. let dMin = (nChange || baDeltaLength) / 2, dMax = (aLength + bLength) / 2;
  41091. for (let d = 1; d <= dMax; d += 1)
  41092. if (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d < dMin)
  41093. iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
  41094. else if (
  41095. // If a reverse path overlaps a forward path in the same diagonal,
  41096. // return a division of the index intervals at the middle change.
  41097. extendOverlappablePathsR(
  41098. d,
  41099. aStart,
  41100. aEnd,
  41101. bStart,
  41102. bEnd,
  41103. isCommon,
  41104. aIndexesF,
  41105. iMaxF,
  41106. aIndexesR,
  41107. iMaxR,
  41108. division
  41109. )
  41110. )
  41111. return;
  41112. } else {
  41113. let dMin = ((nChange || baDeltaLength) + 1) / 2, dMax = (aLength + bLength + 1) / 2, d = 1;
  41114. for (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d += 1; d <= dMax; d += 1)
  41115. if (iMaxR = extendPathsR(
  41116. d - 1,
  41117. aStart,
  41118. bStart,
  41119. bR,
  41120. isCommon,
  41121. aIndexesR,
  41122. iMaxR
  41123. ), d < dMin)
  41124. iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
  41125. else if (
  41126. // If a forward path overlaps a reverse path in the same diagonal,
  41127. // return a division of the index intervals at the middle change.
  41128. extendOverlappablePathsF(
  41129. d,
  41130. aStart,
  41131. aEnd,
  41132. bStart,
  41133. bEnd,
  41134. isCommon,
  41135. aIndexesF,
  41136. iMaxF,
  41137. aIndexesR,
  41138. iMaxR,
  41139. division
  41140. )
  41141. )
  41142. return;
  41143. }
  41144. throw new Error(
  41145. `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`
  41146. );
  41147. }, findSubsequences = (nChange, aStart, aEnd, bStart, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division) => {
  41148. if (bEnd - bStart < aEnd - aStart) {
  41149. if (transposed = !transposed, transposed && callbacks.length === 1) {
  41150. let { foundSubsequence: foundSubsequence2, isCommon: isCommon2 } = callbacks[0];
  41151. callbacks[1] = {
  41152. foundSubsequence: (nCommon, bCommon, aCommon) => {
  41153. foundSubsequence2(nCommon, aCommon, bCommon);
  41154. },
  41155. isCommon: (bIndex, aIndex) => isCommon2(aIndex, bIndex)
  41156. };
  41157. }
  41158. let tStart = aStart, tEnd = aEnd;
  41159. aStart = bStart, aEnd = bEnd, bStart = tStart, bEnd = tEnd;
  41160. }
  41161. let { foundSubsequence, isCommon } = callbacks[transposed ? 1 : 0];
  41162. divide(
  41163. nChange,
  41164. aStart,
  41165. aEnd,
  41166. bStart,
  41167. bEnd,
  41168. isCommon,
  41169. aIndexesF,
  41170. aIndexesR,
  41171. division
  41172. );
  41173. let {
  41174. nChangePreceding,
  41175. aEndPreceding,
  41176. bEndPreceding,
  41177. nCommonPreceding,
  41178. aCommonPreceding,
  41179. bCommonPreceding,
  41180. nCommonFollowing,
  41181. aCommonFollowing,
  41182. bCommonFollowing,
  41183. nChangeFollowing,
  41184. aStartFollowing,
  41185. bStartFollowing
  41186. } = division;
  41187. aStart < aEndPreceding && bStart < bEndPreceding && findSubsequences(
  41188. nChangePreceding,
  41189. aStart,
  41190. aEndPreceding,
  41191. bStart,
  41192. bEndPreceding,
  41193. transposed,
  41194. callbacks,
  41195. aIndexesF,
  41196. aIndexesR,
  41197. division
  41198. ), nCommonPreceding !== 0 && foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding), nCommonFollowing !== 0 && foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing), aStartFollowing < aEnd && bStartFollowing < bEnd && findSubsequences(
  41199. nChangeFollowing,
  41200. aStartFollowing,
  41201. aEnd,
  41202. bStartFollowing,
  41203. bEnd,
  41204. transposed,
  41205. callbacks,
  41206. aIndexesF,
  41207. aIndexesR,
  41208. division
  41209. );
  41210. }, validateLength = (name, arg) => {
  41211. if (typeof arg != "number")
  41212. throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);
  41213. if (!Number.isSafeInteger(arg))
  41214. throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);
  41215. if (arg < 0)
  41216. throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`);
  41217. }, validateCallback = (name, arg) => {
  41218. let type5 = typeof arg;
  41219. if (type5 !== "function")
  41220. throw new TypeError(`${pkg}: ${name} typeof ${type5} is not a function`);
  41221. };
  41222. function diffSequence(aLength, bLength, isCommon, foundSubsequence) {
  41223. validateLength("aLength", aLength), validateLength("bLength", bLength), validateCallback("isCommon", isCommon), validateCallback("foundSubsequence", foundSubsequence);
  41224. let nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon);
  41225. if (nCommonF !== 0 && foundSubsequence(nCommonF, 0, 0), aLength !== nCommonF || bLength !== nCommonF) {
  41226. let aStart = nCommonF, bStart = nCommonF, nCommonR = countCommonItemsR(
  41227. aStart,
  41228. aLength - 1,
  41229. bStart,
  41230. bLength - 1,
  41231. isCommon
  41232. ), aEnd = aLength - nCommonR, bEnd = bLength - nCommonR, nCommonFR = nCommonF + nCommonR;
  41233. aLength !== nCommonFR && bLength !== nCommonFR && findSubsequences(
  41234. 0,
  41235. aStart,
  41236. aEnd,
  41237. bStart,
  41238. bEnd,
  41239. !1,
  41240. [
  41241. {
  41242. foundSubsequence,
  41243. isCommon
  41244. }
  41245. ],
  41246. [NOT_YET_SET],
  41247. [NOT_YET_SET],
  41248. {
  41249. aCommonFollowing: NOT_YET_SET,
  41250. aCommonPreceding: NOT_YET_SET,
  41251. aEndPreceding: NOT_YET_SET,
  41252. aStartFollowing: NOT_YET_SET,
  41253. bCommonFollowing: NOT_YET_SET,
  41254. bCommonPreceding: NOT_YET_SET,
  41255. bEndPreceding: NOT_YET_SET,
  41256. bStartFollowing: NOT_YET_SET,
  41257. nChangeFollowing: NOT_YET_SET,
  41258. nChangePreceding: NOT_YET_SET,
  41259. nCommonFollowing: NOT_YET_SET,
  41260. nCommonPreceding: NOT_YET_SET
  41261. }
  41262. ), nCommonR !== 0 && foundSubsequence(nCommonR, aEnd, bEnd);
  41263. }
  41264. }
  41265. return build;
  41266. }
  41267. var buildExports = requireBuild(), diffSequences = getDefaultExportFromCjs2(buildExports);
  41268. function formatTrailingSpaces(line2, trailingSpaceFormatter) {
  41269. return line2.replace(/\s+$/, (match3) => trailingSpaceFormatter(match3));
  41270. }
  41271. function printDiffLine(line2, isFirstOrLast, color2, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) {
  41272. return line2.length !== 0 ? color2(`${indicator} ${formatTrailingSpaces(line2, trailingSpaceFormatter)}`) : indicator !== " " ? color2(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color2(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
  41273. }
  41274. function printDeleteLine(line2, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
  41275. return printDiffLine(line2, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
  41276. }
  41277. function printInsertLine(line2, isFirstOrLast, { bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
  41278. return printDiffLine(line2, isFirstOrLast, bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
  41279. }
  41280. function printCommonLine(line2, isFirstOrLast, { commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
  41281. return printDiffLine(line2, isFirstOrLast, commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
  41282. }
  41283. function createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) {
  41284. return patchColor(`@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`);
  41285. }
  41286. function joinAlignedDiffsNoExpand(diffs, options) {
  41287. let iLength = diffs.length, nContextLines = options.contextLines, nContextLines2 = nContextLines + nContextLines, jLength = iLength, hasExcessAtStartOrEnd = !1, nExcessesBetweenChanges = 0, i = 0;
  41288. for (; i !== iLength; ) {
  41289. let iStart = i;
  41290. for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; )
  41291. i += 1;
  41292. if (iStart !== i)
  41293. if (iStart === 0)
  41294. i > nContextLines && (jLength -= i - nContextLines, hasExcessAtStartOrEnd = !0);
  41295. else if (i === iLength) {
  41296. let n = i - iStart;
  41297. n > nContextLines && (jLength -= n - nContextLines, hasExcessAtStartOrEnd = !0);
  41298. } else {
  41299. let n = i - iStart;
  41300. n > nContextLines2 && (jLength -= n - nContextLines2, nExcessesBetweenChanges += 1);
  41301. }
  41302. for (; i !== iLength && diffs[i][0] !== DIFF_EQUAL; )
  41303. i += 1;
  41304. }
  41305. let hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd;
  41306. nExcessesBetweenChanges !== 0 ? jLength += nExcessesBetweenChanges + 1 : hasExcessAtStartOrEnd && (jLength += 1);
  41307. let jLast = jLength - 1, lines = [], jPatchMark = 0;
  41308. hasPatch && lines.push("");
  41309. let aStart = 0, bStart = 0, aEnd = 0, bEnd = 0, pushCommonLine = (line2) => {
  41310. let j = lines.length;
  41311. lines.push(printCommonLine(line2, j === 0 || j === jLast, options)), aEnd += 1, bEnd += 1;
  41312. }, pushDeleteLine = (line2) => {
  41313. let j = lines.length;
  41314. lines.push(printDeleteLine(line2, j === 0 || j === jLast, options)), aEnd += 1;
  41315. }, pushInsertLine = (line2) => {
  41316. let j = lines.length;
  41317. lines.push(printInsertLine(line2, j === 0 || j === jLast, options)), bEnd += 1;
  41318. };
  41319. for (i = 0; i !== iLength; ) {
  41320. let iStart = i;
  41321. for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; )
  41322. i += 1;
  41323. if (iStart !== i)
  41324. if (iStart === 0) {
  41325. i > nContextLines && (iStart = i - nContextLines, aStart = iStart, bStart = iStart, aEnd = aStart, bEnd = bStart);
  41326. for (let iCommon = iStart; iCommon !== i; iCommon += 1)
  41327. pushCommonLine(diffs[iCommon][1]);
  41328. } else if (i === iLength) {
  41329. let iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;
  41330. for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
  41331. pushCommonLine(diffs[iCommon][1]);
  41332. } else {
  41333. let nCommon = i - iStart;
  41334. if (nCommon > nContextLines2) {
  41335. let iEnd = iStart + nContextLines;
  41336. for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
  41337. pushCommonLine(diffs[iCommon][1]);
  41338. lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options), jPatchMark = lines.length, lines.push("");
  41339. let nOmit = nCommon - nContextLines2;
  41340. aStart = aEnd + nOmit, bStart = bEnd + nOmit, aEnd = aStart, bEnd = bStart;
  41341. for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1)
  41342. pushCommonLine(diffs[iCommon][1]);
  41343. } else
  41344. for (let iCommon = iStart; iCommon !== i; iCommon += 1)
  41345. pushCommonLine(diffs[iCommon][1]);
  41346. }
  41347. for (; i !== iLength && diffs[i][0] === DIFF_DELETE; )
  41348. pushDeleteLine(diffs[i][1]), i += 1;
  41349. for (; i !== iLength && diffs[i][0] === DIFF_INSERT; )
  41350. pushInsertLine(diffs[i][1]), i += 1;
  41351. }
  41352. return hasPatch && (lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options)), lines.join(`
  41353. `);
  41354. }
  41355. function joinAlignedDiffsExpand(diffs, options) {
  41356. return diffs.map((diff2, i, diffs2) => {
  41357. let line2 = diff2[1], isFirstOrLast = i === 0 || i === diffs2.length - 1;
  41358. switch (diff2[0]) {
  41359. case DIFF_DELETE:
  41360. return printDeleteLine(line2, isFirstOrLast, options);
  41361. case DIFF_INSERT:
  41362. return printInsertLine(line2, isFirstOrLast, options);
  41363. default:
  41364. return printCommonLine(line2, isFirstOrLast, options);
  41365. }
  41366. }).join(`
  41367. `);
  41368. }
  41369. var noColor = (string) => string, DIFF_CONTEXT_DEFAULT = 5, DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;
  41370. function getDefaultOptions() {
  41371. return {
  41372. aAnnotation: "Expected",
  41373. aColor: s.green,
  41374. aIndicator: "-",
  41375. bAnnotation: "Received",
  41376. bColor: s.red,
  41377. bIndicator: "+",
  41378. changeColor: s.inverse,
  41379. changeLineTrailingSpaceColor: noColor,
  41380. commonColor: s.dim,
  41381. commonIndicator: " ",
  41382. commonLineTrailingSpaceColor: noColor,
  41383. compareKeys: void 0,
  41384. contextLines: DIFF_CONTEXT_DEFAULT,
  41385. emptyFirstOrLastLinePlaceholder: "",
  41386. expand: !1,
  41387. includeChangeCounts: !1,
  41388. omitAnnotationLines: !1,
  41389. patchColor: s.yellow,
  41390. printBasicPrototype: !1,
  41391. truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,
  41392. truncateAnnotation: "... Diff result is truncated",
  41393. truncateAnnotationColor: noColor
  41394. };
  41395. }
  41396. function getCompareKeys(compareKeys) {
  41397. return compareKeys && typeof compareKeys == "function" ? compareKeys : void 0;
  41398. }
  41399. function getContextLines(contextLines) {
  41400. return typeof contextLines == "number" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT;
  41401. }
  41402. function normalizeDiffOptions(options = {}) {
  41403. return {
  41404. ...getDefaultOptions(),
  41405. ...options,
  41406. compareKeys: getCompareKeys(options.compareKeys),
  41407. contextLines: getContextLines(options.contextLines)
  41408. };
  41409. }
  41410. function isEmptyString(lines) {
  41411. return lines.length === 1 && lines[0].length === 0;
  41412. }
  41413. function countChanges(diffs) {
  41414. let a3 = 0, b = 0;
  41415. return diffs.forEach((diff2) => {
  41416. switch (diff2[0]) {
  41417. case DIFF_DELETE:
  41418. a3 += 1;
  41419. break;
  41420. case DIFF_INSERT:
  41421. b += 1;
  41422. break;
  41423. }
  41424. }), {
  41425. a: a3,
  41426. b
  41427. };
  41428. }
  41429. function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {
  41430. if (omitAnnotationLines)
  41431. return "";
  41432. let aRest = "", bRest = "";
  41433. if (includeChangeCounts) {
  41434. let aCount = String(changeCounts.a), bCount = String(changeCounts.b), baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length, aAnnotationPadding = " ".repeat(Math.max(0, baAnnotationLengthDiff)), bAnnotationPadding = " ".repeat(Math.max(0, -baAnnotationLengthDiff)), baCountLengthDiff = bCount.length - aCount.length, aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff)), bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff));
  41435. aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`, bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
  41436. }
  41437. let a3 = `${aIndicator} ${aAnnotation}${aRest}`, b = `${bIndicator} ${bAnnotation}${bRest}`;
  41438. return `${aColor(a3)}
  41439. ${bColor(b)}
  41440. `;
  41441. }
  41442. function printDiffLines(diffs, truncated, options) {
  41443. return printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options)) + (truncated ? options.truncateAnnotationColor(`
  41444. ${options.truncateAnnotation}`) : "");
  41445. }
  41446. function diffLinesUnified(aLines, bLines, options) {
  41447. let normalizedOptions = normalizeDiffOptions(options), [diffs, truncated] = diffLinesRaw(isEmptyString(aLines) ? [] : aLines, isEmptyString(bLines) ? [] : bLines, normalizedOptions);
  41448. return printDiffLines(diffs, truncated, normalizedOptions);
  41449. }
  41450. function diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) {
  41451. if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare) && (aLinesDisplay = [], aLinesCompare = []), isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare) && (bLinesDisplay = [], bLinesCompare = []), aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length)
  41452. return diffLinesUnified(aLinesDisplay, bLinesDisplay, options);
  41453. let [diffs, truncated] = diffLinesRaw(aLinesCompare, bLinesCompare, options), aIndex = 0, bIndex = 0;
  41454. return diffs.forEach((diff2) => {
  41455. switch (diff2[0]) {
  41456. case DIFF_DELETE:
  41457. diff2[1] = aLinesDisplay[aIndex], aIndex += 1;
  41458. break;
  41459. case DIFF_INSERT:
  41460. diff2[1] = bLinesDisplay[bIndex], bIndex += 1;
  41461. break;
  41462. default:
  41463. diff2[1] = bLinesDisplay[bIndex], aIndex += 1, bIndex += 1;
  41464. }
  41465. }), printDiffLines(diffs, truncated, normalizeDiffOptions(options));
  41466. }
  41467. function diffLinesRaw(aLines, bLines, options) {
  41468. let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength = truncate3 ? Math.min(aLines.length, truncateThreshold) : aLines.length, bLength = truncate3 ? Math.min(bLines.length, truncateThreshold) : bLines.length, truncated = aLength !== aLines.length || bLength !== bLines.length, isCommon = (aIndex2, bIndex2) => aLines[aIndex2] === bLines[bIndex2], diffs = [], aIndex = 0, bIndex = 0;
  41469. for (diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => {
  41470. for (; aIndex !== aCommon; aIndex += 1)
  41471. diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));
  41472. for (; bIndex !== bCommon; bIndex += 1)
  41473. diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
  41474. for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1)
  41475. diffs.push(new Diff(DIFF_EQUAL, bLines[bIndex]));
  41476. }); aIndex !== aLength; aIndex += 1)
  41477. diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));
  41478. for (; bIndex !== bLength; bIndex += 1)
  41479. diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
  41480. return [diffs, truncated];
  41481. }
  41482. function getType3(value) {
  41483. if (value === void 0)
  41484. return "undefined";
  41485. if (value === null)
  41486. return "null";
  41487. if (Array.isArray(value))
  41488. return "array";
  41489. if (typeof value == "boolean")
  41490. return "boolean";
  41491. if (typeof value == "function")
  41492. return "function";
  41493. if (typeof value == "number")
  41494. return "number";
  41495. if (typeof value == "string")
  41496. return "string";
  41497. if (typeof value == "bigint")
  41498. return "bigint";
  41499. if (typeof value == "object") {
  41500. if (value != null) {
  41501. if (value.constructor === RegExp)
  41502. return "regexp";
  41503. if (value.constructor === Map)
  41504. return "map";
  41505. if (value.constructor === Set)
  41506. return "set";
  41507. if (value.constructor === Date)
  41508. return "date";
  41509. }
  41510. return "object";
  41511. } else if (typeof value == "symbol")
  41512. return "symbol";
  41513. throw new Error(`value of unknown type: ${value}`);
  41514. }
  41515. function getNewLineSymbol(string) {
  41516. return string.includes(`\r
  41517. `) ? `\r
  41518. ` : `
  41519. `;
  41520. }
  41521. function diffStrings(a3, b, options) {
  41522. let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength = a3.length, bLength = b.length;
  41523. if (truncate3) {
  41524. let aMultipleLines = a3.includes(`
  41525. `), bMultipleLines = b.includes(`
  41526. `), aNewLineSymbol = getNewLineSymbol(a3), bNewLineSymbol = getNewLineSymbol(b), _a4 = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
  41527. ` : a3, _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
  41528. ` : b;
  41529. aLength = _a4.length, bLength = _b.length;
  41530. }
  41531. let truncated = aLength !== a3.length || bLength !== b.length, isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b[bIndex2], aIndex = 0, bIndex = 0, diffs = [];
  41532. return diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => {
  41533. aIndex !== aCommon && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex, aCommon))), bIndex !== bCommon && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon))), aIndex = aCommon + nCommon, bIndex = bCommon + nCommon, diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));
  41534. }), aIndex !== aLength && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex))), bIndex !== bLength && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex))), [diffs, truncated];
  41535. }
  41536. function concatenateRelevantDiffs(op, diffs, changeColor) {
  41537. return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), "");
  41538. }
  41539. var ChangeBuffer = class {
  41540. op;
  41541. line;
  41542. lines;
  41543. changeColor;
  41544. constructor(op, changeColor) {
  41545. this.op = op, this.line = [], this.lines = [], this.changeColor = changeColor;
  41546. }
  41547. pushSubstring(substring) {
  41548. this.pushDiff(new Diff(this.op, substring));
  41549. }
  41550. pushLine() {
  41551. this.lines.push(this.line.length !== 1 ? new Diff(this.op, concatenateRelevantDiffs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] : new Diff(this.op, this.line[0][1])), this.line.length = 0;
  41552. }
  41553. isLineEmpty() {
  41554. return this.line.length === 0;
  41555. }
  41556. // Minor input to buffer.
  41557. pushDiff(diff2) {
  41558. this.line.push(diff2);
  41559. }
  41560. // Main input to buffer.
  41561. align(diff2) {
  41562. let string = diff2[1];
  41563. if (string.includes(`
  41564. `)) {
  41565. let substrings = string.split(`
  41566. `), iLast = substrings.length - 1;
  41567. substrings.forEach((substring, i) => {
  41568. i < iLast ? (this.pushSubstring(substring), this.pushLine()) : substring.length !== 0 && this.pushSubstring(substring);
  41569. });
  41570. } else
  41571. this.pushDiff(diff2);
  41572. }
  41573. // Output from buffer.
  41574. moveLinesTo(lines) {
  41575. this.isLineEmpty() || this.pushLine(), lines.push(...this.lines), this.lines.length = 0;
  41576. }
  41577. }, CommonBuffer = class {
  41578. deleteBuffer;
  41579. insertBuffer;
  41580. lines;
  41581. constructor(deleteBuffer, insertBuffer) {
  41582. this.deleteBuffer = deleteBuffer, this.insertBuffer = insertBuffer, this.lines = [];
  41583. }
  41584. pushDiffCommonLine(diff2) {
  41585. this.lines.push(diff2);
  41586. }
  41587. pushDiffChangeLines(diff2) {
  41588. let isDiffEmpty = diff2[1].length === 0;
  41589. (!isDiffEmpty || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(diff2), (!isDiffEmpty || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(diff2);
  41590. }
  41591. flushChangeLines() {
  41592. this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines);
  41593. }
  41594. // Input to buffer.
  41595. align(diff2) {
  41596. let op = diff2[0], string = diff2[1];
  41597. if (string.includes(`
  41598. `)) {
  41599. let substrings = string.split(`
  41600. `), iLast = substrings.length - 1;
  41601. substrings.forEach((substring, i) => {
  41602. if (i === 0) {
  41603. let subdiff = new Diff(op, substring);
  41604. this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(subdiff)) : (this.pushDiffChangeLines(subdiff), this.flushChangeLines());
  41605. } else i < iLast ? this.pushDiffCommonLine(new Diff(op, substring)) : substring.length !== 0 && this.pushDiffChangeLines(new Diff(op, substring));
  41606. });
  41607. } else
  41608. this.pushDiffChangeLines(diff2);
  41609. }
  41610. // Output from buffer.
  41611. getLines() {
  41612. return this.flushChangeLines(), this.lines;
  41613. }
  41614. };
  41615. function getAlignedDiffs(diffs, changeColor) {
  41616. let deleteBuffer = new ChangeBuffer(DIFF_DELETE, changeColor), insertBuffer = new ChangeBuffer(DIFF_INSERT, changeColor), commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer);
  41617. return diffs.forEach((diff2) => {
  41618. switch (diff2[0]) {
  41619. case DIFF_DELETE:
  41620. deleteBuffer.align(diff2);
  41621. break;
  41622. case DIFF_INSERT:
  41623. insertBuffer.align(diff2);
  41624. break;
  41625. default:
  41626. commonBuffer.align(diff2);
  41627. }
  41628. }), commonBuffer.getLines();
  41629. }
  41630. function hasCommonDiff(diffs, isMultiline) {
  41631. if (isMultiline) {
  41632. let iLast = diffs.length - 1;
  41633. return diffs.some((diff2, i) => diff2[0] === DIFF_EQUAL && (i !== iLast || diff2[1] !== `
  41634. `));
  41635. }
  41636. return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
  41637. }
  41638. function diffStringsUnified(a3, b, options) {
  41639. if (a3 !== b && a3.length !== 0 && b.length !== 0) {
  41640. let isMultiline = a3.includes(`
  41641. `) || b.includes(`
  41642. `), [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3}
  41643. ` : a3, isMultiline ? `${b}
  41644. ` : b, !0, options);
  41645. if (hasCommonDiff(diffs, isMultiline)) {
  41646. let optionsNormalized = normalizeDiffOptions(options), lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
  41647. return printDiffLines(lines, truncated, optionsNormalized);
  41648. }
  41649. }
  41650. return diffLinesUnified(a3.split(`
  41651. `), b.split(`
  41652. `), options);
  41653. }
  41654. function diffStringsRaw(a3, b, cleanup, options) {
  41655. let [diffs, truncated] = diffStrings(a3, b, options);
  41656. return cleanup && diff_cleanupSemantic(diffs), [diffs, truncated];
  41657. }
  41658. function getCommonMessage(message, options) {
  41659. let { commonColor } = normalizeDiffOptions(options);
  41660. return commonColor(message);
  41661. }
  41662. var { AsymmetricMatcher: AsymmetricMatcher2, DOMCollection: DOMCollection2, DOMElement: DOMElement2, Immutable: Immutable2, ReactElement: ReactElement2, ReactTestComponent: ReactTestComponent2 } = plugins, PLUGINS2 = [
  41663. ReactTestComponent2,
  41664. ReactElement2,
  41665. DOMElement2,
  41666. DOMCollection2,
  41667. Immutable2,
  41668. AsymmetricMatcher2,
  41669. plugins.Error
  41670. ], FORMAT_OPTIONS = {
  41671. maxDepth: 20,
  41672. plugins: PLUGINS2
  41673. }, FALLBACK_FORMAT_OPTIONS = {
  41674. callToJSON: !1,
  41675. maxDepth: 8,
  41676. plugins: PLUGINS2
  41677. };
  41678. function diff(a3, b, options) {
  41679. if (Object.is(a3, b))
  41680. return "";
  41681. let aType = getType3(a3), expectedType = aType, omitDifference = !1;
  41682. if (aType === "object" && typeof a3.asymmetricMatch == "function") {
  41683. if (a3.$$typeof !== /* @__PURE__ */ Symbol.for("jest.asymmetricMatcher") || typeof a3.getExpectedType != "function")
  41684. return;
  41685. expectedType = a3.getExpectedType(), omitDifference = expectedType === "string";
  41686. }
  41687. if (expectedType !== getType3(b)) {
  41688. let truncate3 = function(s3) {
  41689. return s3.length <= MAX_LENGTH ? s3 : `${s3.slice(0, MAX_LENGTH)}...`;
  41690. }, { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options), formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions), MAX_LENGTH = 1e5;
  41691. aDisplay = truncate3(aDisplay), bDisplay = truncate3(bDisplay);
  41692. let aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)}
  41693. ${aDisplay}`, bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)}
  41694. ${bDisplay}`;
  41695. return `${aDiff}
  41696. ${bDiff}`;
  41697. }
  41698. if (!omitDifference)
  41699. switch (aType) {
  41700. case "string":
  41701. return diffLinesUnified(a3.split(`
  41702. `), b.split(`
  41703. `), options);
  41704. case "boolean":
  41705. case "number":
  41706. return comparePrimitive(a3, b, options);
  41707. case "map":
  41708. return compareObjects(sortMap(a3), sortMap(b), options);
  41709. case "set":
  41710. return compareObjects(sortSet(a3), sortSet(b), options);
  41711. default:
  41712. return compareObjects(a3, b, options);
  41713. }
  41714. }
  41715. function comparePrimitive(a3, b, options) {
  41716. let aFormat = format(a3, FORMAT_OPTIONS), bFormat = format(b, FORMAT_OPTIONS);
  41717. return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split(`
  41718. `), bFormat.split(`
  41719. `), options);
  41720. }
  41721. function sortMap(map2) {
  41722. return new Map(Array.from(map2.entries()).sort());
  41723. }
  41724. function sortSet(set3) {
  41725. return new Set(Array.from(set3.values()).sort());
  41726. }
  41727. function compareObjects(a3, b, options) {
  41728. let difference2, hasThrown = !1;
  41729. try {
  41730. let formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
  41731. difference2 = getObjectsDifference(a3, b, formatOptions, options);
  41732. } catch {
  41733. hasThrown = !0;
  41734. }
  41735. let noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
  41736. if (difference2 === void 0 || difference2 === noDiffMessage) {
  41737. let formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
  41738. difference2 = getObjectsDifference(a3, b, formatOptions, options), difference2 !== noDiffMessage && !hasThrown && (difference2 = `${getCommonMessage(SIMILAR_MESSAGE, options)}
  41739. ${difference2}`);
  41740. }
  41741. return difference2;
  41742. }
  41743. function getFormatOptions(formatOptions, options) {
  41744. let { compareKeys, printBasicPrototype, maxDepth } = normalizeDiffOptions(options);
  41745. return {
  41746. ...formatOptions,
  41747. compareKeys,
  41748. printBasicPrototype,
  41749. maxDepth: maxDepth ?? formatOptions.maxDepth
  41750. };
  41751. }
  41752. function getObjectsDifference(a3, b, formatOptions, options) {
  41753. let formatOptionsZeroIndent = {
  41754. ...formatOptions,
  41755. indent: 0
  41756. }, aCompare = format(a3, formatOptionsZeroIndent), bCompare = format(b, formatOptionsZeroIndent);
  41757. if (aCompare === bCompare)
  41758. return getCommonMessage(NO_DIFF_MESSAGE, options);
  41759. {
  41760. let aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions);
  41761. return diffLinesUnified2(aDisplay.split(`
  41762. `), bDisplay.split(`
  41763. `), aCompare.split(`
  41764. `), bCompare.split(`
  41765. `), options);
  41766. }
  41767. }
  41768. var MAX_DIFF_STRING_LENGTH = 2e4;
  41769. function isAsymmetricMatcher(data) {
  41770. return getType2(data) === "Object" && typeof data.asymmetricMatch == "function";
  41771. }
  41772. function isReplaceable(obj1, obj2) {
  41773. let obj1Type = getType2(obj1), obj2Type = getType2(obj2);
  41774. return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array");
  41775. }
  41776. function printDiffOrStringify(received, expected, options) {
  41777. let { aAnnotation, bAnnotation } = normalizeDiffOptions(options);
  41778. if (typeof expected == "string" && typeof received == "string" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) {
  41779. if (expected.includes(`
  41780. `) || received.includes(`
  41781. `))
  41782. return diffStringsUnified(expected, received, options);
  41783. let [diffs] = diffStringsRaw(expected, received, !0), hasCommonDiff2 = diffs.some((diff2) => diff2[0] === DIFF_EQUAL), printLabel = getLabelPrinter(aAnnotation, bAnnotation), expectedLine = printLabel(aAnnotation) + printExpected(getCommonAndChangedSubstrings(diffs, DIFF_DELETE, hasCommonDiff2)), receivedLine = printLabel(bAnnotation) + printReceived(getCommonAndChangedSubstrings(diffs, DIFF_INSERT, hasCommonDiff2));
  41784. return `${expectedLine}
  41785. ${receivedLine}`;
  41786. }
  41787. let clonedExpected = deepClone(expected, { forceWritable: !0 }), clonedReceived = deepClone(received, { forceWritable: !0 }), { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedReceived, clonedExpected);
  41788. return diff(replacedExpected, replacedActual, options);
  41789. }
  41790. function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
  41791. return actual instanceof Error && expected instanceof Error && typeof actual.cause < "u" && typeof expected.cause > "u" ? (delete actual.cause, {
  41792. replacedActual: actual,
  41793. replacedExpected: expected
  41794. }) : isReplaceable(actual, expected) ? actualReplaced.has(actual) || expectedReplaced.has(expected) ? {
  41795. replacedActual: actual,
  41796. replacedExpected: expected
  41797. } : (actualReplaced.add(actual), expectedReplaced.add(expected), getOwnProperties(expected).forEach((key) => {
  41798. let expectedValue = expected[key], actualValue = actual[key];
  41799. if (isAsymmetricMatcher(expectedValue))
  41800. expectedValue.asymmetricMatch(actualValue) && (actual[key] = expectedValue);
  41801. else if (isAsymmetricMatcher(actualValue))
  41802. actualValue.asymmetricMatch(expectedValue) && (expected[key] = actualValue);
  41803. else if (isReplaceable(actualValue, expectedValue)) {
  41804. let replaced = replaceAsymmetricMatcher(actualValue, expectedValue, actualReplaced, expectedReplaced);
  41805. actual[key] = replaced.replacedActual, expected[key] = replaced.replacedExpected;
  41806. }
  41807. }), {
  41808. replacedActual: actual,
  41809. replacedExpected: expected
  41810. }) : {
  41811. replacedActual: actual,
  41812. replacedExpected: expected
  41813. };
  41814. }
  41815. function getLabelPrinter(...strings) {
  41816. let maxLength = strings.reduce((max2, string) => string.length > max2 ? string.length : max2, 0);
  41817. return (string) => `${string}: ${" ".repeat(maxLength - string.length)}`;
  41818. }
  41819. var SPACE_SYMBOL = "\xB7";
  41820. function replaceTrailingSpaces(text) {
  41821. return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
  41822. }
  41823. function printReceived(object) {
  41824. return s.red(replaceTrailingSpaces(stringify5(object)));
  41825. }
  41826. function printExpected(value) {
  41827. return s.green(replaceTrailingSpaces(stringify5(value)));
  41828. }
  41829. function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
  41830. return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? s.inverse(diff2[1]) : diff2[1] : ""), "");
  41831. }
  41832. // ../../node_modules/@vitest/utils/dist/error.js
  41833. var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
  41834. function isImmutable(v) {
  41835. return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
  41836. }
  41837. var OBJECT_PROTO = Object.getPrototypeOf({});
  41838. function getUnserializableMessage(err) {
  41839. return err instanceof Error ? `<unserializable>: ${err.message}` : typeof err == "string" ? `<unserializable>: ${err}` : "<unserializable>";
  41840. }
  41841. function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {
  41842. if (!val || typeof val == "string")
  41843. return val;
  41844. if (val instanceof Error && "toJSON" in val && typeof val.toJSON == "function") {
  41845. let jsonValue = val.toJSON();
  41846. return jsonValue && jsonValue !== val && typeof jsonValue == "object" && (typeof val.message == "string" && safe(() => jsonValue.message ?? (jsonValue.message = val.message)), typeof val.stack == "string" && safe(() => jsonValue.stack ?? (jsonValue.stack = val.stack)), typeof val.name == "string" && safe(() => jsonValue.name ?? (jsonValue.name = val.name)), val.cause != null && safe(() => jsonValue.cause ?? (jsonValue.cause = serializeValue(val.cause, seen)))), serializeValue(jsonValue, seen);
  41847. }
  41848. if (typeof val == "function")
  41849. return `Function<${val.name || "anonymous"}>`;
  41850. if (typeof val == "symbol")
  41851. return val.toString();
  41852. if (typeof val != "object")
  41853. return val;
  41854. if (typeof Buffer < "u" && val instanceof Buffer)
  41855. return `<Buffer(${val.length}) ...>`;
  41856. if (typeof Uint8Array < "u" && val instanceof Uint8Array)
  41857. return `<Uint8Array(${val.length}) ...>`;
  41858. if (isImmutable(val))
  41859. return serializeValue(val.toJSON(), seen);
  41860. if (val instanceof Promise || val.constructor && val.constructor.prototype === "AsyncFunction")
  41861. return "Promise";
  41862. if (typeof Element < "u" && val instanceof Element)
  41863. return val.tagName;
  41864. if (typeof val.asymmetricMatch == "function")
  41865. return `${val.toString()} ${format2(val.sample)}`;
  41866. if (typeof val.toJSON == "function")
  41867. return serializeValue(val.toJSON(), seen);
  41868. if (seen.has(val))
  41869. return seen.get(val);
  41870. if (Array.isArray(val)) {
  41871. let clone3 = new Array(val.length);
  41872. return seen.set(val, clone3), val.forEach((e, i) => {
  41873. try {
  41874. clone3[i] = serializeValue(e, seen);
  41875. } catch (err) {
  41876. clone3[i] = getUnserializableMessage(err);
  41877. }
  41878. }), clone3;
  41879. } else {
  41880. let clone3 = /* @__PURE__ */ Object.create(null);
  41881. seen.set(val, clone3);
  41882. let obj = val;
  41883. for (; obj && obj !== OBJECT_PROTO; )
  41884. Object.getOwnPropertyNames(obj).forEach((key) => {
  41885. if (!(key in clone3))
  41886. try {
  41887. clone3[key] = serializeValue(val[key], seen);
  41888. } catch (err) {
  41889. delete clone3[key], clone3[key] = getUnserializableMessage(err);
  41890. }
  41891. }), obj = Object.getPrototypeOf(obj);
  41892. return clone3;
  41893. }
  41894. }
  41895. function safe(fn4) {
  41896. try {
  41897. return fn4();
  41898. } catch {
  41899. }
  41900. }
  41901. function normalizeErrorMessage(message) {
  41902. return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
  41903. }
  41904. function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) {
  41905. if (!_err || typeof _err != "object")
  41906. return { message: String(_err) };
  41907. let err = _err;
  41908. (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) && (err.diff = printDiffOrStringify(err.actual, err.expected, {
  41909. ...diffOptions,
  41910. ...err.diffOptions
  41911. })), "expected" in err && typeof err.expected != "string" && (err.expected = stringify5(err.expected, 10)), "actual" in err && typeof err.actual != "string" && (err.actual = stringify5(err.actual, 10));
  41912. try {
  41913. typeof err.message == "string" && (err.message = normalizeErrorMessage(err.message));
  41914. } catch {
  41915. }
  41916. try {
  41917. !seen.has(err) && typeof err.cause == "object" && (seen.add(err), err.cause = processError(err.cause, diffOptions, seen));
  41918. } catch {
  41919. }
  41920. try {
  41921. return serializeValue(err);
  41922. } catch (e) {
  41923. return serializeValue(new Error(`Failed to fully serialize error: ${e?.message}
  41924. Inner error message: ${err?.message}`));
  41925. }
  41926. }
  41927. // src/instrumenter/EVENTS.ts
  41928. var EVENTS = {
  41929. CALL: "storybook/instrumenter/call",
  41930. SYNC: "storybook/instrumenter/sync",
  41931. START: "storybook/instrumenter/start",
  41932. BACK: "storybook/instrumenter/back",
  41933. GOTO: "storybook/instrumenter/goto",
  41934. NEXT: "storybook/instrumenter/next",
  41935. END: "storybook/instrumenter/end"
  41936. };
  41937. // src/instrumenter/preview-api.ts
  41938. var addons3 = globalThis.__STORYBOOK_ADDONS_PREVIEW;
  41939. // src/instrumenter/instrumenter.ts
  41940. var alreadyCompletedException = new Error(
  41941. "This function ran after the play function completed. Did you forget to `await` it?"
  41942. ), isObject6 = (o) => Object.prototype.toString.call(o) === "[object Object]", isModule = (o) => Object.prototype.toString.call(o) === "[object Module]", isInstrumentable = (o) => {
  41943. if (!isObject6(o) && !isModule(o))
  41944. return !1;
  41945. if (o.constructor === void 0)
  41946. return !0;
  41947. let proto = o.constructor.prototype;
  41948. return !!isObject6(proto);
  41949. }, construct = (obj) => {
  41950. try {
  41951. return new obj.constructor();
  41952. } catch {
  41953. return {};
  41954. }
  41955. }, getInitialState = () => ({
  41956. renderPhase: "preparing",
  41957. isDebugging: !1,
  41958. isPlaying: !1,
  41959. isLocked: !1,
  41960. cursor: 0,
  41961. calls: [],
  41962. shadowCalls: [],
  41963. callRefsByResult: /* @__PURE__ */ new Map(),
  41964. chainedCallIds: /* @__PURE__ */ new Set(),
  41965. ancestors: [],
  41966. playUntil: void 0,
  41967. resolvers: {},
  41968. syncTimeout: void 0
  41969. }), getRetainedState = (state3, isDebugging = !1) => {
  41970. let calls = (isDebugging ? state3.shadowCalls : state3.calls).filter((call2) => call2.retain);
  41971. if (!calls.length)
  41972. return;
  41973. let callRefsByResult = new Map(
  41974. Array.from(state3.callRefsByResult.entries()).filter(([, ref]) => ref.retain)
  41975. );
  41976. return { cursor: calls.length, calls, callRefsByResult };
  41977. }, Instrumenter = class {
  41978. constructor() {
  41979. this.detached = !1;
  41980. this.initialized = !1;
  41981. // State is tracked per story to deal with multiple stories on the same canvas (i.e. docs mode)
  41982. this.state = {};
  41983. this.loadParentWindowState = () => {
  41984. try {
  41985. this.state = scope.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
  41986. } catch {
  41987. this.detached = !0;
  41988. }
  41989. };
  41990. this.updateParentWindowState = () => {
  41991. try {
  41992. scope.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;
  41993. } catch {
  41994. this.detached = !0;
  41995. }
  41996. };
  41997. this.loadParentWindowState();
  41998. let resetState = ({
  41999. storyId,
  42000. renderPhase,
  42001. isPlaying = !0,
  42002. isDebugging = !1
  42003. }) => {
  42004. let state3 = this.getState(storyId);
  42005. this.setState(storyId, {
  42006. ...getInitialState(),
  42007. ...getRetainedState(state3, isDebugging),
  42008. renderPhase: renderPhase || state3.renderPhase,
  42009. shadowCalls: isDebugging ? state3.shadowCalls : [],
  42010. chainedCallIds: isDebugging ? state3.chainedCallIds : /* @__PURE__ */ new Set(),
  42011. playUntil: isDebugging ? state3.playUntil : void 0,
  42012. isPlaying,
  42013. isDebugging
  42014. }), this.sync(storyId);
  42015. }, start2 = (channel) => ({ storyId, playUntil }) => {
  42016. this.getState(storyId).isDebugging || this.setState(storyId, ({ calls }) => ({
  42017. calls: [],
  42018. shadowCalls: calls.map((call2) => ({ ...call2, status: "waiting" /* WAITING */ })),
  42019. isDebugging: !0
  42020. }));
  42021. let log = this.getLog(storyId);
  42022. this.setState(storyId, ({ shadowCalls }) => {
  42023. if (playUntil || !log.length)
  42024. return { playUntil };
  42025. let firstRowIndex = shadowCalls.findIndex((call2) => call2.id === log[0].callId);
  42026. return {
  42027. playUntil: shadowCalls.slice(0, firstRowIndex).filter((call2) => call2.interceptable && !call2.ancestors?.length).slice(-1)[0]?.id
  42028. };
  42029. }), channel.emit(FORCE_REMOUNT, { storyId, isDebugging: !0 });
  42030. }, back = (channel) => ({ storyId }) => {
  42031. let log = this.getLog(storyId).filter((call2) => !call2.ancestors?.length), last2 = log.reduceRight((res, item, index4) => res >= 0 || item.status === "waiting" /* WAITING */ ? res : index4, -1);
  42032. start2(channel)({ storyId, playUntil: log[last2 - 1]?.callId });
  42033. }, goto = (channel) => ({ storyId, callId }) => {
  42034. let { calls, shadowCalls, resolvers } = this.getState(storyId), call2 = calls.find(({ id }) => id === callId), shadowCall = shadowCalls.find(({ id }) => id === callId);
  42035. if (!call2 && shadowCall && Object.values(resolvers).length > 0) {
  42036. let nextId = this.getLog(storyId).find((c) => c.status === "waiting" /* WAITING */)?.callId;
  42037. shadowCall.id !== nextId && this.setState(storyId, { playUntil: shadowCall.id }), Object.values(resolvers).forEach((resolve) => resolve());
  42038. } else
  42039. start2(channel)({ storyId, playUntil: callId });
  42040. }, next2 = (channel) => ({ storyId }) => {
  42041. let { resolvers } = this.getState(storyId);
  42042. if (Object.values(resolvers).length > 0)
  42043. Object.values(resolvers).forEach((resolve) => resolve());
  42044. else {
  42045. let nextId = this.getLog(storyId).find((c) => c.status === "waiting" /* WAITING */)?.callId;
  42046. nextId ? start2(channel)({ storyId, playUntil: nextId }) : end2({ storyId });
  42047. }
  42048. }, end2 = ({ storyId }) => {
  42049. this.setState(storyId, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(storyId).resolvers).forEach((resolve) => resolve());
  42050. }, renderPhaseChanged = ({
  42051. storyId,
  42052. newPhase
  42053. }) => {
  42054. let { isDebugging } = this.getState(storyId);
  42055. if (newPhase === "preparing" && isDebugging)
  42056. return resetState({ storyId, renderPhase: newPhase, isDebugging });
  42057. if (newPhase === "playing")
  42058. return resetState({ storyId, renderPhase: newPhase, isDebugging });
  42059. newPhase === "played" ? this.setState(storyId, {
  42060. renderPhase: newPhase,
  42061. isLocked: !1,
  42062. isPlaying: !1,
  42063. isDebugging: !1
  42064. }) : newPhase === "errored" ? this.setState(storyId, {
  42065. renderPhase: newPhase,
  42066. isLocked: !1,
  42067. isPlaying: !1
  42068. }) : newPhase === "aborted" ? this.setState(storyId, {
  42069. renderPhase: newPhase,
  42070. isLocked: !0,
  42071. isPlaying: !1
  42072. }) : this.setState(storyId, {
  42073. renderPhase: newPhase
  42074. }), this.sync(storyId);
  42075. };
  42076. addons3 && addons3.ready().then(() => {
  42077. this.channel = addons3.getChannel(), this.channel.on(FORCE_REMOUNT, resetState), this.channel.on(STORY_RENDER_PHASE_CHANGED, renderPhaseChanged), this.channel.on(SET_CURRENT_STORY, () => {
  42078. this.initialized ? this.cleanup() : this.initialized = !0;
  42079. }), this.channel.on(EVENTS.START, start2(this.channel)), this.channel.on(EVENTS.BACK, back(this.channel)), this.channel.on(EVENTS.GOTO, goto(this.channel)), this.channel.on(EVENTS.NEXT, next2(this.channel)), this.channel.on(EVENTS.END, end2);
  42080. });
  42081. }
  42082. getState(storyId) {
  42083. return this.state[storyId] || getInitialState();
  42084. }
  42085. setState(storyId, update2) {
  42086. if (storyId) {
  42087. let state3 = this.getState(storyId), patch = typeof update2 == "function" ? update2(state3) : update2;
  42088. this.state = { ...this.state, [storyId]: { ...state3, ...patch } }, this.updateParentWindowState();
  42089. }
  42090. }
  42091. cleanup() {
  42092. this.state = Object.entries(this.state).reduce(
  42093. (acc, [storyId, state3]) => {
  42094. let retainedState = getRetainedState(state3);
  42095. return retainedState && (acc[storyId] = Object.assign(getInitialState(), retainedState)), acc;
  42096. },
  42097. {}
  42098. );
  42099. let payload = { controlStates: {
  42100. detached: this.detached,
  42101. start: !1,
  42102. back: !1,
  42103. goto: !1,
  42104. next: !1,
  42105. end: !1
  42106. }, logItems: [] };
  42107. this.channel?.emit(EVENTS.SYNC, payload), this.updateParentWindowState();
  42108. }
  42109. getLog(storyId) {
  42110. let { calls, shadowCalls } = this.getState(storyId), merged = [...shadowCalls];
  42111. calls.forEach((call2, index4) => {
  42112. merged[index4] = call2;
  42113. });
  42114. let seen = /* @__PURE__ */ new Set();
  42115. return merged.reduceRight((acc, call2) => (call2.args.forEach((arg) => {
  42116. arg?.__callId__ && seen.add(arg.__callId__);
  42117. }), call2.path.forEach((node2) => {
  42118. node2.__callId__ && seen.add(node2.__callId__);
  42119. }), (call2.interceptable || call2.exception) && !seen.has(call2.id) && (acc.unshift({ callId: call2.id, status: call2.status, ancestors: call2.ancestors }), seen.add(call2.id)), acc), []);
  42120. }
  42121. // Traverses the object structure to recursively patch all function properties.
  42122. // Returns the original object, or a new object with the same constructor,
  42123. // depending on whether it should mutate.
  42124. instrument(obj, options, depth = 0) {
  42125. if (!isInstrumentable(obj))
  42126. return obj;
  42127. let { mutate = !1, path = [] } = options, keys3 = options.getKeys ? options.getKeys(obj, depth) : Object.keys(obj);
  42128. return depth += 1, keys3.reduce(
  42129. (acc, key) => {
  42130. let descriptor = getPropertyDescriptor(obj, key);
  42131. if (typeof descriptor?.get == "function") {
  42132. if (descriptor.configurable) {
  42133. let getter = () => descriptor?.get?.bind(obj)?.();
  42134. Object.defineProperty(acc, key, {
  42135. get: () => this.instrument(getter(), { ...options, path: path.concat(key) }, depth)
  42136. });
  42137. }
  42138. return acc;
  42139. }
  42140. let value = obj[key];
  42141. return typeof value != "function" ? (acc[key] = this.instrument(value, { ...options, path: path.concat(key) }, depth), acc) : "__originalFn__" in value && typeof value.__originalFn__ == "function" ? (acc[key] = value, acc) : (acc[key] = (...args) => this.track(key, value, obj, args, options), acc[key].__originalFn__ = value, Object.defineProperty(acc[key], "name", { value: key, writable: !1 }), Object.keys(value).length > 0 && Object.assign(
  42142. acc[key],
  42143. this.instrument({ ...value }, { ...options, path: path.concat(key) }, depth)
  42144. ), acc);
  42145. },
  42146. mutate ? obj : construct(obj)
  42147. );
  42148. }
  42149. // Monkey patch an object method to record calls.
  42150. // Returns a function that invokes the original function, records the invocation ("call") and
  42151. // returns the original result.
  42152. track(method, fn4, object, args, options) {
  42153. let storyId = args?.[0]?.__storyId__ || scope.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: cursor2, ancestors } = this.getState(storyId);
  42154. this.setState(storyId, { cursor: cursor2 + 1 });
  42155. let id = `${ancestors.slice(-1)[0] || storyId} [${cursor2}] ${method}`, { path = [], intercept = !1, retain = !1 } = options, interceptable = typeof intercept == "function" ? intercept(method, path) : intercept, call2 = { id, cursor: cursor2, storyId, ancestors, path, method, args, interceptable, retain }, result = (interceptable && !ancestors.length ? this.intercept : this.invoke).call(this, fn4, object, call2, options);
  42156. return this.instrument(result, { ...options, mutate: !0, path: [{ __callId__: call2.id }] });
  42157. }
  42158. intercept(fn4, object, call2, options) {
  42159. let { chainedCallIds, isDebugging, playUntil } = this.getState(call2.storyId), isChainedUpon = chainedCallIds.has(call2.id);
  42160. return !isDebugging || isChainedUpon || playUntil ? (playUntil === call2.id && this.setState(call2.storyId, { playUntil: void 0 }), this.invoke(fn4, object, call2, options)) : new Promise((resolve) => {
  42161. this.setState(call2.storyId, ({ resolvers }) => ({
  42162. isLocked: !1,
  42163. resolvers: { ...resolvers, [call2.id]: resolve }
  42164. }));
  42165. }).then(() => (this.setState(call2.storyId, (state3) => {
  42166. let { [call2.id]: _, ...resolvers } = state3.resolvers;
  42167. return { isLocked: !0, resolvers };
  42168. }), this.invoke(fn4, object, call2, options)));
  42169. }
  42170. invoke(fn4, object, call2, options) {
  42171. let { callRefsByResult, renderPhase } = this.getState(call2.storyId), maximumDepth = 25, serializeValues = (value, depth, seen) => {
  42172. if (seen.includes(value))
  42173. return "[Circular]";
  42174. if (seen = [...seen, value], depth > maximumDepth)
  42175. return "...";
  42176. if (callRefsByResult.has(value))
  42177. return callRefsByResult.get(value);
  42178. if (value instanceof Array)
  42179. return value.map((it) => serializeValues(it, ++depth, seen));
  42180. if (value instanceof Date)
  42181. return { __date__: { value: value.toISOString() } };
  42182. if (value instanceof Error) {
  42183. let { name, message, stack } = value;
  42184. return { __error__: { name, message, stack } };
  42185. }
  42186. if (value instanceof RegExp) {
  42187. let { flags, source } = value;
  42188. return { __regexp__: { flags, source } };
  42189. }
  42190. if (value instanceof scope.window?.HTMLElement) {
  42191. let { prefix: prefix4, localName, id, classList, innerText } = value, classNames = Array.from(classList);
  42192. return { __element__: { prefix: prefix4, localName, id, classNames, innerText } };
  42193. }
  42194. return typeof value == "function" ? {
  42195. __function__: { name: "getMockName" in value ? value.getMockName() : value.name }
  42196. } : typeof value == "symbol" ? { __symbol__: { description: value.description } } : typeof value == "object" && value?.constructor?.name && value?.constructor?.name !== "Object" ? { __class__: { name: value.constructor.name } } : Object.prototype.toString.call(value) === "[object Object]" ? Object.fromEntries(
  42197. Object.entries(value).map(([key, val]) => [key, serializeValues(val, ++depth, seen)])
  42198. ) : value;
  42199. }, info = {
  42200. ...call2,
  42201. args: call2.args.map((arg) => serializeValues(arg, 0, []))
  42202. };
  42203. call2.path.forEach((ref) => {
  42204. ref?.__callId__ && this.setState(call2.storyId, ({ chainedCallIds }) => ({
  42205. chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__))
  42206. }));
  42207. });
  42208. let handleException = (e) => {
  42209. if (e instanceof Error) {
  42210. let { name, message, stack, callId = call2.id } = e, {
  42211. showDiff = void 0,
  42212. diff: diff2 = void 0,
  42213. actual = void 0,
  42214. expected = void 0
  42215. } = e.name === "AssertionError" ? processError(e) : e, exception = { name, message, stack, callId, showDiff, diff: diff2, actual, expected };
  42216. if (this.update({ ...info, status: "error" /* ERROR */, exception }), this.setState(call2.storyId, (state3) => ({
  42217. callRefsByResult: new Map([
  42218. ...Array.from(state3.callRefsByResult.entries()),
  42219. [e, { __callId__: call2.id, retain: call2.retain }]
  42220. ])
  42221. })), call2.ancestors?.length)
  42222. throw Object.prototype.hasOwnProperty.call(e, "callId") || Object.defineProperty(e, "callId", { value: call2.id }), e;
  42223. }
  42224. throw e;
  42225. };
  42226. try {
  42227. if (renderPhase === "played" && !call2.retain)
  42228. throw alreadyCompletedException;
  42229. let finalArgs = (options.getArgs ? options.getArgs(call2, this.getState(call2.storyId)) : call2.args).map((arg) => typeof arg != "function" || isClass(arg) || Object.keys(arg).length ? arg : (...args) => {
  42230. let { cursor: cursor2, ancestors } = this.getState(call2.storyId);
  42231. this.setState(call2.storyId, { cursor: 0, ancestors: [...ancestors, call2.id] });
  42232. let restore = () => this.setState(call2.storyId, { cursor: cursor2, ancestors }), willRestore = !1;
  42233. try {
  42234. let res = arg(...args);
  42235. return res instanceof Promise ? (willRestore = !0, res.finally(restore)) : res;
  42236. } finally {
  42237. willRestore || restore();
  42238. }
  42239. }), result = fn4.apply(object, finalArgs);
  42240. return result && ["object", "function", "symbol"].includes(typeof result) && this.setState(call2.storyId, (state3) => ({
  42241. callRefsByResult: new Map([
  42242. ...Array.from(state3.callRefsByResult.entries()),
  42243. [result, { __callId__: call2.id, retain: call2.retain }]
  42244. ])
  42245. })), this.update({
  42246. ...info,
  42247. status: result instanceof Promise ? "active" /* ACTIVE */ : "done" /* DONE */
  42248. }), result instanceof Promise ? result.then((value) => (this.update({ ...info, status: "done" /* DONE */ }), value), handleException) : result;
  42249. } catch (e) {
  42250. return handleException(e);
  42251. }
  42252. }
  42253. // Sends the call info to the manager and synchronizes the log.
  42254. update(call2) {
  42255. this.channel?.emit(EVENTS.CALL, call2), this.setState(call2.storyId, ({ calls }) => {
  42256. let callsById = calls.concat(call2).reduce((a3, c) => Object.assign(a3, { [c.id]: c }), {});
  42257. return {
  42258. // Calls are sorted to ensure parent calls always come before calls in their callback.
  42259. calls: Object.values(callsById).sort(
  42260. (a3, b) => a3.id.localeCompare(b.id, void 0, { numeric: !0 })
  42261. )
  42262. };
  42263. }), this.sync(call2.storyId);
  42264. }
  42265. // Builds a log of interceptable calls and control states and sends it to the manager.
  42266. // Uses a 0ms debounce because this might get called many times in one tick.
  42267. sync(storyId) {
  42268. let synchronize = () => {
  42269. let { isLocked, isPlaying } = this.getState(storyId), logItems = this.getLog(storyId), pausedAt = logItems.filter(({ ancestors }) => !ancestors.length).find((item) => item.status === "waiting" /* WAITING */)?.callId, hasActive = logItems.some((item) => item.status === "active" /* ACTIVE */);
  42270. if (this.detached || isLocked || hasActive || logItems.length === 0) {
  42271. let payload2 = { controlStates: {
  42272. detached: this.detached,
  42273. start: !1,
  42274. back: !1,
  42275. goto: !1,
  42276. next: !1,
  42277. end: !1
  42278. }, logItems };
  42279. this.channel?.emit(EVENTS.SYNC, payload2);
  42280. return;
  42281. }
  42282. let hasPrevious = logItems.some(
  42283. (item) => item.status === "done" /* DONE */ || item.status === "error" /* ERROR */
  42284. ), payload = { controlStates: {
  42285. detached: this.detached,
  42286. start: hasPrevious,
  42287. back: hasPrevious,
  42288. goto: !0,
  42289. next: isPlaying,
  42290. end: isPlaying
  42291. }, logItems, pausedAt };
  42292. this.channel?.emit(EVENTS.SYNC, payload);
  42293. };
  42294. this.setState(storyId, ({ syncTimeout }) => (clearTimeout(syncTimeout), { syncTimeout: setTimeout(synchronize, 0) }));
  42295. }
  42296. };
  42297. function instrument(obj, options = {}) {
  42298. try {
  42299. let forceInstrument = !1, skipInstrument = !1;
  42300. return scope.window?.location?.search?.includes("instrument=true") ? forceInstrument = !0 : scope.window?.location?.search?.includes("instrument=false") && (skipInstrument = !0), scope.window?.parent === scope.window && !forceInstrument || skipInstrument ? obj : (scope.window && !scope.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (scope.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Instrumenter()), (scope.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(obj, options));
  42301. } catch (e) {
  42302. return once.warn(e), obj;
  42303. }
  42304. }
  42305. function getPropertyDescriptor(obj, propName) {
  42306. let target = obj;
  42307. for (; target != null; ) {
  42308. let descriptor = Object.getOwnPropertyDescriptor(target, propName);
  42309. if (descriptor)
  42310. return descriptor;
  42311. target = Object.getPrototypeOf(target);
  42312. }
  42313. }
  42314. function isClass(obj) {
  42315. if (typeof obj != "function")
  42316. return !1;
  42317. let descriptor = Object.getOwnPropertyDescriptor(obj, "prototype");
  42318. return descriptor ? !descriptor.writable : !1;
  42319. }
  42320. // ../../node_modules/chai/index.js
  42321. var __defProp3 = Object.defineProperty, __name = (target, value) => __defProp3(target, "name", { value, configurable: !0 }), __export2 = (target, all) => {
  42322. for (var name in all)
  42323. __defProp3(target, name, { get: all[name], enumerable: !0 });
  42324. }, utils_exports = {};
  42325. __export2(utils_exports, {
  42326. addChainableMethod: () => addChainableMethod,
  42327. addLengthGuard: () => addLengthGuard,
  42328. addMethod: () => addMethod,
  42329. addProperty: () => addProperty,
  42330. checkError: () => check_error_exports,
  42331. compareByInspect: () => compareByInspect,
  42332. eql: () => deep_eql_default,
  42333. expectTypes: () => expectTypes,
  42334. flag: () => flag,
  42335. getActual: () => getActual,
  42336. getMessage: () => getMessage2,
  42337. getName: () => getName,
  42338. getOperator: () => getOperator,
  42339. getOwnEnumerableProperties: () => getOwnEnumerableProperties,
  42340. getOwnEnumerablePropertySymbols: () => getOwnEnumerablePropertySymbols,
  42341. getPathInfo: () => getPathInfo,
  42342. hasProperty: () => hasProperty,
  42343. inspect: () => inspect22,
  42344. isNaN: () => isNaN22,
  42345. isNumeric: () => isNumeric,
  42346. isProxyEnabled: () => isProxyEnabled,
  42347. isRegExp: () => isRegExp22,
  42348. objDisplay: () => objDisplay,
  42349. overwriteChainableMethod: () => overwriteChainableMethod,
  42350. overwriteMethod: () => overwriteMethod,
  42351. overwriteProperty: () => overwriteProperty,
  42352. proxify: () => proxify,
  42353. test: () => test2,
  42354. transferFlags: () => transferFlags,
  42355. type: () => type
  42356. });
  42357. var check_error_exports = {};
  42358. __export2(check_error_exports, {
  42359. compatibleConstructor: () => compatibleConstructor,
  42360. compatibleInstance: () => compatibleInstance,
  42361. compatibleMessage: () => compatibleMessage,
  42362. getConstructorName: () => getConstructorName2,
  42363. getMessage: () => getMessage
  42364. });
  42365. function isErrorInstance(obj) {
  42366. return obj instanceof Error || Object.prototype.toString.call(obj) === "[object Error]";
  42367. }
  42368. __name(isErrorInstance, "isErrorInstance");
  42369. function isRegExp2(obj) {
  42370. return Object.prototype.toString.call(obj) === "[object RegExp]";
  42371. }
  42372. __name(isRegExp2, "isRegExp");
  42373. function compatibleInstance(thrown, errorLike) {
  42374. return isErrorInstance(errorLike) && thrown === errorLike;
  42375. }
  42376. __name(compatibleInstance, "compatibleInstance");
  42377. function compatibleConstructor(thrown, errorLike) {
  42378. return isErrorInstance(errorLike) ? thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor : (typeof errorLike == "object" || typeof errorLike == "function") && errorLike.prototype ? thrown.constructor === errorLike || thrown instanceof errorLike : !1;
  42379. }
  42380. __name(compatibleConstructor, "compatibleConstructor");
  42381. function compatibleMessage(thrown, errMatcher) {
  42382. let comparisonString = typeof thrown == "string" ? thrown : thrown.message;
  42383. return isRegExp2(errMatcher) ? errMatcher.test(comparisonString) : typeof errMatcher == "string" ? comparisonString.indexOf(errMatcher) !== -1 : !1;
  42384. }
  42385. __name(compatibleMessage, "compatibleMessage");
  42386. function getConstructorName2(errorLike) {
  42387. let constructorName = errorLike;
  42388. return isErrorInstance(errorLike) ? constructorName = errorLike.constructor.name : typeof errorLike == "function" && (constructorName = errorLike.name, constructorName === "" && (constructorName = new errorLike().name || constructorName)), constructorName;
  42389. }
  42390. __name(getConstructorName2, "getConstructorName");
  42391. function getMessage(errorLike) {
  42392. let msg = "";
  42393. return errorLike && errorLike.message ? msg = errorLike.message : typeof errorLike == "string" && (msg = errorLike), msg;
  42394. }
  42395. __name(getMessage, "getMessage");
  42396. function flag(obj, key, value) {
  42397. let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
  42398. if (arguments.length === 3)
  42399. flags[key] = value;
  42400. else
  42401. return flags[key];
  42402. }
  42403. __name(flag, "flag");
  42404. function test2(obj, args) {
  42405. let negate = flag(obj, "negate"), expr = args[0];
  42406. return negate ? !expr : expr;
  42407. }
  42408. __name(test2, "test");
  42409. function type(obj) {
  42410. if (typeof obj > "u")
  42411. return "undefined";
  42412. if (obj === null)
  42413. return "null";
  42414. let stringTag2 = obj[Symbol.toStringTag];
  42415. return typeof stringTag2 == "string" ? stringTag2 : Object.prototype.toString.call(obj).slice(8, -1);
  42416. }
  42417. __name(type, "type");
  42418. var canElideFrames = "captureStackTrace" in Error, _a, AssertionError = (_a = class extends Error {
  42419. message;
  42420. get name() {
  42421. return "AssertionError";
  42422. }
  42423. get ok() {
  42424. return !1;
  42425. }
  42426. constructor(message = "Unspecified AssertionError", props, ssf) {
  42427. super(message), this.message = message, canElideFrames && Error.captureStackTrace(this, ssf || _a);
  42428. for (let key in props)
  42429. key in this || (this[key] = props[key]);
  42430. }
  42431. toJSON(stack) {
  42432. return {
  42433. ...this,
  42434. name: this.name,
  42435. message: this.message,
  42436. ok: !1,
  42437. stack: stack !== !1 ? this.stack : void 0
  42438. };
  42439. }
  42440. }, __name(_a, "AssertionError"), _a);
  42441. function expectTypes(obj, types) {
  42442. let flagMsg = flag(obj, "message"), ssfi = flag(obj, "ssfi");
  42443. flagMsg = flagMsg ? flagMsg + ": " : "", obj = flag(obj, "object"), types = types.map(function(t) {
  42444. return t.toLowerCase();
  42445. }), types.sort();
  42446. let str2 = types.map(function(t, index4) {
  42447. let art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a";
  42448. return (types.length > 1 && index4 === types.length - 1 ? "or " : "") + art + " " + t;
  42449. }).join(", "), objType = type(obj).toLowerCase();
  42450. if (!types.some(function(expected) {
  42451. return objType === expected;
  42452. }))
  42453. throw new AssertionError(
  42454. flagMsg + "object tested must be " + str2 + ", but " + objType + " given",
  42455. void 0,
  42456. ssfi
  42457. );
  42458. }
  42459. __name(expectTypes, "expectTypes");
  42460. function getActual(obj, args) {
  42461. return args.length > 4 ? args[4] : obj._obj;
  42462. }
  42463. __name(getActual, "getActual");
  42464. var ansiColors2 = {
  42465. bold: ["1", "22"],
  42466. dim: ["2", "22"],
  42467. italic: ["3", "23"],
  42468. underline: ["4", "24"],
  42469. // 5 & 6 are blinking
  42470. inverse: ["7", "27"],
  42471. hidden: ["8", "28"],
  42472. strike: ["9", "29"],
  42473. // 10-20 are fonts
  42474. // 21-29 are resets for 1-9
  42475. black: ["30", "39"],
  42476. red: ["31", "39"],
  42477. green: ["32", "39"],
  42478. yellow: ["33", "39"],
  42479. blue: ["34", "39"],
  42480. magenta: ["35", "39"],
  42481. cyan: ["36", "39"],
  42482. white: ["37", "39"],
  42483. brightblack: ["30;1", "39"],
  42484. brightred: ["31;1", "39"],
  42485. brightgreen: ["32;1", "39"],
  42486. brightyellow: ["33;1", "39"],
  42487. brightblue: ["34;1", "39"],
  42488. brightmagenta: ["35;1", "39"],
  42489. brightcyan: ["36;1", "39"],
  42490. brightwhite: ["37;1", "39"],
  42491. grey: ["90", "39"]
  42492. }, styles2 = {
  42493. special: "cyan",
  42494. number: "yellow",
  42495. bigint: "yellow",
  42496. boolean: "yellow",
  42497. undefined: "grey",
  42498. null: "bold",
  42499. string: "green",
  42500. symbol: "green",
  42501. date: "magenta",
  42502. regexp: "red"
  42503. }, truncator2 = "\u2026";
  42504. function colorise2(value, styleType) {
  42505. let color2 = ansiColors2[styles2[styleType]] || ansiColors2[styleType] || "";
  42506. return color2 ? `\x1B[${color2[0]}m${String(value)}\x1B[${color2[1]}m` : String(value);
  42507. }
  42508. __name(colorise2, "colorise");
  42509. function normaliseOptions2({
  42510. showHidden = !1,
  42511. depth = 2,
  42512. colors: colors3 = !1,
  42513. customInspect = !0,
  42514. showProxy = !1,
  42515. maxArrayLength = 1 / 0,
  42516. breakLength = 1 / 0,
  42517. seen = [],
  42518. // eslint-disable-next-line no-shadow
  42519. truncate: truncate22 = 1 / 0,
  42520. stylize = String
  42521. } = {}, inspect32) {
  42522. let options = {
  42523. showHidden: !!showHidden,
  42524. depth: Number(depth),
  42525. colors: !!colors3,
  42526. customInspect: !!customInspect,
  42527. showProxy: !!showProxy,
  42528. maxArrayLength: Number(maxArrayLength),
  42529. breakLength: Number(breakLength),
  42530. truncate: Number(truncate22),
  42531. seen,
  42532. inspect: inspect32,
  42533. stylize
  42534. };
  42535. return options.colors && (options.stylize = colorise2), options;
  42536. }
  42537. __name(normaliseOptions2, "normaliseOptions");
  42538. function isHighSurrogate2(char2) {
  42539. return char2 >= "\uD800" && char2 <= "\uDBFF";
  42540. }
  42541. __name(isHighSurrogate2, "isHighSurrogate");
  42542. function truncate2(string, length2, tail2 = truncator2) {
  42543. string = String(string);
  42544. let tailLength = tail2.length, stringLength = string.length;
  42545. if (tailLength > length2 && stringLength > tailLength)
  42546. return tail2;
  42547. if (stringLength > length2 && stringLength > tailLength) {
  42548. let end2 = length2 - tailLength;
  42549. return end2 > 0 && isHighSurrogate2(string[end2 - 1]) && (end2 = end2 - 1), `${string.slice(0, end2)}${tail2}`;
  42550. }
  42551. return string;
  42552. }
  42553. __name(truncate2, "truncate");
  42554. function inspectList2(list, options, inspectItem, separator = ", ") {
  42555. inspectItem = inspectItem || options.inspect;
  42556. let size = list.length;
  42557. if (size === 0)
  42558. return "";
  42559. let originalLength = options.truncate, output = "", peek2 = "", truncated = "";
  42560. for (let i = 0; i < size; i += 1) {
  42561. let last2 = i + 1 === list.length, secondToLast = i + 2 === list.length;
  42562. truncated = `${truncator2}(${list.length - i})`;
  42563. let value = list[i];
  42564. options.truncate = originalLength - output.length - (last2 ? 0 : separator.length);
  42565. let string = peek2 || inspectItem(value, options) + (last2 ? "" : separator), nextLength = output.length + string.length, truncatedLength = nextLength + truncated.length;
  42566. if (last2 && nextLength > originalLength && output.length + truncated.length <= originalLength || !last2 && !secondToLast && truncatedLength > originalLength || (peek2 = last2 ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator), !last2 && secondToLast && truncatedLength > originalLength && nextLength + peek2.length > originalLength))
  42567. break;
  42568. if (output += string, !last2 && !secondToLast && nextLength + peek2.length >= originalLength) {
  42569. truncated = `${truncator2}(${list.length - i - 1})`;
  42570. break;
  42571. }
  42572. truncated = "";
  42573. }
  42574. return `${output}${truncated}`;
  42575. }
  42576. __name(inspectList2, "inspectList");
  42577. function quoteComplexKey2(key) {
  42578. return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
  42579. }
  42580. __name(quoteComplexKey2, "quoteComplexKey");
  42581. function inspectProperty2([key, value], options) {
  42582. return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey2(key) : typeof key != "number" && (key = `[${options.inspect(key, options)}]`), options.truncate -= key.length, value = options.inspect(value, options), `${key}: ${value}`;
  42583. }
  42584. __name(inspectProperty2, "inspectProperty");
  42585. function inspectArray2(array, options) {
  42586. let nonIndexProperties = Object.keys(array).slice(array.length);
  42587. if (!array.length && !nonIndexProperties.length)
  42588. return "[]";
  42589. options.truncate -= 4;
  42590. let listContents = inspectList2(array, options);
  42591. options.truncate -= listContents.length;
  42592. let propertyContents = "";
  42593. return nonIndexProperties.length && (propertyContents = inspectList2(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty2)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  42594. }
  42595. __name(inspectArray2, "inspectArray");
  42596. var getArrayName2 = __name((array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name, "getArrayName");
  42597. function inspectTypedArray2(array, options) {
  42598. let name = getArrayName2(array);
  42599. options.truncate -= name.length + 4;
  42600. let nonIndexProperties = Object.keys(array).slice(array.length);
  42601. if (!array.length && !nonIndexProperties.length)
  42602. return `${name}[]`;
  42603. let output = "";
  42604. for (let i = 0; i < array.length; i++) {
  42605. let string = `${options.stylize(truncate2(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
  42606. if (options.truncate -= string.length, array[i] !== array.length && options.truncate <= 3) {
  42607. output += `${truncator2}(${array.length - array[i] + 1})`;
  42608. break;
  42609. }
  42610. output += string;
  42611. }
  42612. let propertyContents = "";
  42613. return nonIndexProperties.length && (propertyContents = inspectList2(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty2)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  42614. }
  42615. __name(inspectTypedArray2, "inspectTypedArray");
  42616. function inspectDate2(dateObject, options) {
  42617. let stringRepresentation = dateObject.toJSON();
  42618. if (stringRepresentation === null)
  42619. return "Invalid Date";
  42620. let split = stringRepresentation.split("T"), date = split[0];
  42621. return options.stylize(`${date}T${truncate2(split[1], options.truncate - date.length - 1)}`, "date");
  42622. }
  42623. __name(inspectDate2, "inspectDate");
  42624. function inspectFunction2(func, options) {
  42625. let functionType = func[Symbol.toStringTag] || "Function", name = func.name;
  42626. return name ? options.stylize(`[${functionType} ${truncate2(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special");
  42627. }
  42628. __name(inspectFunction2, "inspectFunction");
  42629. function inspectMapEntry2([key, value], options) {
  42630. return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`;
  42631. }
  42632. __name(inspectMapEntry2, "inspectMapEntry");
  42633. function mapToEntries2(map2) {
  42634. let entries = [];
  42635. return map2.forEach((value, key) => {
  42636. entries.push([key, value]);
  42637. }), entries;
  42638. }
  42639. __name(mapToEntries2, "mapToEntries");
  42640. function inspectMap2(map2, options) {
  42641. return map2.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList2(mapToEntries2(map2), options, inspectMapEntry2)} }`);
  42642. }
  42643. __name(inspectMap2, "inspectMap");
  42644. var isNaN3 = Number.isNaN || ((i) => i !== i);
  42645. function inspectNumber2(number, options) {
  42646. return isNaN3(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate2(String(number), options.truncate), "number");
  42647. }
  42648. __name(inspectNumber2, "inspectNumber");
  42649. function inspectBigInt2(number, options) {
  42650. let nums = truncate2(number.toString(), options.truncate - 1);
  42651. return nums !== truncator2 && (nums += "n"), options.stylize(nums, "bigint");
  42652. }
  42653. __name(inspectBigInt2, "inspectBigInt");
  42654. function inspectRegExp2(value, options) {
  42655. let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
  42656. return options.stylize(`/${truncate2(source, sourceLength)}/${flags}`, "regexp");
  42657. }
  42658. __name(inspectRegExp2, "inspectRegExp");
  42659. function arrayFromSet2(set22) {
  42660. let values = [];
  42661. return set22.forEach((value) => {
  42662. values.push(value);
  42663. }), values;
  42664. }
  42665. __name(arrayFromSet2, "arrayFromSet");
  42666. function inspectSet2(set22, options) {
  42667. return set22.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList2(arrayFromSet2(set22), options)} }`);
  42668. }
  42669. __name(inspectSet2, "inspectSet");
  42670. var stringEscapeChars2 = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters2 = {
  42671. "\b": "\\b",
  42672. " ": "\\t",
  42673. "\n": "\\n",
  42674. "\f": "\\f",
  42675. "\r": "\\r",
  42676. "'": "\\'",
  42677. "\\": "\\\\"
  42678. }, hex2 = 16, unicodeLength2 = 4;
  42679. function escape2(char2) {
  42680. return escapeCharacters2[char2] || `\\u${`0000${char2.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`;
  42681. }
  42682. __name(escape2, "escape");
  42683. function inspectString2(string, options) {
  42684. return stringEscapeChars2.test(string) && (string = string.replace(stringEscapeChars2, escape2)), options.stylize(`'${truncate2(string, options.truncate - 2)}'`, "string");
  42685. }
  42686. __name(inspectString2, "inspectString");
  42687. function inspectSymbol2(value) {
  42688. return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString();
  42689. }
  42690. __name(inspectSymbol2, "inspectSymbol");
  42691. var getPromiseValue2 = __name(() => "Promise{\u2026}", "getPromiseValue"), promise_default2 = getPromiseValue2;
  42692. function inspectObject3(object, options) {
  42693. let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
  42694. if (properties.length === 0 && symbols.length === 0)
  42695. return "{}";
  42696. if (options.truncate -= 4, options.seen = options.seen || [], options.seen.includes(object))
  42697. return "[Circular]";
  42698. options.seen.push(object);
  42699. let propertyContents = inspectList2(properties.map((key) => [key, object[key]]), options, inspectProperty2), symbolContents = inspectList2(symbols.map((key) => [key, object[key]]), options, inspectProperty2);
  42700. options.seen.pop();
  42701. let sep = "";
  42702. return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`;
  42703. }
  42704. __name(inspectObject3, "inspectObject");
  42705. var toStringTag2 = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
  42706. function inspectClass2(value, options) {
  42707. let name = "";
  42708. return toStringTag2 && toStringTag2 in value && (name = value[toStringTag2]), name = name || value.constructor.name, (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, `${name}${inspectObject3(value, options)}`;
  42709. }
  42710. __name(inspectClass2, "inspectClass");
  42711. function inspectArguments2(args, options) {
  42712. return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList2(args, options)} ]`);
  42713. }
  42714. __name(inspectArguments2, "inspectArguments");
  42715. var errorKeys2 = [
  42716. "stack",
  42717. "line",
  42718. "column",
  42719. "name",
  42720. "message",
  42721. "fileName",
  42722. "lineNumber",
  42723. "columnNumber",
  42724. "number",
  42725. "description",
  42726. "cause"
  42727. ];
  42728. function inspectObject22(error, options) {
  42729. let properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys2.indexOf(key) === -1), name = error.name;
  42730. options.truncate -= name.length;
  42731. let message = "";
  42732. if (typeof error.message == "string" ? message = truncate2(error.message, options.truncate) : properties.unshift("message"), message = message ? `: ${message}` : "", options.truncate -= message.length + 5, options.seen = options.seen || [], options.seen.includes(error))
  42733. return "[Circular]";
  42734. options.seen.push(error);
  42735. let propertyContents = inspectList2(properties.map((key) => [key, error[key]]), options, inspectProperty2);
  42736. return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
  42737. }
  42738. __name(inspectObject22, "inspectObject");
  42739. function inspectAttribute2([key, value], options) {
  42740. return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`;
  42741. }
  42742. __name(inspectAttribute2, "inspectAttribute");
  42743. function inspectNodeCollection2(collection, options) {
  42744. return inspectList2(collection, options, inspectNode2, `
  42745. `);
  42746. }
  42747. __name(inspectNodeCollection2, "inspectNodeCollection");
  42748. function inspectNode2(node2, options) {
  42749. switch (node2.nodeType) {
  42750. case 1:
  42751. return inspectHTML2(node2, options);
  42752. case 3:
  42753. return options.inspect(node2.data, options);
  42754. default:
  42755. return options.inspect(node2, options);
  42756. }
  42757. }
  42758. __name(inspectNode2, "inspectNode");
  42759. function inspectHTML2(element, options) {
  42760. let properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head2 = options.stylize(`<${name}`, "special"), headClose = options.stylize(">", "special"), tail2 = options.stylize(`</${name}>`, "special");
  42761. options.truncate -= name.length * 2 + 5;
  42762. let propertyContents = "";
  42763. properties.length > 0 && (propertyContents += " ", propertyContents += inspectList2(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute2, " ")), options.truncate -= propertyContents.length;
  42764. let truncate22 = options.truncate, children = inspectNodeCollection2(element.children, options);
  42765. return children && children.length > truncate22 && (children = `${truncator2}(${element.children.length})`), `${head2}${propertyContents}${headClose}${children}${tail2}`;
  42766. }
  42767. __name(inspectHTML2, "inspectHTML");
  42768. var symbolsSupported2 = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect2 = symbolsSupported2 ? /* @__PURE__ */ Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect2 = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), constructorMap2 = /* @__PURE__ */ new WeakMap(), stringTagMap2 = {}, baseTypesMap2 = {
  42769. undefined: __name((value, options) => options.stylize("undefined", "undefined"), "undefined"),
  42770. null: __name((value, options) => options.stylize("null", "null"), "null"),
  42771. boolean: __name((value, options) => options.stylize(String(value), "boolean"), "boolean"),
  42772. Boolean: __name((value, options) => options.stylize(String(value), "boolean"), "Boolean"),
  42773. number: inspectNumber2,
  42774. Number: inspectNumber2,
  42775. bigint: inspectBigInt2,
  42776. BigInt: inspectBigInt2,
  42777. string: inspectString2,
  42778. String: inspectString2,
  42779. function: inspectFunction2,
  42780. Function: inspectFunction2,
  42781. symbol: inspectSymbol2,
  42782. // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
  42783. Symbol: inspectSymbol2,
  42784. Array: inspectArray2,
  42785. Date: inspectDate2,
  42786. Map: inspectMap2,
  42787. Set: inspectSet2,
  42788. RegExp: inspectRegExp2,
  42789. Promise: promise_default2,
  42790. // WeakSet, WeakMap are totally opaque to us
  42791. WeakSet: __name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
  42792. WeakMap: __name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
  42793. Arguments: inspectArguments2,
  42794. Int8Array: inspectTypedArray2,
  42795. Uint8Array: inspectTypedArray2,
  42796. Uint8ClampedArray: inspectTypedArray2,
  42797. Int16Array: inspectTypedArray2,
  42798. Uint16Array: inspectTypedArray2,
  42799. Int32Array: inspectTypedArray2,
  42800. Uint32Array: inspectTypedArray2,
  42801. Float32Array: inspectTypedArray2,
  42802. Float64Array: inspectTypedArray2,
  42803. Generator: __name(() => "", "Generator"),
  42804. DataView: __name(() => "", "DataView"),
  42805. ArrayBuffer: __name(() => "", "ArrayBuffer"),
  42806. Error: inspectObject22,
  42807. HTMLCollection: inspectNodeCollection2,
  42808. NodeList: inspectNodeCollection2
  42809. }, inspectCustom2 = __name((value, options, type32) => chaiInspect2 in value && typeof value[chaiInspect2] == "function" ? value[chaiInspect2](options) : nodeInspect2 in value && typeof value[nodeInspect2] == "function" ? value[nodeInspect2](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap2.has(value.constructor) ? constructorMap2.get(value.constructor)(value, options) : stringTagMap2[type32] ? stringTagMap2[type32](value, options) : "", "inspectCustom"), toString4 = Object.prototype.toString;
  42810. function inspect4(value, opts = {}) {
  42811. let options = normaliseOptions2(opts, inspect4), { customInspect } = options, type32 = value === null ? "null" : typeof value;
  42812. if (type32 === "object" && (type32 = toString4.call(value).slice(8, -1)), type32 in baseTypesMap2)
  42813. return baseTypesMap2[type32](value, options);
  42814. if (customInspect && value) {
  42815. let output = inspectCustom2(value, options, type32);
  42816. if (output)
  42817. return typeof output == "string" ? output : inspect4(output, options);
  42818. }
  42819. let proto = value ? Object.getPrototypeOf(value) : !1;
  42820. return proto === Object.prototype || proto === null ? inspectObject3(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML2(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass2(value, options) : inspectObject3(value, options) : value === Object(value) ? inspectObject3(value, options) : options.stylize(String(value), type32);
  42821. }
  42822. __name(inspect4, "inspect");
  42823. var config2 = {
  42824. /**
  42825. * ### config.includeStack
  42826. *
  42827. * User configurable property, influences whether stack trace
  42828. * is included in Assertion error message. Default of false
  42829. * suppresses stack trace in the error message.
  42830. *
  42831. * chai.config.includeStack = true; // enable stack on error
  42832. *
  42833. * @param {boolean}
  42834. * @public
  42835. */
  42836. includeStack: !1,
  42837. /**
  42838. * ### config.showDiff
  42839. *
  42840. * User configurable property, influences whether or not
  42841. * the `showDiff` flag should be included in the thrown
  42842. * AssertionErrors. `false` will always be `false`; `true`
  42843. * will be true when the assertion has requested a diff
  42844. * be shown.
  42845. *
  42846. * @param {boolean}
  42847. * @public
  42848. */
  42849. showDiff: !0,
  42850. /**
  42851. * ### config.truncateThreshold
  42852. *
  42853. * User configurable property, sets length threshold for actual and
  42854. * expected values in assertion errors. If this threshold is exceeded, for
  42855. * example for large data structures, the value is replaced with something
  42856. * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.
  42857. *
  42858. * Set it to zero if you want to disable truncating altogether.
  42859. *
  42860. * This is especially userful when doing assertions on arrays: having this
  42861. * set to a reasonable large value makes the failure messages readily
  42862. * inspectable.
  42863. *
  42864. * chai.config.truncateThreshold = 0; // disable truncating
  42865. *
  42866. * @param {number}
  42867. * @public
  42868. */
  42869. truncateThreshold: 40,
  42870. /**
  42871. * ### config.useProxy
  42872. *
  42873. * User configurable property, defines if chai will use a Proxy to throw
  42874. * an error when a non-existent property is read, which protects users
  42875. * from typos when using property-based assertions.
  42876. *
  42877. * Set it to false if you want to disable this feature.
  42878. *
  42879. * chai.config.useProxy = false; // disable use of Proxy
  42880. *
  42881. * This feature is automatically disabled regardless of this config value
  42882. * in environments that don't support proxies.
  42883. *
  42884. * @param {boolean}
  42885. * @public
  42886. */
  42887. useProxy: !0,
  42888. /**
  42889. * ### config.proxyExcludedKeys
  42890. *
  42891. * User configurable property, defines which properties should be ignored
  42892. * instead of throwing an error if they do not exist on the assertion.
  42893. * This is only applied if the environment Chai is running in supports proxies and
  42894. * if the `useProxy` configuration setting is enabled.
  42895. * By default, `then` and `inspect` will not throw an error if they do not exist on the
  42896. * assertion object because the `.inspect` property is read by `util.inspect` (for example, when
  42897. * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.
  42898. *
  42899. * // By default these keys will not throw an error if they do not exist on the assertion object
  42900. * chai.config.proxyExcludedKeys = ['then', 'inspect'];
  42901. *
  42902. * @param {Array}
  42903. * @public
  42904. */
  42905. proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"],
  42906. /**
  42907. * ### config.deepEqual
  42908. *
  42909. * User configurable property, defines which a custom function to use for deepEqual
  42910. * comparisons.
  42911. * By default, the function used is the one from the `deep-eql` package without custom comparator.
  42912. *
  42913. * // use a custom comparator
  42914. * chai.config.deepEqual = (expected, actual) => {
  42915. * return chai.util.eql(expected, actual, {
  42916. * comparator: (expected, actual) => {
  42917. * // for non number comparison, use the default behavior
  42918. * if(typeof expected !== 'number') return null;
  42919. * // allow a difference of 10 between compared numbers
  42920. * return typeof actual === 'number' && Math.abs(actual - expected) < 10
  42921. * }
  42922. * })
  42923. * };
  42924. *
  42925. * @param {Function}
  42926. * @public
  42927. */
  42928. deepEqual: null
  42929. };
  42930. function inspect22(obj, showHidden, depth, colors3) {
  42931. let options = {
  42932. colors: colors3,
  42933. depth: typeof depth > "u" ? 2 : depth,
  42934. showHidden,
  42935. truncate: config2.truncateThreshold ? config2.truncateThreshold : 1 / 0
  42936. };
  42937. return inspect4(obj, options);
  42938. }
  42939. __name(inspect22, "inspect");
  42940. function objDisplay(obj) {
  42941. let str2 = inspect22(obj), type32 = Object.prototype.toString.call(obj);
  42942. if (config2.truncateThreshold && str2.length >= config2.truncateThreshold) {
  42943. if (type32 === "[object Function]")
  42944. return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
  42945. if (type32 === "[object Array]")
  42946. return "[ Array(" + obj.length + ") ]";
  42947. if (type32 === "[object Object]") {
  42948. let keys3 = Object.keys(obj);
  42949. return "{ Object (" + (keys3.length > 2 ? keys3.splice(0, 2).join(", ") + ", ..." : keys3.join(", ")) + ") }";
  42950. } else
  42951. return str2;
  42952. } else
  42953. return str2;
  42954. }
  42955. __name(objDisplay, "objDisplay");
  42956. function getMessage2(obj, args) {
  42957. let negate = flag(obj, "negate"), val = flag(obj, "object"), expected = args[3], actual = getActual(obj, args), msg = negate ? args[2] : args[1], flagMsg = flag(obj, "message");
  42958. return typeof msg == "function" && (msg = msg()), msg = msg || "", msg = msg.replace(/#\{this\}/g, function() {
  42959. return objDisplay(val);
  42960. }).replace(/#\{act\}/g, function() {
  42961. return objDisplay(actual);
  42962. }).replace(/#\{exp\}/g, function() {
  42963. return objDisplay(expected);
  42964. }), flagMsg ? flagMsg + ": " + msg : msg;
  42965. }
  42966. __name(getMessage2, "getMessage");
  42967. function transferFlags(assertion, object, includeAll) {
  42968. let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
  42969. object.__flags || (object.__flags = /* @__PURE__ */ Object.create(null)), includeAll = arguments.length === 3 ? includeAll : !0;
  42970. for (let flag3 in flags)
  42971. (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") && (object.__flags[flag3] = flags[flag3]);
  42972. }
  42973. __name(transferFlags, "transferFlags");
  42974. function type2(obj) {
  42975. if (typeof obj > "u")
  42976. return "undefined";
  42977. if (obj === null)
  42978. return "null";
  42979. let stringTag2 = obj[Symbol.toStringTag];
  42980. return typeof stringTag2 == "string" ? stringTag2 : Object.prototype.toString.call(obj).slice(8, -1);
  42981. }
  42982. __name(type2, "type");
  42983. function FakeMap() {
  42984. this._key = "chai/deep-eql__" + Math.random() + Date.now();
  42985. }
  42986. __name(FakeMap, "FakeMap");
  42987. FakeMap.prototype = {
  42988. get: __name(function(key) {
  42989. return key[this._key];
  42990. }, "get"),
  42991. set: __name(function(key, value) {
  42992. Object.isExtensible(key) && Object.defineProperty(key, this._key, {
  42993. value,
  42994. configurable: !0
  42995. });
  42996. }, "set")
  42997. };
  42998. var MemoizeMap = typeof WeakMap == "function" ? WeakMap : FakeMap;
  42999. function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
  43000. if (!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand))
  43001. return null;
  43002. var leftHandMap = memoizeMap.get(leftHandOperand);
  43003. if (leftHandMap) {
  43004. var result = leftHandMap.get(rightHandOperand);
  43005. if (typeof result == "boolean")
  43006. return result;
  43007. }
  43008. return null;
  43009. }
  43010. __name(memoizeCompare, "memoizeCompare");
  43011. function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
  43012. if (!(!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand))) {
  43013. var leftHandMap = memoizeMap.get(leftHandOperand);
  43014. leftHandMap ? leftHandMap.set(rightHandOperand, result) : (leftHandMap = new MemoizeMap(), leftHandMap.set(rightHandOperand, result), memoizeMap.set(leftHandOperand, leftHandMap));
  43015. }
  43016. }
  43017. __name(memoizeSet, "memoizeSet");
  43018. var deep_eql_default = deepEqual;
  43019. function deepEqual(leftHandOperand, rightHandOperand, options) {
  43020. if (options && options.comparator)
  43021. return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
  43022. var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);
  43023. return simpleResult !== null ? simpleResult : extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
  43024. }
  43025. __name(deepEqual, "deepEqual");
  43026. function simpleEqual(leftHandOperand, rightHandOperand) {
  43027. return leftHandOperand === rightHandOperand ? leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand : leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare
  43028. rightHandOperand !== rightHandOperand ? !0 : isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand) ? !1 : null;
  43029. }
  43030. __name(simpleEqual, "simpleEqual");
  43031. function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
  43032. options = options || {}, options.memoize = options.memoize === !1 ? !1 : options.memoize || new MemoizeMap();
  43033. var comparator = options && options.comparator, memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);
  43034. if (memoizeResultLeft !== null)
  43035. return memoizeResultLeft;
  43036. var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);
  43037. if (memoizeResultRight !== null)
  43038. return memoizeResultRight;
  43039. if (comparator) {
  43040. var comparatorResult = comparator(leftHandOperand, rightHandOperand);
  43041. if (comparatorResult === !1 || comparatorResult === !0)
  43042. return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult), comparatorResult;
  43043. var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);
  43044. if (simpleResult !== null)
  43045. return simpleResult;
  43046. }
  43047. var leftHandType = type2(leftHandOperand);
  43048. if (leftHandType !== type2(rightHandOperand))
  43049. return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, !1), !1;
  43050. memoizeSet(leftHandOperand, rightHandOperand, options.memoize, !0);
  43051. var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);
  43052. return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result), result;
  43053. }
  43054. __name(extensiveDeepEqual, "extensiveDeepEqual");
  43055. function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {
  43056. switch (leftHandType) {
  43057. case "String":
  43058. case "Number":
  43059. case "Boolean":
  43060. case "Date":
  43061. return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());
  43062. case "Promise":
  43063. case "Symbol":
  43064. case "function":
  43065. case "WeakMap":
  43066. case "WeakSet":
  43067. return leftHandOperand === rightHandOperand;
  43068. case "Error":
  43069. return keysEqual(leftHandOperand, rightHandOperand, ["name", "message", "code"], options);
  43070. case "Arguments":
  43071. case "Int8Array":
  43072. case "Uint8Array":
  43073. case "Uint8ClampedArray":
  43074. case "Int16Array":
  43075. case "Uint16Array":
  43076. case "Int32Array":
  43077. case "Uint32Array":
  43078. case "Float32Array":
  43079. case "Float64Array":
  43080. case "Array":
  43081. return iterableEqual(leftHandOperand, rightHandOperand, options);
  43082. case "RegExp":
  43083. return regexpEqual(leftHandOperand, rightHandOperand);
  43084. case "Generator":
  43085. return generatorEqual(leftHandOperand, rightHandOperand, options);
  43086. case "DataView":
  43087. return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);
  43088. case "ArrayBuffer":
  43089. return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);
  43090. case "Set":
  43091. return entriesEqual(leftHandOperand, rightHandOperand, options);
  43092. case "Map":
  43093. return entriesEqual(leftHandOperand, rightHandOperand, options);
  43094. case "Temporal.PlainDate":
  43095. case "Temporal.PlainTime":
  43096. case "Temporal.PlainDateTime":
  43097. case "Temporal.Instant":
  43098. case "Temporal.ZonedDateTime":
  43099. case "Temporal.PlainYearMonth":
  43100. case "Temporal.PlainMonthDay":
  43101. return leftHandOperand.equals(rightHandOperand);
  43102. case "Temporal.Duration":
  43103. return leftHandOperand.total("nanoseconds") === rightHandOperand.total("nanoseconds");
  43104. case "Temporal.TimeZone":
  43105. case "Temporal.Calendar":
  43106. return leftHandOperand.toString() === rightHandOperand.toString();
  43107. default:
  43108. return objectEqual(leftHandOperand, rightHandOperand, options);
  43109. }
  43110. }
  43111. __name(extensiveDeepEqualByType, "extensiveDeepEqualByType");
  43112. function regexpEqual(leftHandOperand, rightHandOperand) {
  43113. return leftHandOperand.toString() === rightHandOperand.toString();
  43114. }
  43115. __name(regexpEqual, "regexpEqual");
  43116. function entriesEqual(leftHandOperand, rightHandOperand, options) {
  43117. try {
  43118. if (leftHandOperand.size !== rightHandOperand.size)
  43119. return !1;
  43120. if (leftHandOperand.size === 0)
  43121. return !0;
  43122. } catch {
  43123. return !1;
  43124. }
  43125. var leftHandItems = [], rightHandItems = [];
  43126. return leftHandOperand.forEach(__name(function(key, value) {
  43127. leftHandItems.push([key, value]);
  43128. }, "gatherEntries")), rightHandOperand.forEach(__name(function(key, value) {
  43129. rightHandItems.push([key, value]);
  43130. }, "gatherEntries")), iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);
  43131. }
  43132. __name(entriesEqual, "entriesEqual");
  43133. function iterableEqual(leftHandOperand, rightHandOperand, options) {
  43134. var length2 = leftHandOperand.length;
  43135. if (length2 !== rightHandOperand.length)
  43136. return !1;
  43137. if (length2 === 0)
  43138. return !0;
  43139. for (var index4 = -1; ++index4 < length2; )
  43140. if (deepEqual(leftHandOperand[index4], rightHandOperand[index4], options) === !1)
  43141. return !1;
  43142. return !0;
  43143. }
  43144. __name(iterableEqual, "iterableEqual");
  43145. function generatorEqual(leftHandOperand, rightHandOperand, options) {
  43146. return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);
  43147. }
  43148. __name(generatorEqual, "generatorEqual");
  43149. function hasIteratorFunction(target) {
  43150. return typeof Symbol < "u" && typeof target == "object" && typeof Symbol.iterator < "u" && typeof target[Symbol.iterator] == "function";
  43151. }
  43152. __name(hasIteratorFunction, "hasIteratorFunction");
  43153. function getIteratorEntries(target) {
  43154. if (hasIteratorFunction(target))
  43155. try {
  43156. return getGeneratorEntries(target[Symbol.iterator]());
  43157. } catch {
  43158. return [];
  43159. }
  43160. return [];
  43161. }
  43162. __name(getIteratorEntries, "getIteratorEntries");
  43163. function getGeneratorEntries(generator) {
  43164. for (var generatorResult = generator.next(), accumulator = [generatorResult.value]; generatorResult.done === !1; )
  43165. generatorResult = generator.next(), accumulator.push(generatorResult.value);
  43166. return accumulator;
  43167. }
  43168. __name(getGeneratorEntries, "getGeneratorEntries");
  43169. function getEnumerableKeys(target) {
  43170. var keys3 = [];
  43171. for (var key in target)
  43172. keys3.push(key);
  43173. return keys3;
  43174. }
  43175. __name(getEnumerableKeys, "getEnumerableKeys");
  43176. function getEnumerableSymbols(target) {
  43177. for (var keys3 = [], allKeys = Object.getOwnPropertySymbols(target), i = 0; i < allKeys.length; i += 1) {
  43178. var key = allKeys[i];
  43179. Object.getOwnPropertyDescriptor(target, key).enumerable && keys3.push(key);
  43180. }
  43181. return keys3;
  43182. }
  43183. __name(getEnumerableSymbols, "getEnumerableSymbols");
  43184. function keysEqual(leftHandOperand, rightHandOperand, keys3, options) {
  43185. var length2 = keys3.length;
  43186. if (length2 === 0)
  43187. return !0;
  43188. for (var i = 0; i < length2; i += 1)
  43189. if (deepEqual(leftHandOperand[keys3[i]], rightHandOperand[keys3[i]], options) === !1)
  43190. return !1;
  43191. return !0;
  43192. }
  43193. __name(keysEqual, "keysEqual");
  43194. function objectEqual(leftHandOperand, rightHandOperand, options) {
  43195. var leftHandKeys = getEnumerableKeys(leftHandOperand), rightHandKeys = getEnumerableKeys(rightHandOperand), leftHandSymbols = getEnumerableSymbols(leftHandOperand), rightHandSymbols = getEnumerableSymbols(rightHandOperand);
  43196. if (leftHandKeys = leftHandKeys.concat(leftHandSymbols), rightHandKeys = rightHandKeys.concat(rightHandSymbols), leftHandKeys.length && leftHandKeys.length === rightHandKeys.length)
  43197. return iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === !1 ? !1 : keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);
  43198. var leftHandEntries = getIteratorEntries(leftHandOperand), rightHandEntries = getIteratorEntries(rightHandOperand);
  43199. return leftHandEntries.length && leftHandEntries.length === rightHandEntries.length ? (leftHandEntries.sort(), rightHandEntries.sort(), iterableEqual(leftHandEntries, rightHandEntries, options)) : leftHandKeys.length === 0 && leftHandEntries.length === 0 && rightHandKeys.length === 0 && rightHandEntries.length === 0;
  43200. }
  43201. __name(objectEqual, "objectEqual");
  43202. function isPrimitive2(value) {
  43203. return value === null || typeof value != "object";
  43204. }
  43205. __name(isPrimitive2, "isPrimitive");
  43206. function mapSymbols(arr) {
  43207. return arr.map(__name(function(entry) {
  43208. return typeof entry == "symbol" ? entry.toString() : entry;
  43209. }, "mapSymbol"));
  43210. }
  43211. __name(mapSymbols, "mapSymbols");
  43212. function hasProperty(obj, name) {
  43213. return typeof obj > "u" || obj === null ? !1 : name in Object(obj);
  43214. }
  43215. __name(hasProperty, "hasProperty");
  43216. function parsePath(path) {
  43217. return path.replace(/([^\\])\[/g, "$1.[").match(/(\\\.|[^.]+?)+/g).map((value) => {
  43218. if (value === "constructor" || value === "__proto__" || value === "prototype")
  43219. return {};
  43220. let mArr = /^\[(\d+)\]$/.exec(value), parsed = null;
  43221. return mArr ? parsed = { i: parseFloat(mArr[1]) } : parsed = { p: value.replace(/\\([.[\]])/g, "$1") }, parsed;
  43222. });
  43223. }
  43224. __name(parsePath, "parsePath");
  43225. function internalGetPathValue(obj, parsed, pathDepth) {
  43226. let temporaryValue = obj, res = null;
  43227. pathDepth = typeof pathDepth > "u" ? parsed.length : pathDepth;
  43228. for (let i = 0; i < pathDepth; i++) {
  43229. let part = parsed[i];
  43230. temporaryValue && (typeof part.p > "u" ? temporaryValue = temporaryValue[part.i] : temporaryValue = temporaryValue[part.p], i === pathDepth - 1 && (res = temporaryValue));
  43231. }
  43232. return res;
  43233. }
  43234. __name(internalGetPathValue, "internalGetPathValue");
  43235. function getPathInfo(obj, path) {
  43236. let parsed = parsePath(path), last2 = parsed[parsed.length - 1], info = {
  43237. parent: parsed.length > 1 ? internalGetPathValue(obj, parsed, parsed.length - 1) : obj,
  43238. name: last2.p || last2.i,
  43239. value: internalGetPathValue(obj, parsed)
  43240. };
  43241. return info.exists = hasProperty(info.parent, info.name), info;
  43242. }
  43243. __name(getPathInfo, "getPathInfo");
  43244. var _a2, Assertion = (_a2 = class {
  43245. /** @type {{}} */
  43246. __flags = {};
  43247. /**
  43248. * Creates object for chaining.
  43249. * `Assertion` objects contain metadata in the form of flags. Three flags can
  43250. * be assigned during instantiation by passing arguments to this constructor:
  43251. *
  43252. * - `object`: This flag contains the target of the assertion. For example, in
  43253. * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
  43254. * contain `numKittens` so that the `equal` assertion can reference it when
  43255. * needed.
  43256. *
  43257. * - `message`: This flag contains an optional custom error message to be
  43258. * prepended to the error message that's generated by the assertion when it
  43259. * fails.
  43260. *
  43261. * - `ssfi`: This flag stands for "start stack function indicator". It
  43262. * contains a function reference that serves as the starting point for
  43263. * removing frames from the stack trace of the error that's created by the
  43264. * assertion when it fails. The goal is to provide a cleaner stack trace to
  43265. * end users by removing Chai's internal functions. Note that it only works
  43266. * in environments that support `Error.captureStackTrace`, and only when
  43267. * `Chai.config.includeStack` hasn't been set to `false`.
  43268. *
  43269. * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
  43270. * should retain its current value, even as assertions are chained off of
  43271. * this object. This is usually set to `true` when creating a new assertion
  43272. * from within another assertion. It's also temporarily set to `true` before
  43273. * an overwritten assertion gets called by the overwriting assertion.
  43274. *
  43275. * - `eql`: This flag contains the deepEqual function to be used by the assertion.
  43276. *
  43277. * @param {unknown} obj target of the assertion
  43278. * @param {string} [msg] (optional) custom error message
  43279. * @param {Function} [ssfi] (optional) starting point for removing stack frames
  43280. * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked
  43281. */
  43282. constructor(obj, msg, ssfi, lockSsfi) {
  43283. return flag(this, "ssfi", ssfi || _a2), flag(this, "lockSsfi", lockSsfi), flag(this, "object", obj), flag(this, "message", msg), flag(this, "eql", config2.deepEqual || deep_eql_default), proxify(this);
  43284. }
  43285. /** @returns {boolean} */
  43286. static get includeStack() {
  43287. return console.warn(
  43288. "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
  43289. ), config2.includeStack;
  43290. }
  43291. /** @param {boolean} value */
  43292. static set includeStack(value) {
  43293. console.warn(
  43294. "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
  43295. ), config2.includeStack = value;
  43296. }
  43297. /** @returns {boolean} */
  43298. static get showDiff() {
  43299. return console.warn(
  43300. "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
  43301. ), config2.showDiff;
  43302. }
  43303. /** @param {boolean} value */
  43304. static set showDiff(value) {
  43305. console.warn(
  43306. "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
  43307. ), config2.showDiff = value;
  43308. }
  43309. /**
  43310. * @param {string} name
  43311. * @param {Function} fn
  43312. */
  43313. static addProperty(name, fn4) {
  43314. addProperty(this.prototype, name, fn4);
  43315. }
  43316. /**
  43317. * @param {string} name
  43318. * @param {Function} fn
  43319. */
  43320. static addMethod(name, fn4) {
  43321. addMethod(this.prototype, name, fn4);
  43322. }
  43323. /**
  43324. * @param {string} name
  43325. * @param {Function} fn
  43326. * @param {Function} chainingBehavior
  43327. */
  43328. static addChainableMethod(name, fn4, chainingBehavior) {
  43329. addChainableMethod(this.prototype, name, fn4, chainingBehavior);
  43330. }
  43331. /**
  43332. * @param {string} name
  43333. * @param {Function} fn
  43334. */
  43335. static overwriteProperty(name, fn4) {
  43336. overwriteProperty(this.prototype, name, fn4);
  43337. }
  43338. /**
  43339. * @param {string} name
  43340. * @param {Function} fn
  43341. */
  43342. static overwriteMethod(name, fn4) {
  43343. overwriteMethod(this.prototype, name, fn4);
  43344. }
  43345. /**
  43346. * @param {string} name
  43347. * @param {Function} fn
  43348. * @param {Function} chainingBehavior
  43349. */
  43350. static overwriteChainableMethod(name, fn4, chainingBehavior) {
  43351. overwriteChainableMethod(this.prototype, name, fn4, chainingBehavior);
  43352. }
  43353. /**
  43354. * ### .assert(expression, message, negateMessage, expected, actual, showDiff)
  43355. *
  43356. * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
  43357. *
  43358. * @name assert
  43359. * @param {unknown} _expr to be tested
  43360. * @param {string | Function} msg or function that returns message to display if expression fails
  43361. * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails
  43362. * @param {unknown} expected value (remember to check for negation)
  43363. * @param {unknown} _actual (optional) will default to `this.obj`
  43364. * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails
  43365. * @returns {void}
  43366. */
  43367. assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {
  43368. let ok = test2(this, arguments);
  43369. if (showDiff !== !1 && (showDiff = !0), expected === void 0 && _actual === void 0 && (showDiff = !1), config2.showDiff !== !0 && (showDiff = !1), !ok) {
  43370. msg = getMessage2(this, arguments);
  43371. let assertionErrorObjectProperties = {
  43372. actual: getActual(this, arguments),
  43373. expected,
  43374. showDiff
  43375. }, operator = getOperator(this, arguments);
  43376. throw operator && (assertionErrorObjectProperties.operator = operator), new AssertionError(
  43377. msg,
  43378. assertionErrorObjectProperties,
  43379. // @ts-expect-error Not sure what to do about these types yet
  43380. config2.includeStack ? this.assert : flag(this, "ssfi")
  43381. );
  43382. }
  43383. }
  43384. /**
  43385. * Quick reference to stored `actual` value for plugin developers.
  43386. *
  43387. * @returns {unknown}
  43388. */
  43389. get _obj() {
  43390. return flag(this, "object");
  43391. }
  43392. /**
  43393. * Quick reference to stored `actual` value for plugin developers.
  43394. *
  43395. * @param {unknown} val
  43396. */
  43397. set _obj(val) {
  43398. flag(this, "object", val);
  43399. }
  43400. }, __name(_a2, "Assertion"), _a2);
  43401. function isProxyEnabled() {
  43402. return config2.useProxy && typeof Proxy < "u" && typeof Reflect < "u";
  43403. }
  43404. __name(isProxyEnabled, "isProxyEnabled");
  43405. function addProperty(ctx, name, getter) {
  43406. getter = getter === void 0 ? function() {
  43407. } : getter, Object.defineProperty(ctx, name, {
  43408. get: __name(function propertyGetter() {
  43409. !isProxyEnabled() && !flag(this, "lockSsfi") && flag(this, "ssfi", propertyGetter);
  43410. let result = getter.call(this);
  43411. if (result !== void 0) return result;
  43412. let newAssertion = new Assertion();
  43413. return transferFlags(this, newAssertion), newAssertion;
  43414. }, "propertyGetter"),
  43415. configurable: !0
  43416. });
  43417. }
  43418. __name(addProperty, "addProperty");
  43419. var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
  43420. }, "length");
  43421. function addLengthGuard(fn4, assertionName, isChainable) {
  43422. return fnLengthDesc.configurable && Object.defineProperty(fn4, "length", {
  43423. get: __name(function() {
  43424. throw Error(
  43425. isChainable ? "Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.' : "Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".'
  43426. );
  43427. }, "get")
  43428. }), fn4;
  43429. }
  43430. __name(addLengthGuard, "addLengthGuard");
  43431. function getProperties(object) {
  43432. let result = Object.getOwnPropertyNames(object);
  43433. function addProperty2(property) {
  43434. result.indexOf(property) === -1 && result.push(property);
  43435. }
  43436. __name(addProperty2, "addProperty");
  43437. let proto = Object.getPrototypeOf(object);
  43438. for (; proto !== null; )
  43439. Object.getOwnPropertyNames(proto).forEach(addProperty2), proto = Object.getPrototypeOf(proto);
  43440. return result;
  43441. }
  43442. __name(getProperties, "getProperties");
  43443. var builtins = ["__flags", "__methods", "_obj", "assert"];
  43444. function proxify(obj, nonChainableMethodName) {
  43445. return isProxyEnabled() ? new Proxy(obj, {
  43446. get: __name(function proxyGetter(target, property) {
  43447. if (typeof property == "string" && config2.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
  43448. if (nonChainableMethodName)
  43449. throw Error(
  43450. "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".'
  43451. );
  43452. let suggestion = null, suggestionDistance = 4;
  43453. throw getProperties(target).forEach(function(prop) {
  43454. if (
  43455. // we actually mean to check `Object.prototype` here
  43456. // eslint-disable-next-line no-prototype-builtins
  43457. !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1
  43458. ) {
  43459. let dist = stringDistanceCapped(property, prop, suggestionDistance);
  43460. dist < suggestionDistance && (suggestion = prop, suggestionDistance = dist);
  43461. }
  43462. }), Error(
  43463. suggestion !== null ? "Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?' : "Invalid Chai property: " + property
  43464. );
  43465. }
  43466. return builtins.indexOf(property) === -1 && !flag(target, "lockSsfi") && flag(target, "ssfi", proxyGetter), Reflect.get(target, property);
  43467. }, "proxyGetter")
  43468. }) : obj;
  43469. }
  43470. __name(proxify, "proxify");
  43471. function stringDistanceCapped(strA, strB, cap) {
  43472. if (Math.abs(strA.length - strB.length) >= cap)
  43473. return cap;
  43474. let memo2 = [];
  43475. for (let i = 0; i <= strA.length; i++)
  43476. memo2[i] = Array(strB.length + 1).fill(0), memo2[i][0] = i;
  43477. for (let j = 0; j < strB.length; j++)
  43478. memo2[0][j] = j;
  43479. for (let i = 1; i <= strA.length; i++) {
  43480. let ch = strA.charCodeAt(i - 1);
  43481. for (let j = 1; j <= strB.length; j++) {
  43482. if (Math.abs(i - j) >= cap) {
  43483. memo2[i][j] = cap;
  43484. continue;
  43485. }
  43486. memo2[i][j] = Math.min(
  43487. memo2[i - 1][j] + 1,
  43488. memo2[i][j - 1] + 1,
  43489. memo2[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)
  43490. );
  43491. }
  43492. }
  43493. return memo2[strA.length][strB.length];
  43494. }
  43495. __name(stringDistanceCapped, "stringDistanceCapped");
  43496. function addMethod(ctx, name, method) {
  43497. let methodWrapper = __name(function() {
  43498. flag(this, "lockSsfi") || flag(this, "ssfi", methodWrapper);
  43499. let result = method.apply(this, arguments);
  43500. if (result !== void 0) return result;
  43501. let newAssertion = new Assertion();
  43502. return transferFlags(this, newAssertion), newAssertion;
  43503. }, "methodWrapper");
  43504. addLengthGuard(methodWrapper, name, !1), ctx[name] = proxify(methodWrapper, name);
  43505. }
  43506. __name(addMethod, "addMethod");
  43507. function overwriteProperty(ctx, name, getter) {
  43508. let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = __name(function() {
  43509. }, "_super");
  43510. _get && typeof _get.get == "function" && (_super = _get.get), Object.defineProperty(ctx, name, {
  43511. get: __name(function overwritingPropertyGetter() {
  43512. !isProxyEnabled() && !flag(this, "lockSsfi") && flag(this, "ssfi", overwritingPropertyGetter);
  43513. let origLockSsfi = flag(this, "lockSsfi");
  43514. flag(this, "lockSsfi", !0);
  43515. let result = getter(_super).call(this);
  43516. if (flag(this, "lockSsfi", origLockSsfi), result !== void 0)
  43517. return result;
  43518. let newAssertion = new Assertion();
  43519. return transferFlags(this, newAssertion), newAssertion;
  43520. }, "overwritingPropertyGetter"),
  43521. configurable: !0
  43522. });
  43523. }
  43524. __name(overwriteProperty, "overwriteProperty");
  43525. function overwriteMethod(ctx, name, method) {
  43526. let _method = ctx[name], _super = __name(function() {
  43527. throw new Error(name + " is not a function");
  43528. }, "_super");
  43529. _method && typeof _method == "function" && (_super = _method);
  43530. let overwritingMethodWrapper = __name(function() {
  43531. flag(this, "lockSsfi") || flag(this, "ssfi", overwritingMethodWrapper);
  43532. let origLockSsfi = flag(this, "lockSsfi");
  43533. flag(this, "lockSsfi", !0);
  43534. let result = method(_super).apply(this, arguments);
  43535. if (flag(this, "lockSsfi", origLockSsfi), result !== void 0)
  43536. return result;
  43537. let newAssertion = new Assertion();
  43538. return transferFlags(this, newAssertion), newAssertion;
  43539. }, "overwritingMethodWrapper");
  43540. addLengthGuard(overwritingMethodWrapper, name, !1), ctx[name] = proxify(overwritingMethodWrapper, name);
  43541. }
  43542. __name(overwriteMethod, "overwriteMethod");
  43543. var canSetPrototype = typeof Object.setPrototypeOf == "function", testFn = __name(function() {
  43544. }, "testFn"), excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
  43545. let propDesc = Object.getOwnPropertyDescriptor(testFn, name);
  43546. return typeof propDesc != "object" ? !0 : !propDesc.configurable;
  43547. }), call = Function.prototype.call, apply = Function.prototype.apply;
  43548. function addChainableMethod(ctx, name, method, chainingBehavior) {
  43549. typeof chainingBehavior != "function" && (chainingBehavior = __name(function() {
  43550. }, "chainingBehavior"));
  43551. let chainableBehavior = {
  43552. method,
  43553. chainingBehavior
  43554. };
  43555. ctx.__methods || (ctx.__methods = {}), ctx.__methods[name] = chainableBehavior, Object.defineProperty(ctx, name, {
  43556. get: __name(function() {
  43557. chainableBehavior.chainingBehavior.call(this);
  43558. let chainableMethodWrapper = __name(function() {
  43559. flag(this, "lockSsfi") || flag(this, "ssfi", chainableMethodWrapper);
  43560. let result = chainableBehavior.method.apply(this, arguments);
  43561. if (result !== void 0)
  43562. return result;
  43563. let newAssertion = new Assertion();
  43564. return transferFlags(this, newAssertion), newAssertion;
  43565. }, "chainableMethodWrapper");
  43566. if (addLengthGuard(chainableMethodWrapper, name, !0), canSetPrototype) {
  43567. let prototype = Object.create(this);
  43568. prototype.call = call, prototype.apply = apply, Object.setPrototypeOf(chainableMethodWrapper, prototype);
  43569. } else
  43570. Object.getOwnPropertyNames(ctx).forEach(function(asserterName) {
  43571. if (excludeNames.indexOf(asserterName) !== -1)
  43572. return;
  43573. let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
  43574. Object.defineProperty(chainableMethodWrapper, asserterName, pd);
  43575. });
  43576. return transferFlags(this, chainableMethodWrapper), proxify(chainableMethodWrapper);
  43577. }, "chainableMethodGetter"),
  43578. configurable: !0
  43579. });
  43580. }
  43581. __name(addChainableMethod, "addChainableMethod");
  43582. function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
  43583. let chainableBehavior = ctx.__methods[name], _chainingBehavior = chainableBehavior.chainingBehavior;
  43584. chainableBehavior.chainingBehavior = __name(function() {
  43585. let result = chainingBehavior(_chainingBehavior).call(this);
  43586. if (result !== void 0)
  43587. return result;
  43588. let newAssertion = new Assertion();
  43589. return transferFlags(this, newAssertion), newAssertion;
  43590. }, "overwritingChainableMethodGetter");
  43591. let _method = chainableBehavior.method;
  43592. chainableBehavior.method = __name(function() {
  43593. let result = method(_method).apply(this, arguments);
  43594. if (result !== void 0)
  43595. return result;
  43596. let newAssertion = new Assertion();
  43597. return transferFlags(this, newAssertion), newAssertion;
  43598. }, "overwritingChainableMethodWrapper");
  43599. }
  43600. __name(overwriteChainableMethod, "overwriteChainableMethod");
  43601. function compareByInspect(a3, b) {
  43602. return inspect22(a3) < inspect22(b) ? -1 : 1;
  43603. }
  43604. __name(compareByInspect, "compareByInspect");
  43605. function getOwnEnumerablePropertySymbols(obj) {
  43606. return typeof Object.getOwnPropertySymbols != "function" ? [] : Object.getOwnPropertySymbols(obj).filter(function(sym) {
  43607. return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
  43608. });
  43609. }
  43610. __name(getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols");
  43611. function getOwnEnumerableProperties(obj) {
  43612. return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));
  43613. }
  43614. __name(getOwnEnumerableProperties, "getOwnEnumerableProperties");
  43615. var isNaN22 = Number.isNaN;
  43616. function isObjectType(obj) {
  43617. let objectType = type(obj);
  43618. return ["Array", "Object", "Function"].indexOf(objectType) !== -1;
  43619. }
  43620. __name(isObjectType, "isObjectType");
  43621. function getOperator(obj, args) {
  43622. let operator = flag(obj, "operator"), negate = flag(obj, "negate"), expected = args[3], msg = negate ? args[2] : args[1];
  43623. if (operator)
  43624. return operator;
  43625. if (typeof msg == "function" && (msg = msg()), msg = msg || "", !msg || /\shave\s/.test(msg))
  43626. return;
  43627. let isObject7 = isObjectType(expected);
  43628. return /\snot\s/.test(msg) ? isObject7 ? "notDeepStrictEqual" : "notStrictEqual" : isObject7 ? "deepStrictEqual" : "strictEqual";
  43629. }
  43630. __name(getOperator, "getOperator");
  43631. function getName(fn4) {
  43632. return fn4.name;
  43633. }
  43634. __name(getName, "getName");
  43635. function isRegExp22(obj) {
  43636. return Object.prototype.toString.call(obj) === "[object RegExp]";
  43637. }
  43638. __name(isRegExp22, "isRegExp");
  43639. function isNumeric(obj) {
  43640. return ["Number", "BigInt"].includes(type(obj));
  43641. }
  43642. __name(isNumeric, "isNumeric");
  43643. var { flag: flag2 } = utils_exports;
  43644. [
  43645. "to",
  43646. "be",
  43647. "been",
  43648. "is",
  43649. "and",
  43650. "has",
  43651. "have",
  43652. "with",
  43653. "that",
  43654. "which",
  43655. "at",
  43656. "of",
  43657. "same",
  43658. "but",
  43659. "does",
  43660. "still",
  43661. "also"
  43662. ].forEach(function(chain) {
  43663. Assertion.addProperty(chain);
  43664. });
  43665. Assertion.addProperty("not", function() {
  43666. flag2(this, "negate", !0);
  43667. });
  43668. Assertion.addProperty("deep", function() {
  43669. flag2(this, "deep", !0);
  43670. });
  43671. Assertion.addProperty("nested", function() {
  43672. flag2(this, "nested", !0);
  43673. });
  43674. Assertion.addProperty("own", function() {
  43675. flag2(this, "own", !0);
  43676. });
  43677. Assertion.addProperty("ordered", function() {
  43678. flag2(this, "ordered", !0);
  43679. });
  43680. Assertion.addProperty("any", function() {
  43681. flag2(this, "any", !0), flag2(this, "all", !1);
  43682. });
  43683. Assertion.addProperty("all", function() {
  43684. flag2(this, "all", !0), flag2(this, "any", !1);
  43685. });
  43686. var functionTypes = {
  43687. function: [
  43688. "function",
  43689. "asyncfunction",
  43690. "generatorfunction",
  43691. "asyncgeneratorfunction"
  43692. ],
  43693. asyncfunction: ["asyncfunction", "asyncgeneratorfunction"],
  43694. generatorfunction: ["generatorfunction", "asyncgeneratorfunction"],
  43695. asyncgeneratorfunction: ["asyncgeneratorfunction"]
  43696. };
  43697. function an(type32, msg) {
  43698. msg && flag2(this, "message", msg), type32 = type32.toLowerCase();
  43699. let obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type32.charAt(0)) ? "an " : "a ", detectedType = type(obj).toLowerCase();
  43700. functionTypes.function.includes(type32) ? this.assert(
  43701. functionTypes[type32].includes(detectedType),
  43702. "expected #{this} to be " + article + type32,
  43703. "expected #{this} not to be " + article + type32
  43704. ) : this.assert(
  43705. type32 === detectedType,
  43706. "expected #{this} to be " + article + type32,
  43707. "expected #{this} not to be " + article + type32
  43708. );
  43709. }
  43710. __name(an, "an");
  43711. Assertion.addChainableMethod("an", an);
  43712. Assertion.addChainableMethod("a", an);
  43713. function SameValueZero(a3, b) {
  43714. return isNaN22(a3) && isNaN22(b) || a3 === b;
  43715. }
  43716. __name(SameValueZero, "SameValueZero");
  43717. function includeChainingBehavior() {
  43718. flag2(this, "contains", !0);
  43719. }
  43720. __name(includeChainingBehavior, "includeChainingBehavior");
  43721. function include(val, msg) {
  43722. msg && flag2(this, "message", msg);
  43723. let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
  43724. flagMsg = flagMsg ? flagMsg + ": " : "";
  43725. let included = !1;
  43726. switch (objType) {
  43727. case "string":
  43728. included = obj.indexOf(val) !== -1;
  43729. break;
  43730. case "weakset":
  43731. if (isDeep)
  43732. throw new AssertionError(
  43733. flagMsg + "unable to use .deep.include with WeakSet",
  43734. void 0,
  43735. ssfi
  43736. );
  43737. included = obj.has(val);
  43738. break;
  43739. case "map":
  43740. obj.forEach(function(item) {
  43741. included = included || isEql(item, val);
  43742. });
  43743. break;
  43744. case "set":
  43745. isDeep ? obj.forEach(function(item) {
  43746. included = included || isEql(item, val);
  43747. }) : included = obj.has(val);
  43748. break;
  43749. case "array":
  43750. isDeep ? included = obj.some(function(item) {
  43751. return isEql(item, val);
  43752. }) : included = obj.indexOf(val) !== -1;
  43753. break;
  43754. default: {
  43755. if (val !== Object(val))
  43756. throw new AssertionError(
  43757. flagMsg + "the given combination of arguments (" + objType + " and " + type(val).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + type(val).toLowerCase(),
  43758. void 0,
  43759. ssfi
  43760. );
  43761. let props = Object.keys(val), firstErr = null, numErrs = 0;
  43762. if (props.forEach(function(prop) {
  43763. let propAssertion = new Assertion(obj);
  43764. if (transferFlags(this, propAssertion, !0), flag2(propAssertion, "lockSsfi", !0), !negate || props.length === 1) {
  43765. propAssertion.property(prop, val[prop]);
  43766. return;
  43767. }
  43768. try {
  43769. propAssertion.property(prop, val[prop]);
  43770. } catch (err) {
  43771. if (!check_error_exports.compatibleConstructor(err, AssertionError))
  43772. throw err;
  43773. firstErr === null && (firstErr = err), numErrs++;
  43774. }
  43775. }, this), negate && props.length > 1 && numErrs === props.length)
  43776. throw firstErr;
  43777. return;
  43778. }
  43779. }
  43780. this.assert(
  43781. included,
  43782. "expected #{this} to " + descriptor + "include " + inspect22(val),
  43783. "expected #{this} to not " + descriptor + "include " + inspect22(val)
  43784. );
  43785. }
  43786. __name(include, "include");
  43787. Assertion.addChainableMethod("include", include, includeChainingBehavior);
  43788. Assertion.addChainableMethod("contain", include, includeChainingBehavior);
  43789. Assertion.addChainableMethod("contains", include, includeChainingBehavior);
  43790. Assertion.addChainableMethod("includes", include, includeChainingBehavior);
  43791. Assertion.addProperty("ok", function() {
  43792. this.assert(
  43793. flag2(this, "object"),
  43794. "expected #{this} to be truthy",
  43795. "expected #{this} to be falsy"
  43796. );
  43797. });
  43798. Assertion.addProperty("true", function() {
  43799. this.assert(
  43800. flag2(this, "object") === !0,
  43801. "expected #{this} to be true",
  43802. "expected #{this} to be false",
  43803. !flag2(this, "negate")
  43804. );
  43805. });
  43806. Assertion.addProperty("numeric", function() {
  43807. let object = flag2(this, "object");
  43808. this.assert(
  43809. ["Number", "BigInt"].includes(type(object)),
  43810. "expected #{this} to be numeric",
  43811. "expected #{this} to not be numeric",
  43812. !flag2(this, "negate")
  43813. );
  43814. });
  43815. Assertion.addProperty("callable", function() {
  43816. let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), message = flag2(this, "message"), msg = message ? `${message}: ` : "", negate = flag2(this, "negate"), assertionMessage = negate ? `${msg}expected ${inspect22(val)} not to be a callable function` : `${msg}expected ${inspect22(val)} to be a callable function`, isCallable3 = [
  43817. "Function",
  43818. "AsyncFunction",
  43819. "GeneratorFunction",
  43820. "AsyncGeneratorFunction"
  43821. ].includes(type(val));
  43822. if (isCallable3 && negate || !isCallable3 && !negate)
  43823. throw new AssertionError(assertionMessage, void 0, ssfi);
  43824. });
  43825. Assertion.addProperty("false", function() {
  43826. this.assert(
  43827. flag2(this, "object") === !1,
  43828. "expected #{this} to be false",
  43829. "expected #{this} to be true",
  43830. !!flag2(this, "negate")
  43831. );
  43832. });
  43833. Assertion.addProperty("null", function() {
  43834. this.assert(
  43835. flag2(this, "object") === null,
  43836. "expected #{this} to be null",
  43837. "expected #{this} not to be null"
  43838. );
  43839. });
  43840. Assertion.addProperty("undefined", function() {
  43841. this.assert(
  43842. flag2(this, "object") === void 0,
  43843. "expected #{this} to be undefined",
  43844. "expected #{this} not to be undefined"
  43845. );
  43846. });
  43847. Assertion.addProperty("NaN", function() {
  43848. this.assert(
  43849. isNaN22(flag2(this, "object")),
  43850. "expected #{this} to be NaN",
  43851. "expected #{this} not to be NaN"
  43852. );
  43853. });
  43854. function assertExist() {
  43855. let val = flag2(this, "object");
  43856. this.assert(
  43857. val != null,
  43858. "expected #{this} to exist",
  43859. "expected #{this} to not exist"
  43860. );
  43861. }
  43862. __name(assertExist, "assertExist");
  43863. Assertion.addProperty("exist", assertExist);
  43864. Assertion.addProperty("exists", assertExist);
  43865. Assertion.addProperty("empty", function() {
  43866. let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
  43867. switch (flagMsg = flagMsg ? flagMsg + ": " : "", type(val).toLowerCase()) {
  43868. case "array":
  43869. case "string":
  43870. itemsCount = val.length;
  43871. break;
  43872. case "map":
  43873. case "set":
  43874. itemsCount = val.size;
  43875. break;
  43876. case "weakmap":
  43877. case "weakset":
  43878. throw new AssertionError(
  43879. flagMsg + ".empty was passed a weak collection",
  43880. void 0,
  43881. ssfi
  43882. );
  43883. case "function": {
  43884. let msg = flagMsg + ".empty was passed a function " + getName(val);
  43885. throw new AssertionError(msg.trim(), void 0, ssfi);
  43886. }
  43887. default:
  43888. if (val !== Object(val))
  43889. throw new AssertionError(
  43890. flagMsg + ".empty was passed non-string primitive " + inspect22(val),
  43891. void 0,
  43892. ssfi
  43893. );
  43894. itemsCount = Object.keys(val).length;
  43895. }
  43896. this.assert(
  43897. itemsCount === 0,
  43898. "expected #{this} to be empty",
  43899. "expected #{this} not to be empty"
  43900. );
  43901. });
  43902. function checkArguments() {
  43903. let obj = flag2(this, "object"), type32 = type(obj);
  43904. this.assert(
  43905. type32 === "Arguments",
  43906. "expected #{this} to be arguments but got " + type32,
  43907. "expected #{this} to not be arguments"
  43908. );
  43909. }
  43910. __name(checkArguments, "checkArguments");
  43911. Assertion.addProperty("arguments", checkArguments);
  43912. Assertion.addProperty("Arguments", checkArguments);
  43913. function assertEqual(val, msg) {
  43914. msg && flag2(this, "message", msg);
  43915. let obj = flag2(this, "object");
  43916. if (flag2(this, "deep")) {
  43917. let prevLockSsfi = flag2(this, "lockSsfi");
  43918. flag2(this, "lockSsfi", !0), this.eql(val), flag2(this, "lockSsfi", prevLockSsfi);
  43919. } else
  43920. this.assert(
  43921. val === obj,
  43922. "expected #{this} to equal #{exp}",
  43923. "expected #{this} to not equal #{exp}",
  43924. val,
  43925. this._obj,
  43926. !0
  43927. );
  43928. }
  43929. __name(assertEqual, "assertEqual");
  43930. Assertion.addMethod("equal", assertEqual);
  43931. Assertion.addMethod("equals", assertEqual);
  43932. Assertion.addMethod("eq", assertEqual);
  43933. function assertEql(obj, msg) {
  43934. msg && flag2(this, "message", msg);
  43935. let eql = flag2(this, "eql");
  43936. this.assert(
  43937. eql(obj, flag2(this, "object")),
  43938. "expected #{this} to deeply equal #{exp}",
  43939. "expected #{this} to not deeply equal #{exp}",
  43940. obj,
  43941. this._obj,
  43942. !0
  43943. );
  43944. }
  43945. __name(assertEql, "assertEql");
  43946. Assertion.addMethod("eql", assertEql);
  43947. Assertion.addMethod("eqls", assertEql);
  43948. function assertAbove(n, msg) {
  43949. msg && flag2(this, "message", msg);
  43950. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
  43951. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  43952. throw new AssertionError(
  43953. msgPrefix + "the argument to above must be a date",
  43954. void 0,
  43955. ssfi
  43956. );
  43957. if (!isNumeric(n) && (doLength || isNumeric(obj)))
  43958. throw new AssertionError(
  43959. msgPrefix + "the argument to above must be a number",
  43960. void 0,
  43961. ssfi
  43962. );
  43963. if (!doLength && objType !== "date" && !isNumeric(obj)) {
  43964. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  43965. throw new AssertionError(
  43966. msgPrefix + "expected " + printObj + " to be a number or a date",
  43967. void 0,
  43968. ssfi
  43969. );
  43970. }
  43971. if (doLength) {
  43972. let descriptor = "length", itemsCount;
  43973. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  43974. itemsCount > n,
  43975. "expected #{this} to have a " + descriptor + " above #{exp} but got #{act}",
  43976. "expected #{this} to not have a " + descriptor + " above #{exp}",
  43977. n,
  43978. itemsCount
  43979. );
  43980. } else
  43981. this.assert(
  43982. obj > n,
  43983. "expected #{this} to be above #{exp}",
  43984. "expected #{this} to be at most #{exp}",
  43985. n
  43986. );
  43987. }
  43988. __name(assertAbove, "assertAbove");
  43989. Assertion.addMethod("above", assertAbove);
  43990. Assertion.addMethod("gt", assertAbove);
  43991. Assertion.addMethod("greaterThan", assertAbove);
  43992. function assertLeast(n, msg) {
  43993. msg && flag2(this, "message", msg);
  43994. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = !0;
  43995. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  43996. errorMessage = msgPrefix + "the argument to least must be a date";
  43997. else if (!isNumeric(n) && (doLength || isNumeric(obj)))
  43998. errorMessage = msgPrefix + "the argument to least must be a number";
  43999. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44000. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44001. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44002. } else
  44003. shouldThrow = !1;
  44004. if (shouldThrow)
  44005. throw new AssertionError(errorMessage, void 0, ssfi);
  44006. if (doLength) {
  44007. let descriptor = "length", itemsCount;
  44008. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44009. itemsCount >= n,
  44010. "expected #{this} to have a " + descriptor + " at least #{exp} but got #{act}",
  44011. "expected #{this} to have a " + descriptor + " below #{exp}",
  44012. n,
  44013. itemsCount
  44014. );
  44015. } else
  44016. this.assert(
  44017. obj >= n,
  44018. "expected #{this} to be at least #{exp}",
  44019. "expected #{this} to be below #{exp}",
  44020. n
  44021. );
  44022. }
  44023. __name(assertLeast, "assertLeast");
  44024. Assertion.addMethod("least", assertLeast);
  44025. Assertion.addMethod("gte", assertLeast);
  44026. Assertion.addMethod("greaterThanOrEqual", assertLeast);
  44027. function assertBelow(n, msg) {
  44028. msg && flag2(this, "message", msg);
  44029. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = !0;
  44030. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  44031. errorMessage = msgPrefix + "the argument to below must be a date";
  44032. else if (!isNumeric(n) && (doLength || isNumeric(obj)))
  44033. errorMessage = msgPrefix + "the argument to below must be a number";
  44034. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44035. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44036. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44037. } else
  44038. shouldThrow = !1;
  44039. if (shouldThrow)
  44040. throw new AssertionError(errorMessage, void 0, ssfi);
  44041. if (doLength) {
  44042. let descriptor = "length", itemsCount;
  44043. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44044. itemsCount < n,
  44045. "expected #{this} to have a " + descriptor + " below #{exp} but got #{act}",
  44046. "expected #{this} to not have a " + descriptor + " below #{exp}",
  44047. n,
  44048. itemsCount
  44049. );
  44050. } else
  44051. this.assert(
  44052. obj < n,
  44053. "expected #{this} to be below #{exp}",
  44054. "expected #{this} to be at least #{exp}",
  44055. n
  44056. );
  44057. }
  44058. __name(assertBelow, "assertBelow");
  44059. Assertion.addMethod("below", assertBelow);
  44060. Assertion.addMethod("lt", assertBelow);
  44061. Assertion.addMethod("lessThan", assertBelow);
  44062. function assertMost(n, msg) {
  44063. msg && flag2(this, "message", msg);
  44064. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = !0;
  44065. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  44066. errorMessage = msgPrefix + "the argument to most must be a date";
  44067. else if (!isNumeric(n) && (doLength || isNumeric(obj)))
  44068. errorMessage = msgPrefix + "the argument to most must be a number";
  44069. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44070. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44071. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44072. } else
  44073. shouldThrow = !1;
  44074. if (shouldThrow)
  44075. throw new AssertionError(errorMessage, void 0, ssfi);
  44076. if (doLength) {
  44077. let descriptor = "length", itemsCount;
  44078. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44079. itemsCount <= n,
  44080. "expected #{this} to have a " + descriptor + " at most #{exp} but got #{act}",
  44081. "expected #{this} to have a " + descriptor + " above #{exp}",
  44082. n,
  44083. itemsCount
  44084. );
  44085. } else
  44086. this.assert(
  44087. obj <= n,
  44088. "expected #{this} to be at most #{exp}",
  44089. "expected #{this} to be above #{exp}",
  44090. n
  44091. );
  44092. }
  44093. __name(assertMost, "assertMost");
  44094. Assertion.addMethod("most", assertMost);
  44095. Assertion.addMethod("lte", assertMost);
  44096. Assertion.addMethod("lessThanOrEqual", assertMost);
  44097. Assertion.addMethod("within", function(start2, finish, msg) {
  44098. msg && flag2(this, "message", msg);
  44099. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start2).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = !0, range = startType === "date" && finishType === "date" ? start2.toISOString() + ".." + finish.toISOString() : start2 + ".." + finish;
  44100. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && (startType !== "date" || finishType !== "date"))
  44101. errorMessage = msgPrefix + "the arguments to within must be dates";
  44102. else if ((!isNumeric(start2) || !isNumeric(finish)) && (doLength || isNumeric(obj)))
  44103. errorMessage = msgPrefix + "the arguments to within must be numbers";
  44104. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44105. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44106. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44107. } else
  44108. shouldThrow = !1;
  44109. if (shouldThrow)
  44110. throw new AssertionError(errorMessage, void 0, ssfi);
  44111. if (doLength) {
  44112. let descriptor = "length", itemsCount;
  44113. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44114. itemsCount >= start2 && itemsCount <= finish,
  44115. "expected #{this} to have a " + descriptor + " within " + range,
  44116. "expected #{this} to not have a " + descriptor + " within " + range
  44117. );
  44118. } else
  44119. this.assert(
  44120. obj >= start2 && obj <= finish,
  44121. "expected #{this} to be within " + range,
  44122. "expected #{this} to not be within " + range
  44123. );
  44124. });
  44125. function assertInstanceOf(constructor, msg) {
  44126. msg && flag2(this, "message", msg);
  44127. let target = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), isInstanceOf;
  44128. try {
  44129. isInstanceOf = target instanceof constructor;
  44130. } catch (err) {
  44131. throw err instanceof TypeError ? (flagMsg = flagMsg ? flagMsg + ": " : "", new AssertionError(
  44132. flagMsg + "The instanceof assertion needs a constructor but " + type(constructor) + " was given.",
  44133. void 0,
  44134. ssfi
  44135. )) : err;
  44136. }
  44137. let name = getName(constructor);
  44138. name == null && (name = "an unnamed constructor"), this.assert(
  44139. isInstanceOf,
  44140. "expected #{this} to be an instance of " + name,
  44141. "expected #{this} to not be an instance of " + name
  44142. );
  44143. }
  44144. __name(assertInstanceOf, "assertInstanceOf");
  44145. Assertion.addMethod("instanceof", assertInstanceOf);
  44146. Assertion.addMethod("instanceOf", assertInstanceOf);
  44147. function assertProperty(name, val, msg) {
  44148. msg && flag2(this, "message", msg);
  44149. let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
  44150. if (flagMsg = flagMsg ? flagMsg + ": " : "", isNested) {
  44151. if (nameType !== "string")
  44152. throw new AssertionError(
  44153. flagMsg + "the argument to property must be a string when using nested syntax",
  44154. void 0,
  44155. ssfi
  44156. );
  44157. } else if (nameType !== "string" && nameType !== "number" && nameType !== "symbol")
  44158. throw new AssertionError(
  44159. flagMsg + "the argument to property must be a string, number, or symbol",
  44160. void 0,
  44161. ssfi
  44162. );
  44163. if (isNested && isOwn)
  44164. throw new AssertionError(
  44165. flagMsg + 'The "nested" and "own" flags cannot be combined.',
  44166. void 0,
  44167. ssfi
  44168. );
  44169. if (obj == null)
  44170. throw new AssertionError(
  44171. flagMsg + "Target cannot be null or undefined.",
  44172. void 0,
  44173. ssfi
  44174. );
  44175. let isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2, descriptor = "";
  44176. isDeep && (descriptor += "deep "), isOwn && (descriptor += "own "), isNested && (descriptor += "nested "), descriptor += "property ";
  44177. let hasProperty2;
  44178. isOwn ? hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name) : isNested ? hasProperty2 = pathInfo.exists : hasProperty2 = hasProperty(obj, name), (!negate || arguments.length === 1) && this.assert(
  44179. hasProperty2,
  44180. "expected #{this} to have " + descriptor + inspect22(name),
  44181. "expected #{this} to not have " + descriptor + inspect22(name)
  44182. ), arguments.length > 1 && this.assert(
  44183. hasProperty2 && isEql(val, value),
  44184. "expected #{this} to have " + descriptor + inspect22(name) + " of #{exp}, but got #{act}",
  44185. "expected #{this} to not have " + descriptor + inspect22(name) + " of #{act}",
  44186. val,
  44187. value
  44188. ), flag2(this, "object", value);
  44189. }
  44190. __name(assertProperty, "assertProperty");
  44191. Assertion.addMethod("property", assertProperty);
  44192. function assertOwnProperty(_name, _value, _msg) {
  44193. flag2(this, "own", !0), assertProperty.apply(this, arguments);
  44194. }
  44195. __name(assertOwnProperty, "assertOwnProperty");
  44196. Assertion.addMethod("ownProperty", assertOwnProperty);
  44197. Assertion.addMethod("haveOwnProperty", assertOwnProperty);
  44198. function assertOwnPropertyDescriptor(name, descriptor, msg) {
  44199. typeof descriptor == "string" && (msg = descriptor, descriptor = null), msg && flag2(this, "message", msg);
  44200. let obj = flag2(this, "object"), actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name), eql = flag2(this, "eql");
  44201. actualDescriptor && descriptor ? this.assert(
  44202. eql(descriptor, actualDescriptor),
  44203. "expected the own property descriptor for " + inspect22(name) + " on #{this} to match " + inspect22(descriptor) + ", got " + inspect22(actualDescriptor),
  44204. "expected the own property descriptor for " + inspect22(name) + " on #{this} to not match " + inspect22(descriptor),
  44205. descriptor,
  44206. actualDescriptor,
  44207. !0
  44208. ) : this.assert(
  44209. actualDescriptor,
  44210. "expected #{this} to have an own property descriptor for " + inspect22(name),
  44211. "expected #{this} to not have an own property descriptor for " + inspect22(name)
  44212. ), flag2(this, "object", actualDescriptor);
  44213. }
  44214. __name(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor");
  44215. Assertion.addMethod("ownPropertyDescriptor", assertOwnPropertyDescriptor);
  44216. Assertion.addMethod("haveOwnPropertyDescriptor", assertOwnPropertyDescriptor);
  44217. function assertLengthChain() {
  44218. flag2(this, "doLength", !0);
  44219. }
  44220. __name(assertLengthChain, "assertLengthChain");
  44221. function assertLength(n, msg) {
  44222. msg && flag2(this, "message", msg);
  44223. let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
  44224. switch (objType) {
  44225. case "map":
  44226. case "set":
  44227. descriptor = "size", itemsCount = obj.size;
  44228. break;
  44229. default:
  44230. new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), itemsCount = obj.length;
  44231. }
  44232. this.assert(
  44233. itemsCount == n,
  44234. "expected #{this} to have a " + descriptor + " of #{exp} but got #{act}",
  44235. "expected #{this} to not have a " + descriptor + " of #{act}",
  44236. n,
  44237. itemsCount
  44238. );
  44239. }
  44240. __name(assertLength, "assertLength");
  44241. Assertion.addChainableMethod("length", assertLength, assertLengthChain);
  44242. Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain);
  44243. function assertMatch(re2, msg) {
  44244. msg && flag2(this, "message", msg);
  44245. let obj = flag2(this, "object");
  44246. this.assert(
  44247. re2.exec(obj),
  44248. "expected #{this} to match " + re2,
  44249. "expected #{this} not to match " + re2
  44250. );
  44251. }
  44252. __name(assertMatch, "assertMatch");
  44253. Assertion.addMethod("match", assertMatch);
  44254. Assertion.addMethod("matches", assertMatch);
  44255. Assertion.addMethod("string", function(str2, msg) {
  44256. msg && flag2(this, "message", msg);
  44257. let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44258. new Assertion(obj, flagMsg, ssfi, !0).is.a("string"), this.assert(
  44259. ~obj.indexOf(str2),
  44260. "expected #{this} to contain " + inspect22(str2),
  44261. "expected #{this} to not contain " + inspect22(str2)
  44262. );
  44263. });
  44264. function assertKeys(keys3) {
  44265. let obj = flag2(this, "object"), objType = type(obj), keysType = type(keys3), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str2, deepStr = "", actual, ok = !0, flagMsg = flag2(this, "message");
  44266. flagMsg = flagMsg ? flagMsg + ": " : "";
  44267. let mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
  44268. if (objType === "Map" || objType === "Set")
  44269. deepStr = isDeep ? "deeply " : "", actual = [], obj.forEach(function(val, key) {
  44270. actual.push(key);
  44271. }), keysType !== "Array" && (keys3 = Array.prototype.slice.call(arguments));
  44272. else {
  44273. switch (actual = getOwnEnumerableProperties(obj), keysType) {
  44274. case "Array":
  44275. if (arguments.length > 1)
  44276. throw new AssertionError(mixedArgsMsg, void 0, ssfi);
  44277. break;
  44278. case "Object":
  44279. if (arguments.length > 1)
  44280. throw new AssertionError(mixedArgsMsg, void 0, ssfi);
  44281. keys3 = Object.keys(keys3);
  44282. break;
  44283. default:
  44284. keys3 = Array.prototype.slice.call(arguments);
  44285. }
  44286. keys3 = keys3.map(function(val) {
  44287. return typeof val == "symbol" ? val : String(val);
  44288. });
  44289. }
  44290. if (!keys3.length)
  44291. throw new AssertionError(flagMsg + "keys required", void 0, ssfi);
  44292. let len = keys3.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys3, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
  44293. if (!any && !all && (all = !0), any && (ok = expected.some(function(expectedKey) {
  44294. return actual.some(function(actualKey) {
  44295. return isEql(expectedKey, actualKey);
  44296. });
  44297. })), all && (ok = expected.every(function(expectedKey) {
  44298. return actual.some(function(actualKey) {
  44299. return isEql(expectedKey, actualKey);
  44300. });
  44301. }), flag2(this, "contains") || (ok = ok && keys3.length == actual.length)), len > 1) {
  44302. keys3 = keys3.map(function(key) {
  44303. return inspect22(key);
  44304. });
  44305. let last2 = keys3.pop();
  44306. all && (str2 = keys3.join(", ") + ", and " + last2), any && (str2 = keys3.join(", ") + ", or " + last2);
  44307. } else
  44308. str2 = inspect22(keys3[0]);
  44309. str2 = (len > 1 ? "keys " : "key ") + str2, str2 = (flag2(this, "contains") ? "contain " : "have ") + str2, this.assert(
  44310. ok,
  44311. "expected #{this} to " + deepStr + str2,
  44312. "expected #{this} to not " + deepStr + str2,
  44313. expected.slice(0).sort(compareByInspect),
  44314. actual.sort(compareByInspect),
  44315. !0
  44316. );
  44317. }
  44318. __name(assertKeys, "assertKeys");
  44319. Assertion.addMethod("keys", assertKeys);
  44320. Assertion.addMethod("key", assertKeys);
  44321. function assertThrows(errorLike, errMsgMatcher, msg) {
  44322. msg && flag2(this, "message", msg);
  44323. let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || !1;
  44324. new Assertion(obj, flagMsg, ssfi, !0).is.a("function"), (isRegExp22(errorLike) || typeof errorLike == "string") && (errMsgMatcher = errorLike, errorLike = null);
  44325. let caughtErr, errorWasThrown = !1;
  44326. try {
  44327. obj();
  44328. } catch (err) {
  44329. errorWasThrown = !0, caughtErr = err;
  44330. }
  44331. let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0, everyArgIsDefined = !!(errorLike && errMsgMatcher), errorLikeFail = !1, errMsgMatcherFail = !1;
  44332. if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {
  44333. let errorLikeString = "an error";
  44334. errorLike instanceof Error ? errorLikeString = "#{exp}" : errorLike && (errorLikeString = check_error_exports.getConstructorName(errorLike));
  44335. let actual = caughtErr;
  44336. if (caughtErr instanceof Error)
  44337. actual = caughtErr.toString();
  44338. else if (typeof caughtErr == "string")
  44339. actual = caughtErr;
  44340. else if (caughtErr && (typeof caughtErr == "object" || typeof caughtErr == "function"))
  44341. try {
  44342. actual = check_error_exports.getConstructorName(caughtErr);
  44343. } catch {
  44344. }
  44345. this.assert(
  44346. errorWasThrown,
  44347. "expected #{this} to throw " + errorLikeString,
  44348. "expected #{this} to not throw an error but #{act} was thrown",
  44349. errorLike && errorLike.toString(),
  44350. actual
  44351. );
  44352. }
  44353. if (errorLike && caughtErr && (errorLike instanceof Error && check_error_exports.compatibleInstance(
  44354. caughtErr,
  44355. errorLike
  44356. ) === negate && (everyArgIsDefined && negate ? errorLikeFail = !0 : this.assert(
  44357. negate,
  44358. "expected #{this} to throw #{exp} but #{act} was thrown",
  44359. "expected #{this} to not throw #{exp}" + (caughtErr && !negate ? " but #{act} was thrown" : ""),
  44360. errorLike.toString(),
  44361. caughtErr.toString()
  44362. )), check_error_exports.compatibleConstructor(
  44363. caughtErr,
  44364. errorLike
  44365. ) === negate && (everyArgIsDefined && negate ? errorLikeFail = !0 : this.assert(
  44366. negate,
  44367. "expected #{this} to throw #{exp} but #{act} was thrown",
  44368. "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""),
  44369. errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),
  44370. caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)
  44371. ))), caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {
  44372. let placeholder = "including";
  44373. isRegExp22(errMsgMatcher) && (placeholder = "matching"), check_error_exports.compatibleMessage(
  44374. caughtErr,
  44375. errMsgMatcher
  44376. ) === negate && (everyArgIsDefined && negate ? errMsgMatcherFail = !0 : this.assert(
  44377. negate,
  44378. "expected #{this} to throw error " + placeholder + " #{exp} but got #{act}",
  44379. "expected #{this} to throw error not " + placeholder + " #{exp}",
  44380. errMsgMatcher,
  44381. check_error_exports.getMessage(caughtErr)
  44382. ));
  44383. }
  44384. errorLikeFail && errMsgMatcherFail && this.assert(
  44385. negate,
  44386. "expected #{this} to throw #{exp} but #{act} was thrown",
  44387. "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""),
  44388. errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),
  44389. caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)
  44390. ), flag2(this, "object", caughtErr);
  44391. }
  44392. __name(assertThrows, "assertThrows");
  44393. Assertion.addMethod("throw", assertThrows);
  44394. Assertion.addMethod("throws", assertThrows);
  44395. Assertion.addMethod("Throw", assertThrows);
  44396. function respondTo(method, msg) {
  44397. msg && flag2(this, "message", msg);
  44398. let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = typeof obj == "function" && !itself ? obj.prototype[method] : obj[method];
  44399. this.assert(
  44400. typeof context == "function",
  44401. "expected #{this} to respond to " + inspect22(method),
  44402. "expected #{this} to not respond to " + inspect22(method)
  44403. );
  44404. }
  44405. __name(respondTo, "respondTo");
  44406. Assertion.addMethod("respondTo", respondTo);
  44407. Assertion.addMethod("respondsTo", respondTo);
  44408. Assertion.addProperty("itself", function() {
  44409. flag2(this, "itself", !0);
  44410. });
  44411. function satisfy(matcher, msg) {
  44412. msg && flag2(this, "message", msg);
  44413. let obj = flag2(this, "object"), result = matcher(obj);
  44414. this.assert(
  44415. result,
  44416. "expected #{this} to satisfy " + objDisplay(matcher),
  44417. "expected #{this} to not satisfy" + objDisplay(matcher),
  44418. !flag2(this, "negate"),
  44419. result
  44420. );
  44421. }
  44422. __name(satisfy, "satisfy");
  44423. Assertion.addMethod("satisfy", satisfy);
  44424. Assertion.addMethod("satisfies", satisfy);
  44425. function closeTo(expected, delta, msg) {
  44426. msg && flag2(this, "message", msg);
  44427. let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44428. new Assertion(obj, flagMsg, ssfi, !0).is.numeric;
  44429. let message = "A `delta` value is required for `closeTo`";
  44430. if (delta == null)
  44431. throw new AssertionError(
  44432. flagMsg ? `${flagMsg}: ${message}` : message,
  44433. void 0,
  44434. ssfi
  44435. );
  44436. if (new Assertion(delta, flagMsg, ssfi, !0).is.numeric, message = "A `expected` value is required for `closeTo`", expected == null)
  44437. throw new AssertionError(
  44438. flagMsg ? `${flagMsg}: ${message}` : message,
  44439. void 0,
  44440. ssfi
  44441. );
  44442. new Assertion(expected, flagMsg, ssfi, !0).is.numeric;
  44443. let abs2 = __name((x) => x < 0n ? -x : x, "abs"), strip = __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
  44444. this.assert(
  44445. strip(abs2(obj - expected)) <= delta,
  44446. "expected #{this} to be close to " + expected + " +/- " + delta,
  44447. "expected #{this} not to be close to " + expected + " +/- " + delta
  44448. );
  44449. }
  44450. __name(closeTo, "closeTo");
  44451. Assertion.addMethod("closeTo", closeTo);
  44452. Assertion.addMethod("approximately", closeTo);
  44453. function isSubsetOf(_subset, _superset, cmp, contains2, ordered) {
  44454. let superset = Array.from(_superset), subset = Array.from(_subset);
  44455. if (!contains2) {
  44456. if (subset.length !== superset.length) return !1;
  44457. superset = superset.slice();
  44458. }
  44459. return subset.every(function(elem, idx) {
  44460. if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
  44461. if (!cmp) {
  44462. let matchIdx = superset.indexOf(elem);
  44463. return matchIdx === -1 ? !1 : (contains2 || superset.splice(matchIdx, 1), !0);
  44464. }
  44465. return superset.some(function(elem2, matchIdx) {
  44466. return cmp(elem, elem2) ? (contains2 || superset.splice(matchIdx, 1), !0) : !1;
  44467. });
  44468. });
  44469. }
  44470. __name(isSubsetOf, "isSubsetOf");
  44471. Assertion.addMethod("members", function(subset, msg) {
  44472. msg && flag2(this, "message", msg);
  44473. let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44474. new Assertion(obj, flagMsg, ssfi, !0).to.be.iterable, new Assertion(subset, flagMsg, ssfi, !0).to.be.iterable;
  44475. let contains2 = flag2(this, "contains"), ordered = flag2(this, "ordered"), subject, failMsg, failNegateMsg;
  44476. contains2 ? (subject = ordered ? "an ordered superset" : "a superset", failMsg = "expected #{this} to be " + subject + " of #{exp}", failNegateMsg = "expected #{this} to not be " + subject + " of #{exp}") : (subject = ordered ? "ordered members" : "members", failMsg = "expected #{this} to have the same " + subject + " as #{exp}", failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}");
  44477. let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
  44478. this.assert(
  44479. isSubsetOf(subset, obj, cmp, contains2, ordered),
  44480. failMsg,
  44481. failNegateMsg,
  44482. subset,
  44483. obj,
  44484. !0
  44485. );
  44486. });
  44487. Assertion.addProperty("iterable", function(msg) {
  44488. msg && flag2(this, "message", msg);
  44489. let obj = flag2(this, "object");
  44490. this.assert(
  44491. obj != null && obj[Symbol.iterator],
  44492. "expected #{this} to be an iterable",
  44493. "expected #{this} to not be an iterable",
  44494. obj
  44495. );
  44496. });
  44497. function oneOf(list, msg) {
  44498. msg && flag2(this, "message", msg);
  44499. let expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains2 = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
  44500. new Assertion(list, flagMsg, ssfi, !0).to.be.an("array"), contains2 ? this.assert(
  44501. list.some(function(possibility) {
  44502. return expected.indexOf(possibility) > -1;
  44503. }),
  44504. "expected #{this} to contain one of #{exp}",
  44505. "expected #{this} to not contain one of #{exp}",
  44506. list,
  44507. expected
  44508. ) : isDeep ? this.assert(
  44509. list.some(function(possibility) {
  44510. return eql(expected, possibility);
  44511. }),
  44512. "expected #{this} to deeply equal one of #{exp}",
  44513. "expected #{this} to deeply equal one of #{exp}",
  44514. list,
  44515. expected
  44516. ) : this.assert(
  44517. list.indexOf(expected) > -1,
  44518. "expected #{this} to be one of #{exp}",
  44519. "expected #{this} to not be one of #{exp}",
  44520. list,
  44521. expected
  44522. );
  44523. }
  44524. __name(oneOf, "oneOf");
  44525. Assertion.addMethod("oneOf", oneOf);
  44526. function assertChanges(subject, prop, msg) {
  44527. msg && flag2(this, "message", msg);
  44528. let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44529. new Assertion(fn4, flagMsg, ssfi, !0).is.a("function");
  44530. let initial2;
  44531. prop ? (new Assertion(subject, flagMsg, ssfi, !0).to.have.property(prop), initial2 = subject[prop]) : (new Assertion(subject, flagMsg, ssfi, !0).is.a("function"), initial2 = subject()), fn4();
  44532. let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop;
  44533. flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "change"), flag2(this, "realDelta", final !== initial2), this.assert(
  44534. initial2 !== final,
  44535. "expected " + msgObj + " to change",
  44536. "expected " + msgObj + " to not change"
  44537. );
  44538. }
  44539. __name(assertChanges, "assertChanges");
  44540. Assertion.addMethod("change", assertChanges);
  44541. Assertion.addMethod("changes", assertChanges);
  44542. function assertIncreases(subject, prop, msg) {
  44543. msg && flag2(this, "message", msg);
  44544. let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44545. new Assertion(fn4, flagMsg, ssfi, !0).is.a("function");
  44546. let initial2;
  44547. prop ? (new Assertion(subject, flagMsg, ssfi, !0).to.have.property(prop), initial2 = subject[prop]) : (new Assertion(subject, flagMsg, ssfi, !0).is.a("function"), initial2 = subject()), new Assertion(initial2, flagMsg, ssfi, !0).is.a("number"), fn4();
  44548. let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop;
  44549. flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "increase"), flag2(this, "realDelta", final - initial2), this.assert(
  44550. final - initial2 > 0,
  44551. "expected " + msgObj + " to increase",
  44552. "expected " + msgObj + " to not increase"
  44553. );
  44554. }
  44555. __name(assertIncreases, "assertIncreases");
  44556. Assertion.addMethod("increase", assertIncreases);
  44557. Assertion.addMethod("increases", assertIncreases);
  44558. function assertDecreases(subject, prop, msg) {
  44559. msg && flag2(this, "message", msg);
  44560. let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44561. new Assertion(fn4, flagMsg, ssfi, !0).is.a("function");
  44562. let initial2;
  44563. prop ? (new Assertion(subject, flagMsg, ssfi, !0).to.have.property(prop), initial2 = subject[prop]) : (new Assertion(subject, flagMsg, ssfi, !0).is.a("function"), initial2 = subject()), new Assertion(initial2, flagMsg, ssfi, !0).is.a("number"), fn4();
  44564. let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop;
  44565. flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "decrease"), flag2(this, "realDelta", initial2 - final), this.assert(
  44566. final - initial2 < 0,
  44567. "expected " + msgObj + " to decrease",
  44568. "expected " + msgObj + " to not decrease"
  44569. );
  44570. }
  44571. __name(assertDecreases, "assertDecreases");
  44572. Assertion.addMethod("decrease", assertDecreases);
  44573. Assertion.addMethod("decreases", assertDecreases);
  44574. function assertDelta(delta, msg) {
  44575. msg && flag2(this, "message", msg);
  44576. let msgObj = flag2(this, "deltaMsgObj"), initial2 = flag2(this, "initialDeltaValue"), final = flag2(this, "finalDeltaValue"), behavior2 = flag2(this, "deltaBehavior"), realDelta = flag2(this, "realDelta"), expression;
  44577. behavior2 === "change" ? expression = Math.abs(final - initial2) === Math.abs(delta) : expression = realDelta === Math.abs(delta), this.assert(
  44578. expression,
  44579. "expected " + msgObj + " to " + behavior2 + " by " + delta,
  44580. "expected " + msgObj + " to not " + behavior2 + " by " + delta
  44581. );
  44582. }
  44583. __name(assertDelta, "assertDelta");
  44584. Assertion.addMethod("by", assertDelta);
  44585. Assertion.addProperty("extensible", function() {
  44586. let obj = flag2(this, "object"), isExtensible = obj === Object(obj) && Object.isExtensible(obj);
  44587. this.assert(
  44588. isExtensible,
  44589. "expected #{this} to be extensible",
  44590. "expected #{this} to not be extensible"
  44591. );
  44592. });
  44593. Assertion.addProperty("sealed", function() {
  44594. let obj = flag2(this, "object"), isSealed = obj === Object(obj) ? Object.isSealed(obj) : !0;
  44595. this.assert(
  44596. isSealed,
  44597. "expected #{this} to be sealed",
  44598. "expected #{this} to not be sealed"
  44599. );
  44600. });
  44601. Assertion.addProperty("frozen", function() {
  44602. let obj = flag2(this, "object"), isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : !0;
  44603. this.assert(
  44604. isFrozen,
  44605. "expected #{this} to be frozen",
  44606. "expected #{this} to not be frozen"
  44607. );
  44608. });
  44609. Assertion.addProperty("finite", function(_msg) {
  44610. let obj = flag2(this, "object");
  44611. this.assert(
  44612. typeof obj == "number" && isFinite(obj),
  44613. "expected #{this} to be a finite number",
  44614. "expected #{this} to not be a finite number"
  44615. );
  44616. });
  44617. function compareSubset(expected, actual) {
  44618. return expected === actual ? !0 : typeof actual != typeof expected ? !1 : typeof expected != "object" || expected === null ? expected === actual : actual ? Array.isArray(expected) ? Array.isArray(actual) ? expected.every(function(exp) {
  44619. return actual.some(function(act) {
  44620. return compareSubset(exp, act);
  44621. });
  44622. }) : !1 : expected instanceof Date ? actual instanceof Date ? expected.getTime() === actual.getTime() : !1 : Object.keys(expected).every(function(key) {
  44623. let expectedValue = expected[key], actualValue = actual[key];
  44624. return typeof expectedValue == "object" && expectedValue !== null && actualValue !== null ? compareSubset(expectedValue, actualValue) : typeof expectedValue == "function" ? expectedValue(actualValue) : actualValue === expectedValue;
  44625. }) : !1;
  44626. }
  44627. __name(compareSubset, "compareSubset");
  44628. Assertion.addMethod("containSubset", function(expected) {
  44629. let actual = flag(this, "object"), showDiff = config2.showDiff;
  44630. this.assert(
  44631. compareSubset(expected, actual),
  44632. "expected #{act} to contain subset #{exp}",
  44633. "expected #{act} to not contain subset #{exp}",
  44634. expected,
  44635. actual,
  44636. showDiff
  44637. );
  44638. });
  44639. function expect(val, message) {
  44640. return new Assertion(val, message);
  44641. }
  44642. __name(expect, "expect");
  44643. expect.fail = function(actual, expected, message, operator) {
  44644. throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "expect.fail()", new AssertionError(
  44645. message,
  44646. {
  44647. actual,
  44648. expected,
  44649. operator
  44650. },
  44651. expect.fail
  44652. );
  44653. };
  44654. var should_exports = {};
  44655. __export2(should_exports, {
  44656. Should: () => Should,
  44657. should: () => should
  44658. });
  44659. function loadShould() {
  44660. function shouldGetter() {
  44661. return this instanceof String || this instanceof Number || this instanceof Boolean || typeof Symbol == "function" && this instanceof Symbol || typeof BigInt == "function" && this instanceof BigInt ? new Assertion(this.valueOf(), null, shouldGetter) : new Assertion(this, null, shouldGetter);
  44662. }
  44663. __name(shouldGetter, "shouldGetter");
  44664. function shouldSetter(value) {
  44665. Object.defineProperty(this, "should", {
  44666. value,
  44667. enumerable: !0,
  44668. configurable: !0,
  44669. writable: !0
  44670. });
  44671. }
  44672. __name(shouldSetter, "shouldSetter"), Object.defineProperty(Object.prototype, "should", {
  44673. set: shouldSetter,
  44674. get: shouldGetter,
  44675. configurable: !0
  44676. });
  44677. let should2 = {};
  44678. return should2.fail = function(actual, expected, message, operator) {
  44679. throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "should.fail()", new AssertionError(
  44680. message,
  44681. {
  44682. actual,
  44683. expected,
  44684. operator
  44685. },
  44686. should2.fail
  44687. );
  44688. }, should2.equal = function(actual, expected, message) {
  44689. new Assertion(actual, message).to.equal(expected);
  44690. }, should2.Throw = function(fn4, errt, errs, msg) {
  44691. new Assertion(fn4, msg).to.Throw(errt, errs);
  44692. }, should2.exist = function(val, msg) {
  44693. new Assertion(val, msg).to.exist;
  44694. }, should2.not = {}, should2.not.equal = function(actual, expected, msg) {
  44695. new Assertion(actual, msg).to.not.equal(expected);
  44696. }, should2.not.Throw = function(fn4, errt, errs, msg) {
  44697. new Assertion(fn4, msg).to.not.Throw(errt, errs);
  44698. }, should2.not.exist = function(val, msg) {
  44699. new Assertion(val, msg).to.not.exist;
  44700. }, should2.throw = should2.Throw, should2.not.throw = should2.not.Throw, should2;
  44701. }
  44702. __name(loadShould, "loadShould");
  44703. var should = loadShould, Should = loadShould;
  44704. function assert(express, errmsg) {
  44705. new Assertion(null, null, assert, !0).assert(express, errmsg, "[ negation message unavailable ]");
  44706. }
  44707. __name(assert, "assert");
  44708. assert.fail = function(actual, expected, message, operator) {
  44709. throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "assert.fail()", new AssertionError(
  44710. message,
  44711. {
  44712. actual,
  44713. expected,
  44714. operator
  44715. },
  44716. assert.fail
  44717. );
  44718. };
  44719. assert.isOk = function(val, msg) {
  44720. new Assertion(val, msg, assert.isOk, !0).is.ok;
  44721. };
  44722. assert.isNotOk = function(val, msg) {
  44723. new Assertion(val, msg, assert.isNotOk, !0).is.not.ok;
  44724. };
  44725. assert.equal = function(act, exp, msg) {
  44726. let test22 = new Assertion(act, msg, assert.equal, !0);
  44727. test22.assert(
  44728. exp == flag(test22, "object"),
  44729. "expected #{this} to equal #{exp}",
  44730. "expected #{this} to not equal #{act}",
  44731. exp,
  44732. act,
  44733. !0
  44734. );
  44735. };
  44736. assert.notEqual = function(act, exp, msg) {
  44737. let test22 = new Assertion(act, msg, assert.notEqual, !0);
  44738. test22.assert(
  44739. exp != flag(test22, "object"),
  44740. "expected #{this} to not equal #{exp}",
  44741. "expected #{this} to equal #{act}",
  44742. exp,
  44743. act,
  44744. !0
  44745. );
  44746. };
  44747. assert.strictEqual = function(act, exp, msg) {
  44748. new Assertion(act, msg, assert.strictEqual, !0).to.equal(exp);
  44749. };
  44750. assert.notStrictEqual = function(act, exp, msg) {
  44751. new Assertion(act, msg, assert.notStrictEqual, !0).to.not.equal(exp);
  44752. };
  44753. assert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) {
  44754. new Assertion(act, msg, assert.deepEqual, !0).to.eql(exp);
  44755. };
  44756. assert.notDeepEqual = function(act, exp, msg) {
  44757. new Assertion(act, msg, assert.notDeepEqual, !0).to.not.eql(exp);
  44758. };
  44759. assert.isAbove = function(val, abv, msg) {
  44760. new Assertion(val, msg, assert.isAbove, !0).to.be.above(abv);
  44761. };
  44762. assert.isAtLeast = function(val, atlst, msg) {
  44763. new Assertion(val, msg, assert.isAtLeast, !0).to.be.least(atlst);
  44764. };
  44765. assert.isBelow = function(val, blw, msg) {
  44766. new Assertion(val, msg, assert.isBelow, !0).to.be.below(blw);
  44767. };
  44768. assert.isAtMost = function(val, atmst, msg) {
  44769. new Assertion(val, msg, assert.isAtMost, !0).to.be.most(atmst);
  44770. };
  44771. assert.isTrue = function(val, msg) {
  44772. new Assertion(val, msg, assert.isTrue, !0).is.true;
  44773. };
  44774. assert.isNotTrue = function(val, msg) {
  44775. new Assertion(val, msg, assert.isNotTrue, !0).to.not.equal(!0);
  44776. };
  44777. assert.isFalse = function(val, msg) {
  44778. new Assertion(val, msg, assert.isFalse, !0).is.false;
  44779. };
  44780. assert.isNotFalse = function(val, msg) {
  44781. new Assertion(val, msg, assert.isNotFalse, !0).to.not.equal(!1);
  44782. };
  44783. assert.isNull = function(val, msg) {
  44784. new Assertion(val, msg, assert.isNull, !0).to.equal(null);
  44785. };
  44786. assert.isNotNull = function(val, msg) {
  44787. new Assertion(val, msg, assert.isNotNull, !0).to.not.equal(null);
  44788. };
  44789. assert.isNaN = function(val, msg) {
  44790. new Assertion(val, msg, assert.isNaN, !0).to.be.NaN;
  44791. };
  44792. assert.isNotNaN = function(value, message) {
  44793. new Assertion(value, message, assert.isNotNaN, !0).not.to.be.NaN;
  44794. };
  44795. assert.exists = function(val, msg) {
  44796. new Assertion(val, msg, assert.exists, !0).to.exist;
  44797. };
  44798. assert.notExists = function(val, msg) {
  44799. new Assertion(val, msg, assert.notExists, !0).to.not.exist;
  44800. };
  44801. assert.isUndefined = function(val, msg) {
  44802. new Assertion(val, msg, assert.isUndefined, !0).to.equal(void 0);
  44803. };
  44804. assert.isDefined = function(val, msg) {
  44805. new Assertion(val, msg, assert.isDefined, !0).to.not.equal(void 0);
  44806. };
  44807. assert.isCallable = function(value, message) {
  44808. new Assertion(value, message, assert.isCallable, !0).is.callable;
  44809. };
  44810. assert.isNotCallable = function(value, message) {
  44811. new Assertion(value, message, assert.isNotCallable, !0).is.not.callable;
  44812. };
  44813. assert.isObject = function(val, msg) {
  44814. new Assertion(val, msg, assert.isObject, !0).to.be.a("object");
  44815. };
  44816. assert.isNotObject = function(val, msg) {
  44817. new Assertion(val, msg, assert.isNotObject, !0).to.not.be.a("object");
  44818. };
  44819. assert.isArray = function(val, msg) {
  44820. new Assertion(val, msg, assert.isArray, !0).to.be.an("array");
  44821. };
  44822. assert.isNotArray = function(val, msg) {
  44823. new Assertion(val, msg, assert.isNotArray, !0).to.not.be.an("array");
  44824. };
  44825. assert.isString = function(val, msg) {
  44826. new Assertion(val, msg, assert.isString, !0).to.be.a("string");
  44827. };
  44828. assert.isNotString = function(val, msg) {
  44829. new Assertion(val, msg, assert.isNotString, !0).to.not.be.a("string");
  44830. };
  44831. assert.isNumber = function(val, msg) {
  44832. new Assertion(val, msg, assert.isNumber, !0).to.be.a("number");
  44833. };
  44834. assert.isNotNumber = function(val, msg) {
  44835. new Assertion(val, msg, assert.isNotNumber, !0).to.not.be.a("number");
  44836. };
  44837. assert.isNumeric = function(val, msg) {
  44838. new Assertion(val, msg, assert.isNumeric, !0).is.numeric;
  44839. };
  44840. assert.isNotNumeric = function(val, msg) {
  44841. new Assertion(val, msg, assert.isNotNumeric, !0).is.not.numeric;
  44842. };
  44843. assert.isFinite = function(val, msg) {
  44844. new Assertion(val, msg, assert.isFinite, !0).to.be.finite;
  44845. };
  44846. assert.isBoolean = function(val, msg) {
  44847. new Assertion(val, msg, assert.isBoolean, !0).to.be.a("boolean");
  44848. };
  44849. assert.isNotBoolean = function(val, msg) {
  44850. new Assertion(val, msg, assert.isNotBoolean, !0).to.not.be.a("boolean");
  44851. };
  44852. assert.typeOf = function(val, type32, msg) {
  44853. new Assertion(val, msg, assert.typeOf, !0).to.be.a(type32);
  44854. };
  44855. assert.notTypeOf = function(value, type32, message) {
  44856. new Assertion(value, message, assert.notTypeOf, !0).to.not.be.a(type32);
  44857. };
  44858. assert.instanceOf = function(val, type32, msg) {
  44859. new Assertion(val, msg, assert.instanceOf, !0).to.be.instanceOf(type32);
  44860. };
  44861. assert.notInstanceOf = function(val, type32, msg) {
  44862. new Assertion(val, msg, assert.notInstanceOf, !0).to.not.be.instanceOf(
  44863. type32
  44864. );
  44865. };
  44866. assert.include = function(exp, inc, msg) {
  44867. new Assertion(exp, msg, assert.include, !0).include(inc);
  44868. };
  44869. assert.notInclude = function(exp, inc, msg) {
  44870. new Assertion(exp, msg, assert.notInclude, !0).not.include(inc);
  44871. };
  44872. assert.deepInclude = function(exp, inc, msg) {
  44873. new Assertion(exp, msg, assert.deepInclude, !0).deep.include(inc);
  44874. };
  44875. assert.notDeepInclude = function(exp, inc, msg) {
  44876. new Assertion(exp, msg, assert.notDeepInclude, !0).not.deep.include(inc);
  44877. };
  44878. assert.nestedInclude = function(exp, inc, msg) {
  44879. new Assertion(exp, msg, assert.nestedInclude, !0).nested.include(inc);
  44880. };
  44881. assert.notNestedInclude = function(exp, inc, msg) {
  44882. new Assertion(exp, msg, assert.notNestedInclude, !0).not.nested.include(
  44883. inc
  44884. );
  44885. };
  44886. assert.deepNestedInclude = function(exp, inc, msg) {
  44887. new Assertion(exp, msg, assert.deepNestedInclude, !0).deep.nested.include(
  44888. inc
  44889. );
  44890. };
  44891. assert.notDeepNestedInclude = function(exp, inc, msg) {
  44892. new Assertion(
  44893. exp,
  44894. msg,
  44895. assert.notDeepNestedInclude,
  44896. !0
  44897. ).not.deep.nested.include(inc);
  44898. };
  44899. assert.ownInclude = function(exp, inc, msg) {
  44900. new Assertion(exp, msg, assert.ownInclude, !0).own.include(inc);
  44901. };
  44902. assert.notOwnInclude = function(exp, inc, msg) {
  44903. new Assertion(exp, msg, assert.notOwnInclude, !0).not.own.include(inc);
  44904. };
  44905. assert.deepOwnInclude = function(exp, inc, msg) {
  44906. new Assertion(exp, msg, assert.deepOwnInclude, !0).deep.own.include(inc);
  44907. };
  44908. assert.notDeepOwnInclude = function(exp, inc, msg) {
  44909. new Assertion(exp, msg, assert.notDeepOwnInclude, !0).not.deep.own.include(
  44910. inc
  44911. );
  44912. };
  44913. assert.match = function(exp, re2, msg) {
  44914. new Assertion(exp, msg, assert.match, !0).to.match(re2);
  44915. };
  44916. assert.notMatch = function(exp, re2, msg) {
  44917. new Assertion(exp, msg, assert.notMatch, !0).to.not.match(re2);
  44918. };
  44919. assert.property = function(obj, prop, msg) {
  44920. new Assertion(obj, msg, assert.property, !0).to.have.property(prop);
  44921. };
  44922. assert.notProperty = function(obj, prop, msg) {
  44923. new Assertion(obj, msg, assert.notProperty, !0).to.not.have.property(prop);
  44924. };
  44925. assert.propertyVal = function(obj, prop, val, msg) {
  44926. new Assertion(obj, msg, assert.propertyVal, !0).to.have.property(prop, val);
  44927. };
  44928. assert.notPropertyVal = function(obj, prop, val, msg) {
  44929. new Assertion(obj, msg, assert.notPropertyVal, !0).to.not.have.property(
  44930. prop,
  44931. val
  44932. );
  44933. };
  44934. assert.deepPropertyVal = function(obj, prop, val, msg) {
  44935. new Assertion(obj, msg, assert.deepPropertyVal, !0).to.have.deep.property(
  44936. prop,
  44937. val
  44938. );
  44939. };
  44940. assert.notDeepPropertyVal = function(obj, prop, val, msg) {
  44941. new Assertion(
  44942. obj,
  44943. msg,
  44944. assert.notDeepPropertyVal,
  44945. !0
  44946. ).to.not.have.deep.property(prop, val);
  44947. };
  44948. assert.ownProperty = function(obj, prop, msg) {
  44949. new Assertion(obj, msg, assert.ownProperty, !0).to.have.own.property(prop);
  44950. };
  44951. assert.notOwnProperty = function(obj, prop, msg) {
  44952. new Assertion(obj, msg, assert.notOwnProperty, !0).to.not.have.own.property(
  44953. prop
  44954. );
  44955. };
  44956. assert.ownPropertyVal = function(obj, prop, value, msg) {
  44957. new Assertion(obj, msg, assert.ownPropertyVal, !0).to.have.own.property(
  44958. prop,
  44959. value
  44960. );
  44961. };
  44962. assert.notOwnPropertyVal = function(obj, prop, value, msg) {
  44963. new Assertion(
  44964. obj,
  44965. msg,
  44966. assert.notOwnPropertyVal,
  44967. !0
  44968. ).to.not.have.own.property(prop, value);
  44969. };
  44970. assert.deepOwnPropertyVal = function(obj, prop, value, msg) {
  44971. new Assertion(
  44972. obj,
  44973. msg,
  44974. assert.deepOwnPropertyVal,
  44975. !0
  44976. ).to.have.deep.own.property(prop, value);
  44977. };
  44978. assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
  44979. new Assertion(
  44980. obj,
  44981. msg,
  44982. assert.notDeepOwnPropertyVal,
  44983. !0
  44984. ).to.not.have.deep.own.property(prop, value);
  44985. };
  44986. assert.nestedProperty = function(obj, prop, msg) {
  44987. new Assertion(obj, msg, assert.nestedProperty, !0).to.have.nested.property(
  44988. prop
  44989. );
  44990. };
  44991. assert.notNestedProperty = function(obj, prop, msg) {
  44992. new Assertion(
  44993. obj,
  44994. msg,
  44995. assert.notNestedProperty,
  44996. !0
  44997. ).to.not.have.nested.property(prop);
  44998. };
  44999. assert.nestedPropertyVal = function(obj, prop, val, msg) {
  45000. new Assertion(
  45001. obj,
  45002. msg,
  45003. assert.nestedPropertyVal,
  45004. !0
  45005. ).to.have.nested.property(prop, val);
  45006. };
  45007. assert.notNestedPropertyVal = function(obj, prop, val, msg) {
  45008. new Assertion(
  45009. obj,
  45010. msg,
  45011. assert.notNestedPropertyVal,
  45012. !0
  45013. ).to.not.have.nested.property(prop, val);
  45014. };
  45015. assert.deepNestedPropertyVal = function(obj, prop, val, msg) {
  45016. new Assertion(
  45017. obj,
  45018. msg,
  45019. assert.deepNestedPropertyVal,
  45020. !0
  45021. ).to.have.deep.nested.property(prop, val);
  45022. };
  45023. assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
  45024. new Assertion(
  45025. obj,
  45026. msg,
  45027. assert.notDeepNestedPropertyVal,
  45028. !0
  45029. ).to.not.have.deep.nested.property(prop, val);
  45030. };
  45031. assert.lengthOf = function(exp, len, msg) {
  45032. new Assertion(exp, msg, assert.lengthOf, !0).to.have.lengthOf(len);
  45033. };
  45034. assert.hasAnyKeys = function(obj, keys3, msg) {
  45035. new Assertion(obj, msg, assert.hasAnyKeys, !0).to.have.any.keys(keys3);
  45036. };
  45037. assert.hasAllKeys = function(obj, keys3, msg) {
  45038. new Assertion(obj, msg, assert.hasAllKeys, !0).to.have.all.keys(keys3);
  45039. };
  45040. assert.containsAllKeys = function(obj, keys3, msg) {
  45041. new Assertion(obj, msg, assert.containsAllKeys, !0).to.contain.all.keys(
  45042. keys3
  45043. );
  45044. };
  45045. assert.doesNotHaveAnyKeys = function(obj, keys3, msg) {
  45046. new Assertion(obj, msg, assert.doesNotHaveAnyKeys, !0).to.not.have.any.keys(
  45047. keys3
  45048. );
  45049. };
  45050. assert.doesNotHaveAllKeys = function(obj, keys3, msg) {
  45051. new Assertion(obj, msg, assert.doesNotHaveAllKeys, !0).to.not.have.all.keys(
  45052. keys3
  45053. );
  45054. };
  45055. assert.hasAnyDeepKeys = function(obj, keys3, msg) {
  45056. new Assertion(obj, msg, assert.hasAnyDeepKeys, !0).to.have.any.deep.keys(
  45057. keys3
  45058. );
  45059. };
  45060. assert.hasAllDeepKeys = function(obj, keys3, msg) {
  45061. new Assertion(obj, msg, assert.hasAllDeepKeys, !0).to.have.all.deep.keys(
  45062. keys3
  45063. );
  45064. };
  45065. assert.containsAllDeepKeys = function(obj, keys3, msg) {
  45066. new Assertion(
  45067. obj,
  45068. msg,
  45069. assert.containsAllDeepKeys,
  45070. !0
  45071. ).to.contain.all.deep.keys(keys3);
  45072. };
  45073. assert.doesNotHaveAnyDeepKeys = function(obj, keys3, msg) {
  45074. new Assertion(
  45075. obj,
  45076. msg,
  45077. assert.doesNotHaveAnyDeepKeys,
  45078. !0
  45079. ).to.not.have.any.deep.keys(keys3);
  45080. };
  45081. assert.doesNotHaveAllDeepKeys = function(obj, keys3, msg) {
  45082. new Assertion(
  45083. obj,
  45084. msg,
  45085. assert.doesNotHaveAllDeepKeys,
  45086. !0
  45087. ).to.not.have.all.deep.keys(keys3);
  45088. };
  45089. assert.throws = function(fn4, errorLike, errMsgMatcher, msg) {
  45090. (typeof errorLike == "string" || errorLike instanceof RegExp) && (errMsgMatcher = errorLike, errorLike = null);
  45091. let assertErr = new Assertion(fn4, msg, assert.throws, !0).to.throw(
  45092. errorLike,
  45093. errMsgMatcher
  45094. );
  45095. return flag(assertErr, "object");
  45096. };
  45097. assert.doesNotThrow = function(fn4, errorLike, errMsgMatcher, message) {
  45098. (typeof errorLike == "string" || errorLike instanceof RegExp) && (errMsgMatcher = errorLike, errorLike = null), new Assertion(fn4, message, assert.doesNotThrow, !0).to.not.throw(
  45099. errorLike,
  45100. errMsgMatcher
  45101. );
  45102. };
  45103. assert.operator = function(val, operator, val2, msg) {
  45104. let ok;
  45105. switch (operator) {
  45106. case "==":
  45107. ok = val == val2;
  45108. break;
  45109. case "===":
  45110. ok = val === val2;
  45111. break;
  45112. case ">":
  45113. ok = val > val2;
  45114. break;
  45115. case ">=":
  45116. ok = val >= val2;
  45117. break;
  45118. case "<":
  45119. ok = val < val2;
  45120. break;
  45121. case "<=":
  45122. ok = val <= val2;
  45123. break;
  45124. case "!=":
  45125. ok = val != val2;
  45126. break;
  45127. case "!==":
  45128. ok = val !== val2;
  45129. break;
  45130. default:
  45131. throw msg = msg && msg + ": ", new AssertionError(
  45132. msg + 'Invalid operator "' + operator + '"',
  45133. void 0,
  45134. assert.operator
  45135. );
  45136. }
  45137. let test22 = new Assertion(ok, msg, assert.operator, !0);
  45138. test22.assert(
  45139. flag(test22, "object") === !0,
  45140. "expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2),
  45141. "expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2)
  45142. );
  45143. };
  45144. assert.closeTo = function(act, exp, delta, msg) {
  45145. new Assertion(act, msg, assert.closeTo, !0).to.be.closeTo(exp, delta);
  45146. };
  45147. assert.approximately = function(act, exp, delta, msg) {
  45148. new Assertion(act, msg, assert.approximately, !0).to.be.approximately(
  45149. exp,
  45150. delta
  45151. );
  45152. };
  45153. assert.sameMembers = function(set1, set22, msg) {
  45154. new Assertion(set1, msg, assert.sameMembers, !0).to.have.same.members(set22);
  45155. };
  45156. assert.notSameMembers = function(set1, set22, msg) {
  45157. new Assertion(
  45158. set1,
  45159. msg,
  45160. assert.notSameMembers,
  45161. !0
  45162. ).to.not.have.same.members(set22);
  45163. };
  45164. assert.sameDeepMembers = function(set1, set22, msg) {
  45165. new Assertion(
  45166. set1,
  45167. msg,
  45168. assert.sameDeepMembers,
  45169. !0
  45170. ).to.have.same.deep.members(set22);
  45171. };
  45172. assert.notSameDeepMembers = function(set1, set22, msg) {
  45173. new Assertion(
  45174. set1,
  45175. msg,
  45176. assert.notSameDeepMembers,
  45177. !0
  45178. ).to.not.have.same.deep.members(set22);
  45179. };
  45180. assert.sameOrderedMembers = function(set1, set22, msg) {
  45181. new Assertion(
  45182. set1,
  45183. msg,
  45184. assert.sameOrderedMembers,
  45185. !0
  45186. ).to.have.same.ordered.members(set22);
  45187. };
  45188. assert.notSameOrderedMembers = function(set1, set22, msg) {
  45189. new Assertion(
  45190. set1,
  45191. msg,
  45192. assert.notSameOrderedMembers,
  45193. !0
  45194. ).to.not.have.same.ordered.members(set22);
  45195. };
  45196. assert.sameDeepOrderedMembers = function(set1, set22, msg) {
  45197. new Assertion(
  45198. set1,
  45199. msg,
  45200. assert.sameDeepOrderedMembers,
  45201. !0
  45202. ).to.have.same.deep.ordered.members(set22);
  45203. };
  45204. assert.notSameDeepOrderedMembers = function(set1, set22, msg) {
  45205. new Assertion(
  45206. set1,
  45207. msg,
  45208. assert.notSameDeepOrderedMembers,
  45209. !0
  45210. ).to.not.have.same.deep.ordered.members(set22);
  45211. };
  45212. assert.includeMembers = function(superset, subset, msg) {
  45213. new Assertion(superset, msg, assert.includeMembers, !0).to.include.members(
  45214. subset
  45215. );
  45216. };
  45217. assert.notIncludeMembers = function(superset, subset, msg) {
  45218. new Assertion(
  45219. superset,
  45220. msg,
  45221. assert.notIncludeMembers,
  45222. !0
  45223. ).to.not.include.members(subset);
  45224. };
  45225. assert.includeDeepMembers = function(superset, subset, msg) {
  45226. new Assertion(
  45227. superset,
  45228. msg,
  45229. assert.includeDeepMembers,
  45230. !0
  45231. ).to.include.deep.members(subset);
  45232. };
  45233. assert.notIncludeDeepMembers = function(superset, subset, msg) {
  45234. new Assertion(
  45235. superset,
  45236. msg,
  45237. assert.notIncludeDeepMembers,
  45238. !0
  45239. ).to.not.include.deep.members(subset);
  45240. };
  45241. assert.includeOrderedMembers = function(superset, subset, msg) {
  45242. new Assertion(
  45243. superset,
  45244. msg,
  45245. assert.includeOrderedMembers,
  45246. !0
  45247. ).to.include.ordered.members(subset);
  45248. };
  45249. assert.notIncludeOrderedMembers = function(superset, subset, msg) {
  45250. new Assertion(
  45251. superset,
  45252. msg,
  45253. assert.notIncludeOrderedMembers,
  45254. !0
  45255. ).to.not.include.ordered.members(subset);
  45256. };
  45257. assert.includeDeepOrderedMembers = function(superset, subset, msg) {
  45258. new Assertion(
  45259. superset,
  45260. msg,
  45261. assert.includeDeepOrderedMembers,
  45262. !0
  45263. ).to.include.deep.ordered.members(subset);
  45264. };
  45265. assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
  45266. new Assertion(
  45267. superset,
  45268. msg,
  45269. assert.notIncludeDeepOrderedMembers,
  45270. !0
  45271. ).to.not.include.deep.ordered.members(subset);
  45272. };
  45273. assert.oneOf = function(inList, list, msg) {
  45274. new Assertion(inList, msg, assert.oneOf, !0).to.be.oneOf(list);
  45275. };
  45276. assert.isIterable = function(obj, msg) {
  45277. if (obj == null || !obj[Symbol.iterator])
  45278. throw msg = msg ? `${msg} expected ${inspect22(obj)} to be an iterable` : `expected ${inspect22(obj)} to be an iterable`, new AssertionError(msg, void 0, assert.isIterable);
  45279. };
  45280. assert.changes = function(fn4, obj, prop, msg) {
  45281. arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.changes, !0).to.change(obj, prop);
  45282. };
  45283. assert.changesBy = function(fn4, obj, prop, delta, msg) {
  45284. if (arguments.length === 4 && typeof obj == "function") {
  45285. let tmpMsg = delta;
  45286. delta = prop, msg = tmpMsg;
  45287. } else arguments.length === 3 && (delta = prop, prop = null);
  45288. new Assertion(fn4, msg, assert.changesBy, !0).to.change(obj, prop).by(delta);
  45289. };
  45290. assert.doesNotChange = function(fn4, obj, prop, msg) {
  45291. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotChange, !0).to.not.change(
  45292. obj,
  45293. prop
  45294. );
  45295. };
  45296. assert.changesButNotBy = function(fn4, obj, prop, delta, msg) {
  45297. if (arguments.length === 4 && typeof obj == "function") {
  45298. let tmpMsg = delta;
  45299. delta = prop, msg = tmpMsg;
  45300. } else arguments.length === 3 && (delta = prop, prop = null);
  45301. new Assertion(fn4, msg, assert.changesButNotBy, !0).to.change(obj, prop).but.not.by(delta);
  45302. };
  45303. assert.increases = function(fn4, obj, prop, msg) {
  45304. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.increases, !0).to.increase(obj, prop);
  45305. };
  45306. assert.increasesBy = function(fn4, obj, prop, delta, msg) {
  45307. if (arguments.length === 4 && typeof obj == "function") {
  45308. let tmpMsg = delta;
  45309. delta = prop, msg = tmpMsg;
  45310. } else arguments.length === 3 && (delta = prop, prop = null);
  45311. new Assertion(fn4, msg, assert.increasesBy, !0).to.increase(obj, prop).by(delta);
  45312. };
  45313. assert.doesNotIncrease = function(fn4, obj, prop, msg) {
  45314. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotIncrease, !0).to.not.increase(
  45315. obj,
  45316. prop
  45317. );
  45318. };
  45319. assert.increasesButNotBy = function(fn4, obj, prop, delta, msg) {
  45320. if (arguments.length === 4 && typeof obj == "function") {
  45321. let tmpMsg = delta;
  45322. delta = prop, msg = tmpMsg;
  45323. } else arguments.length === 3 && (delta = prop, prop = null);
  45324. new Assertion(fn4, msg, assert.increasesButNotBy, !0).to.increase(obj, prop).but.not.by(delta);
  45325. };
  45326. assert.decreases = function(fn4, obj, prop, msg) {
  45327. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.decreases, !0).to.decrease(obj, prop);
  45328. };
  45329. assert.decreasesBy = function(fn4, obj, prop, delta, msg) {
  45330. if (arguments.length === 4 && typeof obj == "function") {
  45331. let tmpMsg = delta;
  45332. delta = prop, msg = tmpMsg;
  45333. } else arguments.length === 3 && (delta = prop, prop = null);
  45334. new Assertion(fn4, msg, assert.decreasesBy, !0).to.decrease(obj, prop).by(delta);
  45335. };
  45336. assert.doesNotDecrease = function(fn4, obj, prop, msg) {
  45337. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotDecrease, !0).to.not.decrease(
  45338. obj,
  45339. prop
  45340. );
  45341. };
  45342. assert.doesNotDecreaseBy = function(fn4, obj, prop, delta, msg) {
  45343. if (arguments.length === 4 && typeof obj == "function") {
  45344. let tmpMsg = delta;
  45345. delta = prop, msg = tmpMsg;
  45346. } else arguments.length === 3 && (delta = prop, prop = null);
  45347. return new Assertion(fn4, msg, assert.doesNotDecreaseBy, !0).to.not.decrease(obj, prop).by(delta);
  45348. };
  45349. assert.decreasesButNotBy = function(fn4, obj, prop, delta, msg) {
  45350. if (arguments.length === 4 && typeof obj == "function") {
  45351. let tmpMsg = delta;
  45352. delta = prop, msg = tmpMsg;
  45353. } else arguments.length === 3 && (delta = prop, prop = null);
  45354. new Assertion(fn4, msg, assert.decreasesButNotBy, !0).to.decrease(obj, prop).but.not.by(delta);
  45355. };
  45356. assert.ifError = function(val) {
  45357. if (val)
  45358. throw val;
  45359. };
  45360. assert.isExtensible = function(obj, msg) {
  45361. new Assertion(obj, msg, assert.isExtensible, !0).to.be.extensible;
  45362. };
  45363. assert.isNotExtensible = function(obj, msg) {
  45364. new Assertion(obj, msg, assert.isNotExtensible, !0).to.not.be.extensible;
  45365. };
  45366. assert.isSealed = function(obj, msg) {
  45367. new Assertion(obj, msg, assert.isSealed, !0).to.be.sealed;
  45368. };
  45369. assert.isNotSealed = function(obj, msg) {
  45370. new Assertion(obj, msg, assert.isNotSealed, !0).to.not.be.sealed;
  45371. };
  45372. assert.isFrozen = function(obj, msg) {
  45373. new Assertion(obj, msg, assert.isFrozen, !0).to.be.frozen;
  45374. };
  45375. assert.isNotFrozen = function(obj, msg) {
  45376. new Assertion(obj, msg, assert.isNotFrozen, !0).to.not.be.frozen;
  45377. };
  45378. assert.isEmpty = function(val, msg) {
  45379. new Assertion(val, msg, assert.isEmpty, !0).to.be.empty;
  45380. };
  45381. assert.isNotEmpty = function(val, msg) {
  45382. new Assertion(val, msg, assert.isNotEmpty, !0).to.not.be.empty;
  45383. };
  45384. assert.containsSubset = function(val, exp, msg) {
  45385. new Assertion(val, msg).to.containSubset(exp);
  45386. };
  45387. assert.doesNotContainSubset = function(val, exp, msg) {
  45388. new Assertion(val, msg).to.not.containSubset(exp);
  45389. };
  45390. var aliases = [
  45391. ["isOk", "ok"],
  45392. ["isNotOk", "notOk"],
  45393. ["throws", "throw"],
  45394. ["throws", "Throw"],
  45395. ["isExtensible", "extensible"],
  45396. ["isNotExtensible", "notExtensible"],
  45397. ["isSealed", "sealed"],
  45398. ["isNotSealed", "notSealed"],
  45399. ["isFrozen", "frozen"],
  45400. ["isNotFrozen", "notFrozen"],
  45401. ["isEmpty", "empty"],
  45402. ["isNotEmpty", "notEmpty"],
  45403. ["isCallable", "isFunction"],
  45404. ["isNotCallable", "isNotFunction"],
  45405. ["containsSubset", "containSubset"]
  45406. ];
  45407. for (let [name, as] of aliases)
  45408. assert[as] = assert[name];
  45409. var used = [];
  45410. function use2(fn4) {
  45411. let exports = {
  45412. use: use2,
  45413. AssertionError,
  45414. util: utils_exports,
  45415. config: config2,
  45416. expect,
  45417. assert,
  45418. Assertion,
  45419. ...should_exports
  45420. };
  45421. return ~used.indexOf(fn4) || (fn4(exports, utils_exports), used.push(fn4)), exports;
  45422. }
  45423. __name(use2, "use");
  45424. // ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs
  45425. var matchers_exports = {};
  45426. __export(matchers_exports, {
  45427. toAppearAfter: () => toAppearAfter,
  45428. toAppearBefore: () => toAppearBefore,
  45429. toBeChecked: () => toBeChecked,
  45430. toBeDisabled: () => toBeDisabled,
  45431. toBeEmpty: () => toBeEmpty,
  45432. toBeEmptyDOMElement: () => toBeEmptyDOMElement,
  45433. toBeEnabled: () => toBeEnabled,
  45434. toBeInTheDOM: () => toBeInTheDOM,
  45435. toBeInTheDocument: () => toBeInTheDocument,
  45436. toBeInvalid: () => toBeInvalid,
  45437. toBePartiallyChecked: () => toBePartiallyChecked,
  45438. toBePartiallyPressed: () => toBePartiallyPressed,
  45439. toBePressed: () => toBePressed,
  45440. toBeRequired: () => toBeRequired,
  45441. toBeValid: () => toBeValid,
  45442. toBeVisible: () => toBeVisible,
  45443. toContainElement: () => toContainElement,
  45444. toContainHTML: () => toContainHTML,
  45445. toHaveAccessibleDescription: () => toHaveAccessibleDescription,
  45446. toHaveAccessibleErrorMessage: () => toHaveAccessibleErrorMessage,
  45447. toHaveAccessibleName: () => toHaveAccessibleName,
  45448. toHaveAttribute: () => toHaveAttribute,
  45449. toHaveClass: () => toHaveClass,
  45450. toHaveDescription: () => toHaveDescription,
  45451. toHaveDisplayValue: () => toHaveDisplayValue,
  45452. toHaveErrorMessage: () => toHaveErrorMessage,
  45453. toHaveFocus: () => toHaveFocus,
  45454. toHaveFormValues: () => toHaveFormValues,
  45455. toHaveRole: () => toHaveRole,
  45456. toHaveSelection: () => toHaveSelection,
  45457. toHaveStyle: () => toHaveStyle,
  45458. toHaveTextContent: () => toHaveTextContent,
  45459. toHaveValue: () => toHaveValue
  45460. });
  45461. // ../../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs
  45462. var import_redent = __toESM(require_redent(), 1);
  45463. // ../../node_modules/@adobe/css-tools/dist/index.mjs
  45464. function $parcel$defineInteropFlag(a3) {
  45465. Object.defineProperty(a3, "__esModule", { value: !0, configurable: !0 });
  45466. }
  45467. function $parcel$export(e, n, v, s3) {
  45468. Object.defineProperty(e, n, { get: v, set: s3, enumerable: !0, configurable: !0 });
  45469. }
  45470. var $009ddb00d3ec72b8$exports = {};
  45471. $parcel$defineInteropFlag($009ddb00d3ec72b8$exports);
  45472. $parcel$export($009ddb00d3ec72b8$exports, "default", () => $009ddb00d3ec72b8$export$2e2bcd8739ae039);
  45473. var $009ddb00d3ec72b8$export$2e2bcd8739ae039 = class extends Error {
  45474. constructor(filename, msg, lineno, column2, css3) {
  45475. super(filename + ":" + lineno + ":" + column2 + ": " + msg), this.reason = msg, this.filename = filename, this.line = lineno, this.column = column2, this.source = css3;
  45476. }
  45477. }, $0865a9fb4cc365fe$exports = {};
  45478. $parcel$defineInteropFlag($0865a9fb4cc365fe$exports);
  45479. $parcel$export($0865a9fb4cc365fe$exports, "default", () => $0865a9fb4cc365fe$export$2e2bcd8739ae039);
  45480. var $0865a9fb4cc365fe$export$2e2bcd8739ae039 = class {
  45481. constructor(start2, end2, source) {
  45482. this.start = start2, this.end = end2, this.source = source;
  45483. }
  45484. }, $b2e137848b48cf4f$exports = {};
  45485. $parcel$export($b2e137848b48cf4f$exports, "CssTypes", () => $b2e137848b48cf4f$export$9be5dd6e61d5d73a);
  45486. var $b2e137848b48cf4f$export$9be5dd6e61d5d73a;
  45487. (function(CssTypes) {
  45488. CssTypes.stylesheet = "stylesheet", CssTypes.rule = "rule", CssTypes.declaration = "declaration", CssTypes.comment = "comment", CssTypes.container = "container", CssTypes.charset = "charset", CssTypes.document = "document", CssTypes.customMedia = "custom-media", CssTypes.fontFace = "font-face", CssTypes.host = "host", CssTypes.import = "import", CssTypes.keyframes = "keyframes", CssTypes.keyframe = "keyframe", CssTypes.layer = "layer", CssTypes.media = "media", CssTypes.namespace = "namespace", CssTypes.page = "page", CssTypes.startingStyle = "starting-style", CssTypes.supports = "supports";
  45489. })($b2e137848b48cf4f$export$9be5dd6e61d5d73a || ($b2e137848b48cf4f$export$9be5dd6e61d5d73a = {}));
  45490. var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$export$98e6a39c04603d36 = (css3, options) => {
  45491. options = options || {};
  45492. let lineno = 1, column2 = 1;
  45493. function updatePosition(str2) {
  45494. let lines = str2.match(/\n/g);
  45495. lines && (lineno += lines.length);
  45496. let i = str2.lastIndexOf(`
  45497. `);
  45498. column2 = ~i ? str2.length - i : column2 + str2.length;
  45499. }
  45500. function position2() {
  45501. let start2 = {
  45502. line: lineno,
  45503. column: column2
  45504. };
  45505. return function(node2) {
  45506. return node2.position = new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start2, {
  45507. line: lineno,
  45508. column: column2
  45509. }, options?.source || ""), whitespace2(), node2;
  45510. };
  45511. }
  45512. let errorsList = [];
  45513. function error(msg) {
  45514. let err = new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source || "", msg, lineno, column2, css3);
  45515. if (options?.silent) errorsList.push(err);
  45516. else throw err;
  45517. }
  45518. function stylesheet() {
  45519. let rulesList = rules();
  45520. return {
  45521. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,
  45522. stylesheet: {
  45523. source: options?.source,
  45524. rules: rulesList,
  45525. parsingErrors: errorsList
  45526. }
  45527. };
  45528. }
  45529. function open() {
  45530. return match3(/^{\s*/);
  45531. }
  45532. function close() {
  45533. return match3(/^}/);
  45534. }
  45535. function rules() {
  45536. let node2, rules2 = [];
  45537. for (whitespace2(), comments(rules2); css3.length && css3.charAt(0) !== "}" && (node2 = atrule() || rule()); ) node2 && (rules2.push(node2), comments(rules2));
  45538. return rules2;
  45539. }
  45540. function match3(re2) {
  45541. let m3 = re2.exec(css3);
  45542. if (!m3) return;
  45543. let str2 = m3[0];
  45544. return updatePosition(str2), css3 = css3.slice(str2.length), m3;
  45545. }
  45546. function whitespace2() {
  45547. match3(/^\s*/);
  45548. }
  45549. function comments(rules2) {
  45550. let c;
  45551. for (rules2 = rules2 || []; c = comment2(); ) c && rules2.push(c);
  45552. return rules2;
  45553. }
  45554. function comment2() {
  45555. let pos = position2();
  45556. if (css3.charAt(0) !== "/" || css3.charAt(1) !== "*") return;
  45557. let m3 = match3(/^\/\*[^]*?\*\//);
  45558. return m3 ? pos({
  45559. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,
  45560. comment: m3[0].slice(2, -2)
  45561. }) : error("End of comment missing");
  45562. }
  45563. function findClosingParenthese(str2, start2, depth) {
  45564. let ptr = start2 + 1, found = !1, closeParentheses = str2.indexOf(")", ptr);
  45565. for (; !found && closeParentheses !== -1; ) {
  45566. let nextParentheses = str2.indexOf("(", ptr);
  45567. nextParentheses !== -1 && nextParentheses < closeParentheses ? (ptr = findClosingParenthese(str2, nextParentheses + 1, depth + 1) + 1, closeParentheses = str2.indexOf(")", ptr)) : found = !0;
  45568. }
  45569. return found && closeParentheses !== -1 ? closeParentheses : -1;
  45570. }
  45571. function selector() {
  45572. let m3 = match3(/^([^{]+)/);
  45573. if (!m3) return;
  45574. let res = $d708735ed1303b43$var$trim(m3[0]).replace($d708735ed1303b43$var$commentre, "");
  45575. if (res.indexOf(",") === -1) return [
  45576. res
  45577. ];
  45578. let ptr = 0, startParentheses = res.indexOf("(", ptr);
  45579. for (; startParentheses !== -1; ) {
  45580. let closeParentheses = findClosingParenthese(res, startParentheses, 0);
  45581. if (closeParentheses === -1) break;
  45582. ptr = closeParentheses + 1, res = res.substring(0, startParentheses) + res.substring(startParentheses, closeParentheses).replace(/,/g, "\u200C") + res.substring(closeParentheses), startParentheses = res.indexOf("(", ptr);
  45583. }
  45584. return res = res.replace(/("|')(?:\\\1|.)*?\1/g, (m4) => m4.replace(/,/g, "\u200C")), res.split(",").map((s3) => $d708735ed1303b43$var$trim(s3.replace(/\u200C/g, ",")));
  45585. }
  45586. function declaration2() {
  45587. let pos = position2(), propMatch = match3(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
  45588. if (!propMatch) return;
  45589. let propValue = $d708735ed1303b43$var$trim(propMatch[0]);
  45590. if (!match3(/^:\s*/)) return error("property missing ':'");
  45591. let val = match3(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/), ret = pos({
  45592. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,
  45593. property: propValue.replace($d708735ed1303b43$var$commentre, ""),
  45594. value: val ? $d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre, "") : ""
  45595. });
  45596. return match3(/^[;\s]*/), ret;
  45597. }
  45598. function declarations() {
  45599. let decls = [];
  45600. if (!open()) return error("missing '{'");
  45601. comments(decls);
  45602. let decl;
  45603. for (; decl = declaration2(); ) decl && (decls.push(decl), comments(decls));
  45604. return close() ? decls : error("missing '}'");
  45605. }
  45606. function keyframe() {
  45607. let m3, vals = [], pos = position2();
  45608. for (; m3 = match3(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
  45609. vals.push(m3[1]), match3(/^,\s*/);
  45610. if (vals.length)
  45611. return pos({
  45612. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,
  45613. values: vals,
  45614. declarations: declarations() || []
  45615. });
  45616. }
  45617. function atkeyframes() {
  45618. let pos = position2(), m1 = match3(/^@([-\w]+)?keyframes\s*/);
  45619. if (!m1) return;
  45620. let vendor = m1[1], m22 = match3(/^([-\w]+)\s*/);
  45621. if (!m22) return error("@keyframes missing name");
  45622. let name = m22[1];
  45623. if (!open()) return error("@keyframes missing '{'");
  45624. let frame, frames = comments();
  45625. for (; frame = keyframe(); )
  45626. frames.push(frame), frames = frames.concat(comments());
  45627. return close() ? pos({
  45628. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,
  45629. name,
  45630. vendor,
  45631. keyframes: frames
  45632. }) : error("@keyframes missing '}'");
  45633. }
  45634. function atsupports() {
  45635. let pos = position2(), m3 = match3(/^@supports *([^{]+)/);
  45636. if (!m3) return;
  45637. let supports = $d708735ed1303b43$var$trim(m3[1]);
  45638. if (!open()) return error("@supports missing '{'");
  45639. let style = comments().concat(rules());
  45640. return close() ? pos({
  45641. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,
  45642. supports,
  45643. rules: style
  45644. }) : error("@supports missing '}'");
  45645. }
  45646. function athost() {
  45647. let pos = position2();
  45648. if (!match3(/^@host\s*/)) return;
  45649. if (!open()) return error("@host missing '{'");
  45650. let style = comments().concat(rules());
  45651. return close() ? pos({
  45652. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,
  45653. rules: style
  45654. }) : error("@host missing '}'");
  45655. }
  45656. function atcontainer() {
  45657. let pos = position2(), m3 = match3(/^@container *([^{]+)/);
  45658. if (!m3) return;
  45659. let container = $d708735ed1303b43$var$trim(m3[1]);
  45660. if (!open()) return error("@container missing '{'");
  45661. let style = comments().concat(rules());
  45662. return close() ? pos({
  45663. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,
  45664. container,
  45665. rules: style
  45666. }) : error("@container missing '}'");
  45667. }
  45668. function atlayer() {
  45669. let pos = position2(), m3 = match3(/^@layer *([^{;@]+)/);
  45670. if (!m3) return;
  45671. let layer = $d708735ed1303b43$var$trim(m3[1]);
  45672. if (!open())
  45673. return match3(/^[;\s]*/), pos({
  45674. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,
  45675. layer
  45676. });
  45677. let style = comments().concat(rules());
  45678. return close() ? pos({
  45679. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,
  45680. layer,
  45681. rules: style
  45682. }) : error("@layer missing '}'");
  45683. }
  45684. function atmedia() {
  45685. let pos = position2(), m3 = match3(/^@media *([^{]+)/);
  45686. if (!m3) return;
  45687. let media = $d708735ed1303b43$var$trim(m3[1]);
  45688. if (!open()) return error("@media missing '{'");
  45689. let style = comments().concat(rules());
  45690. return close() ? pos({
  45691. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,
  45692. media,
  45693. rules: style
  45694. }) : error("@media missing '}'");
  45695. }
  45696. function atcustommedia() {
  45697. let pos = position2(), m3 = match3(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);
  45698. if (m3)
  45699. return pos({
  45700. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,
  45701. name: $d708735ed1303b43$var$trim(m3[1]),
  45702. media: $d708735ed1303b43$var$trim(m3[2])
  45703. });
  45704. }
  45705. function atpage() {
  45706. let pos = position2();
  45707. if (!match3(/^@page */)) return;
  45708. let sel = selector() || [];
  45709. if (!open()) return error("@page missing '{'");
  45710. let decls = comments(), decl;
  45711. for (; decl = declaration2(); )
  45712. decls.push(decl), decls = decls.concat(comments());
  45713. return close() ? pos({
  45714. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,
  45715. selectors: sel,
  45716. declarations: decls
  45717. }) : error("@page missing '}'");
  45718. }
  45719. function atdocument() {
  45720. let pos = position2(), m3 = match3(/^@([-\w]+)?document *([^{]+)/);
  45721. if (!m3) return;
  45722. let vendor = $d708735ed1303b43$var$trim(m3[1]), doc = $d708735ed1303b43$var$trim(m3[2]);
  45723. if (!open()) return error("@document missing '{'");
  45724. let style = comments().concat(rules());
  45725. return close() ? pos({
  45726. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,
  45727. document: doc,
  45728. vendor,
  45729. rules: style
  45730. }) : error("@document missing '}'");
  45731. }
  45732. function atfontface() {
  45733. let pos = position2();
  45734. if (!match3(/^@font-face\s*/)) return;
  45735. if (!open()) return error("@font-face missing '{'");
  45736. let decls = comments(), decl;
  45737. for (; decl = declaration2(); )
  45738. decls.push(decl), decls = decls.concat(comments());
  45739. return close() ? pos({
  45740. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,
  45741. declarations: decls
  45742. }) : error("@font-face missing '}'");
  45743. }
  45744. function atstartingstyle() {
  45745. let pos = position2();
  45746. if (!match3(/^@starting-style\s*/)) return;
  45747. if (!open()) return error("@starting-style missing '{'");
  45748. let style = comments().concat(rules());
  45749. return close() ? pos({
  45750. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,
  45751. rules: style
  45752. }) : error("@starting-style missing '}'");
  45753. }
  45754. let atimport = _compileAtrule("import"), atcharset = _compileAtrule("charset"), atnamespace = _compileAtrule("namespace");
  45755. function _compileAtrule(name) {
  45756. let re2 = new RegExp("^@" + name + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
  45757. return function() {
  45758. let pos = position2(), m3 = match3(re2);
  45759. if (!m3) return;
  45760. let ret = {
  45761. type: name
  45762. };
  45763. return ret[name] = m3[1].trim(), pos(ret);
  45764. };
  45765. }
  45766. function atrule() {
  45767. if (css3[0] === "@")
  45768. return atkeyframes() || atmedia() || atcustommedia() || atsupports() || atimport() || atcharset() || atnamespace() || atdocument() || atpage() || athost() || atfontface() || atcontainer() || atstartingstyle() || atlayer();
  45769. }
  45770. function rule() {
  45771. let pos = position2(), sel = selector();
  45772. return sel ? (comments(), pos({
  45773. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,
  45774. selectors: sel,
  45775. declarations: declarations() || []
  45776. })) : error("selector missing");
  45777. }
  45778. return $d708735ed1303b43$var$addParent(stylesheet());
  45779. };
  45780. function $d708735ed1303b43$var$trim(str2) {
  45781. return str2 ? str2.trim() : "";
  45782. }
  45783. function $d708735ed1303b43$var$addParent(obj, parent) {
  45784. let isNode2 = obj && typeof obj.type == "string", childParent = isNode2 ? obj : parent;
  45785. for (let k in obj) {
  45786. let value = obj[k];
  45787. Array.isArray(value) ? value.forEach((v) => {
  45788. $d708735ed1303b43$var$addParent(v, childParent);
  45789. }) : value && typeof value == "object" && $d708735ed1303b43$var$addParent(value, childParent);
  45790. }
  45791. return isNode2 && Object.defineProperty(obj, "parent", {
  45792. configurable: !0,
  45793. writable: !0,
  45794. enumerable: !1,
  45795. value: parent || null
  45796. }), obj;
  45797. }
  45798. var $d708735ed1303b43$export$2e2bcd8739ae039 = $d708735ed1303b43$export$98e6a39c04603d36;
  45799. var $149c1bd638913645$export$98e6a39c04603d36 = $d708735ed1303b43$export$2e2bcd8739ae039;
  45800. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
  45801. var toStr = Object.prototype.toString;
  45802. function isCallable(fn4) {
  45803. return typeof fn4 == "function" || toStr.call(fn4) === "[object Function]";
  45804. }
  45805. function toInteger(value) {
  45806. var number = Number(value);
  45807. return isNaN(number) ? 0 : number === 0 || !isFinite(number) ? number : (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
  45808. }
  45809. var maxSafeInteger = Math.pow(2, 53) - 1;
  45810. function toLength(value) {
  45811. var len = toInteger(value);
  45812. return Math.min(Math.max(len, 0), maxSafeInteger);
  45813. }
  45814. function arrayFrom(arrayLike, mapFn) {
  45815. var C3 = Array, items = Object(arrayLike);
  45816. if (arrayLike == null)
  45817. throw new TypeError("Array.from requires an array-like object - not null or undefined");
  45818. if (typeof mapFn < "u" && !isCallable(mapFn))
  45819. throw new TypeError("Array.from: when provided, the second argument must be a function");
  45820. for (var len = toLength(items.length), A3 = isCallable(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; )
  45821. kValue = items[k], mapFn ? A3[k] = mapFn(kValue, k) : A3[k] = kValue, k += 1;
  45822. return A3.length = len, A3;
  45823. }
  45824. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
  45825. function _typeof2(o) {
  45826. "@babel/helpers - typeof";
  45827. return _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  45828. return typeof o2;
  45829. } : function(o2) {
  45830. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  45831. }, _typeof2(o);
  45832. }
  45833. function _classCallCheck(instance, Constructor) {
  45834. if (!(instance instanceof Constructor))
  45835. throw new TypeError("Cannot call a class as a function");
  45836. }
  45837. function _defineProperties(target, props) {
  45838. for (var i = 0; i < props.length; i++) {
  45839. var descriptor = props[i];
  45840. descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  45841. }
  45842. }
  45843. function _createClass(Constructor, protoProps, staticProps) {
  45844. return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { writable: !1 }), Constructor;
  45845. }
  45846. function _defineProperty2(obj, key, value) {
  45847. return key = _toPropertyKey(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  45848. }
  45849. function _toPropertyKey(arg) {
  45850. var key = _toPrimitive(arg, "string");
  45851. return _typeof2(key) === "symbol" ? key : String(key);
  45852. }
  45853. function _toPrimitive(input2, hint) {
  45854. if (_typeof2(input2) !== "object" || input2 === null) return input2;
  45855. var prim = input2[Symbol.toPrimitive];
  45856. if (prim !== void 0) {
  45857. var res = prim.call(input2, hint || "default");
  45858. if (_typeof2(res) !== "object") return res;
  45859. throw new TypeError("@@toPrimitive must return a primitive value.");
  45860. }
  45861. return (hint === "string" ? String : Number)(input2);
  45862. }
  45863. var SetLike = (function() {
  45864. function SetLike3() {
  45865. var items = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  45866. _classCallCheck(this, SetLike3), _defineProperty2(this, "items", void 0), this.items = items;
  45867. }
  45868. return _createClass(SetLike3, [{
  45869. key: "add",
  45870. value: function(value) {
  45871. return this.has(value) === !1 && this.items.push(value), this;
  45872. }
  45873. }, {
  45874. key: "clear",
  45875. value: function() {
  45876. this.items = [];
  45877. }
  45878. }, {
  45879. key: "delete",
  45880. value: function(value) {
  45881. var previousLength = this.items.length;
  45882. return this.items = this.items.filter(function(item) {
  45883. return item !== value;
  45884. }), previousLength !== this.items.length;
  45885. }
  45886. }, {
  45887. key: "forEach",
  45888. value: function(callbackfn) {
  45889. var _this = this;
  45890. this.items.forEach(function(item) {
  45891. callbackfn(item, item, _this);
  45892. });
  45893. }
  45894. }, {
  45895. key: "has",
  45896. value: function(value) {
  45897. return this.items.indexOf(value) !== -1;
  45898. }
  45899. }, {
  45900. key: "size",
  45901. get: function() {
  45902. return this.items.length;
  45903. }
  45904. }]), SetLike3;
  45905. })(), SetLike_default = typeof Set > "u" ? Set : SetLike;
  45906. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
  45907. function getLocalName(element) {
  45908. var _element$localName;
  45909. return (
  45910. // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
  45911. (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : (
  45912. // eslint-disable-next-line no-restricted-properties -- required for the fallback
  45913. element.tagName.toLowerCase()
  45914. )
  45915. );
  45916. }
  45917. var localNameToRoleMappings = {
  45918. article: "article",
  45919. aside: "complementary",
  45920. button: "button",
  45921. datalist: "listbox",
  45922. dd: "definition",
  45923. details: "group",
  45924. dialog: "dialog",
  45925. dt: "term",
  45926. fieldset: "group",
  45927. figure: "figure",
  45928. // WARNING: Only with an accessible name
  45929. form: "form",
  45930. footer: "contentinfo",
  45931. h1: "heading",
  45932. h2: "heading",
  45933. h3: "heading",
  45934. h4: "heading",
  45935. h5: "heading",
  45936. h6: "heading",
  45937. header: "banner",
  45938. hr: "separator",
  45939. html: "document",
  45940. legend: "legend",
  45941. li: "listitem",
  45942. math: "math",
  45943. main: "main",
  45944. menu: "list",
  45945. nav: "navigation",
  45946. ol: "list",
  45947. optgroup: "group",
  45948. // WARNING: Only in certain context
  45949. option: "option",
  45950. output: "status",
  45951. progress: "progressbar",
  45952. // WARNING: Only with an accessible name
  45953. section: "region",
  45954. summary: "button",
  45955. table: "table",
  45956. tbody: "rowgroup",
  45957. textarea: "textbox",
  45958. tfoot: "rowgroup",
  45959. // WARNING: Only in certain context
  45960. td: "cell",
  45961. th: "columnheader",
  45962. thead: "rowgroup",
  45963. tr: "row",
  45964. ul: "list"
  45965. }, prohibitedAttributes = {
  45966. caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45967. code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45968. deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45969. emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45970. generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
  45971. insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45972. none: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45973. paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45974. presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45975. strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45976. subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45977. superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
  45978. };
  45979. function hasGlobalAriaAttributes(element, role) {
  45980. return [
  45981. "aria-atomic",
  45982. "aria-busy",
  45983. "aria-controls",
  45984. "aria-current",
  45985. "aria-description",
  45986. "aria-describedby",
  45987. "aria-details",
  45988. // "disabled",
  45989. "aria-dropeffect",
  45990. // "errormessage",
  45991. "aria-flowto",
  45992. "aria-grabbed",
  45993. // "haspopup",
  45994. "aria-hidden",
  45995. // "invalid",
  45996. "aria-keyshortcuts",
  45997. "aria-label",
  45998. "aria-labelledby",
  45999. "aria-live",
  46000. "aria-owns",
  46001. "aria-relevant",
  46002. "aria-roledescription"
  46003. ].some(function(attributeName) {
  46004. var _prohibitedAttributes;
  46005. return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName));
  46006. });
  46007. }
  46008. function ignorePresentationalRole(element, implicitRole) {
  46009. return hasGlobalAriaAttributes(element, implicitRole);
  46010. }
  46011. function getRole(element) {
  46012. var explicitRole = getExplicitRole(element);
  46013. if (explicitRole === null || presentationRoles.indexOf(explicitRole) !== -1) {
  46014. var implicitRole = getImplicitRole(element);
  46015. if (presentationRoles.indexOf(explicitRole || "") === -1 || ignorePresentationalRole(element, implicitRole || ""))
  46016. return implicitRole;
  46017. }
  46018. return explicitRole;
  46019. }
  46020. function getImplicitRole(element) {
  46021. var mappedByTag = localNameToRoleMappings[getLocalName(element)];
  46022. if (mappedByTag !== void 0)
  46023. return mappedByTag;
  46024. switch (getLocalName(element)) {
  46025. case "a":
  46026. case "area":
  46027. case "link":
  46028. if (element.hasAttribute("href"))
  46029. return "link";
  46030. break;
  46031. case "img":
  46032. return element.getAttribute("alt") === "" && !ignorePresentationalRole(element, "img") ? "presentation" : "img";
  46033. case "input": {
  46034. var _ref = element, type5 = _ref.type;
  46035. switch (type5) {
  46036. case "button":
  46037. case "image":
  46038. case "reset":
  46039. case "submit":
  46040. return "button";
  46041. case "checkbox":
  46042. case "radio":
  46043. return type5;
  46044. case "range":
  46045. return "slider";
  46046. case "email":
  46047. case "tel":
  46048. case "text":
  46049. case "url":
  46050. return element.hasAttribute("list") ? "combobox" : "textbox";
  46051. case "search":
  46052. return element.hasAttribute("list") ? "combobox" : "searchbox";
  46053. case "number":
  46054. return "spinbutton";
  46055. default:
  46056. return null;
  46057. }
  46058. }
  46059. case "select":
  46060. return element.hasAttribute("multiple") || element.size > 1 ? "listbox" : "combobox";
  46061. }
  46062. return null;
  46063. }
  46064. function getExplicitRole(element) {
  46065. var role = element.getAttribute("role");
  46066. if (role !== null) {
  46067. var explicitRole = role.trim().split(" ")[0];
  46068. if (explicitRole.length > 0)
  46069. return explicitRole;
  46070. }
  46071. return null;
  46072. }
  46073. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
  46074. var presentationRoles = ["presentation", "none"];
  46075. function isElement(node2) {
  46076. return node2 !== null && node2.nodeType === node2.ELEMENT_NODE;
  46077. }
  46078. function isHTMLTableCaptionElement(node2) {
  46079. return isElement(node2) && getLocalName(node2) === "caption";
  46080. }
  46081. function isHTMLInputElement(node2) {
  46082. return isElement(node2) && getLocalName(node2) === "input";
  46083. }
  46084. function isHTMLOptGroupElement(node2) {
  46085. return isElement(node2) && getLocalName(node2) === "optgroup";
  46086. }
  46087. function isHTMLSelectElement(node2) {
  46088. return isElement(node2) && getLocalName(node2) === "select";
  46089. }
  46090. function isHTMLTableElement(node2) {
  46091. return isElement(node2) && getLocalName(node2) === "table";
  46092. }
  46093. function isHTMLTextAreaElement(node2) {
  46094. return isElement(node2) && getLocalName(node2) === "textarea";
  46095. }
  46096. function safeWindow(node2) {
  46097. var _ref = node2.ownerDocument === null ? node2 : node2.ownerDocument, defaultView = _ref.defaultView;
  46098. if (defaultView === null)
  46099. throw new TypeError("no window available");
  46100. return defaultView;
  46101. }
  46102. function isHTMLFieldSetElement(node2) {
  46103. return isElement(node2) && getLocalName(node2) === "fieldset";
  46104. }
  46105. function isHTMLLegendElement(node2) {
  46106. return isElement(node2) && getLocalName(node2) === "legend";
  46107. }
  46108. function isHTMLSlotElement(node2) {
  46109. return isElement(node2) && getLocalName(node2) === "slot";
  46110. }
  46111. function isSVGElement(node2) {
  46112. return isElement(node2) && node2.ownerSVGElement !== void 0;
  46113. }
  46114. function isSVGSVGElement(node2) {
  46115. return isElement(node2) && getLocalName(node2) === "svg";
  46116. }
  46117. function isSVGTitleElement(node2) {
  46118. return isSVGElement(node2) && getLocalName(node2) === "title";
  46119. }
  46120. function queryIdRefs(node2, attributeName) {
  46121. if (isElement(node2) && node2.hasAttribute(attributeName)) {
  46122. var ids = node2.getAttribute(attributeName).split(" "), root2 = node2.getRootNode ? node2.getRootNode() : node2.ownerDocument;
  46123. return ids.map(function(id) {
  46124. return root2.getElementById(id);
  46125. }).filter(
  46126. function(element) {
  46127. return element !== null;
  46128. }
  46129. // TODO: why does this not narrow?
  46130. );
  46131. }
  46132. return [];
  46133. }
  46134. function hasAnyConcreteRoles(node2, roles3) {
  46135. return isElement(node2) ? roles3.indexOf(getRole(node2)) !== -1 : !1;
  46136. }
  46137. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
  46138. function asFlatString(s3) {
  46139. return s3.trim().replace(/\s\s+/g, " ");
  46140. }
  46141. function isHidden(node2, getComputedStyleImplementation) {
  46142. if (!isElement(node2))
  46143. return !1;
  46144. if (node2.hasAttribute("hidden") || node2.getAttribute("aria-hidden") === "true")
  46145. return !0;
  46146. var style = getComputedStyleImplementation(node2);
  46147. return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden";
  46148. }
  46149. function isControl(node2) {
  46150. return hasAnyConcreteRoles(node2, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole(node2, "range");
  46151. }
  46152. function hasAbstractRole(node2, role) {
  46153. if (!isElement(node2))
  46154. return !1;
  46155. if (role === "range")
  46156. return hasAnyConcreteRoles(node2, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
  46157. throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :("));
  46158. }
  46159. function querySelectorAllSubtree(element, selectors) {
  46160. var elements = arrayFrom(element.querySelectorAll(selectors));
  46161. return queryIdRefs(element, "aria-owns").forEach(function(root2) {
  46162. elements.push.apply(elements, arrayFrom(root2.querySelectorAll(selectors)));
  46163. }), elements;
  46164. }
  46165. function querySelectedOptions(listbox) {
  46166. return isHTMLSelectElement(listbox) ? listbox.selectedOptions || querySelectorAllSubtree(listbox, "[selected]") : querySelectorAllSubtree(listbox, '[aria-selected="true"]');
  46167. }
  46168. function isMarkedPresentational(node2) {
  46169. return hasAnyConcreteRoles(node2, presentationRoles);
  46170. }
  46171. function isNativeHostLanguageTextAlternativeElement(node2) {
  46172. return isHTMLTableCaptionElement(node2);
  46173. }
  46174. function allowsNameFromContent(node2) {
  46175. return hasAnyConcreteRoles(node2, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
  46176. }
  46177. function isDescendantOfNativeHostLanguageTextAlternativeElement(node2) {
  46178. return !1;
  46179. }
  46180. function getValueOfTextbox(element) {
  46181. return isHTMLInputElement(element) || isHTMLTextAreaElement(element) ? element.value : element.textContent || "";
  46182. }
  46183. function getTextualContent(declaration2) {
  46184. var content = declaration2.getPropertyValue("content");
  46185. return /^["'].*["']$/.test(content) ? content.slice(1, -1) : "";
  46186. }
  46187. function isLabelableElement(element) {
  46188. var localName = getLocalName(element);
  46189. return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea";
  46190. }
  46191. function findLabelableElement(element) {
  46192. if (isLabelableElement(element))
  46193. return element;
  46194. var labelableElement = null;
  46195. return element.childNodes.forEach(function(childNode) {
  46196. if (labelableElement === null && isElement(childNode)) {
  46197. var descendantLabelableElement = findLabelableElement(childNode);
  46198. descendantLabelableElement !== null && (labelableElement = descendantLabelableElement);
  46199. }
  46200. }), labelableElement;
  46201. }
  46202. function getControlOfLabel(label) {
  46203. if (label.control !== void 0)
  46204. return label.control;
  46205. var htmlFor = label.getAttribute("for");
  46206. return htmlFor !== null ? label.ownerDocument.getElementById(htmlFor) : findLabelableElement(label);
  46207. }
  46208. function getLabels(element) {
  46209. var labelsProperty = element.labels;
  46210. if (labelsProperty === null)
  46211. return labelsProperty;
  46212. if (labelsProperty !== void 0)
  46213. return arrayFrom(labelsProperty);
  46214. if (!isLabelableElement(element))
  46215. return null;
  46216. var document13 = element.ownerDocument;
  46217. return arrayFrom(document13.querySelectorAll("label")).filter(function(label) {
  46218. return getControlOfLabel(label) === element;
  46219. });
  46220. }
  46221. function getSlotContents(slot) {
  46222. var assignedNodes = slot.assignedNodes();
  46223. return assignedNodes.length === 0 ? arrayFrom(slot.childNodes) : assignedNodes;
  46224. }
  46225. function computeTextAlternative(root2) {
  46226. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, consultedNodes = new SetLike_default(), window2 = safeWindow(root2), _options$compute = options.compute, compute = _options$compute === void 0 ? "name" : _options$compute, _options$computedStyl = options.computedStyleSupportsPseudoElements, computedStyleSupportsPseudoElements = _options$computedStyl === void 0 ? options.getComputedStyle !== void 0 : _options$computedStyl, _options$getComputedS = options.getComputedStyle, getComputedStyle3 = _options$getComputedS === void 0 ? window2.getComputedStyle.bind(window2) : _options$getComputedS, _options$hidden = options.hidden, hidden = _options$hidden === void 0 ? !1 : _options$hidden;
  46227. function computeMiscTextAlternative(node2, context) {
  46228. var accumulatedText = "";
  46229. if (isElement(node2) && computedStyleSupportsPseudoElements) {
  46230. var pseudoBefore = getComputedStyle3(node2, "::before"), beforeContent = getTextualContent(pseudoBefore);
  46231. accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText);
  46232. }
  46233. var childNodes = isHTMLSlotElement(node2) ? getSlotContents(node2) : arrayFrom(node2.childNodes).concat(queryIdRefs(node2, "aria-owns"));
  46234. if (childNodes.forEach(function(child) {
  46235. var result = computeTextAlternative3(child, {
  46236. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46237. isReferenced: !1,
  46238. recursion: !0
  46239. }), display2 = isElement(child) ? getComputedStyle3(child).getPropertyValue("display") : "inline", separator = display2 !== "inline" ? " " : "";
  46240. accumulatedText += "".concat(separator).concat(result).concat(separator);
  46241. }), isElement(node2) && computedStyleSupportsPseudoElements) {
  46242. var pseudoAfter = getComputedStyle3(node2, "::after"), afterContent = getTextualContent(pseudoAfter);
  46243. accumulatedText = "".concat(accumulatedText, " ").concat(afterContent);
  46244. }
  46245. return accumulatedText.trim();
  46246. }
  46247. function useAttribute(element, attributeName) {
  46248. var attribute = element.getAttributeNode(attributeName);
  46249. return attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "" ? (consultedNodes.add(attribute), attribute.value) : null;
  46250. }
  46251. function computeTooltipAttributeValue(node2) {
  46252. return isElement(node2) ? useAttribute(node2, "title") : null;
  46253. }
  46254. function computeElementTextAlternative(node2) {
  46255. if (!isElement(node2))
  46256. return null;
  46257. if (isHTMLFieldSetElement(node2)) {
  46258. consultedNodes.add(node2);
  46259. for (var children = arrayFrom(node2.childNodes), i = 0; i < children.length; i += 1) {
  46260. var child = children[i];
  46261. if (isHTMLLegendElement(child))
  46262. return computeTextAlternative3(child, {
  46263. isEmbeddedInLabel: !1,
  46264. isReferenced: !1,
  46265. recursion: !1
  46266. });
  46267. }
  46268. } else if (isHTMLTableElement(node2)) {
  46269. consultedNodes.add(node2);
  46270. for (var _children = arrayFrom(node2.childNodes), _i = 0; _i < _children.length; _i += 1) {
  46271. var _child = _children[_i];
  46272. if (isHTMLTableCaptionElement(_child))
  46273. return computeTextAlternative3(_child, {
  46274. isEmbeddedInLabel: !1,
  46275. isReferenced: !1,
  46276. recursion: !1
  46277. });
  46278. }
  46279. } else if (isSVGSVGElement(node2)) {
  46280. consultedNodes.add(node2);
  46281. for (var _children2 = arrayFrom(node2.childNodes), _i2 = 0; _i2 < _children2.length; _i2 += 1) {
  46282. var _child2 = _children2[_i2];
  46283. if (isSVGTitleElement(_child2))
  46284. return _child2.textContent;
  46285. }
  46286. return null;
  46287. } else if (getLocalName(node2) === "img" || getLocalName(node2) === "area") {
  46288. var nameFromAlt = useAttribute(node2, "alt");
  46289. if (nameFromAlt !== null)
  46290. return nameFromAlt;
  46291. } else if (isHTMLOptGroupElement(node2)) {
  46292. var nameFromLabel = useAttribute(node2, "label");
  46293. if (nameFromLabel !== null)
  46294. return nameFromLabel;
  46295. }
  46296. if (isHTMLInputElement(node2) && (node2.type === "button" || node2.type === "submit" || node2.type === "reset")) {
  46297. var nameFromValue = useAttribute(node2, "value");
  46298. if (nameFromValue !== null)
  46299. return nameFromValue;
  46300. if (node2.type === "submit")
  46301. return "Submit";
  46302. if (node2.type === "reset")
  46303. return "Reset";
  46304. }
  46305. var labels = getLabels(node2);
  46306. if (labels !== null && labels.length !== 0)
  46307. return consultedNodes.add(node2), arrayFrom(labels).map(function(element) {
  46308. return computeTextAlternative3(element, {
  46309. isEmbeddedInLabel: !0,
  46310. isReferenced: !1,
  46311. recursion: !0
  46312. });
  46313. }).filter(function(label) {
  46314. return label.length > 0;
  46315. }).join(" ");
  46316. if (isHTMLInputElement(node2) && node2.type === "image") {
  46317. var _nameFromAlt = useAttribute(node2, "alt");
  46318. if (_nameFromAlt !== null)
  46319. return _nameFromAlt;
  46320. var nameFromTitle = useAttribute(node2, "title");
  46321. return nameFromTitle !== null ? nameFromTitle : "Submit Query";
  46322. }
  46323. if (hasAnyConcreteRoles(node2, ["button"])) {
  46324. var nameFromSubTree = computeMiscTextAlternative(node2, {
  46325. isEmbeddedInLabel: !1,
  46326. isReferenced: !1
  46327. });
  46328. if (nameFromSubTree !== "")
  46329. return nameFromSubTree;
  46330. }
  46331. return null;
  46332. }
  46333. function computeTextAlternative3(current, context) {
  46334. if (consultedNodes.has(current))
  46335. return "";
  46336. if (!hidden && isHidden(current, getComputedStyle3) && !context.isReferenced)
  46337. return consultedNodes.add(current), "";
  46338. var labelAttributeNode = isElement(current) ? current.getAttributeNode("aria-labelledby") : null, labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? queryIdRefs(current, "aria-labelledby") : [];
  46339. if (compute === "name" && !context.isReferenced && labelElements.length > 0)
  46340. return consultedNodes.add(labelAttributeNode), labelElements.map(function(element) {
  46341. return computeTextAlternative3(element, {
  46342. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46343. isReferenced: !0,
  46344. // this isn't recursion as specified, otherwise we would skip
  46345. // `aria-label` in
  46346. // <input id="myself" aria-label="foo" aria-labelledby="myself"
  46347. recursion: !1
  46348. });
  46349. }).join(" ");
  46350. var skipToStep2E = context.recursion && isControl(current) && compute === "name";
  46351. if (!skipToStep2E) {
  46352. var ariaLabel = (isElement(current) && current.getAttribute("aria-label") || "").trim();
  46353. if (ariaLabel !== "" && compute === "name")
  46354. return consultedNodes.add(current), ariaLabel;
  46355. if (!isMarkedPresentational(current)) {
  46356. var elementTextAlternative = computeElementTextAlternative(current);
  46357. if (elementTextAlternative !== null)
  46358. return consultedNodes.add(current), elementTextAlternative;
  46359. }
  46360. }
  46361. if (hasAnyConcreteRoles(current, ["menu"]))
  46362. return consultedNodes.add(current), "";
  46363. if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) {
  46364. if (hasAnyConcreteRoles(current, ["combobox", "listbox"])) {
  46365. consultedNodes.add(current);
  46366. var selectedOptions = querySelectedOptions(current);
  46367. return selectedOptions.length === 0 ? isHTMLInputElement(current) ? current.value : "" : arrayFrom(selectedOptions).map(function(selectedOption) {
  46368. return computeTextAlternative3(selectedOption, {
  46369. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46370. isReferenced: !1,
  46371. recursion: !0
  46372. });
  46373. }).join(" ");
  46374. }
  46375. if (hasAbstractRole(current, "range"))
  46376. return consultedNodes.add(current), current.hasAttribute("aria-valuetext") ? current.getAttribute("aria-valuetext") : current.hasAttribute("aria-valuenow") ? current.getAttribute("aria-valuenow") : current.getAttribute("value") || "";
  46377. if (hasAnyConcreteRoles(current, ["textbox"]))
  46378. return consultedNodes.add(current), getValueOfTextbox(current);
  46379. }
  46380. if (allowsNameFromContent(current) || isElement(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement(current) || isDescendantOfNativeHostLanguageTextAlternativeElement(current)) {
  46381. var accumulatedText2F = computeMiscTextAlternative(current, {
  46382. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46383. isReferenced: !1
  46384. });
  46385. if (accumulatedText2F !== "")
  46386. return consultedNodes.add(current), accumulatedText2F;
  46387. }
  46388. if (current.nodeType === current.TEXT_NODE)
  46389. return consultedNodes.add(current), current.textContent || "";
  46390. if (context.recursion)
  46391. return consultedNodes.add(current), computeMiscTextAlternative(current, {
  46392. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46393. isReferenced: !1
  46394. });
  46395. var tooltipAttributeValue = computeTooltipAttributeValue(current);
  46396. return tooltipAttributeValue !== null ? (consultedNodes.add(current), tooltipAttributeValue) : (consultedNodes.add(current), "");
  46397. }
  46398. return asFlatString(computeTextAlternative3(root2, {
  46399. isEmbeddedInLabel: !1,
  46400. // by spec computeAccessibleDescription starts with the referenced elements as roots
  46401. isReferenced: compute === "description",
  46402. recursion: !1
  46403. }));
  46404. }
  46405. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
  46406. function _typeof3(o) {
  46407. "@babel/helpers - typeof";
  46408. return _typeof3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  46409. return typeof o2;
  46410. } : function(o2) {
  46411. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  46412. }, _typeof3(o);
  46413. }
  46414. function ownKeys3(e, r2) {
  46415. var t = Object.keys(e);
  46416. if (Object.getOwnPropertySymbols) {
  46417. var o = Object.getOwnPropertySymbols(e);
  46418. r2 && (o = o.filter(function(r3) {
  46419. return Object.getOwnPropertyDescriptor(e, r3).enumerable;
  46420. })), t.push.apply(t, o);
  46421. }
  46422. return t;
  46423. }
  46424. function _objectSpread3(e) {
  46425. for (var r2 = 1; r2 < arguments.length; r2++) {
  46426. var t = arguments[r2] != null ? arguments[r2] : {};
  46427. r2 % 2 ? ownKeys3(Object(t), !0).forEach(function(r3) {
  46428. _defineProperty3(e, r3, t[r3]);
  46429. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r3) {
  46430. Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
  46431. });
  46432. }
  46433. return e;
  46434. }
  46435. function _defineProperty3(obj, key, value) {
  46436. return key = _toPropertyKey2(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  46437. }
  46438. function _toPropertyKey2(arg) {
  46439. var key = _toPrimitive2(arg, "string");
  46440. return _typeof3(key) === "symbol" ? key : String(key);
  46441. }
  46442. function _toPrimitive2(input2, hint) {
  46443. if (_typeof3(input2) !== "object" || input2 === null) return input2;
  46444. var prim = input2[Symbol.toPrimitive];
  46445. if (prim !== void 0) {
  46446. var res = prim.call(input2, hint || "default");
  46447. if (_typeof3(res) !== "object") return res;
  46448. throw new TypeError("@@toPrimitive must return a primitive value.");
  46449. }
  46450. return (hint === "string" ? String : Number)(input2);
  46451. }
  46452. function computeAccessibleDescription(root2) {
  46453. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, description = queryIdRefs(root2, "aria-describedby").map(function(element) {
  46454. return computeTextAlternative(element, _objectSpread3(_objectSpread3({}, options), {}, {
  46455. compute: "description"
  46456. }));
  46457. }).join(" ");
  46458. if (description === "") {
  46459. var ariaDescription = root2.getAttribute("aria-description");
  46460. description = ariaDescription === null ? "" : ariaDescription;
  46461. }
  46462. if (description === "") {
  46463. var title = root2.getAttribute("title");
  46464. description = title === null ? "" : title;
  46465. }
  46466. return description;
  46467. }
  46468. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
  46469. function prohibitsNaming(node2) {
  46470. return hasAnyConcreteRoles(node2, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]);
  46471. }
  46472. function computeAccessibleName(root2) {
  46473. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  46474. return prohibitsNaming(root2) ? "" : computeTextAlternative(root2, options);
  46475. }
  46476. // ../../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs
  46477. var import_aria_query = __toESM(require_lib2(), 1), import_picocolors2 = __toESM(require_picocolors_browser(), 1), import_css3 = __toESM(require_css_escape(), 1), GenericTypeError = class extends Error {
  46478. constructor(expectedString, received, matcherFn, context) {
  46479. super(), Error.captureStackTrace && Error.captureStackTrace(this, matcherFn);
  46480. let withType = "";
  46481. try {
  46482. withType = context.utils.printWithType(
  46483. "Received",
  46484. received,
  46485. context.utils.printReceived
  46486. );
  46487. } catch {
  46488. }
  46489. this.message = [
  46490. context.utils.matcherHint(
  46491. `${context.isNot ? ".not" : ""}.${matcherFn.name}`,
  46492. "received",
  46493. ""
  46494. ),
  46495. "",
  46496. // eslint-disable-next-line new-cap
  46497. `${context.utils.RECEIVED_COLOR(
  46498. "received"
  46499. )} value must ${expectedString}.`,
  46500. withType
  46501. ].join(`
  46502. `);
  46503. }
  46504. }, HtmlElementTypeError = class extends GenericTypeError {
  46505. constructor(...args) {
  46506. super("be an HTMLElement or an SVGElement", ...args);
  46507. }
  46508. }, NodeTypeError = class extends GenericTypeError {
  46509. constructor(...args) {
  46510. super("be a Node", ...args);
  46511. }
  46512. };
  46513. function checkHasWindow(htmlElement, ErrorClass, ...args) {
  46514. if (!htmlElement || !htmlElement.ownerDocument || !htmlElement.ownerDocument.defaultView)
  46515. throw new ErrorClass(htmlElement, ...args);
  46516. }
  46517. function checkNode(node2, ...args) {
  46518. checkHasWindow(node2, NodeTypeError, ...args);
  46519. let window2 = node2.ownerDocument.defaultView;
  46520. if (!(node2 instanceof window2.Node))
  46521. throw new NodeTypeError(node2, ...args);
  46522. }
  46523. function checkHtmlElement(htmlElement, ...args) {
  46524. checkHasWindow(htmlElement, HtmlElementTypeError, ...args);
  46525. let window2 = htmlElement.ownerDocument.defaultView;
  46526. if (!(htmlElement instanceof window2.HTMLElement) && !(htmlElement instanceof window2.SVGElement))
  46527. throw new HtmlElementTypeError(htmlElement, ...args);
  46528. }
  46529. var InvalidCSSError = class extends Error {
  46530. constructor(received, matcherFn, context) {
  46531. super(), Error.captureStackTrace && Error.captureStackTrace(this, matcherFn), this.message = [
  46532. received.message,
  46533. "",
  46534. // eslint-disable-next-line new-cap
  46535. context.utils.RECEIVED_COLOR("Failing css:"),
  46536. // eslint-disable-next-line new-cap
  46537. context.utils.RECEIVED_COLOR(`${received.css}`)
  46538. ].join(`
  46539. `);
  46540. }
  46541. };
  46542. function parseCSS(css3, ...args) {
  46543. let ast = $149c1bd638913645$export$98e6a39c04603d36(`selector { ${css3} }`, { silent: !0 }).stylesheet;
  46544. if (ast.parsingErrors && ast.parsingErrors.length > 0) {
  46545. let { reason, line: line2 } = ast.parsingErrors[0];
  46546. throw new InvalidCSSError(
  46547. {
  46548. css: css3,
  46549. message: `Syntax error parsing expected css: ${reason} on line: ${line2}`
  46550. },
  46551. ...args
  46552. );
  46553. }
  46554. return ast.rules[0].declarations.filter((d) => d.type === "declaration").reduce(
  46555. (obj, { property, value }) => Object.assign(obj, { [property]: value }),
  46556. {}
  46557. );
  46558. }
  46559. function display(context, value) {
  46560. return typeof value == "string" ? value : context.utils.stringify(value);
  46561. }
  46562. function getMessage3(context, matcher, expectedLabel, expectedValue, receivedLabel, receivedValue) {
  46563. return [
  46564. `${matcher}
  46565. `,
  46566. // eslint-disable-next-line new-cap
  46567. `${expectedLabel}:
  46568. ${context.utils.EXPECTED_COLOR(
  46569. (0, import_redent.default)(display(context, expectedValue), 2)
  46570. )}`,
  46571. // eslint-disable-next-line new-cap
  46572. `${receivedLabel}:
  46573. ${context.utils.RECEIVED_COLOR(
  46574. (0, import_redent.default)(display(context, receivedValue), 2)
  46575. )}`
  46576. ].join(`
  46577. `);
  46578. }
  46579. function matches2(textToMatch, matcher) {
  46580. return matcher instanceof RegExp ? matcher.test(textToMatch) : textToMatch.includes(String(matcher));
  46581. }
  46582. function deprecate2(name, replacementText) {
  46583. console.warn(
  46584. `Warning: ${name} has been deprecated and will be removed in future updates.`,
  46585. replacementText
  46586. );
  46587. }
  46588. function normalize(text) {
  46589. return text.replace(/\s+/g, " ").trim();
  46590. }
  46591. function getTag2(element) {
  46592. return element.tagName && element.tagName.toLowerCase();
  46593. }
  46594. function getSelectValue({ multiple, options }) {
  46595. let selectedOptions = [...options].filter((option) => option.selected);
  46596. if (multiple)
  46597. return [...selectedOptions].map((opt) => opt.value);
  46598. if (selectedOptions.length !== 0)
  46599. return selectedOptions[0].value;
  46600. }
  46601. function getInputValue(inputElement) {
  46602. switch (inputElement.type) {
  46603. case "number":
  46604. return inputElement.value === "" ? null : Number(inputElement.value);
  46605. case "checkbox":
  46606. return inputElement.checked;
  46607. default:
  46608. return inputElement.value;
  46609. }
  46610. }
  46611. var rolesSupportingValues = ["meter", "progressbar", "slider", "spinbutton"];
  46612. function getAccessibleValue(element) {
  46613. if (rolesSupportingValues.includes(element.getAttribute("role")))
  46614. return Number(element.getAttribute("aria-valuenow"));
  46615. }
  46616. function getSingleElementValue(element) {
  46617. if (element)
  46618. switch (element.tagName.toLowerCase()) {
  46619. case "input":
  46620. return getInputValue(element);
  46621. case "select":
  46622. return getSelectValue(element);
  46623. default:
  46624. return element.value ?? getAccessibleValue(element);
  46625. }
  46626. }
  46627. function toSentence(array, { wordConnector = ", ", lastWordConnector = " and " } = {}) {
  46628. return [array.slice(0, -1).join(wordConnector), array[array.length - 1]].join(
  46629. array.length > 1 ? lastWordConnector : ""
  46630. );
  46631. }
  46632. function compareAsSet(val1, val2) {
  46633. return Array.isArray(val1) && Array.isArray(val2) ? [...new Set(val1)].every((v) => new Set(val2).has(v)) : val1 === val2;
  46634. }
  46635. function toBeInTheDOM(element, container) {
  46636. return deprecate2(
  46637. "toBeInTheDOM",
  46638. "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."
  46639. ), element && checkHtmlElement(element, toBeInTheDOM, this), container && checkHtmlElement(container, toBeInTheDOM, this), {
  46640. pass: container ? container.contains(element) : !!element,
  46641. message: () => [
  46642. this.utils.matcherHint(
  46643. `${this.isNot ? ".not" : ""}.toBeInTheDOM`,
  46644. "element",
  46645. ""
  46646. ),
  46647. "",
  46648. "Received:",
  46649. ` ${this.utils.printReceived(
  46650. element && element.cloneNode(!1)
  46651. )}`
  46652. ].join(`
  46653. `)
  46654. };
  46655. }
  46656. function toBeInTheDocument(element) {
  46657. (element !== null || !this.isNot) && checkHtmlElement(element, toBeInTheDocument, this);
  46658. let pass = element === null ? !1 : element.ownerDocument === element.getRootNode({ composed: !0 }), errorFound = () => `expected document not to contain element, found ${this.utils.stringify(
  46659. element.cloneNode(!0)
  46660. )} instead`, errorNotFound = () => "element could not be found in the document";
  46661. return {
  46662. pass,
  46663. message: () => [
  46664. this.utils.matcherHint(
  46665. `${this.isNot ? ".not" : ""}.toBeInTheDocument`,
  46666. "element",
  46667. ""
  46668. ),
  46669. "",
  46670. // eslint-disable-next-line new-cap
  46671. this.utils.RECEIVED_COLOR(this.isNot ? errorFound() : errorNotFound())
  46672. ].join(`
  46673. `)
  46674. };
  46675. }
  46676. function toBeEmpty(element) {
  46677. return deprecate2(
  46678. "toBeEmpty",
  46679. "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."
  46680. ), checkHtmlElement(element, toBeEmpty, this), {
  46681. pass: element.innerHTML === "",
  46682. message: () => [
  46683. this.utils.matcherHint(
  46684. `${this.isNot ? ".not" : ""}.toBeEmpty`,
  46685. "element",
  46686. ""
  46687. ),
  46688. "",
  46689. "Received:",
  46690. ` ${this.utils.printReceived(element.innerHTML)}`
  46691. ].join(`
  46692. `)
  46693. };
  46694. }
  46695. function toBeEmptyDOMElement(element) {
  46696. return checkHtmlElement(element, toBeEmptyDOMElement, this), {
  46697. pass: isEmptyElement(element),
  46698. message: () => [
  46699. this.utils.matcherHint(
  46700. `${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`,
  46701. "element",
  46702. ""
  46703. ),
  46704. "",
  46705. "Received:",
  46706. ` ${this.utils.printReceived(element.innerHTML)}`
  46707. ].join(`
  46708. `)
  46709. };
  46710. }
  46711. function isEmptyElement(element) {
  46712. return [...element.childNodes].filter((node2) => node2.nodeType !== 8).length === 0;
  46713. }
  46714. function toContainElement(container, element) {
  46715. return checkHtmlElement(container, toContainElement, this), element !== null && checkHtmlElement(element, toContainElement, this), {
  46716. pass: container.contains(element),
  46717. message: () => [
  46718. this.utils.matcherHint(
  46719. `${this.isNot ? ".not" : ""}.toContainElement`,
  46720. "element",
  46721. "element"
  46722. ),
  46723. "",
  46724. // eslint-disable-next-line new-cap
  46725. this.utils.RECEIVED_COLOR(`${this.utils.stringify(
  46726. container.cloneNode(!1)
  46727. )} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(element && element.cloneNode(!1))}
  46728. `)
  46729. ].join(`
  46730. `)
  46731. };
  46732. }
  46733. function getNormalizedHtml(container, htmlText) {
  46734. let div = container.ownerDocument.createElement("div");
  46735. return div.innerHTML = htmlText, div.innerHTML;
  46736. }
  46737. function toContainHTML(container, htmlText) {
  46738. if (checkHtmlElement(container, toContainHTML, this), typeof htmlText != "string")
  46739. throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`);
  46740. return {
  46741. pass: container.outerHTML.includes(getNormalizedHtml(container, htmlText)),
  46742. message: () => [
  46743. this.utils.matcherHint(
  46744. `${this.isNot ? ".not" : ""}.toContainHTML`,
  46745. "element",
  46746. ""
  46747. ),
  46748. "Expected:",
  46749. // eslint-disable-next-line new-cap
  46750. ` ${this.utils.EXPECTED_COLOR(htmlText)}`,
  46751. "Received:",
  46752. ` ${this.utils.printReceived(container.cloneNode(!0))}`
  46753. ].join(`
  46754. `)
  46755. };
  46756. }
  46757. function toHaveTextContent(node2, checkWith, options = { normalizeWhitespace: !0 }) {
  46758. checkNode(node2, toHaveTextContent, this);
  46759. let textContent = options.normalizeWhitespace ? normalize(node2.textContent) : node2.textContent.replace(/\u00a0/g, " "), checkingWithEmptyString = textContent !== "" && checkWith === "";
  46760. return {
  46761. pass: !checkingWithEmptyString && matches2(textContent, checkWith),
  46762. message: () => {
  46763. let to = this.isNot ? "not to" : "to";
  46764. return getMessage3(
  46765. this,
  46766. this.utils.matcherHint(
  46767. `${this.isNot ? ".not" : ""}.toHaveTextContent`,
  46768. "element",
  46769. ""
  46770. ),
  46771. checkingWithEmptyString ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${to} have text content`,
  46772. checkWith,
  46773. "Received",
  46774. textContent
  46775. );
  46776. }
  46777. };
  46778. }
  46779. function toHaveAccessibleDescription(htmlElement, expectedAccessibleDescription) {
  46780. checkHtmlElement(htmlElement, toHaveAccessibleDescription, this);
  46781. let actualAccessibleDescription = computeAccessibleDescription(htmlElement), missingExpectedValue = arguments.length === 1, pass = !1;
  46782. return missingExpectedValue ? pass = actualAccessibleDescription !== "" : pass = expectedAccessibleDescription instanceof RegExp ? expectedAccessibleDescription.test(actualAccessibleDescription) : this.equals(
  46783. actualAccessibleDescription,
  46784. expectedAccessibleDescription
  46785. ), {
  46786. pass,
  46787. message: () => {
  46788. let to = this.isNot ? "not to" : "to";
  46789. return getMessage3(
  46790. this,
  46791. this.utils.matcherHint(
  46792. `${this.isNot ? ".not" : ""}.${toHaveAccessibleDescription.name}`,
  46793. "element",
  46794. ""
  46795. ),
  46796. `Expected element ${to} have accessible description`,
  46797. expectedAccessibleDescription,
  46798. "Received",
  46799. actualAccessibleDescription
  46800. );
  46801. }
  46802. };
  46803. }
  46804. var ariaInvalidName = "aria-invalid", validStates = ["false"];
  46805. function toHaveAccessibleErrorMessage(htmlElement, expectedAccessibleErrorMessage) {
  46806. checkHtmlElement(htmlElement, toHaveAccessibleErrorMessage, this);
  46807. let to = this.isNot ? "not to" : "to", method = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", errormessageId = htmlElement.getAttribute("aria-errormessage");
  46808. if (!!errormessageId && /\s+/.test(errormessageId))
  46809. return {
  46810. pass: !1,
  46811. message: () => getMessage3(
  46812. this,
  46813. this.utils.matcherHint(method, "element"),
  46814. "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",
  46815. "",
  46816. "Received",
  46817. `aria-errormessage="${errormessageId}"`
  46818. )
  46819. };
  46820. let ariaInvalidVal = htmlElement.getAttribute(ariaInvalidName);
  46821. if (!htmlElement.hasAttribute(ariaInvalidName) || validStates.includes(ariaInvalidVal))
  46822. return {
  46823. pass: !1,
  46824. message: () => getMessage3(
  46825. this,
  46826. this.utils.matcherHint(method, "element"),
  46827. "Expected element to be marked as invalid with attribute",
  46828. `${ariaInvalidName}="${String(!0)}"`,
  46829. "Received",
  46830. htmlElement.hasAttribute("aria-invalid") ? `${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}` : null
  46831. )
  46832. };
  46833. let error = normalize(
  46834. htmlElement.ownerDocument.getElementById(errormessageId)?.textContent ?? ""
  46835. );
  46836. return {
  46837. pass: expectedAccessibleErrorMessage === void 0 ? !!error : expectedAccessibleErrorMessage instanceof RegExp ? expectedAccessibleErrorMessage.test(error) : this.equals(error, expectedAccessibleErrorMessage),
  46838. message: () => getMessage3(
  46839. this,
  46840. this.utils.matcherHint(method, "element"),
  46841. `Expected element ${to} have accessible error message`,
  46842. expectedAccessibleErrorMessage ?? "",
  46843. "Received",
  46844. error
  46845. )
  46846. };
  46847. }
  46848. var elementRoleList = buildElementRoleList(import_aria_query.elementRoles);
  46849. function toHaveRole(htmlElement, expectedRole) {
  46850. checkHtmlElement(htmlElement, toHaveRole, this);
  46851. let actualRoles = getExplicitOrImplicitRoles(htmlElement);
  46852. return {
  46853. pass: actualRoles.some((el) => el === expectedRole),
  46854. message: () => {
  46855. let to = this.isNot ? "not to" : "to";
  46856. return getMessage3(
  46857. this,
  46858. this.utils.matcherHint(
  46859. `${this.isNot ? ".not" : ""}.${toHaveRole.name}`,
  46860. "element",
  46861. ""
  46862. ),
  46863. `Expected element ${to} have role`,
  46864. expectedRole,
  46865. "Received",
  46866. actualRoles.join(", ")
  46867. );
  46868. }
  46869. };
  46870. }
  46871. function getExplicitOrImplicitRoles(htmlElement) {
  46872. return htmlElement.hasAttribute("role") ? htmlElement.getAttribute("role").split(" ").filter(Boolean) : getImplicitAriaRoles(htmlElement);
  46873. }
  46874. function getImplicitAriaRoles(currentNode) {
  46875. for (let { match: match3, roles: roles3 } of elementRoleList)
  46876. if (match3(currentNode))
  46877. return [...roles3];
  46878. return [];
  46879. }
  46880. function buildElementRoleList(elementRolesMap) {
  46881. function makeElementSelector({ name, attributes }) {
  46882. return `${name}${attributes.map(({ name: attributeName, value, constraints = [] }) => constraints.indexOf("undefined") !== -1 ? `:not([${attributeName}])` : value ? `[${attributeName}="${value}"]` : `[${attributeName}]`).join("")}`;
  46883. }
  46884. function getSelectorSpecificity({ attributes = [] }) {
  46885. return attributes.length;
  46886. }
  46887. function bySelectorSpecificity({ specificity: leftSpecificity }, { specificity: rightSpecificity }) {
  46888. return rightSpecificity - leftSpecificity;
  46889. }
  46890. function match3(element) {
  46891. let { attributes = [] } = element, typeTextIndex = attributes.findIndex(
  46892. (attribute) => attribute.value && attribute.name === "type" && attribute.value === "text"
  46893. );
  46894. typeTextIndex >= 0 && (attributes = [
  46895. ...attributes.slice(0, typeTextIndex),
  46896. ...attributes.slice(typeTextIndex + 1)
  46897. ]);
  46898. let selector = makeElementSelector({ ...element, attributes });
  46899. return (node2) => typeTextIndex >= 0 && node2.type !== "text" ? !1 : node2.matches(selector);
  46900. }
  46901. let result = [];
  46902. for (let [element, roles3] of elementRolesMap.entries())
  46903. result = [
  46904. ...result,
  46905. {
  46906. match: match3(element),
  46907. roles: Array.from(roles3),
  46908. specificity: getSelectorSpecificity(element)
  46909. }
  46910. ];
  46911. return result.sort(bySelectorSpecificity);
  46912. }
  46913. function toHaveAccessibleName(htmlElement, expectedAccessibleName) {
  46914. checkHtmlElement(htmlElement, toHaveAccessibleName, this);
  46915. let actualAccessibleName = computeAccessibleName(htmlElement), missingExpectedValue = arguments.length === 1, pass = !1;
  46916. return missingExpectedValue ? pass = actualAccessibleName !== "" : pass = expectedAccessibleName instanceof RegExp ? expectedAccessibleName.test(actualAccessibleName) : this.equals(actualAccessibleName, expectedAccessibleName), {
  46917. pass,
  46918. message: () => {
  46919. let to = this.isNot ? "not to" : "to";
  46920. return getMessage3(
  46921. this,
  46922. this.utils.matcherHint(
  46923. `${this.isNot ? ".not" : ""}.${toHaveAccessibleName.name}`,
  46924. "element",
  46925. ""
  46926. ),
  46927. `Expected element ${to} have accessible name`,
  46928. expectedAccessibleName,
  46929. "Received",
  46930. actualAccessibleName
  46931. );
  46932. }
  46933. };
  46934. }
  46935. function printAttribute(stringify8, name, value) {
  46936. return value === void 0 ? name : `${name}=${stringify8(value)}`;
  46937. }
  46938. function getAttributeComment(stringify8, name, value) {
  46939. return value === void 0 ? `element.hasAttribute(${stringify8(name)})` : `element.getAttribute(${stringify8(name)}) === ${stringify8(value)}`;
  46940. }
  46941. function toHaveAttribute(htmlElement, name, expectedValue) {
  46942. checkHtmlElement(htmlElement, toHaveAttribute, this);
  46943. let isExpectedValuePresent = expectedValue !== void 0, hasAttribute = htmlElement.hasAttribute(name), receivedValue = htmlElement.getAttribute(name);
  46944. return {
  46945. pass: isExpectedValuePresent ? hasAttribute && this.equals(receivedValue, expectedValue) : hasAttribute,
  46946. message: () => {
  46947. let to = this.isNot ? "not to" : "to", receivedAttribute = hasAttribute ? printAttribute(this.utils.stringify, name, receivedValue) : null, matcher = this.utils.matcherHint(
  46948. `${this.isNot ? ".not" : ""}.toHaveAttribute`,
  46949. "element",
  46950. this.utils.printExpected(name),
  46951. {
  46952. secondArgument: isExpectedValuePresent ? this.utils.printExpected(expectedValue) : void 0,
  46953. comment: getAttributeComment(
  46954. this.utils.stringify,
  46955. name,
  46956. expectedValue
  46957. )
  46958. }
  46959. );
  46960. return getMessage3(
  46961. this,
  46962. matcher,
  46963. `Expected the element ${to} have attribute`,
  46964. printAttribute(this.utils.stringify, name, expectedValue),
  46965. "Received",
  46966. receivedAttribute
  46967. );
  46968. }
  46969. };
  46970. }
  46971. function getExpectedClassNamesAndOptions(params) {
  46972. let lastParam = params.pop(), expectedClassNames, options;
  46973. return typeof lastParam == "object" && !(lastParam instanceof RegExp) ? (expectedClassNames = params, options = lastParam) : (expectedClassNames = params.concat(lastParam), options = { exact: !1 }), { expectedClassNames, options };
  46974. }
  46975. function splitClassNames(str2) {
  46976. return str2 ? str2.split(/\s+/).filter((s3) => s3.length > 0) : [];
  46977. }
  46978. function isSubset$1(subset, superset) {
  46979. return subset.every(
  46980. (strOrRegexp) => typeof strOrRegexp == "string" ? superset.includes(strOrRegexp) : superset.some((className) => strOrRegexp.test(className))
  46981. );
  46982. }
  46983. function toHaveClass(htmlElement, ...params) {
  46984. checkHtmlElement(htmlElement, toHaveClass, this);
  46985. let { expectedClassNames, options } = getExpectedClassNamesAndOptions(params), received = splitClassNames(htmlElement.getAttribute("class")), expected = expectedClassNames.reduce(
  46986. (acc, className) => acc.concat(
  46987. typeof className == "string" || !className ? splitClassNames(className) : className
  46988. ),
  46989. []
  46990. ), hasRegExp = expected.some((className) => className instanceof RegExp);
  46991. if (options.exact && hasRegExp)
  46992. throw new Error("Exact option does not support RegExp expected class names");
  46993. return options.exact ? {
  46994. pass: isSubset$1(expected, received) && expected.length === received.length,
  46995. message: () => {
  46996. let to = this.isNot ? "not to" : "to";
  46997. return getMessage3(
  46998. this,
  46999. this.utils.matcherHint(
  47000. `${this.isNot ? ".not" : ""}.toHaveClass`,
  47001. "element",
  47002. this.utils.printExpected(expected.join(" "))
  47003. ),
  47004. `Expected the element ${to} have EXACTLY defined classes`,
  47005. expected.join(" "),
  47006. "Received",
  47007. received.join(" ")
  47008. );
  47009. }
  47010. } : expected.length > 0 ? {
  47011. pass: isSubset$1(expected, received),
  47012. message: () => {
  47013. let to = this.isNot ? "not to" : "to";
  47014. return getMessage3(
  47015. this,
  47016. this.utils.matcherHint(
  47017. `${this.isNot ? ".not" : ""}.toHaveClass`,
  47018. "element",
  47019. this.utils.printExpected(expected.join(" "))
  47020. ),
  47021. `Expected the element ${to} have class`,
  47022. expected.join(" "),
  47023. "Received",
  47024. received.join(" ")
  47025. );
  47026. }
  47027. } : {
  47028. pass: this.isNot ? received.length > 0 : !1,
  47029. message: () => this.isNot ? getMessage3(
  47030. this,
  47031. this.utils.matcherHint(".not.toHaveClass", "element", ""),
  47032. "Expected the element to have classes",
  47033. "(none)",
  47034. "Received",
  47035. received.join(" ")
  47036. ) : [
  47037. this.utils.matcherHint(".toHaveClass", "element"),
  47038. "At least one expected class must be provided."
  47039. ].join(`
  47040. `)
  47041. };
  47042. }
  47043. function getStyleDeclaration(document13, css3) {
  47044. let styles4 = {}, copy5 = document13.createElement("div");
  47045. return Object.keys(css3).forEach((property) => {
  47046. copy5.style[property] = css3[property], styles4[property] = copy5.style[property];
  47047. }), styles4;
  47048. }
  47049. function isSubset(styles4, computedStyle) {
  47050. return !!Object.keys(styles4).length && Object.entries(styles4).every(([prop, value]) => {
  47051. let isCustomProperty3 = prop.startsWith("--"), spellingVariants = [prop];
  47052. return isCustomProperty3 || spellingVariants.push(prop.toLowerCase()), spellingVariants.some(
  47053. (name) => computedStyle[name] === value || computedStyle.getPropertyValue(name) === value
  47054. );
  47055. });
  47056. }
  47057. function printoutStyles(styles4) {
  47058. return Object.keys(styles4).sort().map((prop) => `${prop}: ${styles4[prop]};`).join(`
  47059. `);
  47060. }
  47061. function expectedDiff(diffFn, expected, computedStyles) {
  47062. let received = Array.from(computedStyles).filter((prop) => expected[prop] !== void 0).reduce(
  47063. (obj, prop) => Object.assign(obj, { [prop]: computedStyles.getPropertyValue(prop) }),
  47064. {}
  47065. );
  47066. return diffFn(printoutStyles(expected), printoutStyles(received)).replace(`${import_picocolors2.default.red("+ Received")}
  47067. `, "");
  47068. }
  47069. function toHaveStyle(htmlElement, css3) {
  47070. checkHtmlElement(htmlElement, toHaveStyle, this);
  47071. let parsedCSS = typeof css3 == "object" ? css3 : parseCSS(css3, toHaveStyle, this), { getComputedStyle: getComputedStyle3 } = htmlElement.ownerDocument.defaultView, expected = getStyleDeclaration(htmlElement.ownerDocument, parsedCSS), received = getComputedStyle3(htmlElement);
  47072. return {
  47073. pass: isSubset(expected, received),
  47074. message: () => {
  47075. let matcher = `${this.isNot ? ".not" : ""}.toHaveStyle`;
  47076. return [
  47077. this.utils.matcherHint(matcher, "element", ""),
  47078. expectedDiff(this.utils.diff, expected, received)
  47079. ].join(`
  47080. `);
  47081. }
  47082. };
  47083. }
  47084. function toHaveFocus(element) {
  47085. return checkHtmlElement(element, toHaveFocus, this), {
  47086. pass: element.ownerDocument.activeElement === element,
  47087. message: () => [
  47088. this.utils.matcherHint(
  47089. `${this.isNot ? ".not" : ""}.toHaveFocus`,
  47090. "element",
  47091. ""
  47092. ),
  47093. "",
  47094. ...this.isNot ? [
  47095. "Received element is focused:",
  47096. ` ${this.utils.printReceived(element)}`
  47097. ] : [
  47098. "Expected element with focus:",
  47099. ` ${this.utils.printExpected(element)}`,
  47100. "Received element with focus:",
  47101. ` ${this.utils.printReceived(
  47102. element.ownerDocument.activeElement
  47103. )}`
  47104. ]
  47105. ].join(`
  47106. `)
  47107. };
  47108. }
  47109. function getMultiElementValue(elements) {
  47110. let types = [...new Set(elements.map((element) => element.type))];
  47111. if (types.length !== 1)
  47112. throw new Error(
  47113. "Multiple form elements with the same name must be of the same type"
  47114. );
  47115. switch (types[0]) {
  47116. case "radio": {
  47117. let theChosenOne = elements.find((radio) => radio.checked);
  47118. return theChosenOne ? theChosenOne.value : void 0;
  47119. }
  47120. case "checkbox":
  47121. return elements.filter((checkbox) => checkbox.checked).map((checkbox) => checkbox.value);
  47122. default:
  47123. return elements.map((element) => element.value);
  47124. }
  47125. }
  47126. function getFormValue(container, name) {
  47127. let elements = [...container.querySelectorAll(`[name="${(0, import_css3.default)(name)}"]`)];
  47128. if (elements.length !== 0)
  47129. return elements.length === 1 ? getSingleElementValue(elements[0]) : getMultiElementValue(elements);
  47130. }
  47131. function getPureName(name) {
  47132. return /\[\]$/.test(name) ? name.slice(0, -2) : name;
  47133. }
  47134. function getAllFormValues(container) {
  47135. return Array.from(container.elements).map((element) => element.name).reduce(
  47136. (obj, name) => ({
  47137. ...obj,
  47138. [getPureName(name)]: getFormValue(container, name)
  47139. }),
  47140. {}
  47141. );
  47142. }
  47143. function toHaveFormValues(formElement, expectedValues) {
  47144. if (checkHtmlElement(formElement, toHaveFormValues, this), !formElement.elements)
  47145. throw new Error("toHaveFormValues must be called on a form or a fieldset");
  47146. let formValues = getAllFormValues(formElement);
  47147. return {
  47148. pass: Object.entries(expectedValues).every(
  47149. ([name, expectedValue]) => compareAsSet(formValues[name], expectedValue)
  47150. ),
  47151. message: () => {
  47152. let to = this.isNot ? "not to" : "to", matcher = `${this.isNot ? ".not" : ""}.toHaveFormValues`, commonKeyValues = Object.keys(formValues).filter((key) => expectedValues.hasOwnProperty(key)).reduce((obj, key) => ({ ...obj, [key]: formValues[key] }), {});
  47153. return [
  47154. this.utils.matcherHint(matcher, "element", ""),
  47155. `Expected the element ${to} have form values`,
  47156. this.utils.diff(expectedValues, commonKeyValues)
  47157. ].join(`
  47158. `);
  47159. }
  47160. };
  47161. }
  47162. function isStyleVisible(element) {
  47163. let { getComputedStyle: getComputedStyle3 } = element.ownerDocument.defaultView, { display: display2, visibility, opacity } = getComputedStyle3(element);
  47164. return display2 !== "none" && visibility !== "hidden" && visibility !== "collapse" && opacity !== "0" && opacity !== 0;
  47165. }
  47166. function isAttributeVisible(element, previousElement) {
  47167. let detailsVisibility;
  47168. return previousElement ? detailsVisibility = element.nodeName === "DETAILS" && previousElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : !0 : detailsVisibility = element.nodeName === "DETAILS" ? element.hasAttribute("open") : !0, !element.hasAttribute("hidden") && detailsVisibility;
  47169. }
  47170. function isElementVisible(element, previousElement) {
  47171. return isStyleVisible(element) && isAttributeVisible(element, previousElement) && (!element.parentElement || isElementVisible(element.parentElement, element));
  47172. }
  47173. function toBeVisible(element) {
  47174. checkHtmlElement(element, toBeVisible, this);
  47175. let isInDocument = element.ownerDocument === element.getRootNode({ composed: !0 }), isVisible2 = isInDocument && isElementVisible(element);
  47176. return {
  47177. pass: isVisible2,
  47178. message: () => {
  47179. let is = isVisible2 ? "is" : "is not";
  47180. return [
  47181. this.utils.matcherHint(
  47182. `${this.isNot ? ".not" : ""}.toBeVisible`,
  47183. "element",
  47184. ""
  47185. ),
  47186. "",
  47187. `Received element ${is} visible${isInDocument ? "" : " (element is not in the document)"}:`,
  47188. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47189. ].join(`
  47190. `);
  47191. }
  47192. };
  47193. }
  47194. var FORM_TAGS$2 = [
  47195. "fieldset",
  47196. "input",
  47197. "select",
  47198. "optgroup",
  47199. "option",
  47200. "button",
  47201. "textarea"
  47202. ];
  47203. function isFirstLegendChildOfFieldset(element, parent) {
  47204. return getTag2(element) === "legend" && getTag2(parent) === "fieldset" && element.isSameNode(
  47205. Array.from(parent.children).find((child) => getTag2(child) === "legend")
  47206. );
  47207. }
  47208. function isElementDisabledByParent(element, parent) {
  47209. return isElementDisabled(parent) && !isFirstLegendChildOfFieldset(element, parent);
  47210. }
  47211. function isCustomElement(tag) {
  47212. return tag.includes("-");
  47213. }
  47214. function canElementBeDisabled(element) {
  47215. let tag = getTag2(element);
  47216. return FORM_TAGS$2.includes(tag) || isCustomElement(tag);
  47217. }
  47218. function isElementDisabled(element) {
  47219. return canElementBeDisabled(element) && element.hasAttribute("disabled");
  47220. }
  47221. function isAncestorDisabled(element) {
  47222. let parent = element.parentElement;
  47223. return !!parent && (isElementDisabledByParent(element, parent) || isAncestorDisabled(parent));
  47224. }
  47225. function isElementOrAncestorDisabled(element) {
  47226. return canElementBeDisabled(element) && (isElementDisabled(element) || isAncestorDisabled(element));
  47227. }
  47228. function toBeDisabled(element) {
  47229. checkHtmlElement(element, toBeDisabled, this);
  47230. let isDisabled3 = isElementOrAncestorDisabled(element);
  47231. return {
  47232. pass: isDisabled3,
  47233. message: () => {
  47234. let is = isDisabled3 ? "is" : "is not";
  47235. return [
  47236. this.utils.matcherHint(
  47237. `${this.isNot ? ".not" : ""}.toBeDisabled`,
  47238. "element",
  47239. ""
  47240. ),
  47241. "",
  47242. `Received element ${is} disabled:`,
  47243. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47244. ].join(`
  47245. `);
  47246. }
  47247. };
  47248. }
  47249. function toBeEnabled(element) {
  47250. checkHtmlElement(element, toBeEnabled, this);
  47251. let isEnabled = !isElementOrAncestorDisabled(element);
  47252. return {
  47253. pass: isEnabled,
  47254. message: () => {
  47255. let is = isEnabled ? "is" : "is not";
  47256. return [
  47257. this.utils.matcherHint(
  47258. `${this.isNot ? ".not" : ""}.toBeEnabled`,
  47259. "element",
  47260. ""
  47261. ),
  47262. "",
  47263. `Received element ${is} enabled:`,
  47264. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47265. ].join(`
  47266. `);
  47267. }
  47268. };
  47269. }
  47270. var FORM_TAGS$1 = ["select", "textarea"], ARIA_FORM_TAGS = ["input", "select", "textarea"], UNSUPPORTED_INPUT_TYPES = [
  47271. "color",
  47272. "hidden",
  47273. "range",
  47274. "submit",
  47275. "image",
  47276. "reset"
  47277. ], SUPPORTED_ARIA_ROLES = [
  47278. "checkbox",
  47279. "combobox",
  47280. "gridcell",
  47281. "listbox",
  47282. "radiogroup",
  47283. "spinbutton",
  47284. "textbox",
  47285. "tree"
  47286. ];
  47287. function isRequiredOnFormTagsExceptInput(element) {
  47288. return FORM_TAGS$1.includes(getTag2(element)) && element.hasAttribute("required");
  47289. }
  47290. function isRequiredOnSupportedInput(element) {
  47291. return getTag2(element) === "input" && element.hasAttribute("required") && (element.hasAttribute("type") && !UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute("type")) || !element.hasAttribute("type"));
  47292. }
  47293. function isElementRequiredByARIA(element) {
  47294. return element.hasAttribute("aria-required") && element.getAttribute("aria-required") === "true" && (ARIA_FORM_TAGS.includes(getTag2(element)) || element.hasAttribute("role") && SUPPORTED_ARIA_ROLES.includes(element.getAttribute("role")));
  47295. }
  47296. function toBeRequired(element) {
  47297. checkHtmlElement(element, toBeRequired, this);
  47298. let isRequired = isRequiredOnFormTagsExceptInput(element) || isRequiredOnSupportedInput(element) || isElementRequiredByARIA(element);
  47299. return {
  47300. pass: isRequired,
  47301. message: () => {
  47302. let is = isRequired ? "is" : "is not";
  47303. return [
  47304. this.utils.matcherHint(
  47305. `${this.isNot ? ".not" : ""}.toBeRequired`,
  47306. "element",
  47307. ""
  47308. ),
  47309. "",
  47310. `Received element ${is} required:`,
  47311. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47312. ].join(`
  47313. `);
  47314. }
  47315. };
  47316. }
  47317. var FORM_TAGS = ["form", "input", "select", "textarea"];
  47318. function isElementHavingAriaInvalid(element) {
  47319. return element.hasAttribute("aria-invalid") && element.getAttribute("aria-invalid") !== "false";
  47320. }
  47321. function isSupportsValidityMethod(element) {
  47322. return FORM_TAGS.includes(getTag2(element));
  47323. }
  47324. function isElementInvalid(element) {
  47325. let isHaveAriaInvalid = isElementHavingAriaInvalid(element);
  47326. return isSupportsValidityMethod(element) ? isHaveAriaInvalid || !element.checkValidity() : isHaveAriaInvalid;
  47327. }
  47328. function toBeInvalid(element) {
  47329. checkHtmlElement(element, toBeInvalid, this);
  47330. let isInvalid = isElementInvalid(element);
  47331. return {
  47332. pass: isInvalid,
  47333. message: () => {
  47334. let is = isInvalid ? "is" : "is not";
  47335. return [
  47336. this.utils.matcherHint(
  47337. `${this.isNot ? ".not" : ""}.toBeInvalid`,
  47338. "element",
  47339. ""
  47340. ),
  47341. "",
  47342. `Received element ${is} currently invalid:`,
  47343. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47344. ].join(`
  47345. `);
  47346. }
  47347. };
  47348. }
  47349. function toBeValid(element) {
  47350. checkHtmlElement(element, toBeValid, this);
  47351. let isValid = !isElementInvalid(element);
  47352. return {
  47353. pass: isValid,
  47354. message: () => {
  47355. let is = isValid ? "is" : "is not";
  47356. return [
  47357. this.utils.matcherHint(
  47358. `${this.isNot ? ".not" : ""}.toBeValid`,
  47359. "element",
  47360. ""
  47361. ),
  47362. "",
  47363. `Received element ${is} currently valid:`,
  47364. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47365. ].join(`
  47366. `);
  47367. }
  47368. };
  47369. }
  47370. function toHaveValue(htmlElement, expectedValue) {
  47371. if (checkHtmlElement(htmlElement, toHaveValue, this), htmlElement.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(htmlElement.type))
  47372. throw new Error(
  47373. "input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead"
  47374. );
  47375. let receivedValue = getSingleElementValue(htmlElement), expectsValue = expectedValue !== void 0, expectedTypedValue = expectedValue, receivedTypedValue = receivedValue;
  47376. return expectedValue == receivedValue && expectedValue !== receivedValue && (expectedTypedValue = `${expectedValue} (${typeof expectedValue})`, receivedTypedValue = `${receivedValue} (${typeof receivedValue})`), {
  47377. pass: expectsValue ? compareAsSet(receivedValue, expectedValue) : !!receivedValue,
  47378. message: () => {
  47379. let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint(
  47380. `${this.isNot ? ".not" : ""}.toHaveValue`,
  47381. "element",
  47382. expectedValue
  47383. );
  47384. return getMessage3(
  47385. this,
  47386. matcher,
  47387. `Expected the element ${to} have value`,
  47388. expectsValue ? expectedTypedValue : "(any)",
  47389. "Received",
  47390. receivedTypedValue
  47391. );
  47392. }
  47393. };
  47394. }
  47395. function toHaveDisplayValue(htmlElement, expectedValue) {
  47396. checkHtmlElement(htmlElement, toHaveDisplayValue, this);
  47397. let tagName = htmlElement.tagName.toLowerCase();
  47398. if (!["select", "input", "textarea"].includes(tagName))
  47399. throw new Error(
  47400. ".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead."
  47401. );
  47402. if (tagName === "input" && ["radio", "checkbox"].includes(htmlElement.type))
  47403. throw new Error(
  47404. `.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.`
  47405. );
  47406. let values = getValues(tagName, htmlElement), expectedValues = getExpectedValues(expectedValue), numberOfMatchesWithValues = expectedValues.filter(
  47407. (expected) => values.some(
  47408. (value) => expected instanceof RegExp ? expected.test(value) : this.equals(value, String(expected))
  47409. )
  47410. ).length, matchedWithAllValues = numberOfMatchesWithValues === values.length, matchedWithAllExpectedValues = numberOfMatchesWithValues === expectedValues.length;
  47411. return {
  47412. pass: matchedWithAllValues && matchedWithAllExpectedValues,
  47413. message: () => getMessage3(
  47414. this,
  47415. this.utils.matcherHint(
  47416. `${this.isNot ? ".not" : ""}.toHaveDisplayValue`,
  47417. "element",
  47418. ""
  47419. ),
  47420. `Expected element ${this.isNot ? "not " : ""}to have display value`,
  47421. expectedValue,
  47422. "Received",
  47423. values
  47424. )
  47425. };
  47426. }
  47427. function getValues(tagName, htmlElement) {
  47428. return tagName === "select" ? Array.from(htmlElement).filter((option) => option.selected).map((option) => option.textContent) : [htmlElement.value];
  47429. }
  47430. function getExpectedValues(expectedValue) {
  47431. return expectedValue instanceof Array ? expectedValue : [expectedValue];
  47432. }
  47433. function toBeChecked(element) {
  47434. checkHtmlElement(element, toBeChecked, this);
  47435. let isValidInput = () => element.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(element.type), isValidAriaElement = () => roleSupportsChecked(element.getAttribute("role")) && ["true", "false"].includes(element.getAttribute("aria-checked"));
  47436. if (!isValidInput() && !isValidAriaElement())
  47437. return {
  47438. pass: !1,
  47439. message: () => `only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`
  47440. };
  47441. let isChecked = () => isValidInput() ? element.checked : element.getAttribute("aria-checked") === "true";
  47442. return {
  47443. pass: isChecked(),
  47444. message: () => {
  47445. let is = isChecked() ? "is" : "is not";
  47446. return [
  47447. this.utils.matcherHint(
  47448. `${this.isNot ? ".not" : ""}.toBeChecked`,
  47449. "element",
  47450. ""
  47451. ),
  47452. "",
  47453. `Received element ${is} checked:`,
  47454. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47455. ].join(`
  47456. `);
  47457. }
  47458. };
  47459. }
  47460. function supportedRolesSentence() {
  47461. return toSentence(
  47462. supportedRoles().map((role) => `role="${role}"`),
  47463. { lastWordConnector: " or " }
  47464. );
  47465. }
  47466. function supportedRoles() {
  47467. return import_aria_query.roles.keys().filter(roleSupportsChecked);
  47468. }
  47469. function roleSupportsChecked(role) {
  47470. return import_aria_query.roles.get(role)?.props["aria-checked"] !== void 0;
  47471. }
  47472. function toBePartiallyChecked(element) {
  47473. checkHtmlElement(element, toBePartiallyChecked, this);
  47474. let isValidInput = () => element.tagName.toLowerCase() === "input" && element.type === "checkbox", isValidAriaElement = () => element.getAttribute("role") === "checkbox";
  47475. if (!isValidInput() && !isValidAriaElement())
  47476. return {
  47477. pass: !1,
  47478. message: () => 'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'
  47479. };
  47480. let isPartiallyChecked = () => {
  47481. let isAriaMixed = element.getAttribute("aria-checked") === "mixed";
  47482. return isValidInput() && element.indeterminate || isAriaMixed;
  47483. };
  47484. return {
  47485. pass: isPartiallyChecked(),
  47486. message: () => {
  47487. let is = isPartiallyChecked() ? "is" : "is not";
  47488. return [
  47489. this.utils.matcherHint(
  47490. `${this.isNot ? ".not" : ""}.toBePartiallyChecked`,
  47491. "element",
  47492. ""
  47493. ),
  47494. "",
  47495. `Received element ${is} partially checked:`,
  47496. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47497. ].join(`
  47498. `);
  47499. }
  47500. };
  47501. }
  47502. function toHaveDescription(htmlElement, checkWith) {
  47503. deprecate2(
  47504. "toHaveDescription",
  47505. "Please use toHaveAccessibleDescription."
  47506. ), checkHtmlElement(htmlElement, toHaveDescription, this);
  47507. let expectsDescription = checkWith !== void 0, descriptionIDs = (htmlElement.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), description = "";
  47508. if (descriptionIDs.length > 0) {
  47509. let document13 = htmlElement.ownerDocument, descriptionEls = descriptionIDs.map((descriptionID) => document13.getElementById(descriptionID)).filter(Boolean);
  47510. description = normalize(descriptionEls.map((el) => el.textContent).join(" "));
  47511. }
  47512. return {
  47513. pass: expectsDescription ? checkWith instanceof RegExp ? checkWith.test(description) : this.equals(description, checkWith) : !!description,
  47514. message: () => {
  47515. let to = this.isNot ? "not to" : "to";
  47516. return getMessage3(
  47517. this,
  47518. this.utils.matcherHint(
  47519. `${this.isNot ? ".not" : ""}.toHaveDescription`,
  47520. "element",
  47521. ""
  47522. ),
  47523. `Expected the element ${to} have description`,
  47524. this.utils.printExpected(checkWith),
  47525. "Received",
  47526. this.utils.printReceived(description)
  47527. );
  47528. }
  47529. };
  47530. }
  47531. function toHaveErrorMessage(htmlElement, checkWith) {
  47532. if (deprecate2("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), checkHtmlElement(htmlElement, toHaveErrorMessage, this), !htmlElement.hasAttribute("aria-invalid") || htmlElement.getAttribute("aria-invalid") === "false") {
  47533. let not = this.isNot ? ".not" : "";
  47534. return {
  47535. pass: !1,
  47536. message: () => getMessage3(
  47537. this,
  47538. this.utils.matcherHint(`${not}.toHaveErrorMessage`, "element", ""),
  47539. "Expected the element to have invalid state indicated by",
  47540. 'aria-invalid="true"',
  47541. "Received",
  47542. htmlElement.hasAttribute("aria-invalid") ? `aria-invalid="${htmlElement.getAttribute("aria-invalid")}"` : this.utils.printReceived("")
  47543. )
  47544. };
  47545. }
  47546. let expectsErrorMessage = checkWith !== void 0, errormessageIDs = (htmlElement.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean), errormessage = "";
  47547. if (errormessageIDs.length > 0) {
  47548. let document13 = htmlElement.ownerDocument, errormessageEls = errormessageIDs.map((errormessageID) => document13.getElementById(errormessageID)).filter(Boolean);
  47549. errormessage = normalize(
  47550. errormessageEls.map((el) => el.textContent).join(" ")
  47551. );
  47552. }
  47553. return {
  47554. pass: expectsErrorMessage ? checkWith instanceof RegExp ? checkWith.test(errormessage) : this.equals(errormessage, checkWith) : !!errormessage,
  47555. message: () => {
  47556. let to = this.isNot ? "not to" : "to";
  47557. return getMessage3(
  47558. this,
  47559. this.utils.matcherHint(
  47560. `${this.isNot ? ".not" : ""}.toHaveErrorMessage`,
  47561. "element",
  47562. ""
  47563. ),
  47564. `Expected the element ${to} have error message`,
  47565. this.utils.printExpected(checkWith),
  47566. "Received",
  47567. this.utils.printReceived(errormessage)
  47568. );
  47569. }
  47570. };
  47571. }
  47572. function getSelection(element) {
  47573. let selection = element.ownerDocument.getSelection();
  47574. if (["input", "textarea"].includes(element.tagName.toLowerCase()))
  47575. return ["radio", "checkbox"].includes(element.type) ? "" : element.value.toString().substring(element.selectionStart, element.selectionEnd);
  47576. if (selection.anchorNode === null || selection.focusNode === null)
  47577. return "";
  47578. let originalRange = selection.getRangeAt(0), temporaryRange = element.ownerDocument.createRange();
  47579. if (selection.containsNode(element, !1))
  47580. temporaryRange.selectNodeContents(element), selection.removeAllRanges(), selection.addRange(temporaryRange);
  47581. else if (!(element.contains(selection.anchorNode) && element.contains(selection.focusNode))) {
  47582. let selectionStartsWithinElement = element === originalRange.startContainer || element.contains(originalRange.startContainer), selectionEndsWithinElement = element === originalRange.endContainer || element.contains(originalRange.endContainer);
  47583. selection.removeAllRanges(), (selectionStartsWithinElement || selectionEndsWithinElement) && (temporaryRange.selectNodeContents(element), selectionStartsWithinElement && temporaryRange.setStart(
  47584. originalRange.startContainer,
  47585. originalRange.startOffset
  47586. ), selectionEndsWithinElement && temporaryRange.setEnd(
  47587. originalRange.endContainer,
  47588. originalRange.endOffset
  47589. ), selection.addRange(temporaryRange));
  47590. }
  47591. let result = selection.toString();
  47592. return selection.removeAllRanges(), selection.addRange(originalRange), result;
  47593. }
  47594. function toHaveSelection(htmlElement, expectedSelection) {
  47595. checkHtmlElement(htmlElement, toHaveSelection, this);
  47596. let expectsSelection = expectedSelection !== void 0;
  47597. if (expectsSelection && typeof expectedSelection != "string")
  47598. throw new Error("expected selection must be a string or undefined");
  47599. let receivedSelection = getSelection(htmlElement);
  47600. return {
  47601. pass: expectsSelection ? compareAsSet(receivedSelection, expectedSelection) : !!receivedSelection,
  47602. message: () => {
  47603. let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint(
  47604. `${this.isNot ? ".not" : ""}.toHaveSelection`,
  47605. "element",
  47606. expectedSelection
  47607. );
  47608. return getMessage3(
  47609. this,
  47610. matcher,
  47611. `Expected the element ${to} have selection`,
  47612. expectsSelection ? expectedSelection : "(any)",
  47613. "Received",
  47614. receivedSelection
  47615. );
  47616. }
  47617. };
  47618. }
  47619. function toBePressed(element) {
  47620. checkHtmlElement(element, toBePressed, this);
  47621. let roles3 = (element.getAttribute("role") || "").split(" ").map((role) => role.trim()), isButton2 = element.tagName.toLowerCase() === "button" || element.tagName.toLowerCase() === "input" && element.type === "button" || roles3.includes("button"), pressedAttribute = element.getAttribute("aria-pressed");
  47622. return !isButton2 || !(pressedAttribute === "true" || pressedAttribute === "false") ? {
  47623. pass: !1,
  47624. message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'
  47625. } : {
  47626. pass: isButton2 && pressedAttribute === "true",
  47627. message: () => {
  47628. let matcher = this.utils.matcherHint(
  47629. `${this.isNot ? ".not" : ""}.toBePressed`,
  47630. "element",
  47631. ""
  47632. );
  47633. return getMessage3(
  47634. this,
  47635. matcher,
  47636. "Expected element to have",
  47637. `aria-pressed="${this.isNot ? "false" : "true"}"`,
  47638. "Received",
  47639. `aria-pressed="${pressedAttribute}"`
  47640. );
  47641. }
  47642. };
  47643. }
  47644. function toBePartiallyPressed(element) {
  47645. checkHtmlElement(element, toBePartiallyPressed, this);
  47646. let roles3 = (element.getAttribute("role") || "").split(" ").map((role) => role.trim()), isButton2 = element.tagName.toLowerCase() === "button" || element.tagName.toLowerCase() === "input" && element.type === "button" || roles3.includes("button"), pressedAttribute = element.getAttribute("aria-pressed");
  47647. return !isButton2 || !(pressedAttribute === "true" || pressedAttribute === "false" || pressedAttribute === "mixed") ? {
  47648. pass: !1,
  47649. message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'
  47650. } : {
  47651. pass: isButton2 && pressedAttribute === "mixed",
  47652. message: () => {
  47653. let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint(
  47654. `${this.isNot ? ".not" : ""}.toBePartiallyPressed`,
  47655. "element",
  47656. ""
  47657. );
  47658. return getMessage3(
  47659. this,
  47660. matcher,
  47661. `Expected element ${to} have`,
  47662. 'aria-pressed="mixed"',
  47663. "Received",
  47664. `aria-pressed="${pressedAttribute}"`
  47665. );
  47666. }
  47667. };
  47668. }
  47669. var DOCUMENT_POSITION_DISCONNECTED = 1, DOCUMENT_POSITION_PRECEDING = 2, DOCUMENT_POSITION_FOLLOWING = 4, DOCUMENT_POSITION_CONTAINS = 8, DOCUMENT_POSITION_CONTAINED_BY = 16, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32, DOCUMENT_POSITIONS_STRINGS = {
  47670. [DOCUMENT_POSITION_DISCONNECTED]: "Node.DOCUMENT_POSITION_DISCONNECTED",
  47671. [DOCUMENT_POSITION_PRECEDING]: "Node.DOCUMENT_POSITION_PRECEDING",
  47672. [DOCUMENT_POSITION_FOLLOWING]: "Node.DOCUMENT_POSITION_FOLLOWING",
  47673. [DOCUMENT_POSITION_CONTAINS]: "Node.DOCUMENT_POSITION_CONTAINS",
  47674. [DOCUMENT_POSITION_CONTAINED_BY]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
  47675. [DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
  47676. };
  47677. function makeDocumentPositionErrorString(documentPosition) {
  47678. return documentPosition in DOCUMENT_POSITIONS_STRINGS ? `${DOCUMENT_POSITIONS_STRINGS[documentPosition]} (${documentPosition})` : `Unknown document position (${documentPosition})`;
  47679. }
  47680. function checkToAppear(methodName, targetDocumentPosition) {
  47681. return function(element, secondElement) {
  47682. checkHtmlElement(element, toAppearBefore, this), checkHtmlElement(secondElement, toAppearBefore, this);
  47683. let documentPosition = element.compareDocumentPosition(secondElement);
  47684. return {
  47685. pass: documentPosition === targetDocumentPosition,
  47686. message: () => [
  47687. this.utils.matcherHint(
  47688. `${this.isNot ? ".not" : ""}.${methodName}`,
  47689. "element",
  47690. "secondElement"
  47691. ),
  47692. "",
  47693. `Received: ${makeDocumentPositionErrorString(documentPosition)}`
  47694. ].join(`
  47695. `)
  47696. };
  47697. };
  47698. }
  47699. function toAppearBefore(element, secondElement) {
  47700. return checkToAppear("toAppearBefore", DOCUMENT_POSITION_FOLLOWING).apply(
  47701. this,
  47702. [element, secondElement]
  47703. );
  47704. }
  47705. function toAppearAfter(element, secondElement) {
  47706. return checkToAppear("toAppearAfter", DOCUMENT_POSITION_PRECEDING).apply(
  47707. this,
  47708. [element, secondElement]
  47709. );
  47710. }
  47711. var extensions = Object.freeze({
  47712. __proto__: null,
  47713. toAppearAfter,
  47714. toAppearBefore,
  47715. toBeChecked,
  47716. toBeDisabled,
  47717. toBeEmpty,
  47718. toBeEmptyDOMElement,
  47719. toBeEnabled,
  47720. toBeInTheDOM,
  47721. toBeInTheDocument,
  47722. toBeInvalid,
  47723. toBePartiallyChecked,
  47724. toBePartiallyPressed,
  47725. toBePressed,
  47726. toBeRequired,
  47727. toBeValid,
  47728. toBeVisible,
  47729. toContainElement,
  47730. toContainHTML,
  47731. toHaveAccessibleDescription,
  47732. toHaveAccessibleErrorMessage,
  47733. toHaveAccessibleName,
  47734. toHaveAttribute,
  47735. toHaveClass,
  47736. toHaveDescription,
  47737. toHaveDisplayValue,
  47738. toHaveErrorMessage,
  47739. toHaveFocus,
  47740. toHaveFormValues,
  47741. toHaveRole,
  47742. toHaveSelection,
  47743. toHaveStyle,
  47744. toHaveTextContent,
  47745. toHaveValue
  47746. });
  47747. // ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs
  47748. var import_redent2 = __toESM(require_redent(), 1);
  47749. var import_aria_query2 = __toESM(require_lib2(), 1), import_picocolors3 = __toESM(require_picocolors_browser(), 1), import_css4 = __toESM(require_css_escape(), 1);
  47750. // ../../node_modules/@vitest/utils/dist/index.js
  47751. var jsTokens_1, hasRequiredJsTokens;
  47752. function requireJsTokens() {
  47753. if (hasRequiredJsTokens) return jsTokens_1;
  47754. hasRequiredJsTokens = 1;
  47755. var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
  47756. return RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu, Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y, Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu, StringLiteral = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y, NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y, Template = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y, WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu, LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y, MultiLineComment = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y, SingleLineComment = /\/\/.*/y, JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y, JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu, JSXString = /(['"])(?:(?!\1)[^])*(\1)?/y, JSXText = /[^<>{}]+/y, TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/, TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/, KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/, KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/, Newline = RegExp(LineTerminatorSequence.source), jsTokens_1 = function* (input2, { jsx: jsx10 = !1 } = {}) {
  47757. var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length2, match3, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
  47758. for ({ length: length2 } = input2, lastIndex = 0, lastSignificantToken = "", stack = [
  47759. { tag: "JS" }
  47760. ], braces = [], parenNesting = 0, postfixIncDec = !1; lastIndex < length2; ) {
  47761. switch (mode = stack[stack.length - 1], mode.tag) {
  47762. case "JS":
  47763. case "JSNonExpressionParen":
  47764. case "InterpolationInTemplate":
  47765. case "InterpolationInJSX":
  47766. if (input2[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)) && (RegularExpressionLiteral.lastIndex = lastIndex, match3 = RegularExpressionLiteral.exec(input2))) {
  47767. lastIndex = RegularExpressionLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield {
  47768. type: "RegularExpressionLiteral",
  47769. value: match3[0],
  47770. closed: match3[1] !== void 0 && match3[1] !== "\\"
  47771. };
  47772. continue;
  47773. }
  47774. if (Punctuator.lastIndex = lastIndex, match3 = Punctuator.exec(input2)) {
  47775. switch (punctuator = match3[0], nextLastIndex = Punctuator.lastIndex, nextLastSignificantToken = punctuator, punctuator) {
  47776. case "(":
  47777. lastSignificantToken === "?NonExpressionParenKeyword" && stack.push({
  47778. tag: "JSNonExpressionParen",
  47779. nesting: parenNesting
  47780. }), parenNesting++, postfixIncDec = !1;
  47781. break;
  47782. case ")":
  47783. parenNesting--, postfixIncDec = !0, mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting && (stack.pop(), nextLastSignificantToken = "?NonExpressionParenEnd", postfixIncDec = !1);
  47784. break;
  47785. case "{":
  47786. Punctuator.lastIndex = 0, isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)), braces.push(isExpression), postfixIncDec = !1;
  47787. break;
  47788. case "}":
  47789. switch (mode.tag) {
  47790. case "InterpolationInTemplate":
  47791. if (braces.length === mode.nesting) {
  47792. Template.lastIndex = lastIndex, match3 = Template.exec(input2), lastIndex = Template.lastIndex, lastSignificantToken = match3[0], match3[1] === "${" ? (lastSignificantToken = "?InterpolationInTemplate", postfixIncDec = !1, yield {
  47793. type: "TemplateMiddle",
  47794. value: match3[0]
  47795. }) : (stack.pop(), postfixIncDec = !0, yield {
  47796. type: "TemplateTail",
  47797. value: match3[0],
  47798. closed: match3[1] === "`"
  47799. });
  47800. continue;
  47801. }
  47802. break;
  47803. case "InterpolationInJSX":
  47804. if (braces.length === mode.nesting) {
  47805. stack.pop(), lastIndex += 1, lastSignificantToken = "}", yield {
  47806. type: "JSXPunctuator",
  47807. value: "}"
  47808. };
  47809. continue;
  47810. }
  47811. }
  47812. postfixIncDec = braces.pop(), nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}";
  47813. break;
  47814. case "]":
  47815. postfixIncDec = !0;
  47816. break;
  47817. case "++":
  47818. case "--":
  47819. nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec";
  47820. break;
  47821. case "<":
  47822. if (jsx10 && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
  47823. stack.push({ tag: "JSXTag" }), lastIndex += 1, lastSignificantToken = "<", yield {
  47824. type: "JSXPunctuator",
  47825. value: punctuator
  47826. };
  47827. continue;
  47828. }
  47829. postfixIncDec = !1;
  47830. break;
  47831. default:
  47832. postfixIncDec = !1;
  47833. }
  47834. lastIndex = nextLastIndex, lastSignificantToken = nextLastSignificantToken, yield {
  47835. type: "Punctuator",
  47836. value: punctuator
  47837. };
  47838. continue;
  47839. }
  47840. if (Identifier.lastIndex = lastIndex, match3 = Identifier.exec(input2)) {
  47841. switch (lastIndex = Identifier.lastIndex, nextLastSignificantToken = match3[0], match3[0]) {
  47842. case "for":
  47843. case "if":
  47844. case "while":
  47845. case "with":
  47846. lastSignificantToken !== "." && lastSignificantToken !== "?." && (nextLastSignificantToken = "?NonExpressionParenKeyword");
  47847. }
  47848. lastSignificantToken = nextLastSignificantToken, postfixIncDec = !KeywordsWithExpressionAfter.test(match3[0]), yield {
  47849. type: match3[1] === "#" ? "PrivateIdentifier" : "IdentifierName",
  47850. value: match3[0]
  47851. };
  47852. continue;
  47853. }
  47854. if (StringLiteral.lastIndex = lastIndex, match3 = StringLiteral.exec(input2)) {
  47855. lastIndex = StringLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield {
  47856. type: "StringLiteral",
  47857. value: match3[0],
  47858. closed: match3[2] !== void 0
  47859. };
  47860. continue;
  47861. }
  47862. if (NumericLiteral.lastIndex = lastIndex, match3 = NumericLiteral.exec(input2)) {
  47863. lastIndex = NumericLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield {
  47864. type: "NumericLiteral",
  47865. value: match3[0]
  47866. };
  47867. continue;
  47868. }
  47869. if (Template.lastIndex = lastIndex, match3 = Template.exec(input2)) {
  47870. lastIndex = Template.lastIndex, lastSignificantToken = match3[0], match3[1] === "${" ? (lastSignificantToken = "?InterpolationInTemplate", stack.push({
  47871. tag: "InterpolationInTemplate",
  47872. nesting: braces.length
  47873. }), postfixIncDec = !1, yield {
  47874. type: "TemplateHead",
  47875. value: match3[0]
  47876. }) : (postfixIncDec = !0, yield {
  47877. type: "NoSubstitutionTemplate",
  47878. value: match3[0],
  47879. closed: match3[1] === "`"
  47880. });
  47881. continue;
  47882. }
  47883. break;
  47884. case "JSXTag":
  47885. case "JSXTagEnd":
  47886. if (JSXPunctuator.lastIndex = lastIndex, match3 = JSXPunctuator.exec(input2)) {
  47887. switch (lastIndex = JSXPunctuator.lastIndex, nextLastSignificantToken = match3[0], match3[0]) {
  47888. case "<":
  47889. stack.push({ tag: "JSXTag" });
  47890. break;
  47891. case ">":
  47892. stack.pop(), lastSignificantToken === "/" || mode.tag === "JSXTagEnd" ? (nextLastSignificantToken = "?JSX", postfixIncDec = !0) : stack.push({ tag: "JSXChildren" });
  47893. break;
  47894. case "{":
  47895. stack.push({
  47896. tag: "InterpolationInJSX",
  47897. nesting: braces.length
  47898. }), nextLastSignificantToken = "?InterpolationInJSX", postfixIncDec = !1;
  47899. break;
  47900. case "/":
  47901. lastSignificantToken === "<" && (stack.pop(), stack[stack.length - 1].tag === "JSXChildren" && stack.pop(), stack.push({ tag: "JSXTagEnd" }));
  47902. }
  47903. lastSignificantToken = nextLastSignificantToken, yield {
  47904. type: "JSXPunctuator",
  47905. value: match3[0]
  47906. };
  47907. continue;
  47908. }
  47909. if (JSXIdentifier.lastIndex = lastIndex, match3 = JSXIdentifier.exec(input2)) {
  47910. lastIndex = JSXIdentifier.lastIndex, lastSignificantToken = match3[0], yield {
  47911. type: "JSXIdentifier",
  47912. value: match3[0]
  47913. };
  47914. continue;
  47915. }
  47916. if (JSXString.lastIndex = lastIndex, match3 = JSXString.exec(input2)) {
  47917. lastIndex = JSXString.lastIndex, lastSignificantToken = match3[0], yield {
  47918. type: "JSXString",
  47919. value: match3[0],
  47920. closed: match3[2] !== void 0
  47921. };
  47922. continue;
  47923. }
  47924. break;
  47925. case "JSXChildren":
  47926. if (JSXText.lastIndex = lastIndex, match3 = JSXText.exec(input2)) {
  47927. lastIndex = JSXText.lastIndex, lastSignificantToken = match3[0], yield {
  47928. type: "JSXText",
  47929. value: match3[0]
  47930. };
  47931. continue;
  47932. }
  47933. switch (input2[lastIndex]) {
  47934. case "<":
  47935. stack.push({ tag: "JSXTag" }), lastIndex++, lastSignificantToken = "<", yield {
  47936. type: "JSXPunctuator",
  47937. value: "<"
  47938. };
  47939. continue;
  47940. case "{":
  47941. stack.push({
  47942. tag: "InterpolationInJSX",
  47943. nesting: braces.length
  47944. }), lastIndex++, lastSignificantToken = "?InterpolationInJSX", postfixIncDec = !1, yield {
  47945. type: "JSXPunctuator",
  47946. value: "{"
  47947. };
  47948. continue;
  47949. }
  47950. }
  47951. if (WhiteSpace.lastIndex = lastIndex, match3 = WhiteSpace.exec(input2)) {
  47952. lastIndex = WhiteSpace.lastIndex, yield {
  47953. type: "WhiteSpace",
  47954. value: match3[0]
  47955. };
  47956. continue;
  47957. }
  47958. if (LineTerminatorSequence.lastIndex = lastIndex, match3 = LineTerminatorSequence.exec(input2)) {
  47959. lastIndex = LineTerminatorSequence.lastIndex, postfixIncDec = !1, KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken) && (lastSignificantToken = "?NoLineTerminatorHere"), yield {
  47960. type: "LineTerminatorSequence",
  47961. value: match3[0]
  47962. };
  47963. continue;
  47964. }
  47965. if (MultiLineComment.lastIndex = lastIndex, match3 = MultiLineComment.exec(input2)) {
  47966. lastIndex = MultiLineComment.lastIndex, Newline.test(match3[0]) && (postfixIncDec = !1, KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken) && (lastSignificantToken = "?NoLineTerminatorHere")), yield {
  47967. type: "MultiLineComment",
  47968. value: match3[0],
  47969. closed: match3[1] !== void 0
  47970. };
  47971. continue;
  47972. }
  47973. if (SingleLineComment.lastIndex = lastIndex, match3 = SingleLineComment.exec(input2)) {
  47974. lastIndex = SingleLineComment.lastIndex, postfixIncDec = !1, yield {
  47975. type: "SingleLineComment",
  47976. value: match3[0]
  47977. };
  47978. continue;
  47979. }
  47980. firstCodePoint = String.fromCodePoint(input2.codePointAt(lastIndex)), lastIndex += firstCodePoint.length, lastSignificantToken = firstCodePoint, postfixIncDec = !1, yield {
  47981. type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid",
  47982. value: firstCodePoint
  47983. };
  47984. }
  47985. }, jsTokens_1;
  47986. }
  47987. var jsTokensExports = requireJsTokens(), jsTokens = getDefaultExportFromCjs2(jsTokensExports), reservedWords = {
  47988. keyword: [
  47989. "break",
  47990. "case",
  47991. "catch",
  47992. "continue",
  47993. "debugger",
  47994. "default",
  47995. "do",
  47996. "else",
  47997. "finally",
  47998. "for",
  47999. "function",
  48000. "if",
  48001. "return",
  48002. "switch",
  48003. "throw",
  48004. "try",
  48005. "var",
  48006. "const",
  48007. "while",
  48008. "with",
  48009. "new",
  48010. "this",
  48011. "super",
  48012. "class",
  48013. "extends",
  48014. "export",
  48015. "import",
  48016. "null",
  48017. "true",
  48018. "false",
  48019. "in",
  48020. "instanceof",
  48021. "typeof",
  48022. "void",
  48023. "delete"
  48024. ],
  48025. strict: [
  48026. "implements",
  48027. "interface",
  48028. "let",
  48029. "package",
  48030. "private",
  48031. "protected",
  48032. "public",
  48033. "static",
  48034. "yield"
  48035. ]
  48036. }, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict);
  48037. // ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
  48038. var f2 = {
  48039. reset: [0, 0],
  48040. bold: [1, 22, "\x1B[22m\x1B[1m"],
  48041. dim: [2, 22, "\x1B[22m\x1B[2m"],
  48042. italic: [3, 23],
  48043. underline: [4, 24],
  48044. inverse: [7, 27],
  48045. hidden: [8, 28],
  48046. strikethrough: [9, 29],
  48047. black: [30, 39],
  48048. red: [31, 39],
  48049. green: [32, 39],
  48050. yellow: [33, 39],
  48051. blue: [34, 39],
  48052. magenta: [35, 39],
  48053. cyan: [36, 39],
  48054. white: [37, 39],
  48055. gray: [90, 39],
  48056. bgBlack: [40, 49],
  48057. bgRed: [41, 49],
  48058. bgGreen: [42, 49],
  48059. bgYellow: [43, 49],
  48060. bgBlue: [44, 49],
  48061. bgMagenta: [45, 49],
  48062. bgCyan: [46, 49],
  48063. bgWhite: [47, 49],
  48064. blackBright: [90, 39],
  48065. redBright: [91, 39],
  48066. greenBright: [92, 39],
  48067. yellowBright: [93, 39],
  48068. blueBright: [94, 39],
  48069. magentaBright: [95, 39],
  48070. cyanBright: [96, 39],
  48071. whiteBright: [97, 39],
  48072. bgBlackBright: [100, 49],
  48073. bgRedBright: [101, 49],
  48074. bgGreenBright: [102, 49],
  48075. bgYellowBright: [103, 49],
  48076. bgBlueBright: [104, 49],
  48077. bgMagentaBright: [105, 49],
  48078. bgCyanBright: [106, 49],
  48079. bgWhiteBright: [107, 49]
  48080. }, h2 = Object.entries(f2);
  48081. function a2(n) {
  48082. return String(n);
  48083. }
  48084. a2.open = "";
  48085. a2.close = "";
  48086. var B2 = h2.reduce(
  48087. (n, [e]) => (n[e] = a2, n),
  48088. { isColorSupported: !1 }
  48089. );
  48090. function C2(n = !1) {
  48091. let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || [];
  48092. return !("NO_COLOR" in i || g2.includes("--no-color")) && ("FORCE_COLOR" in i || g2.includes("--color") || e?.platform === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window < "u" && !!window.chrome;
  48093. }
  48094. function p2(n = !1) {
  48095. let e = C2(n), i = (r2, t, c, o) => {
  48096. let l = "", s3 = 0;
  48097. do
  48098. l += r2.substring(s3, o) + c, s3 = o + t.length, o = r2.indexOf(t, s3);
  48099. while (~o);
  48100. return l + r2.substring(s3);
  48101. }, g2 = (r2, t, c = r2) => {
  48102. let o = (l) => {
  48103. let s3 = String(l), b = s3.indexOf(t, r2.length);
  48104. return ~b ? r2 + i(s3, t, c, b) + t : r2 + s3 + t;
  48105. };
  48106. return o.open = r2, o.close = t, o;
  48107. }, u2 = {
  48108. isColorSupported: e
  48109. }, d = (r2) => `\x1B[${r2}m`;
  48110. for (let [r2, t] of h2)
  48111. u2[r2] = e ? g2(
  48112. d(t[0]),
  48113. d(t[1]),
  48114. t[2]
  48115. ) : a2;
  48116. return u2;
  48117. }
  48118. // ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/browser.js
  48119. var s2 = p2();
  48120. // ../../node_modules/@vitest/spy/node_modules/tinyspy/dist/index.js
  48121. function assert2(condition, message) {
  48122. if (!condition)
  48123. throw new Error(message);
  48124. }
  48125. function isType(type5, value) {
  48126. return typeof value === type5;
  48127. }
  48128. function isPromise2(value) {
  48129. return value instanceof Promise;
  48130. }
  48131. function define2(obj, key, descriptor) {
  48132. Object.defineProperty(obj, key, descriptor);
  48133. }
  48134. function defineValue(obj, key, value) {
  48135. define2(obj, key, { value, configurable: !0, writable: !0 });
  48136. }
  48137. var SYMBOL_STATE = /* @__PURE__ */ Symbol.for("tinyspy:spy"), spies = /* @__PURE__ */ new Set(), reset = (state3) => {
  48138. state3.called = !1, state3.callCount = 0, state3.calls = [], state3.results = [], state3.resolves = [], state3.next = [];
  48139. }, defineState = (spy2) => (define2(spy2, SYMBOL_STATE, {
  48140. value: { reset: () => reset(spy2[SYMBOL_STATE]) }
  48141. }), spy2[SYMBOL_STATE]), getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2);
  48142. function createInternalSpy(cb) {
  48143. assert2(
  48144. isType("function", cb) || isType("undefined", cb),
  48145. "cannot spy on a non-function value"
  48146. );
  48147. let fn4 = function(...args) {
  48148. let state22 = getInternalState(fn4);
  48149. state22.called = !0, state22.callCount++, state22.calls.push(args);
  48150. let next2 = state22.next.shift();
  48151. if (next2) {
  48152. state22.results.push(next2);
  48153. let [type22, result2] = next2;
  48154. if (type22 === "ok")
  48155. return result2;
  48156. throw result2;
  48157. }
  48158. let result, type5 = "ok", resultIndex = state22.results.length;
  48159. if (state22.impl)
  48160. try {
  48161. new.target ? result = Reflect.construct(state22.impl, args, new.target) : result = state22.impl.apply(this, args), type5 = "ok";
  48162. } catch (err) {
  48163. throw result = err, type5 = "error", state22.results.push([type5, err]), err;
  48164. }
  48165. let resultTuple = [type5, result];
  48166. return isPromise2(result) && result.then(
  48167. (r2) => state22.resolves[resultIndex] = ["ok", r2],
  48168. (e) => state22.resolves[resultIndex] = ["error", e]
  48169. ), state22.results.push(resultTuple), result;
  48170. };
  48171. defineValue(fn4, "_isMockFunction", !0), defineValue(fn4, "length", cb ? cb.length : 0), defineValue(fn4, "name", cb && cb.name || "spy");
  48172. let state3 = getInternalState(fn4);
  48173. return state3.reset(), state3.impl = cb, fn4;
  48174. }
  48175. function isMockFunction(obj) {
  48176. return !!obj && obj._isMockFunction === !0;
  48177. }
  48178. var getDescriptor = (obj, method) => {
  48179. let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
  48180. if (objDescriptor)
  48181. return [obj, objDescriptor];
  48182. let currentProto = Object.getPrototypeOf(obj);
  48183. for (; currentProto !== null; ) {
  48184. let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
  48185. if (descriptor)
  48186. return [currentProto, descriptor];
  48187. currentProto = Object.getPrototypeOf(currentProto);
  48188. }
  48189. }, setPototype = (fn4, val) => {
  48190. val != null && typeof val == "function" && val.prototype != null && Object.setPrototypeOf(fn4.prototype, val.prototype);
  48191. };
  48192. function internalSpyOn(obj, methodName, mock) {
  48193. assert2(
  48194. !isType("undefined", obj),
  48195. "spyOn could not find an object to spy upon"
  48196. ), assert2(
  48197. isType("object", obj) || isType("function", obj),
  48198. "cannot spyOn on a primitive value"
  48199. );
  48200. let [accessName, accessType] = (() => {
  48201. if (!isType("object", methodName))
  48202. return [methodName, "value"];
  48203. if ("getter" in methodName && "setter" in methodName)
  48204. throw new Error("cannot spy on both getter and setter");
  48205. if ("getter" in methodName)
  48206. return [methodName.getter, "get"];
  48207. if ("setter" in methodName)
  48208. return [methodName.setter, "set"];
  48209. throw new Error("specify getter or setter to spy on");
  48210. })(), [originalDescriptorObject, originalDescriptor] = getDescriptor(obj, accessName) || [];
  48211. assert2(
  48212. originalDescriptor || accessName in obj,
  48213. `${String(accessName)} does not exist`
  48214. );
  48215. let ssr = !1;
  48216. accessType === "value" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = "get", ssr = !0, mock = originalDescriptor.get());
  48217. let original;
  48218. originalDescriptor ? original = originalDescriptor[accessType] : accessType !== "value" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal());
  48219. let reassign = (cb) => {
  48220. let { value, ...desc } = originalDescriptor || {
  48221. configurable: !0,
  48222. writable: !0
  48223. };
  48224. accessType !== "value" && delete desc.writable, desc[accessType] = cb, define2(obj, accessName, desc);
  48225. }, restore = () => {
  48226. originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define2(obj, accessName, originalDescriptor) : reassign(original);
  48227. };
  48228. mock || (mock = original);
  48229. let spy2 = wrap(createInternalSpy(mock), mock);
  48230. accessType === "value" && setPototype(spy2, original);
  48231. let state3 = spy2[SYMBOL_STATE];
  48232. return defineValue(state3, "restore", restore), defineValue(state3, "getOriginal", () => ssr ? original() : original), defineValue(state3, "willCall", (newCb) => (state3.impl = newCb, spy2)), reassign(
  48233. ssr ? () => (setPototype(spy2, mock), spy2) : spy2
  48234. ), spies.add(spy2), spy2;
  48235. }
  48236. var ignoreProperties = /* @__PURE__ */ new Set([
  48237. "length",
  48238. "name",
  48239. "prototype"
  48240. ]);
  48241. function getAllProperties(original) {
  48242. let properties = /* @__PURE__ */ new Set(), descriptors2 = {};
  48243. for (; original && original !== Object.prototype && original !== Function.prototype; ) {
  48244. let ownProperties = [
  48245. ...Object.getOwnPropertyNames(original),
  48246. ...Object.getOwnPropertySymbols(original)
  48247. ];
  48248. for (let prop of ownProperties)
  48249. descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop));
  48250. original = Object.getPrototypeOf(original);
  48251. }
  48252. return {
  48253. properties,
  48254. descriptors: descriptors2
  48255. };
  48256. }
  48257. function wrap(mock, original) {
  48258. if (!original || // the original is already a spy, so it has all the properties
  48259. SYMBOL_STATE in original)
  48260. return mock;
  48261. let { properties, descriptors: descriptors2 } = getAllProperties(original);
  48262. for (let key of properties) {
  48263. let descriptor = descriptors2[key];
  48264. getDescriptor(mock, key) || define2(mock, key, descriptor);
  48265. }
  48266. return mock;
  48267. }
  48268. function isSpyFunction(obj) {
  48269. return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
  48270. }
  48271. // ../../node_modules/@vitest/spy/dist/index.js
  48272. var mocks = /* @__PURE__ */ new Set();
  48273. function isMockFunction2(fn4) {
  48274. return typeof fn4 == "function" && "_isMockFunction" in fn4 && fn4._isMockFunction;
  48275. }
  48276. function spyOn(obj, method, accessType) {
  48277. let objMethod = accessType ? { [{
  48278. get: "getter",
  48279. set: "setter"
  48280. }[accessType]]: method } : method, state3, descriptor = getDescriptor2(obj, method), fn4 = descriptor && descriptor[accessType || "value"];
  48281. isMockFunction2(fn4) && (state3 = fn4.mock._state());
  48282. try {
  48283. let stub = internalSpyOn(obj, objMethod), spy = enhanceSpy(stub);
  48284. return state3 && spy.mock._state(state3), spy;
  48285. } catch (error) {
  48286. throw error instanceof TypeError && Symbol.toStringTag && obj[Symbol.toStringTag] === "Module" && (error.message.includes("Cannot redefine property") || error.message.includes("Cannot replace module namespace") || error.message.includes("can't redefine non-configurable property")) ? new TypeError(`Cannot spy on export "${String(objMethod)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`, { cause: error }) : error;
  48287. }
  48288. }
  48289. var callOrder = 0;
  48290. function enhanceSpy(spy) {
  48291. let stub = spy, implementation, onceImplementations = [], implementationChangedTemporarily = !1, instances2 = [], contexts = [], invocations = [], state3 = getInternalState(spy), mockContext = {
  48292. get calls() {
  48293. return state3.calls;
  48294. },
  48295. get contexts() {
  48296. return contexts;
  48297. },
  48298. get instances() {
  48299. return instances2;
  48300. },
  48301. get invocationCallOrder() {
  48302. return invocations;
  48303. },
  48304. get results() {
  48305. return state3.results.map(([callType, value]) => ({
  48306. type: callType === "error" ? "throw" : "return",
  48307. value
  48308. }));
  48309. },
  48310. get settledResults() {
  48311. return state3.resolves.map(([callType, value]) => ({
  48312. type: callType === "error" ? "rejected" : "fulfilled",
  48313. value
  48314. }));
  48315. },
  48316. get lastCall() {
  48317. return state3.calls[state3.calls.length - 1];
  48318. },
  48319. _state(state4) {
  48320. return state4 && (implementation = state4.implementation, onceImplementations = state4.onceImplementations, implementationChangedTemporarily = state4.implementationChangedTemporarily), {
  48321. implementation,
  48322. onceImplementations,
  48323. implementationChangedTemporarily
  48324. };
  48325. }
  48326. };
  48327. function mockCall(...args) {
  48328. return instances2.push(this), contexts.push(this), invocations.push(++callOrder), (implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state3.getOriginal() || (() => {
  48329. })).apply(this, args);
  48330. }
  48331. let name = stub.name;
  48332. stub.getMockName = () => name || "vi.fn()", stub.mockName = (n) => (name = n, stub), stub.mockClear = () => (state3.reset(), instances2 = [], contexts = [], invocations = [], stub), stub.mockReset = () => (stub.mockClear(), implementation = void 0, onceImplementations = [], stub), stub.mockRestore = () => (stub.mockReset(), state3.restore(), stub), Symbol.dispose && (stub[Symbol.dispose] = () => stub.mockRestore()), stub.getMockImplementation = () => implementationChangedTemporarily ? implementation : onceImplementations.at(0) || implementation, stub.mockImplementation = (fn4) => (implementation = fn4, state3.willCall(mockCall), stub), stub.mockImplementationOnce = (fn4) => (onceImplementations.push(fn4), stub);
  48333. function withImplementation(fn4, cb) {
  48334. let originalImplementation = implementation;
  48335. implementation = fn4, state3.willCall(mockCall), implementationChangedTemporarily = !0;
  48336. let reset2 = () => {
  48337. implementation = originalImplementation, implementationChangedTemporarily = !1;
  48338. }, result = cb();
  48339. return typeof result == "object" && result && typeof result.then == "function" ? result.then(() => (reset2(), stub)) : (reset2(), stub);
  48340. }
  48341. return stub.withImplementation = withImplementation, stub.mockReturnThis = () => stub.mockImplementation(function() {
  48342. return this;
  48343. }), stub.mockReturnValue = (val) => stub.mockImplementation(() => val), stub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val), stub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val)), stub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val)), stub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val)), stub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val)), Object.defineProperty(stub, "mock", { get: () => mockContext }), state3.willCall(mockCall), mocks.add(stub), stub;
  48344. }
  48345. function fn(implementation) {
  48346. let enhancedSpy = enhanceSpy(internalSpyOn({ spy: implementation || function() {
  48347. } }, "spy"));
  48348. return implementation && enhancedSpy.mockImplementation(implementation), enhancedSpy;
  48349. }
  48350. function getDescriptor2(obj, method) {
  48351. let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
  48352. if (objDescriptor)
  48353. return objDescriptor;
  48354. let currentProto = Object.getPrototypeOf(obj);
  48355. for (; currentProto !== null; ) {
  48356. let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
  48357. if (descriptor)
  48358. return descriptor;
  48359. currentProto = Object.getPrototypeOf(currentProto);
  48360. }
  48361. }
  48362. // ../../node_modules/@vitest/expect/dist/index.js
  48363. var MATCHERS_OBJECT = /* @__PURE__ */ Symbol.for("matchers-object"), JEST_MATCHERS_OBJECT = /* @__PURE__ */ Symbol.for("$$jest-matchers-object-storybook"), GLOBAL_EXPECT = /* @__PURE__ */ Symbol.for("expect-global"), ASYMMETRIC_MATCHERS_OBJECT = /* @__PURE__ */ Symbol.for("asymmetric-matchers-object"), customMatchers = {
  48364. toSatisfy(actual, expected, message) {
  48365. let { printReceived: printReceived3, printExpected: printExpected3, matcherHint: matcherHint2 } = this.utils, pass = expected(actual);
  48366. return {
  48367. pass,
  48368. message: () => pass ? `${matcherHint2(".not.toSatisfy", "received", "")}
  48369. Expected value to not satisfy:
  48370. ${message || printExpected3(expected)}
  48371. Received:
  48372. ${printReceived3(actual)}` : `${matcherHint2(".toSatisfy", "received", "")}
  48373. Expected value to satisfy:
  48374. ${message || printExpected3(expected)}
  48375. Received:
  48376. ${printReceived3(actual)}`
  48377. };
  48378. },
  48379. toBeOneOf(actual, expected) {
  48380. let { equals: equals2, customTesters } = this, { printReceived: printReceived3, printExpected: printExpected3, matcherHint: matcherHint2 } = this.utils;
  48381. if (!Array.isArray(expected))
  48382. throw new TypeError(`You must provide an array to ${matcherHint2(".toBeOneOf")}, not '${typeof expected}'.`);
  48383. let pass = expected.length === 0 || expected.some((item) => equals2(item, actual, customTesters));
  48384. return {
  48385. pass,
  48386. message: () => pass ? `${matcherHint2(".not.toBeOneOf", "received", "")}
  48387. Expected value to not be one of:
  48388. ${printExpected3(expected)}
  48389. Received:
  48390. ${printReceived3(actual)}` : `${matcherHint2(".toBeOneOf", "received", "")}
  48391. Expected value to be one of:
  48392. ${printExpected3(expected)}
  48393. Received:
  48394. ${printReceived3(actual)}`
  48395. };
  48396. }
  48397. }, EXPECTED_COLOR = s2.green, RECEIVED_COLOR = s2.red, INVERTED_COLOR = s2.inverse, BOLD_WEIGHT = s2.bold, DIM_COLOR = s2.dim;
  48398. function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
  48399. let { comment: comment2 = "", isDirectExpectCall = !1, isNot = !1, promise = "", secondArgument = "", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options, hint = "", dimString = "expect";
  48400. return !isDirectExpectCall && received !== "" && (hint += DIM_COLOR(`${dimString}(`) + receivedColor(received), dimString = ")"), promise !== "" && (hint += DIM_COLOR(`${dimString}.`) + promise, dimString = ""), isNot && (hint += `${DIM_COLOR(`${dimString}.`)}not`, dimString = ""), matcherName.includes(".") ? dimString += matcherName : (hint += DIM_COLOR(`${dimString}.`) + matcherName, dimString = ""), expected === "" ? dimString += "()" : (hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected), secondArgument && (hint += DIM_COLOR(", ") + secondArgumentColor(secondArgument)), dimString = ")"), comment2 !== "" && (dimString += ` // ${comment2}`), dimString !== "" && (hint += DIM_COLOR(dimString)), hint;
  48401. }
  48402. var SPACE_SYMBOL2 = "\xB7";
  48403. function replaceTrailingSpaces2(text) {
  48404. return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL2.repeat(spaces.length));
  48405. }
  48406. function printReceived2(object) {
  48407. return RECEIVED_COLOR(replaceTrailingSpaces2(stringify5(object)));
  48408. }
  48409. function printExpected2(value) {
  48410. return EXPECTED_COLOR(replaceTrailingSpaces2(stringify5(value)));
  48411. }
  48412. function getMatcherUtils() {
  48413. return {
  48414. EXPECTED_COLOR,
  48415. RECEIVED_COLOR,
  48416. INVERTED_COLOR,
  48417. BOLD_WEIGHT,
  48418. DIM_COLOR,
  48419. diff,
  48420. matcherHint,
  48421. printReceived: printReceived2,
  48422. printExpected: printExpected2,
  48423. printDiffOrStringify,
  48424. printWithType
  48425. };
  48426. }
  48427. function printWithType(name, value, print) {
  48428. let type5 = getType2(value), hasType = type5 !== "null" && type5 !== "undefined" ? `${name} has type: ${type5}
  48429. ` : "", hasValue = `${name} has value: ${print(value)}`;
  48430. return hasType + hasValue;
  48431. }
  48432. function getCustomEqualityTesters() {
  48433. return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
  48434. }
  48435. function equals(a3, b, customTesters, strictCheck) {
  48436. return customTesters = customTesters || [], eq3(a3, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
  48437. }
  48438. var functionToString = Function.prototype.toString;
  48439. function isAsymmetric(obj) {
  48440. return !!obj && typeof obj == "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
  48441. }
  48442. function asymmetricMatch(a3, b) {
  48443. let asymmetricA = isAsymmetric(a3), asymmetricB = isAsymmetric(b);
  48444. if (!(asymmetricA && asymmetricB)) {
  48445. if (asymmetricA)
  48446. return a3.asymmetricMatch(b);
  48447. if (asymmetricB)
  48448. return b.asymmetricMatch(a3);
  48449. }
  48450. }
  48451. function eq3(a3, b, aStack, bStack, customTesters, hasKey2) {
  48452. let result = !0, asymmetricResult = asymmetricMatch(a3, b);
  48453. if (asymmetricResult !== void 0)
  48454. return asymmetricResult;
  48455. let testerContext = { equals };
  48456. for (let i = 0; i < customTesters.length; i++) {
  48457. let customTesterResult = customTesters[i].call(testerContext, a3, b, customTesters);
  48458. if (customTesterResult !== void 0)
  48459. return customTesterResult;
  48460. }
  48461. if (typeof URL == "function" && a3 instanceof URL && b instanceof URL)
  48462. return a3.href === b.href;
  48463. if (Object.is(a3, b))
  48464. return !0;
  48465. if (a3 === null || b === null)
  48466. return a3 === b;
  48467. let className = Object.prototype.toString.call(a3);
  48468. if (className !== Object.prototype.toString.call(b))
  48469. return !1;
  48470. switch (className) {
  48471. case "[object Boolean]":
  48472. case "[object String]":
  48473. case "[object Number]":
  48474. return typeof a3 != typeof b ? !1 : typeof a3 != "object" && typeof b != "object" ? Object.is(a3, b) : Object.is(a3.valueOf(), b.valueOf());
  48475. case "[object Date]": {
  48476. let numA = +a3, numB = +b;
  48477. return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
  48478. }
  48479. case "[object RegExp]":
  48480. return a3.source === b.source && a3.flags === b.flags;
  48481. case "[object Temporal.Instant]":
  48482. case "[object Temporal.ZonedDateTime]":
  48483. case "[object Temporal.PlainDateTime]":
  48484. case "[object Temporal.PlainDate]":
  48485. case "[object Temporal.PlainTime]":
  48486. case "[object Temporal.PlainYearMonth]":
  48487. case "[object Temporal.PlainMonthDay]":
  48488. return a3.equals(b);
  48489. case "[object Temporal.Duration]":
  48490. return a3.toString() === b.toString();
  48491. }
  48492. if (typeof a3 != "object" || typeof b != "object")
  48493. return !1;
  48494. if (isDomNode(a3) && isDomNode(b))
  48495. return a3.isEqualNode(b);
  48496. let length2 = aStack.length;
  48497. for (; length2--; ) {
  48498. if (aStack[length2] === a3)
  48499. return bStack[length2] === b;
  48500. if (bStack[length2] === b)
  48501. return !1;
  48502. }
  48503. if (aStack.push(a3), bStack.push(b), className === "[object Array]" && a3.length !== b.length)
  48504. return !1;
  48505. if (a3 instanceof Error && b instanceof Error)
  48506. try {
  48507. return isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2);
  48508. } finally {
  48509. aStack.pop(), bStack.pop();
  48510. }
  48511. let aKeys = keys(a3, hasKey2), key, size = aKeys.length;
  48512. if (keys(b, hasKey2).length !== size)
  48513. return !1;
  48514. for (; size--; )
  48515. if (key = aKeys[size], result = hasKey2(b, key) && eq3(a3[key], b[key], aStack, bStack, customTesters, hasKey2), !result)
  48516. return !1;
  48517. return aStack.pop(), bStack.pop(), result;
  48518. }
  48519. function isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2) {
  48520. let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b) && a3.name === b.name && a3.message === b.message;
  48521. return typeof b.cause < "u" && result && (result = eq3(a3.cause, b.cause, aStack, bStack, customTesters, hasKey2)), a3 instanceof AggregateError && b instanceof AggregateError && result && (result = eq3(a3.errors, b.errors, aStack, bStack, customTesters, hasKey2)), result && (result = eq3({ ...a3 }, { ...b }, aStack, bStack, customTesters, hasKey2)), result;
  48522. }
  48523. function keys(obj, hasKey2) {
  48524. let keys3 = [];
  48525. for (let key in obj)
  48526. hasKey2(obj, key) && keys3.push(key);
  48527. return keys3.concat(Object.getOwnPropertySymbols(obj).filter((symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable));
  48528. }
  48529. function hasDefinedKey(obj, key) {
  48530. return hasKey(obj, key) && obj[key] !== void 0;
  48531. }
  48532. function hasKey(obj, key) {
  48533. return Object.prototype.hasOwnProperty.call(obj, key);
  48534. }
  48535. function isA(typeName, value) {
  48536. return Object.prototype.toString.apply(value) === `[object ${typeName}]`;
  48537. }
  48538. function isDomNode(obj) {
  48539. return obj !== null && typeof obj == "object" && "nodeType" in obj && typeof obj.nodeType == "number" && "nodeName" in obj && typeof obj.nodeName == "string" && "isEqualNode" in obj && typeof obj.isEqualNode == "function";
  48540. }
  48541. var IS_KEYED_SENTINEL2 = "@@__IMMUTABLE_KEYED__@@", IS_SET_SENTINEL2 = "@@__IMMUTABLE_SET__@@", IS_LIST_SENTINEL2 = "@@__IMMUTABLE_LIST__@@", IS_ORDERED_SENTINEL2 = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SYMBOL2 = "@@__IMMUTABLE_RECORD__@@";
  48542. function isImmutableUnorderedKeyed(maybeKeyed) {
  48543. return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL2] && !maybeKeyed[IS_ORDERED_SENTINEL2]);
  48544. }
  48545. function isImmutableUnorderedSet(maybeSet) {
  48546. return !!(maybeSet && maybeSet[IS_SET_SENTINEL2] && !maybeSet[IS_ORDERED_SENTINEL2]);
  48547. }
  48548. function isObjectLiteral(source) {
  48549. return source != null && typeof source == "object" && !Array.isArray(source);
  48550. }
  48551. function isImmutableList(source) {
  48552. return !!(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL2]);
  48553. }
  48554. function isImmutableOrderedKeyed(source) {
  48555. return !!(source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL2] && source[IS_ORDERED_SENTINEL2]);
  48556. }
  48557. function isImmutableOrderedSet(source) {
  48558. return !!(source && isObjectLiteral(source) && source[IS_SET_SENTINEL2] && source[IS_ORDERED_SENTINEL2]);
  48559. }
  48560. function isImmutableRecord(source) {
  48561. return !!(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL2]);
  48562. }
  48563. var IteratorSymbol = Symbol.iterator;
  48564. function hasIterator(object) {
  48565. return !!(object != null && object[IteratorSymbol]);
  48566. }
  48567. function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
  48568. if (typeof a3 != "object" || typeof b != "object" || Array.isArray(a3) || Array.isArray(b) || !hasIterator(a3) || !hasIterator(b))
  48569. return;
  48570. if (a3.constructor !== b.constructor)
  48571. return !1;
  48572. let length2 = aStack.length;
  48573. for (; length2--; )
  48574. if (aStack[length2] === a3)
  48575. return bStack[length2] === b;
  48576. aStack.push(a3), bStack.push(b);
  48577. let filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];
  48578. function iterableEqualityWithStack(a4, b2) {
  48579. return iterableEquality(a4, b2, [...customTesters], [...aStack], [...bStack]);
  48580. }
  48581. if (a3.size !== void 0) {
  48582. if (a3.size !== b.size)
  48583. return !1;
  48584. if (isA("Set", a3) || isImmutableUnorderedSet(a3)) {
  48585. let allFound = !0;
  48586. for (let aValue of a3)
  48587. if (!b.has(aValue)) {
  48588. let has2 = !1;
  48589. for (let bValue of b)
  48590. equals(aValue, bValue, filteredCustomTesters) === !0 && (has2 = !0);
  48591. if (has2 === !1) {
  48592. allFound = !1;
  48593. break;
  48594. }
  48595. }
  48596. return aStack.pop(), bStack.pop(), allFound;
  48597. } else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) {
  48598. let allFound = !0;
  48599. for (let aEntry of a3)
  48600. if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {
  48601. let has2 = !1;
  48602. for (let bEntry of b) {
  48603. let matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters), matchedValue = !1;
  48604. matchedKey === !0 && (matchedValue = equals(aEntry[1], bEntry[1], filteredCustomTesters)), matchedValue === !0 && (has2 = !0);
  48605. }
  48606. if (has2 === !1) {
  48607. allFound = !1;
  48608. break;
  48609. }
  48610. }
  48611. return aStack.pop(), bStack.pop(), allFound;
  48612. }
  48613. }
  48614. let bIterator = b[IteratorSymbol]();
  48615. for (let aValue of a3) {
  48616. let nextB = bIterator.next();
  48617. if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters))
  48618. return !1;
  48619. }
  48620. if (!bIterator.next().done)
  48621. return !1;
  48622. if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) {
  48623. let aEntries = Object.entries(a3), bEntries = Object.entries(b);
  48624. if (!equals(aEntries, bEntries, filteredCustomTesters))
  48625. return !1;
  48626. }
  48627. return aStack.pop(), bStack.pop(), !0;
  48628. }
  48629. function hasPropertyInObject(object, key) {
  48630. return !object || typeof object != "object" || object === Object.prototype ? !1 : Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);
  48631. }
  48632. function isObjectWithKeys(a3) {
  48633. return isObject5(a3) && !(a3 instanceof Error) && !Array.isArray(a3) && !(a3 instanceof Date);
  48634. }
  48635. function subsetEquality(object, subset, customTesters = []) {
  48636. let filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality), subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {
  48637. if (isObjectWithKeys(subset2))
  48638. return Object.keys(subset2).every((key) => {
  48639. if (subset2[key] != null && typeof subset2[key] == "object") {
  48640. if (seenReferences.has(subset2[key]))
  48641. return equals(object2[key], subset2[key], filteredCustomTesters);
  48642. seenReferences.set(subset2[key], !0);
  48643. }
  48644. let result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [...filteredCustomTesters, subsetEqualityWithContext(seenReferences)]);
  48645. return seenReferences.delete(subset2[key]), result;
  48646. });
  48647. };
  48648. return subsetEqualityWithContext()(object, subset);
  48649. }
  48650. function typeEquality(a3, b) {
  48651. if (!(a3 == null || b == null || a3.constructor === b.constructor))
  48652. return !1;
  48653. }
  48654. function arrayBufferEquality(a3, b) {
  48655. let dataViewA = a3, dataViewB = b;
  48656. if (!(a3 instanceof DataView && b instanceof DataView)) {
  48657. if (!(a3 instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
  48658. return;
  48659. try {
  48660. dataViewA = new DataView(a3), dataViewB = new DataView(b);
  48661. } catch {
  48662. return;
  48663. }
  48664. }
  48665. if (dataViewA.byteLength !== dataViewB.byteLength)
  48666. return !1;
  48667. for (let i = 0; i < dataViewA.byteLength; i++)
  48668. if (dataViewA.getUint8(i) !== dataViewB.getUint8(i))
  48669. return !1;
  48670. return !0;
  48671. }
  48672. function sparseArrayEquality(a3, b, customTesters = []) {
  48673. if (!Array.isArray(a3) || !Array.isArray(b))
  48674. return;
  48675. let aKeys = Object.keys(a3), bKeys = Object.keys(b), filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);
  48676. return equals(a3, b, filteredCustomTesters, !0) && equals(aKeys, bKeys);
  48677. }
  48678. function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
  48679. let toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;
  48680. return ["toStrictEqual", "toEqual"].includes(deepEqualityName) ? `${toBeMessage}
  48681. If it should pass with deep equality, replace "toBe" with "${deepEqualityName}"
  48682. Expected: ${expected}
  48683. Received: serializes to the same string
  48684. ` : toBeMessage;
  48685. }
  48686. function pluralize(word, count) {
  48687. return `${count} ${word}${count === 1 ? "" : "s"}`;
  48688. }
  48689. function getObjectKeys(object) {
  48690. return [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s3) => {
  48691. var _Object$getOwnPropert;
  48692. return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object, s3)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.enumerable;
  48693. })];
  48694. }
  48695. function getObjectSubset(object, subset, customTesters) {
  48696. let stripped = 0, getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {
  48697. if (Array.isArray(object2)) {
  48698. if (Array.isArray(subset2) && subset2.length === object2.length)
  48699. return subset2.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object2[i], sub));
  48700. } else {
  48701. if (object2 instanceof Date)
  48702. return object2;
  48703. if (isObject5(object2) && isObject5(subset2)) {
  48704. if (equals(object2, subset2, [
  48705. ...customTesters,
  48706. iterableEquality,
  48707. subsetEquality
  48708. ]))
  48709. return subset2;
  48710. let trimmed = {};
  48711. seenReferences.set(object2, trimmed), typeof object2.constructor == "function" && typeof object2.constructor.name == "string" && Object.defineProperty(trimmed, "constructor", {
  48712. enumerable: !1,
  48713. value: object2.constructor
  48714. });
  48715. for (let key of getObjectKeys(object2))
  48716. hasPropertyInObject(subset2, key) ? trimmed[key] = seenReferences.has(object2[key]) ? seenReferences.get(object2[key]) : getObjectSubsetWithContext(seenReferences)(object2[key], subset2[key]) : seenReferences.has(object2[key]) || (stripped += 1, isObject5(object2[key]) && (stripped += getObjectKeys(object2[key]).length), getObjectSubsetWithContext(seenReferences)(object2[key], subset2[key]));
  48717. if (getObjectKeys(trimmed).length > 0)
  48718. return trimmed;
  48719. }
  48720. }
  48721. return object2;
  48722. };
  48723. return {
  48724. subset: getObjectSubsetWithContext()(object, subset),
  48725. stripped
  48726. };
  48727. }
  48728. if (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {
  48729. let globalState = /* @__PURE__ */ new WeakMap();
  48730. Object.defineProperty(globalThis, MATCHERS_OBJECT, { get: () => globalState });
  48731. }
  48732. if (!Object.prototype.hasOwnProperty.call(globalThis, JEST_MATCHERS_OBJECT)) {
  48733. let matchers = /* @__PURE__ */ Object.create(null), customEqualityTesters = [];
  48734. Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {
  48735. configurable: !0,
  48736. get: () => ({
  48737. state: globalThis[MATCHERS_OBJECT].get(globalThis[GLOBAL_EXPECT]),
  48738. matchers,
  48739. customEqualityTesters
  48740. })
  48741. });
  48742. }
  48743. if (!Object.prototype.hasOwnProperty.call(globalThis, ASYMMETRIC_MATCHERS_OBJECT)) {
  48744. let asymmetricMatchers = /* @__PURE__ */ Object.create(null);
  48745. Object.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, { get: () => asymmetricMatchers });
  48746. }
  48747. function getState(expect4) {
  48748. return globalThis[MATCHERS_OBJECT].get(expect4);
  48749. }
  48750. function setState(state3, expect4) {
  48751. let map2 = globalThis[MATCHERS_OBJECT], current = map2.get(expect4) || {}, results = Object.defineProperties(current, {
  48752. ...Object.getOwnPropertyDescriptors(current),
  48753. ...Object.getOwnPropertyDescriptors(state3)
  48754. });
  48755. map2.set(expect4, results);
  48756. }
  48757. var AsymmetricMatcher3 = class {
  48758. // should have "jest" to be compatible with its ecosystem
  48759. $$typeof = /* @__PURE__ */ Symbol.for("jest.asymmetricMatcher");
  48760. constructor(sample2, inverse = !1) {
  48761. this.sample = sample2, this.inverse = inverse;
  48762. }
  48763. getMatcherContext(expect4) {
  48764. return {
  48765. ...getState(expect4 || globalThis[GLOBAL_EXPECT]),
  48766. equals,
  48767. isNot: this.inverse,
  48768. customTesters: getCustomEqualityTesters(),
  48769. utils: {
  48770. ...getMatcherUtils(),
  48771. diff,
  48772. stringify: stringify5,
  48773. iterableEquality,
  48774. subsetEquality
  48775. }
  48776. };
  48777. }
  48778. };
  48779. AsymmetricMatcher3.prototype[/* @__PURE__ */ Symbol.for("chai/inspect")] = function(options) {
  48780. let result = stringify5(this, options.depth, { min: !0 });
  48781. return result.length <= options.truncate ? result : `${this.toString()}{\u2026}`;
  48782. };
  48783. var StringContaining = class extends AsymmetricMatcher3 {
  48784. constructor(sample2, inverse = !1) {
  48785. if (!isA("String", sample2))
  48786. throw new Error("Expected is not a string");
  48787. super(sample2, inverse);
  48788. }
  48789. asymmetricMatch(other) {
  48790. let result = isA("String", other) && other.includes(this.sample);
  48791. return this.inverse ? !result : result;
  48792. }
  48793. toString() {
  48794. return `String${this.inverse ? "Not" : ""}Containing`;
  48795. }
  48796. getExpectedType() {
  48797. return "string";
  48798. }
  48799. }, Anything = class extends AsymmetricMatcher3 {
  48800. asymmetricMatch(other) {
  48801. return other != null;
  48802. }
  48803. toString() {
  48804. return "Anything";
  48805. }
  48806. toAsymmetricMatcher() {
  48807. return "Anything";
  48808. }
  48809. }, ObjectContaining = class extends AsymmetricMatcher3 {
  48810. constructor(sample2, inverse = !1) {
  48811. super(sample2, inverse);
  48812. }
  48813. getPrototype(obj) {
  48814. return Object.getPrototypeOf ? Object.getPrototypeOf(obj) : obj.constructor.prototype === obj ? null : obj.constructor.prototype;
  48815. }
  48816. hasProperty(obj, property) {
  48817. return obj ? Object.prototype.hasOwnProperty.call(obj, property) ? !0 : this.hasProperty(this.getPrototype(obj), property) : !1;
  48818. }
  48819. asymmetricMatch(other) {
  48820. if (typeof this.sample != "object")
  48821. throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);
  48822. let result = !0, matcherContext = this.getMatcherContext();
  48823. for (let property in this.sample)
  48824. if (!this.hasProperty(other, property) || !equals(this.sample[property], other[property], matcherContext.customTesters)) {
  48825. result = !1;
  48826. break;
  48827. }
  48828. return this.inverse ? !result : result;
  48829. }
  48830. toString() {
  48831. return `Object${this.inverse ? "Not" : ""}Containing`;
  48832. }
  48833. getExpectedType() {
  48834. return "object";
  48835. }
  48836. }, ArrayContaining = class extends AsymmetricMatcher3 {
  48837. constructor(sample2, inverse = !1) {
  48838. super(sample2, inverse);
  48839. }
  48840. asymmetricMatch(other) {
  48841. if (!Array.isArray(this.sample))
  48842. throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);
  48843. let matcherContext = this.getMatcherContext(), result = this.sample.length === 0 || Array.isArray(other) && this.sample.every((item) => other.some((another) => equals(item, another, matcherContext.customTesters)));
  48844. return this.inverse ? !result : result;
  48845. }
  48846. toString() {
  48847. return `Array${this.inverse ? "Not" : ""}Containing`;
  48848. }
  48849. getExpectedType() {
  48850. return "array";
  48851. }
  48852. }, Any = class extends AsymmetricMatcher3 {
  48853. constructor(sample2) {
  48854. if (typeof sample2 > "u")
  48855. throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");
  48856. super(sample2);
  48857. }
  48858. fnNameFor(func) {
  48859. if (func.name)
  48860. return func.name;
  48861. let matches4 = Function.prototype.toString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);
  48862. return matches4 ? matches4[1] : "<anonymous>";
  48863. }
  48864. asymmetricMatch(other) {
  48865. return this.sample === String ? typeof other == "string" || other instanceof String : this.sample === Number ? typeof other == "number" || other instanceof Number : this.sample === Function ? typeof other == "function" || typeof other == "function" : this.sample === Boolean ? typeof other == "boolean" || other instanceof Boolean : this.sample === BigInt ? typeof other == "bigint" || other instanceof BigInt : this.sample === Symbol ? typeof other == "symbol" || other instanceof Symbol : this.sample === Object ? typeof other == "object" : other instanceof this.sample;
  48866. }
  48867. toString() {
  48868. return "Any";
  48869. }
  48870. getExpectedType() {
  48871. return this.sample === String ? "string" : this.sample === Number ? "number" : this.sample === Function ? "function" : this.sample === Object ? "object" : this.sample === Boolean ? "boolean" : this.fnNameFor(this.sample);
  48872. }
  48873. toAsymmetricMatcher() {
  48874. return `Any<${this.fnNameFor(this.sample)}>`;
  48875. }
  48876. }, StringMatching = class extends AsymmetricMatcher3 {
  48877. constructor(sample2, inverse = !1) {
  48878. if (!isA("String", sample2) && !isA("RegExp", sample2))
  48879. throw new Error("Expected is not a String or a RegExp");
  48880. super(new RegExp(sample2), inverse);
  48881. }
  48882. asymmetricMatch(other) {
  48883. let result = isA("String", other) && this.sample.test(other);
  48884. return this.inverse ? !result : result;
  48885. }
  48886. toString() {
  48887. return `String${this.inverse ? "Not" : ""}Matching`;
  48888. }
  48889. getExpectedType() {
  48890. return "string";
  48891. }
  48892. }, CloseTo = class extends AsymmetricMatcher3 {
  48893. precision;
  48894. constructor(sample2, precision = 2, inverse = !1) {
  48895. if (!isA("Number", sample2))
  48896. throw new Error("Expected is not a Number");
  48897. if (!isA("Number", precision))
  48898. throw new Error("Precision is not a Number");
  48899. super(sample2), this.inverse = inverse, this.precision = precision;
  48900. }
  48901. asymmetricMatch(other) {
  48902. if (!isA("Number", other))
  48903. return !1;
  48904. let result = !1;
  48905. return other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY || other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY ? result = !0 : result = Math.abs(this.sample - other) < 10 ** -this.precision / 2, this.inverse ? !result : result;
  48906. }
  48907. toString() {
  48908. return `Number${this.inverse ? "Not" : ""}CloseTo`;
  48909. }
  48910. getExpectedType() {
  48911. return "number";
  48912. }
  48913. toAsymmetricMatcher() {
  48914. return [
  48915. this.toString(),
  48916. this.sample,
  48917. `(${pluralize("digit", this.precision)})`
  48918. ].join(" ");
  48919. }
  48920. }, JestAsymmetricMatchers = (chai, utils) => {
  48921. utils.addMethod(chai.expect, "anything", () => new Anything()), utils.addMethod(chai.expect, "any", (expected) => new Any(expected)), utils.addMethod(chai.expect, "stringContaining", (expected) => new StringContaining(expected)), utils.addMethod(chai.expect, "objectContaining", (expected) => new ObjectContaining(expected)), utils.addMethod(chai.expect, "arrayContaining", (expected) => new ArrayContaining(expected)), utils.addMethod(chai.expect, "stringMatching", (expected) => new StringMatching(expected)), utils.addMethod(chai.expect, "closeTo", (expected, precision) => new CloseTo(expected, precision)), chai.expect.not = {
  48922. stringContaining: (expected) => new StringContaining(expected, !0),
  48923. objectContaining: (expected) => new ObjectContaining(expected, !0),
  48924. arrayContaining: (expected) => new ArrayContaining(expected, !0),
  48925. stringMatching: (expected) => new StringMatching(expected, !0),
  48926. closeTo: (expected, precision) => new CloseTo(expected, precision, !0)
  48927. };
  48928. };
  48929. function createAssertionMessage(util, assertion, hasArgs) {
  48930. let not = util.flag(assertion, "negate") ? "not." : "", name = `${util.flag(assertion, "_name")}(${hasArgs ? "expected" : ""})`, promiseName = util.flag(assertion, "promise");
  48931. return `expect(actual)${promiseName ? `.${promiseName}` : ""}.${not}${name}`;
  48932. }
  48933. function recordAsyncExpect(_test, promise, assertion, error) {
  48934. let test3 = _test;
  48935. if (test3 && promise instanceof Promise) {
  48936. promise = promise.finally(() => {
  48937. if (!test3.promises)
  48938. return;
  48939. let index4 = test3.promises.indexOf(promise);
  48940. index4 !== -1 && test3.promises.splice(index4, 1);
  48941. }), test3.promises || (test3.promises = []), test3.promises.push(promise);
  48942. let resolved = !1;
  48943. return test3.onFinished ?? (test3.onFinished = []), test3.onFinished.push(() => {
  48944. if (!resolved) {
  48945. var _vitest_worker__;
  48946. let stack = (((_vitest_worker__ = globalThis.__vitest_worker__) === null || _vitest_worker__ === void 0 ? void 0 : _vitest_worker__.onFilterStackTrace) || ((s3) => s3 || ""))(error.stack);
  48947. console.warn([
  48948. `Promise returned by \`${assertion}\` was not awaited. `,
  48949. "Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",
  48950. `Please remember to await the assertion.
  48951. `,
  48952. stack
  48953. ].join(""));
  48954. }
  48955. }), {
  48956. then(onFulfilled, onRejected) {
  48957. return resolved = !0, promise.then(onFulfilled, onRejected);
  48958. },
  48959. catch(onRejected) {
  48960. return promise.catch(onRejected);
  48961. },
  48962. finally(onFinally) {
  48963. return promise.finally(onFinally);
  48964. },
  48965. [Symbol.toStringTag]: "Promise"
  48966. };
  48967. }
  48968. return promise;
  48969. }
  48970. function handleTestError(test3, err) {
  48971. var _test$result;
  48972. test3.result || (test3.result = { state: "fail" }), test3.result.state = "fail", (_test$result = test3.result).errors || (_test$result.errors = []), test3.result.errors.push(processError(err));
  48973. }
  48974. function wrapAssertion(utils, name, fn4) {
  48975. return function(...args) {
  48976. if (name !== "withTest" && utils.flag(this, "_name", name), !utils.flag(this, "soft"))
  48977. return fn4.apply(this, args);
  48978. let test3 = utils.flag(this, "vitest-test");
  48979. if (!test3)
  48980. throw new Error("expect.soft() can only be used inside a test");
  48981. try {
  48982. let result = fn4.apply(this, args);
  48983. return result && typeof result == "object" && typeof result.then == "function" ? result.then(noop2, (err) => {
  48984. handleTestError(test3, err);
  48985. }) : result;
  48986. } catch (err) {
  48987. handleTestError(test3, err);
  48988. }
  48989. };
  48990. }
  48991. var JestChaiExpect = (chai, utils) => {
  48992. let { AssertionError: AssertionError2 } = chai, customTesters = getCustomEqualityTesters();
  48993. function def(name, fn4) {
  48994. let addMethod2 = (n) => {
  48995. let softWrapper = wrapAssertion(utils, n, fn4);
  48996. utils.addMethod(chai.Assertion.prototype, n, softWrapper), utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, softWrapper);
  48997. };
  48998. Array.isArray(name) ? name.forEach((n) => addMethod2(n)) : addMethod2(name);
  48999. }
  49000. [
  49001. "throw",
  49002. "throws",
  49003. "Throw"
  49004. ].forEach((m3) => {
  49005. utils.overwriteMethod(chai.Assertion.prototype, m3, (_super) => function(...args) {
  49006. let promise = utils.flag(this, "promise"), object = utils.flag(this, "object"), isNot = utils.flag(this, "negate");
  49007. if (promise === "rejects")
  49008. utils.flag(this, "object", () => {
  49009. throw object;
  49010. });
  49011. else if (promise === "resolves" && typeof object != "function") {
  49012. if (isNot)
  49013. return;
  49014. {
  49015. let message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't", error = { showDiff: !1 };
  49016. throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
  49017. }
  49018. }
  49019. _super.apply(this, args);
  49020. });
  49021. }), def("withTest", function(test3) {
  49022. return utils.flag(this, "vitest-test", test3), this;
  49023. }), def("toEqual", function(expected) {
  49024. let actual = utils.flag(this, "object"), equal = equals(actual, expected, [...customTesters, iterableEquality]);
  49025. return this.assert(equal, "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", expected, actual);
  49026. }), def("toStrictEqual", function(expected) {
  49027. let obj = utils.flag(this, "object"), equal = equals(obj, expected, [
  49028. ...customTesters,
  49029. iterableEquality,
  49030. typeEquality,
  49031. sparseArrayEquality,
  49032. arrayBufferEquality
  49033. ], !0);
  49034. return this.assert(equal, "expected #{this} to strictly equal #{exp}", "expected #{this} to not strictly equal #{exp}", expected, obj);
  49035. }), def("toBe", function(expected) {
  49036. let actual = this._obj, pass = Object.is(actual, expected), deepEqualityName = "";
  49037. return pass || (equals(actual, expected, [
  49038. ...customTesters,
  49039. iterableEquality,
  49040. typeEquality,
  49041. sparseArrayEquality,
  49042. arrayBufferEquality
  49043. ], !0) ? deepEqualityName = "toStrictEqual" : equals(actual, expected, [...customTesters, iterableEquality]) && (deepEqualityName = "toEqual")), this.assert(pass, generateToBeMessage(deepEqualityName), "expected #{this} not to be #{exp} // Object.is equality", expected, actual);
  49044. }), def("toMatchObject", function(expected) {
  49045. let actual = this._obj, pass = equals(actual, expected, [
  49046. ...customTesters,
  49047. iterableEquality,
  49048. subsetEquality
  49049. ]), isNot = utils.flag(this, "negate"), { subset: actualSubset, stripped } = getObjectSubset(actual, expected, customTesters);
  49050. if (pass && isNot || !pass && !isNot) {
  49051. let msg = utils.getMessage(this, [
  49052. pass,
  49053. "expected #{this} to match object #{exp}",
  49054. "expected #{this} to not match object #{exp}",
  49055. expected,
  49056. actualSubset,
  49057. !1
  49058. ]), message = stripped === 0 ? msg : `${msg}
  49059. (${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`;
  49060. throw new AssertionError2(message, {
  49061. showDiff: !0,
  49062. expected,
  49063. actual: actualSubset
  49064. });
  49065. }
  49066. }), def("toMatch", function(expected) {
  49067. let actual = this._obj;
  49068. if (typeof actual != "string")
  49069. throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`);
  49070. return this.assert(typeof expected == "string" ? actual.includes(expected) : actual.match(expected), "expected #{this} to match #{exp}", "expected #{this} not to match #{exp}", expected, actual);
  49071. }), def("toContain", function(item) {
  49072. let actual = this._obj;
  49073. if (typeof Node < "u" && actual instanceof Node) {
  49074. if (!(item instanceof Node))
  49075. throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`);
  49076. return this.assert(actual.contains(item), "expected #{this} to contain element #{exp}", "expected #{this} not to contain element #{exp}", item, actual);
  49077. }
  49078. if (typeof DOMTokenList < "u" && actual instanceof DOMTokenList) {
  49079. assertTypes(item, "class name", ["string"]);
  49080. let expectedClassList = utils.flag(this, "negate") ? actual.value.replace(item, "").trim() : `${actual.value} ${item}`;
  49081. return this.assert(actual.contains(item), `expected "${actual.value}" to contain "${item}"`, `expected "${actual.value}" not to contain "${item}"`, expectedClassList, actual.value);
  49082. }
  49083. return typeof actual == "string" && typeof item == "string" ? this.assert(actual.includes(item), "expected #{this} to contain #{exp}", "expected #{this} not to contain #{exp}", item, actual) : (actual != null && typeof actual != "string" && utils.flag(this, "object", Array.from(actual)), this.contain(item));
  49084. }), def("toContainEqual", function(expected) {
  49085. let obj = utils.flag(this, "object"), index4 = Array.from(obj).findIndex((item) => equals(item, expected, customTesters));
  49086. this.assert(index4 !== -1, "expected #{this} to deep equally contain #{exp}", "expected #{this} to not deep equally contain #{exp}", expected);
  49087. }), def("toBeTruthy", function() {
  49088. let obj = utils.flag(this, "object");
  49089. this.assert(!!obj, "expected #{this} to be truthy", "expected #{this} to not be truthy", !0, obj);
  49090. }), def("toBeFalsy", function() {
  49091. let obj = utils.flag(this, "object");
  49092. this.assert(!obj, "expected #{this} to be falsy", "expected #{this} to not be falsy", !1, obj);
  49093. }), def("toBeGreaterThan", function(expected) {
  49094. let actual = this._obj;
  49095. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual > expected, `expected ${actual} to be greater than ${expected}`, `expected ${actual} to be not greater than ${expected}`, expected, actual, !1);
  49096. }), def("toBeGreaterThanOrEqual", function(expected) {
  49097. let actual = this._obj;
  49098. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual >= expected, `expected ${actual} to be greater than or equal to ${expected}`, `expected ${actual} to be not greater than or equal to ${expected}`, expected, actual, !1);
  49099. }), def("toBeLessThan", function(expected) {
  49100. let actual = this._obj;
  49101. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual < expected, `expected ${actual} to be less than ${expected}`, `expected ${actual} to be not less than ${expected}`, expected, actual, !1);
  49102. }), def("toBeLessThanOrEqual", function(expected) {
  49103. let actual = this._obj;
  49104. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual <= expected, `expected ${actual} to be less than or equal to ${expected}`, `expected ${actual} to be not less than or equal to ${expected}`, expected, actual, !1);
  49105. }), def("toBeNaN", function() {
  49106. let obj = utils.flag(this, "object");
  49107. this.assert(Number.isNaN(obj), "expected #{this} to be NaN", "expected #{this} not to be NaN", Number.NaN, obj);
  49108. }), def("toBeUndefined", function() {
  49109. let obj = utils.flag(this, "object");
  49110. this.assert(obj === void 0, "expected #{this} to be undefined", "expected #{this} not to be undefined", void 0, obj);
  49111. }), def("toBeNull", function() {
  49112. let obj = utils.flag(this, "object");
  49113. this.assert(obj === null, "expected #{this} to be null", "expected #{this} not to be null", null, obj);
  49114. }), def("toBeDefined", function() {
  49115. let obj = utils.flag(this, "object");
  49116. this.assert(typeof obj < "u", "expected #{this} to be defined", "expected #{this} to be undefined", obj);
  49117. }), def("toBeTypeOf", function(expected) {
  49118. let actual = typeof this._obj, equal = expected === actual;
  49119. return this.assert(equal, "expected #{this} to be type of #{exp}", "expected #{this} not to be type of #{exp}", expected, actual);
  49120. }), def("toBeInstanceOf", function(obj) {
  49121. return this.instanceOf(obj);
  49122. }), def("toHaveLength", function(length2) {
  49123. return this.have.length(length2);
  49124. }), def("toHaveProperty", function(...args) {
  49125. Array.isArray(args[0]) && (args[0] = args[0].map((key) => String(key).replace(/([.[\]])/g, "\\$1")).join("."));
  49126. let actual = this._obj, [propertyName, expected] = args, getValue2 = () => Object.prototype.hasOwnProperty.call(actual, propertyName) ? {
  49127. value: actual[propertyName],
  49128. exists: !0
  49129. } : utils.getPathInfo(actual, propertyName), { value, exists } = getValue2(), pass = exists && (args.length === 1 || equals(expected, value, customTesters)), valueString = args.length === 1 ? "" : ` with value ${utils.objDisplay(expected)}`;
  49130. return this.assert(pass, `expected #{this} to have property "${propertyName}"${valueString}`, `expected #{this} to not have property "${propertyName}"${valueString}`, expected, exists ? value : void 0);
  49131. }), def("toBeCloseTo", function(received, precision = 2) {
  49132. let expected = this._obj, pass = !1, expectedDiff2 = 0, receivedDiff = 0;
  49133. return received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY || received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY ? pass = !0 : (expectedDiff2 = 10 ** -precision / 2, receivedDiff = Math.abs(expected - received), pass = receivedDiff < expectedDiff2), this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff2}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff2}`, received, expected, !1);
  49134. });
  49135. function assertIsMock(assertion) {
  49136. if (!isMockFunction2(assertion._obj))
  49137. throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);
  49138. }
  49139. function getSpy(assertion) {
  49140. return assertIsMock(assertion), assertion._obj;
  49141. }
  49142. def(["toHaveBeenCalledTimes", "toBeCalledTimes"], function(number) {
  49143. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length;
  49144. return this.assert(callCount === number, `expected "${spyName}" to be called #{exp} times, but got ${callCount} times`, `expected "${spyName}" to not be called #{exp} times`, number, callCount, !1);
  49145. }), def("toHaveBeenCalledOnce", function() {
  49146. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length;
  49147. return this.assert(callCount === 1, `expected "${spyName}" to be called once, but got ${callCount} times`, `expected "${spyName}" to not be called once`, 1, callCount, !1);
  49148. }), def(["toHaveBeenCalled", "toBeCalled"], function() {
  49149. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length, called = callCount > 0, isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
  49150. called,
  49151. `expected "${spyName}" to be called at least once`,
  49152. `expected "${spyName}" to not be called at all, but actually been called ${callCount} times`,
  49153. !0,
  49154. called
  49155. ]);
  49156. if (called && isNot && (msg = formatCalls(spy, msg)), called && isNot || !called && !isNot)
  49157. throw new AssertionError2(msg);
  49158. });
  49159. function equalsArgumentArray(a3, b) {
  49160. return a3.length === b.length && a3.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));
  49161. }
  49162. def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
  49163. let spy = getSpy(this), spyName = spy.getMockName(), pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args)), isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
  49164. pass,
  49165. `expected "${spyName}" to be called with arguments: #{exp}`,
  49166. `expected "${spyName}" to not be called with arguments: #{exp}`,
  49167. args
  49168. ]);
  49169. if (pass && isNot || !pass && !isNot)
  49170. throw new AssertionError2(formatCalls(spy, msg, args));
  49171. }), def("toHaveBeenCalledExactlyOnceWith", function(...args) {
  49172. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length, pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args)) && callCount === 1, isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
  49173. pass,
  49174. `expected "${spyName}" to be called once with arguments: #{exp}`,
  49175. `expected "${spyName}" to not be called once with arguments: #{exp}`,
  49176. args
  49177. ]);
  49178. if (pass && isNot || !pass && !isNot)
  49179. throw new AssertionError2(formatCalls(spy, msg, args));
  49180. }), def(["toHaveBeenNthCalledWith", "nthCalledWith"], function(times, ...args) {
  49181. let spy = getSpy(this), spyName = spy.getMockName(), nthCall = spy.mock.calls[times - 1], callCount = spy.mock.calls.length, isCalled = times <= callCount;
  49182. this.assert(nthCall && equalsArgumentArray(nthCall, args), `expected ${ordinalOf(times)} "${spyName}" call to have been called with #{exp}${isCalled ? "" : `, but called only ${callCount} times`}`, `expected ${ordinalOf(times)} "${spyName}" call to not have been called with #{exp}`, args, nthCall, isCalled);
  49183. }), def(["toHaveBeenLastCalledWith", "lastCalledWith"], function(...args) {
  49184. let spy = getSpy(this), spyName = spy.getMockName(), lastCall = spy.mock.calls[spy.mock.calls.length - 1];
  49185. this.assert(lastCall && equalsArgumentArray(lastCall, args), `expected last "${spyName}" call to have been called with #{exp}`, `expected last "${spyName}" call to not have been called with #{exp}`, args, lastCall);
  49186. });
  49187. function isSpyCalledBeforeAnotherSpy(beforeSpy, afterSpy, failIfNoFirstInvocation) {
  49188. let beforeInvocationCallOrder = beforeSpy.mock.invocationCallOrder, afterInvocationCallOrder = afterSpy.mock.invocationCallOrder;
  49189. return beforeInvocationCallOrder.length === 0 ? !failIfNoFirstInvocation : afterInvocationCallOrder.length === 0 ? !1 : beforeInvocationCallOrder[0] < afterInvocationCallOrder[0];
  49190. }
  49191. def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = !0) {
  49192. let expectSpy = getSpy(this);
  49193. if (!isMockFunction2(resultSpy))
  49194. throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
  49195. this.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called before "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called before "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
  49196. }), def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = !0) {
  49197. let expectSpy = getSpy(this);
  49198. if (!isMockFunction2(resultSpy))
  49199. throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
  49200. this.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called after "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called after "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
  49201. }), def(["toThrow", "toThrowError"], function(expected) {
  49202. if (typeof expected == "string" || typeof expected > "u" || expected instanceof RegExp)
  49203. return this.throws(expected === "" ? /^$/ : expected);
  49204. let obj = this._obj, promise = utils.flag(this, "promise"), isNot = utils.flag(this, "negate"), thrown = null;
  49205. if (promise === "rejects")
  49206. thrown = obj;
  49207. else if (promise === "resolves" && typeof obj != "function") {
  49208. if (isNot)
  49209. return;
  49210. {
  49211. let message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't", error = { showDiff: !1 };
  49212. throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
  49213. }
  49214. } else {
  49215. let isThrow = !1;
  49216. try {
  49217. obj();
  49218. } catch (err) {
  49219. isThrow = !0, thrown = err;
  49220. }
  49221. if (!isThrow && !isNot) {
  49222. let message = utils.flag(this, "message") || "expected function to throw an error, but it didn't", error = { showDiff: !1 };
  49223. throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
  49224. }
  49225. }
  49226. if (typeof expected == "function") {
  49227. let name = expected.name || expected.prototype.constructor.name;
  49228. return this.assert(thrown && thrown instanceof expected, `expected error to be instance of ${name}`, `expected error not to be instance of ${name}`, expected, thrown);
  49229. }
  49230. if (expected instanceof Error) {
  49231. let equal = equals(thrown, expected, [...customTesters, iterableEquality]);
  49232. return this.assert(equal, "expected a thrown error to be #{exp}", "expected a thrown error not to be #{exp}", expected, thrown);
  49233. }
  49234. if (typeof expected == "object" && "asymmetricMatch" in expected && typeof expected.asymmetricMatch == "function") {
  49235. let matcher = expected;
  49236. return this.assert(thrown && matcher.asymmetricMatch(thrown), "expected error to match asymmetric matcher", "expected error not to match asymmetric matcher", matcher, thrown);
  49237. }
  49238. throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`);
  49239. }), [{
  49240. name: "toHaveResolved",
  49241. condition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type: type5 }) => type5 === "fulfilled"),
  49242. action: "resolved"
  49243. }, {
  49244. name: ["toHaveReturned", "toReturn"],
  49245. condition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type: type5 }) => type5 !== "throw"),
  49246. action: "called"
  49247. }].forEach(({ name, condition, action: action2 }) => {
  49248. def(name, function() {
  49249. let spy = getSpy(this), spyName = spy.getMockName(), pass = condition(spy);
  49250. this.assert(pass, `expected "${spyName}" to be successfully ${action2} at least once`, `expected "${spyName}" to not be successfully ${action2}`, pass, !pass, !1);
  49251. });
  49252. }), [{
  49253. name: "toHaveResolvedTimes",
  49254. condition: (spy, times) => spy.mock.settledResults.reduce((s3, { type: type5 }) => type5 === "fulfilled" ? ++s3 : s3, 0) === times,
  49255. action: "resolved"
  49256. }, {
  49257. name: ["toHaveReturnedTimes", "toReturnTimes"],
  49258. condition: (spy, times) => spy.mock.results.reduce((s3, { type: type5 }) => type5 === "throw" ? s3 : ++s3, 0) === times,
  49259. action: "called"
  49260. }].forEach(({ name, condition, action: action2 }) => {
  49261. def(name, function(times) {
  49262. let spy = getSpy(this), spyName = spy.getMockName(), pass = condition(spy, times);
  49263. this.assert(pass, `expected "${spyName}" to be successfully ${action2} ${times} times`, `expected "${spyName}" to not be successfully ${action2} ${times} times`, `expected resolved times: ${times}`, `received resolved times: ${pass}`, !1);
  49264. });
  49265. }), [{
  49266. name: "toHaveResolvedWith",
  49267. condition: (spy, value) => spy.mock.settledResults.some(({ type: type5, value: result }) => type5 === "fulfilled" && equals(value, result)),
  49268. action: "resolve"
  49269. }, {
  49270. name: ["toHaveReturnedWith", "toReturnWith"],
  49271. condition: (spy, value) => spy.mock.results.some(({ type: type5, value: result }) => type5 === "return" && equals(value, result)),
  49272. action: "return"
  49273. }].forEach(({ name, condition, action: action2 }) => {
  49274. def(name, function(value) {
  49275. let spy = getSpy(this), pass = condition(spy, value), isNot = utils.flag(this, "negate");
  49276. if (pass && isNot || !pass && !isNot) {
  49277. let spyName = spy.getMockName(), msg = utils.getMessage(this, [
  49278. pass,
  49279. `expected "${spyName}" to ${action2} with: #{exp} at least once`,
  49280. `expected "${spyName}" to not ${action2} with: #{exp}`,
  49281. value
  49282. ]), results = action2 === "return" ? spy.mock.results : spy.mock.settledResults;
  49283. throw new AssertionError2(formatReturns(spy, results, msg, value));
  49284. }
  49285. });
  49286. }), [{
  49287. name: "toHaveLastResolvedWith",
  49288. condition: (spy, value) => {
  49289. let result = spy.mock.settledResults[spy.mock.settledResults.length - 1];
  49290. return result && result.type === "fulfilled" && equals(result.value, value);
  49291. },
  49292. action: "resolve"
  49293. }, {
  49294. name: ["toHaveLastReturnedWith", "lastReturnedWith"],
  49295. condition: (spy, value) => {
  49296. let result = spy.mock.results[spy.mock.results.length - 1];
  49297. return result && result.type === "return" && equals(result.value, value);
  49298. },
  49299. action: "return"
  49300. }].forEach(({ name, condition, action: action2 }) => {
  49301. def(name, function(value) {
  49302. let spy = getSpy(this), results = action2 === "return" ? spy.mock.results : spy.mock.settledResults, result = results[results.length - 1], spyName = spy.getMockName();
  49303. this.assert(condition(spy, value), `expected last "${spyName}" call to ${action2} #{exp}`, `expected last "${spyName}" call to not ${action2} #{exp}`, value, result?.value);
  49304. });
  49305. }), [{
  49306. name: "toHaveNthResolvedWith",
  49307. condition: (spy, index4, value) => {
  49308. let result = spy.mock.settledResults[index4 - 1];
  49309. return result && result.type === "fulfilled" && equals(result.value, value);
  49310. },
  49311. action: "resolve"
  49312. }, {
  49313. name: ["toHaveNthReturnedWith", "nthReturnedWith"],
  49314. condition: (spy, index4, value) => {
  49315. let result = spy.mock.results[index4 - 1];
  49316. return result && result.type === "return" && equals(result.value, value);
  49317. },
  49318. action: "return"
  49319. }].forEach(({ name, condition, action: action2 }) => {
  49320. def(name, function(nthCall, value) {
  49321. let spy = getSpy(this), spyName = spy.getMockName(), result = (action2 === "return" ? spy.mock.results : spy.mock.settledResults)[nthCall - 1], ordinalCall = `${ordinalOf(nthCall)} call`;
  49322. this.assert(condition(spy, nthCall, value), `expected ${ordinalCall} "${spyName}" call to ${action2} #{exp}`, `expected ${ordinalCall} "${spyName}" call to not ${action2} #{exp}`, value, result?.value);
  49323. });
  49324. }), def("withContext", function(context) {
  49325. for (let key in context)
  49326. utils.flag(this, key, context[key]);
  49327. return this;
  49328. }), utils.addProperty(chai.Assertion.prototype, "resolves", function() {
  49329. let error = new Error("resolves");
  49330. utils.flag(this, "promise", "resolves"), utils.flag(this, "error", error);
  49331. let test3 = utils.flag(this, "vitest-test"), obj = utils.flag(this, "object");
  49332. if (utils.flag(this, "poll"))
  49333. throw new SyntaxError("expect.poll() is not supported in combination with .resolves");
  49334. if (typeof obj?.then != "function")
  49335. throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);
  49336. let proxy = new Proxy(this, { get: (target, key, receiver) => {
  49337. let result = Reflect.get(target, key, receiver);
  49338. return typeof result != "function" ? result instanceof chai.Assertion ? proxy : result : (...args) => {
  49339. utils.flag(this, "_name", key);
  49340. let promise = obj.then((value) => (utils.flag(this, "object", value), result.call(this, ...args)), (err) => {
  49341. let _error = new AssertionError2(`promise rejected "${utils.inspect(err)}" instead of resolving`, { showDiff: !1 });
  49342. throw _error.cause = err, _error.stack = error.stack.replace(error.message, _error.message), _error;
  49343. });
  49344. return recordAsyncExpect(test3, promise, createAssertionMessage(utils, this, !!args.length), error);
  49345. };
  49346. } });
  49347. return proxy;
  49348. }), utils.addProperty(chai.Assertion.prototype, "rejects", function() {
  49349. let error = new Error("rejects");
  49350. utils.flag(this, "promise", "rejects"), utils.flag(this, "error", error);
  49351. let test3 = utils.flag(this, "vitest-test"), obj = utils.flag(this, "object"), wrapper = typeof obj == "function" ? obj() : obj;
  49352. if (utils.flag(this, "poll"))
  49353. throw new SyntaxError("expect.poll() is not supported in combination with .rejects");
  49354. if (typeof wrapper?.then != "function")
  49355. throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);
  49356. let proxy = new Proxy(this, { get: (target, key, receiver) => {
  49357. let result = Reflect.get(target, key, receiver);
  49358. return typeof result != "function" ? result instanceof chai.Assertion ? proxy : result : (...args) => {
  49359. utils.flag(this, "_name", key);
  49360. let promise = wrapper.then((value) => {
  49361. let _error = new AssertionError2(`promise resolved "${utils.inspect(value)}" instead of rejecting`, {
  49362. showDiff: !0,
  49363. expected: new Error("rejected promise"),
  49364. actual: value
  49365. });
  49366. throw _error.stack = error.stack.replace(error.message, _error.message), _error;
  49367. }, (err) => (utils.flag(this, "object", err), result.call(this, ...args)));
  49368. return recordAsyncExpect(test3, promise, createAssertionMessage(utils, this, !!args.length), error);
  49369. };
  49370. } });
  49371. return proxy;
  49372. });
  49373. };
  49374. function ordinalOf(i) {
  49375. let j = i % 10, k = i % 100;
  49376. return j === 1 && k !== 11 ? `${i}st` : j === 2 && k !== 12 ? `${i}nd` : j === 3 && k !== 13 ? `${i}rd` : `${i}th`;
  49377. }
  49378. function formatCalls(spy, msg, showActualCall) {
  49379. return spy.mock.calls.length && (msg += s2.gray(`
  49380. Received:
  49381. ${spy.mock.calls.map((callArg, i) => {
  49382. let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:
  49383. `);
  49384. return showActualCall ? methodCall += diff(showActualCall, callArg, { omitAnnotationLines: !0 }) : methodCall += stringify5(callArg).split(`
  49385. `).map((line2) => ` ${line2}`).join(`
  49386. `), methodCall += `
  49387. `, methodCall;
  49388. }).join(`
  49389. `)}`)), msg += s2.gray(`
  49390. Number of calls: ${s2.bold(spy.mock.calls.length)}
  49391. `), msg;
  49392. }
  49393. function formatReturns(spy, results, msg, showActualReturn) {
  49394. return results.length && (msg += s2.gray(`
  49395. Received:
  49396. ${results.map((callReturn, i) => {
  49397. let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:
  49398. `);
  49399. return showActualReturn ? methodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: !0 }) : methodCall += stringify5(callReturn).split(`
  49400. `).map((line2) => ` ${line2}`).join(`
  49401. `), methodCall += `
  49402. `, methodCall;
  49403. }).join(`
  49404. `)}`)), msg += s2.gray(`
  49405. Number of calls: ${s2.bold(spy.mock.calls.length)}
  49406. `), msg;
  49407. }
  49408. function getMatcherState(assertion, expect4) {
  49409. let obj = assertion._obj, isNot = utils_exports.flag(assertion, "negate"), promise = utils_exports.flag(assertion, "promise") || "", jestUtils = {
  49410. ...getMatcherUtils(),
  49411. diff,
  49412. stringify: stringify5,
  49413. iterableEquality,
  49414. subsetEquality
  49415. };
  49416. return {
  49417. state: {
  49418. ...getState(expect4),
  49419. customTesters: getCustomEqualityTesters(),
  49420. isNot,
  49421. utils: jestUtils,
  49422. promise,
  49423. equals,
  49424. suppressedErrors: [],
  49425. soft: utils_exports.flag(assertion, "soft"),
  49426. poll: utils_exports.flag(assertion, "poll")
  49427. },
  49428. isNot,
  49429. obj
  49430. };
  49431. }
  49432. var JestExtendError = class extends Error {
  49433. constructor(message, actual, expected) {
  49434. super(message), this.actual = actual, this.expected = expected;
  49435. }
  49436. };
  49437. function JestExtendPlugin(c, expect4, matchers) {
  49438. return (_, utils) => {
  49439. Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {
  49440. function expectWrapper(...args) {
  49441. let { state: state3, isNot, obj } = getMatcherState(this, expect4), result = expectAssertion.call(state3, obj, ...args);
  49442. if (result && typeof result == "object" && typeof result.then == "function")
  49443. return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {
  49444. if (pass2 && isNot || !pass2 && !isNot)
  49445. throw new JestExtendError(message2(), actual2, expected2);
  49446. });
  49447. let { pass, message, actual, expected } = result;
  49448. if (pass && isNot || !pass && !isNot)
  49449. throw new JestExtendError(message(), actual, expected);
  49450. }
  49451. let softWrapper = wrapAssertion(utils, expectAssertionName, expectWrapper);
  49452. utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper), utils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);
  49453. class CustomMatcher extends AsymmetricMatcher3 {
  49454. constructor(inverse = !1, ...sample2) {
  49455. super(sample2, inverse);
  49456. }
  49457. asymmetricMatch(other) {
  49458. let { pass } = expectAssertion.call(this.getMatcherContext(expect4), other, ...this.sample);
  49459. return this.inverse ? !pass : pass;
  49460. }
  49461. toString() {
  49462. return `${this.inverse ? "not." : ""}${expectAssertionName}`;
  49463. }
  49464. getExpectedType() {
  49465. return "any";
  49466. }
  49467. toAsymmetricMatcher() {
  49468. return `${this.toString()}<${this.sample.map((item) => stringify5(item)).join(", ")}>`;
  49469. }
  49470. }
  49471. let customMatcher = (...sample2) => new CustomMatcher(!1, ...sample2);
  49472. Object.defineProperty(expect4, expectAssertionName, {
  49473. configurable: !0,
  49474. enumerable: !0,
  49475. value: customMatcher,
  49476. writable: !0
  49477. }), Object.defineProperty(expect4.not, expectAssertionName, {
  49478. configurable: !0,
  49479. enumerable: !0,
  49480. value: (...sample2) => new CustomMatcher(!0, ...sample2),
  49481. writable: !0
  49482. }), Object.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT], expectAssertionName, {
  49483. configurable: !0,
  49484. enumerable: !0,
  49485. value: customMatcher,
  49486. writable: !0
  49487. });
  49488. });
  49489. };
  49490. }
  49491. var JestExtend = (chai, utils) => {
  49492. utils.addMethod(chai.expect, "extend", (expect4, expects) => {
  49493. use2(JestExtendPlugin(chai, expect4, expects));
  49494. });
  49495. };
  49496. // src/test/expect.ts
  49497. function createExpect() {
  49498. use2(JestExtend), use2(JestChaiExpect), use2(JestAsymmetricMatchers);
  49499. let expect4 = ((value, message) => {
  49500. let { assertionCalls } = getState(expect4);
  49501. return setState({ assertionCalls: assertionCalls + 1, soft: !1 }, expect4), expect(value, message);
  49502. });
  49503. Object.assign(expect4, expect), expect4.getState = () => getState(expect4), expect4.setState = (state3) => setState(state3, expect4), expect4.extend = (expects) => expect.extend(expect4, expects), expect4.soft = (...args) => {
  49504. let assert3 = expect4(...args);
  49505. return expect4.setState({
  49506. soft: !0
  49507. }), assert3;
  49508. }, expect4.extend(customMatchers), expect4.unreachable = (message) => {
  49509. assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
  49510. };
  49511. function assertions(expected) {
  49512. let errorGen = () => new Error(
  49513. `expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}`
  49514. );
  49515. "captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(errorGen(), assertions), expect4.setState({
  49516. expectedAssertionsNumber: expected,
  49517. expectedAssertionsNumberErrorGen: errorGen
  49518. });
  49519. }
  49520. function hasAssertions() {
  49521. let error = new Error("expected any number of assertion, but got none");
  49522. "captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(error, hasAssertions), expect4.setState({
  49523. isExpectingAssertions: !0,
  49524. isExpectingAssertionsError: error
  49525. });
  49526. }
  49527. return setState(
  49528. {
  49529. // this should also add "snapshotState" that is added conditionally
  49530. assertionCalls: 0,
  49531. isExpectingAssertions: !1,
  49532. isExpectingAssertionsError: null,
  49533. expectedAssertionsNumber: null,
  49534. expectedAssertionsNumberErrorGen: null
  49535. },
  49536. expect4
  49537. ), utils_exports.addMethod(expect4, "assertions", assertions), utils_exports.addMethod(expect4, "hasAssertions", hasAssertions), expect4.extend(matchers_exports), expect4;
  49538. }
  49539. var expect2 = createExpect();
  49540. Object.defineProperty(globalThis, GLOBAL_EXPECT, {
  49541. value: expect2,
  49542. writable: !0,
  49543. configurable: !0
  49544. });
  49545. // ../../node_modules/tinyspy/dist/index.js
  49546. function f3(e, t, n) {
  49547. Object.defineProperty(e, t, n);
  49548. }
  49549. var u = /* @__PURE__ */ Symbol.for("tinyspy:spy");
  49550. var P2 = (e) => {
  49551. e.called = !1, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
  49552. }, K = (e) => (f3(e, u, { value: { reset: () => P2(e[u]) } }), e[u]), T = (e) => e[u] || K(e);
  49553. // src/test/spy.ts
  49554. var moduleMockSpies = globalThis.__STORYBOOK_MODULE_MOCK_SPIES__ ??= /* @__PURE__ */ new Set(), listeners = /* @__PURE__ */ new Set();
  49555. function onMockCall(callback) {
  49556. return listeners.add(callback), () => {
  49557. listeners.delete(callback);
  49558. };
  49559. }
  49560. var spyOn2 = (...args) => {
  49561. let mock = spyOn(...args);
  49562. return reactiveMock(mock);
  49563. };
  49564. function fn2(implementation) {
  49565. let mock = implementation ? fn(implementation) : fn();
  49566. return reactiveMock(mock);
  49567. }
  49568. function reactiveMock(mock) {
  49569. let reactive = listenWhenCalled(mock), originalMockImplementation = reactive.mockImplementation.bind(null);
  49570. return reactive.mockImplementation = (fn4) => listenWhenCalled(originalMockImplementation(fn4)), reactive;
  49571. }
  49572. function listenWhenCalled(mock) {
  49573. let state3 = T(mock), impl = state3.impl;
  49574. return state3.willCall(function(...args) {
  49575. return listeners.forEach((listener) => listener(mock, args)), impl?.apply(this, args);
  49576. }), mock;
  49577. }
  49578. function clearAllMocks() {
  49579. mocks.forEach((spy) => spy.mockClear()), moduleMockSpies.forEach((spy) => spy.mockClear());
  49580. }
  49581. function resetAllMocks() {
  49582. mocks.forEach((spy) => spy.mockReset()), moduleMockSpies.forEach((spy) => spy.mockReset());
  49583. }
  49584. function restoreAllMocks() {
  49585. mocks.forEach((spy) => spy.mockRestore()), moduleMockSpies.forEach((spy) => spy.mockClear());
  49586. }
  49587. function mocked(item, _options = {}) {
  49588. return item;
  49589. }
  49590. // ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
  49591. var dom_esm_exports = {};
  49592. __export(dom_esm_exports, {
  49593. buildQueries: () => buildQueries,
  49594. configure: () => configure,
  49595. createEvent: () => createEvent,
  49596. findAllByAltText: () => findAllByAltText,
  49597. findAllByDisplayValue: () => findAllByDisplayValue,
  49598. findAllByLabelText: () => findAllByLabelText,
  49599. findAllByPlaceholderText: () => findAllByPlaceholderText,
  49600. findAllByRole: () => findAllByRole,
  49601. findAllByTestId: () => findAllByTestId,
  49602. findAllByText: () => findAllByText,
  49603. findAllByTitle: () => findAllByTitle,
  49604. findByAltText: () => findByAltText,
  49605. findByDisplayValue: () => findByDisplayValue,
  49606. findByLabelText: () => findByLabelText,
  49607. findByPlaceholderText: () => findByPlaceholderText,
  49608. findByRole: () => findByRole,
  49609. findByTestId: () => findByTestId,
  49610. findByText: () => findByText,
  49611. findByTitle: () => findByTitle,
  49612. fireEvent: () => fireEvent,
  49613. getAllByAltText: () => getAllByAltText,
  49614. getAllByDisplayValue: () => getAllByDisplayValue,
  49615. getAllByLabelText: () => getAllByLabelTextWithSuggestions,
  49616. getAllByPlaceholderText: () => getAllByPlaceholderText,
  49617. getAllByRole: () => getAllByRole,
  49618. getAllByTestId: () => getAllByTestId,
  49619. getAllByText: () => getAllByText,
  49620. getAllByTitle: () => getAllByTitle,
  49621. getByAltText: () => getByAltText,
  49622. getByDisplayValue: () => getByDisplayValue,
  49623. getByLabelText: () => getByLabelTextWithSuggestions,
  49624. getByPlaceholderText: () => getByPlaceholderText,
  49625. getByRole: () => getByRole,
  49626. getByTestId: () => getByTestId,
  49627. getByText: () => getByText,
  49628. getByTitle: () => getByTitle,
  49629. getConfig: () => getConfig2,
  49630. getDefaultNormalizer: () => getDefaultNormalizer,
  49631. getElementError: () => getElementError,
  49632. getMultipleElementsFoundError: () => getMultipleElementsFoundError,
  49633. getNodeText: () => getNodeText,
  49634. getQueriesForElement: () => getQueriesForElement,
  49635. getRoles: () => getRoles,
  49636. getSuggestedQuery: () => getSuggestedQuery,
  49637. isInaccessible: () => isInaccessible,
  49638. logDOM: () => logDOM,
  49639. logRoles: () => logRoles,
  49640. makeFindQuery: () => makeFindQuery,
  49641. makeGetAllQuery: () => makeGetAllQuery,
  49642. makeSingleQuery: () => makeSingleQuery,
  49643. prettyDOM: () => prettyDOM,
  49644. prettyFormat: () => prettyFormat,
  49645. queries: () => queries,
  49646. queryAllByAltText: () => queryAllByAltTextWithSuggestions,
  49647. queryAllByAttribute: () => queryAllByAttribute,
  49648. queryAllByDisplayValue: () => queryAllByDisplayValueWithSuggestions,
  49649. queryAllByLabelText: () => queryAllByLabelTextWithSuggestions,
  49650. queryAllByPlaceholderText: () => queryAllByPlaceholderTextWithSuggestions,
  49651. queryAllByRole: () => queryAllByRoleWithSuggestions,
  49652. queryAllByTestId: () => queryAllByTestIdWithSuggestions,
  49653. queryAllByText: () => queryAllByTextWithSuggestions,
  49654. queryAllByTitle: () => queryAllByTitleWithSuggestions,
  49655. queryByAltText: () => queryByAltText,
  49656. queryByAttribute: () => queryByAttribute,
  49657. queryByDisplayValue: () => queryByDisplayValue,
  49658. queryByLabelText: () => queryByLabelText,
  49659. queryByPlaceholderText: () => queryByPlaceholderText,
  49660. queryByRole: () => queryByRole,
  49661. queryByTestId: () => queryByTestId,
  49662. queryByText: () => queryByText,
  49663. queryByTitle: () => queryByTitle,
  49664. queryHelpers: () => queryHelpers,
  49665. screen: () => screen,
  49666. waitFor: () => waitForWrapper,
  49667. waitForElementToBeRemoved: () => waitForElementToBeRemoved,
  49668. within: () => getQueriesForElement,
  49669. wrapAllByQueryWithSuggestion: () => wrapAllByQueryWithSuggestion,
  49670. wrapSingleQueryWithSuggestion: () => wrapSingleQueryWithSuggestion
  49671. });
  49672. var prettyFormat = __toESM(require_build());
  49673. // ../../node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
  49674. var toStr2 = Object.prototype.toString;
  49675. function isCallable2(fn4) {
  49676. return typeof fn4 == "function" || toStr2.call(fn4) === "[object Function]";
  49677. }
  49678. function toInteger2(value) {
  49679. var number = Number(value);
  49680. return isNaN(number) ? 0 : number === 0 || !isFinite(number) ? number : (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
  49681. }
  49682. var maxSafeInteger2 = Math.pow(2, 53) - 1;
  49683. function toLength2(value) {
  49684. var len = toInteger2(value);
  49685. return Math.min(Math.max(len, 0), maxSafeInteger2);
  49686. }
  49687. function arrayFrom2(arrayLike, mapFn) {
  49688. var C3 = Array, items = Object(arrayLike);
  49689. if (arrayLike == null)
  49690. throw new TypeError("Array.from requires an array-like object - not null or undefined");
  49691. if (typeof mapFn < "u" && !isCallable2(mapFn))
  49692. throw new TypeError("Array.from: when provided, the second argument must be a function");
  49693. for (var len = toLength2(items.length), A3 = isCallable2(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; )
  49694. kValue = items[k], mapFn ? A3[k] = mapFn(kValue, k) : A3[k] = kValue, k += 1;
  49695. return A3.length = len, A3;
  49696. }
  49697. // ../../node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
  49698. function _typeof4(obj) {
  49699. "@babel/helpers - typeof";
  49700. return _typeof4 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
  49701. return typeof obj2;
  49702. } : function(obj2) {
  49703. return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
  49704. }, _typeof4(obj);
  49705. }
  49706. function _classCallCheck2(instance, Constructor) {
  49707. if (!(instance instanceof Constructor))
  49708. throw new TypeError("Cannot call a class as a function");
  49709. }
  49710. function _defineProperties2(target, props) {
  49711. for (var i = 0; i < props.length; i++) {
  49712. var descriptor = props[i];
  49713. descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, _toPropertyKey3(descriptor.key), descriptor);
  49714. }
  49715. }
  49716. function _createClass2(Constructor, protoProps, staticProps) {
  49717. return protoProps && _defineProperties2(Constructor.prototype, protoProps), staticProps && _defineProperties2(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { writable: !1 }), Constructor;
  49718. }
  49719. function _defineProperty4(obj, key, value) {
  49720. return key = _toPropertyKey3(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  49721. }
  49722. function _toPropertyKey3(arg) {
  49723. var key = _toPrimitive3(arg, "string");
  49724. return _typeof4(key) === "symbol" ? key : String(key);
  49725. }
  49726. function _toPrimitive3(input2, hint) {
  49727. if (_typeof4(input2) !== "object" || input2 === null) return input2;
  49728. var prim = input2[Symbol.toPrimitive];
  49729. if (prim !== void 0) {
  49730. var res = prim.call(input2, hint || "default");
  49731. if (_typeof4(res) !== "object") return res;
  49732. throw new TypeError("@@toPrimitive must return a primitive value.");
  49733. }
  49734. return (hint === "string" ? String : Number)(input2);
  49735. }
  49736. var SetLike2 = (function() {
  49737. function SetLike3() {
  49738. var items = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  49739. _classCallCheck2(this, SetLike3), _defineProperty4(this, "items", void 0), this.items = items;
  49740. }
  49741. return _createClass2(SetLike3, [{
  49742. key: "add",
  49743. value: function(value) {
  49744. return this.has(value) === !1 && this.items.push(value), this;
  49745. }
  49746. }, {
  49747. key: "clear",
  49748. value: function() {
  49749. this.items = [];
  49750. }
  49751. }, {
  49752. key: "delete",
  49753. value: function(value) {
  49754. var previousLength = this.items.length;
  49755. return this.items = this.items.filter(function(item) {
  49756. return item !== value;
  49757. }), previousLength !== this.items.length;
  49758. }
  49759. }, {
  49760. key: "forEach",
  49761. value: function(callbackfn) {
  49762. var _this = this;
  49763. this.items.forEach(function(item) {
  49764. callbackfn(item, item, _this);
  49765. });
  49766. }
  49767. }, {
  49768. key: "has",
  49769. value: function(value) {
  49770. return this.items.indexOf(value) !== -1;
  49771. }
  49772. }, {
  49773. key: "size",
  49774. get: function() {
  49775. return this.items.length;
  49776. }
  49777. }]), SetLike3;
  49778. })(), SetLike_default2 = typeof Set > "u" ? Set : SetLike2;
  49779. // ../../node_modules/dom-accessibility-api/dist/getRole.mjs
  49780. function getLocalName2(element) {
  49781. var _element$localName;
  49782. return (
  49783. // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
  49784. (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : (
  49785. // eslint-disable-next-line no-restricted-properties -- required for the fallback
  49786. element.tagName.toLowerCase()
  49787. )
  49788. );
  49789. }
  49790. var localNameToRoleMappings2 = {
  49791. article: "article",
  49792. aside: "complementary",
  49793. button: "button",
  49794. datalist: "listbox",
  49795. dd: "definition",
  49796. details: "group",
  49797. dialog: "dialog",
  49798. dt: "term",
  49799. fieldset: "group",
  49800. figure: "figure",
  49801. // WARNING: Only with an accessible name
  49802. form: "form",
  49803. footer: "contentinfo",
  49804. h1: "heading",
  49805. h2: "heading",
  49806. h3: "heading",
  49807. h4: "heading",
  49808. h5: "heading",
  49809. h6: "heading",
  49810. header: "banner",
  49811. hr: "separator",
  49812. html: "document",
  49813. legend: "legend",
  49814. li: "listitem",
  49815. math: "math",
  49816. main: "main",
  49817. menu: "list",
  49818. nav: "navigation",
  49819. ol: "list",
  49820. optgroup: "group",
  49821. // WARNING: Only in certain context
  49822. option: "option",
  49823. output: "status",
  49824. progress: "progressbar",
  49825. // WARNING: Only with an accessible name
  49826. section: "region",
  49827. summary: "button",
  49828. table: "table",
  49829. tbody: "rowgroup",
  49830. textarea: "textbox",
  49831. tfoot: "rowgroup",
  49832. // WARNING: Only in certain context
  49833. td: "cell",
  49834. th: "columnheader",
  49835. thead: "rowgroup",
  49836. tr: "row",
  49837. ul: "list"
  49838. }, prohibitedAttributes2 = {
  49839. caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49840. code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49841. deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49842. emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49843. generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
  49844. insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49845. paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49846. presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49847. strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49848. subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49849. superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
  49850. };
  49851. function hasGlobalAriaAttributes2(element, role) {
  49852. return [
  49853. "aria-atomic",
  49854. "aria-busy",
  49855. "aria-controls",
  49856. "aria-current",
  49857. "aria-describedby",
  49858. "aria-details",
  49859. // "disabled",
  49860. "aria-dropeffect",
  49861. // "errormessage",
  49862. "aria-flowto",
  49863. "aria-grabbed",
  49864. // "haspopup",
  49865. "aria-hidden",
  49866. // "invalid",
  49867. "aria-keyshortcuts",
  49868. "aria-label",
  49869. "aria-labelledby",
  49870. "aria-live",
  49871. "aria-owns",
  49872. "aria-relevant",
  49873. "aria-roledescription"
  49874. ].some(function(attributeName) {
  49875. var _prohibitedAttributes;
  49876. return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes2[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName));
  49877. });
  49878. }
  49879. function ignorePresentationalRole2(element, implicitRole) {
  49880. return hasGlobalAriaAttributes2(element, implicitRole);
  49881. }
  49882. function getRole2(element) {
  49883. var explicitRole = getExplicitRole2(element);
  49884. if (explicitRole === null || explicitRole === "presentation") {
  49885. var implicitRole = getImplicitRole2(element);
  49886. if (explicitRole !== "presentation" || ignorePresentationalRole2(element, implicitRole || ""))
  49887. return implicitRole;
  49888. }
  49889. return explicitRole;
  49890. }
  49891. function getImplicitRole2(element) {
  49892. var mappedByTag = localNameToRoleMappings2[getLocalName2(element)];
  49893. if (mappedByTag !== void 0)
  49894. return mappedByTag;
  49895. switch (getLocalName2(element)) {
  49896. case "a":
  49897. case "area":
  49898. case "link":
  49899. if (element.hasAttribute("href"))
  49900. return "link";
  49901. break;
  49902. case "img":
  49903. return element.getAttribute("alt") === "" && !ignorePresentationalRole2(element, "img") ? "presentation" : "img";
  49904. case "input": {
  49905. var _ref = element, type5 = _ref.type;
  49906. switch (type5) {
  49907. case "button":
  49908. case "image":
  49909. case "reset":
  49910. case "submit":
  49911. return "button";
  49912. case "checkbox":
  49913. case "radio":
  49914. return type5;
  49915. case "range":
  49916. return "slider";
  49917. case "email":
  49918. case "tel":
  49919. case "text":
  49920. case "url":
  49921. return element.hasAttribute("list") ? "combobox" : "textbox";
  49922. case "search":
  49923. return element.hasAttribute("list") ? "combobox" : "searchbox";
  49924. case "number":
  49925. return "spinbutton";
  49926. default:
  49927. return null;
  49928. }
  49929. }
  49930. case "select":
  49931. return element.hasAttribute("multiple") || element.size > 1 ? "listbox" : "combobox";
  49932. }
  49933. return null;
  49934. }
  49935. function getExplicitRole2(element) {
  49936. var role = element.getAttribute("role");
  49937. if (role !== null) {
  49938. var explicitRole = role.trim().split(" ")[0];
  49939. if (explicitRole.length > 0)
  49940. return explicitRole;
  49941. }
  49942. return null;
  49943. }
  49944. // ../../node_modules/dom-accessibility-api/dist/util.mjs
  49945. function isElement2(node2) {
  49946. return node2 !== null && node2.nodeType === node2.ELEMENT_NODE;
  49947. }
  49948. function isHTMLTableCaptionElement2(node2) {
  49949. return isElement2(node2) && getLocalName2(node2) === "caption";
  49950. }
  49951. function isHTMLInputElement2(node2) {
  49952. return isElement2(node2) && getLocalName2(node2) === "input";
  49953. }
  49954. function isHTMLOptGroupElement2(node2) {
  49955. return isElement2(node2) && getLocalName2(node2) === "optgroup";
  49956. }
  49957. function isHTMLSelectElement2(node2) {
  49958. return isElement2(node2) && getLocalName2(node2) === "select";
  49959. }
  49960. function isHTMLTableElement2(node2) {
  49961. return isElement2(node2) && getLocalName2(node2) === "table";
  49962. }
  49963. function isHTMLTextAreaElement2(node2) {
  49964. return isElement2(node2) && getLocalName2(node2) === "textarea";
  49965. }
  49966. function safeWindow2(node2) {
  49967. var _ref = node2.ownerDocument === null ? node2 : node2.ownerDocument, defaultView = _ref.defaultView;
  49968. if (defaultView === null)
  49969. throw new TypeError("no window available");
  49970. return defaultView;
  49971. }
  49972. function isHTMLFieldSetElement2(node2) {
  49973. return isElement2(node2) && getLocalName2(node2) === "fieldset";
  49974. }
  49975. function isHTMLLegendElement2(node2) {
  49976. return isElement2(node2) && getLocalName2(node2) === "legend";
  49977. }
  49978. function isHTMLSlotElement2(node2) {
  49979. return isElement2(node2) && getLocalName2(node2) === "slot";
  49980. }
  49981. function isSVGElement2(node2) {
  49982. return isElement2(node2) && node2.ownerSVGElement !== void 0;
  49983. }
  49984. function isSVGSVGElement2(node2) {
  49985. return isElement2(node2) && getLocalName2(node2) === "svg";
  49986. }
  49987. function isSVGTitleElement2(node2) {
  49988. return isSVGElement2(node2) && getLocalName2(node2) === "title";
  49989. }
  49990. function queryIdRefs2(node2, attributeName) {
  49991. if (isElement2(node2) && node2.hasAttribute(attributeName)) {
  49992. var ids = node2.getAttribute(attributeName).split(" "), root2 = node2.getRootNode ? node2.getRootNode() : node2.ownerDocument;
  49993. return ids.map(function(id) {
  49994. return root2.getElementById(id);
  49995. }).filter(
  49996. function(element) {
  49997. return element !== null;
  49998. }
  49999. // TODO: why does this not narrow?
  50000. );
  50001. }
  50002. return [];
  50003. }
  50004. function hasAnyConcreteRoles2(node2, roles3) {
  50005. return isElement2(node2) ? roles3.indexOf(getRole2(node2)) !== -1 : !1;
  50006. }
  50007. // ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
  50008. function asFlatString2(s3) {
  50009. return s3.trim().replace(/\s\s+/g, " ");
  50010. }
  50011. function isHidden2(node2, getComputedStyleImplementation) {
  50012. if (!isElement2(node2))
  50013. return !1;
  50014. if (node2.hasAttribute("hidden") || node2.getAttribute("aria-hidden") === "true")
  50015. return !0;
  50016. var style = getComputedStyleImplementation(node2);
  50017. return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden";
  50018. }
  50019. function isControl2(node2) {
  50020. return hasAnyConcreteRoles2(node2, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole2(node2, "range");
  50021. }
  50022. function hasAbstractRole2(node2, role) {
  50023. if (!isElement2(node2))
  50024. return !1;
  50025. if (role === "range")
  50026. return hasAnyConcreteRoles2(node2, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
  50027. throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :("));
  50028. }
  50029. function querySelectorAllSubtree2(element, selectors) {
  50030. var elements = arrayFrom2(element.querySelectorAll(selectors));
  50031. return queryIdRefs2(element, "aria-owns").forEach(function(root2) {
  50032. elements.push.apply(elements, arrayFrom2(root2.querySelectorAll(selectors)));
  50033. }), elements;
  50034. }
  50035. function querySelectedOptions2(listbox) {
  50036. return isHTMLSelectElement2(listbox) ? listbox.selectedOptions || querySelectorAllSubtree2(listbox, "[selected]") : querySelectorAllSubtree2(listbox, '[aria-selected="true"]');
  50037. }
  50038. function isMarkedPresentational2(node2) {
  50039. return hasAnyConcreteRoles2(node2, ["none", "presentation"]);
  50040. }
  50041. function isNativeHostLanguageTextAlternativeElement2(node2) {
  50042. return isHTMLTableCaptionElement2(node2);
  50043. }
  50044. function allowsNameFromContent2(node2) {
  50045. return hasAnyConcreteRoles2(node2, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
  50046. }
  50047. function isDescendantOfNativeHostLanguageTextAlternativeElement2(node2) {
  50048. return !1;
  50049. }
  50050. function getValueOfTextbox2(element) {
  50051. return isHTMLInputElement2(element) || isHTMLTextAreaElement2(element) ? element.value : element.textContent || "";
  50052. }
  50053. function getTextualContent2(declaration2) {
  50054. var content = declaration2.getPropertyValue("content");
  50055. return /^["'].*["']$/.test(content) ? content.slice(1, -1) : "";
  50056. }
  50057. function isLabelableElement2(element) {
  50058. var localName = getLocalName2(element);
  50059. return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea";
  50060. }
  50061. function findLabelableElement2(element) {
  50062. if (isLabelableElement2(element))
  50063. return element;
  50064. var labelableElement = null;
  50065. return element.childNodes.forEach(function(childNode) {
  50066. if (labelableElement === null && isElement2(childNode)) {
  50067. var descendantLabelableElement = findLabelableElement2(childNode);
  50068. descendantLabelableElement !== null && (labelableElement = descendantLabelableElement);
  50069. }
  50070. }), labelableElement;
  50071. }
  50072. function getControlOfLabel2(label) {
  50073. if (label.control !== void 0)
  50074. return label.control;
  50075. var htmlFor = label.getAttribute("for");
  50076. return htmlFor !== null ? label.ownerDocument.getElementById(htmlFor) : findLabelableElement2(label);
  50077. }
  50078. function getLabels2(element) {
  50079. var labelsProperty = element.labels;
  50080. if (labelsProperty === null)
  50081. return labelsProperty;
  50082. if (labelsProperty !== void 0)
  50083. return arrayFrom2(labelsProperty);
  50084. if (!isLabelableElement2(element))
  50085. return null;
  50086. var document13 = element.ownerDocument;
  50087. return arrayFrom2(document13.querySelectorAll("label")).filter(function(label) {
  50088. return getControlOfLabel2(label) === element;
  50089. });
  50090. }
  50091. function getSlotContents2(slot) {
  50092. var assignedNodes = slot.assignedNodes();
  50093. return assignedNodes.length === 0 ? arrayFrom2(slot.childNodes) : assignedNodes;
  50094. }
  50095. function computeTextAlternative2(root2) {
  50096. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, consultedNodes = new SetLike_default2(), window2 = safeWindow2(root2), _options$compute = options.compute, compute = _options$compute === void 0 ? "name" : _options$compute, _options$computedStyl = options.computedStyleSupportsPseudoElements, computedStyleSupportsPseudoElements = _options$computedStyl === void 0 ? options.getComputedStyle !== void 0 : _options$computedStyl, _options$getComputedS = options.getComputedStyle, getComputedStyle3 = _options$getComputedS === void 0 ? window2.getComputedStyle.bind(window2) : _options$getComputedS, _options$hidden = options.hidden, hidden = _options$hidden === void 0 ? !1 : _options$hidden;
  50097. function computeMiscTextAlternative(node2, context) {
  50098. var accumulatedText = "";
  50099. if (isElement2(node2) && computedStyleSupportsPseudoElements) {
  50100. var pseudoBefore = getComputedStyle3(node2, "::before"), beforeContent = getTextualContent2(pseudoBefore);
  50101. accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText);
  50102. }
  50103. var childNodes = isHTMLSlotElement2(node2) ? getSlotContents2(node2) : arrayFrom2(node2.childNodes).concat(queryIdRefs2(node2, "aria-owns"));
  50104. if (childNodes.forEach(function(child) {
  50105. var result = computeTextAlternative3(child, {
  50106. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50107. isReferenced: !1,
  50108. recursion: !0
  50109. }), display2 = isElement2(child) ? getComputedStyle3(child).getPropertyValue("display") : "inline", separator = display2 !== "inline" ? " " : "";
  50110. accumulatedText += "".concat(separator).concat(result).concat(separator);
  50111. }), isElement2(node2) && computedStyleSupportsPseudoElements) {
  50112. var pseudoAfter = getComputedStyle3(node2, "::after"), afterContent = getTextualContent2(pseudoAfter);
  50113. accumulatedText = "".concat(accumulatedText, " ").concat(afterContent);
  50114. }
  50115. return accumulatedText.trim();
  50116. }
  50117. function useAttribute(element, attributeName) {
  50118. var attribute = element.getAttributeNode(attributeName);
  50119. return attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "" ? (consultedNodes.add(attribute), attribute.value) : null;
  50120. }
  50121. function computeTooltipAttributeValue(node2) {
  50122. return isElement2(node2) ? useAttribute(node2, "title") : null;
  50123. }
  50124. function computeElementTextAlternative(node2) {
  50125. if (!isElement2(node2))
  50126. return null;
  50127. if (isHTMLFieldSetElement2(node2)) {
  50128. consultedNodes.add(node2);
  50129. for (var children = arrayFrom2(node2.childNodes), i = 0; i < children.length; i += 1) {
  50130. var child = children[i];
  50131. if (isHTMLLegendElement2(child))
  50132. return computeTextAlternative3(child, {
  50133. isEmbeddedInLabel: !1,
  50134. isReferenced: !1,
  50135. recursion: !1
  50136. });
  50137. }
  50138. } else if (isHTMLTableElement2(node2)) {
  50139. consultedNodes.add(node2);
  50140. for (var _children = arrayFrom2(node2.childNodes), _i = 0; _i < _children.length; _i += 1) {
  50141. var _child = _children[_i];
  50142. if (isHTMLTableCaptionElement2(_child))
  50143. return computeTextAlternative3(_child, {
  50144. isEmbeddedInLabel: !1,
  50145. isReferenced: !1,
  50146. recursion: !1
  50147. });
  50148. }
  50149. } else if (isSVGSVGElement2(node2)) {
  50150. consultedNodes.add(node2);
  50151. for (var _children2 = arrayFrom2(node2.childNodes), _i2 = 0; _i2 < _children2.length; _i2 += 1) {
  50152. var _child2 = _children2[_i2];
  50153. if (isSVGTitleElement2(_child2))
  50154. return _child2.textContent;
  50155. }
  50156. return null;
  50157. } else if (getLocalName2(node2) === "img" || getLocalName2(node2) === "area") {
  50158. var nameFromAlt = useAttribute(node2, "alt");
  50159. if (nameFromAlt !== null)
  50160. return nameFromAlt;
  50161. } else if (isHTMLOptGroupElement2(node2)) {
  50162. var nameFromLabel = useAttribute(node2, "label");
  50163. if (nameFromLabel !== null)
  50164. return nameFromLabel;
  50165. }
  50166. if (isHTMLInputElement2(node2) && (node2.type === "button" || node2.type === "submit" || node2.type === "reset")) {
  50167. var nameFromValue = useAttribute(node2, "value");
  50168. if (nameFromValue !== null)
  50169. return nameFromValue;
  50170. if (node2.type === "submit")
  50171. return "Submit";
  50172. if (node2.type === "reset")
  50173. return "Reset";
  50174. }
  50175. var labels = getLabels2(node2);
  50176. if (labels !== null && labels.length !== 0)
  50177. return consultedNodes.add(node2), arrayFrom2(labels).map(function(element) {
  50178. return computeTextAlternative3(element, {
  50179. isEmbeddedInLabel: !0,
  50180. isReferenced: !1,
  50181. recursion: !0
  50182. });
  50183. }).filter(function(label) {
  50184. return label.length > 0;
  50185. }).join(" ");
  50186. if (isHTMLInputElement2(node2) && node2.type === "image") {
  50187. var _nameFromAlt = useAttribute(node2, "alt");
  50188. if (_nameFromAlt !== null)
  50189. return _nameFromAlt;
  50190. var nameFromTitle = useAttribute(node2, "title");
  50191. return nameFromTitle !== null ? nameFromTitle : "Submit Query";
  50192. }
  50193. if (hasAnyConcreteRoles2(node2, ["button"])) {
  50194. var nameFromSubTree = computeMiscTextAlternative(node2, {
  50195. isEmbeddedInLabel: !1,
  50196. isReferenced: !1
  50197. });
  50198. if (nameFromSubTree !== "")
  50199. return nameFromSubTree;
  50200. }
  50201. return null;
  50202. }
  50203. function computeTextAlternative3(current, context) {
  50204. if (consultedNodes.has(current))
  50205. return "";
  50206. if (!hidden && isHidden2(current, getComputedStyle3) && !context.isReferenced)
  50207. return consultedNodes.add(current), "";
  50208. var labelAttributeNode = isElement2(current) ? current.getAttributeNode("aria-labelledby") : null, labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? queryIdRefs2(current, "aria-labelledby") : [];
  50209. if (compute === "name" && !context.isReferenced && labelElements.length > 0)
  50210. return consultedNodes.add(labelAttributeNode), labelElements.map(function(element) {
  50211. return computeTextAlternative3(element, {
  50212. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50213. isReferenced: !0,
  50214. // this isn't recursion as specified, otherwise we would skip
  50215. // `aria-label` in
  50216. // <input id="myself" aria-label="foo" aria-labelledby="myself"
  50217. recursion: !1
  50218. });
  50219. }).join(" ");
  50220. var skipToStep2E = context.recursion && isControl2(current) && compute === "name";
  50221. if (!skipToStep2E) {
  50222. var ariaLabel = (isElement2(current) && current.getAttribute("aria-label") || "").trim();
  50223. if (ariaLabel !== "" && compute === "name")
  50224. return consultedNodes.add(current), ariaLabel;
  50225. if (!isMarkedPresentational2(current)) {
  50226. var elementTextAlternative = computeElementTextAlternative(current);
  50227. if (elementTextAlternative !== null)
  50228. return consultedNodes.add(current), elementTextAlternative;
  50229. }
  50230. }
  50231. if (hasAnyConcreteRoles2(current, ["menu"]))
  50232. return consultedNodes.add(current), "";
  50233. if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) {
  50234. if (hasAnyConcreteRoles2(current, ["combobox", "listbox"])) {
  50235. consultedNodes.add(current);
  50236. var selectedOptions = querySelectedOptions2(current);
  50237. return selectedOptions.length === 0 ? isHTMLInputElement2(current) ? current.value : "" : arrayFrom2(selectedOptions).map(function(selectedOption) {
  50238. return computeTextAlternative3(selectedOption, {
  50239. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50240. isReferenced: !1,
  50241. recursion: !0
  50242. });
  50243. }).join(" ");
  50244. }
  50245. if (hasAbstractRole2(current, "range"))
  50246. return consultedNodes.add(current), current.hasAttribute("aria-valuetext") ? current.getAttribute("aria-valuetext") : current.hasAttribute("aria-valuenow") ? current.getAttribute("aria-valuenow") : current.getAttribute("value") || "";
  50247. if (hasAnyConcreteRoles2(current, ["textbox"]))
  50248. return consultedNodes.add(current), getValueOfTextbox2(current);
  50249. }
  50250. if (allowsNameFromContent2(current) || isElement2(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement2(current) || isDescendantOfNativeHostLanguageTextAlternativeElement2(current)) {
  50251. var accumulatedText2F = computeMiscTextAlternative(current, {
  50252. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50253. isReferenced: !1
  50254. });
  50255. if (accumulatedText2F !== "")
  50256. return consultedNodes.add(current), accumulatedText2F;
  50257. }
  50258. if (current.nodeType === current.TEXT_NODE)
  50259. return consultedNodes.add(current), current.textContent || "";
  50260. if (context.recursion)
  50261. return consultedNodes.add(current), computeMiscTextAlternative(current, {
  50262. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50263. isReferenced: !1
  50264. });
  50265. var tooltipAttributeValue = computeTooltipAttributeValue(current);
  50266. return tooltipAttributeValue !== null ? (consultedNodes.add(current), tooltipAttributeValue) : (consultedNodes.add(current), "");
  50267. }
  50268. return asFlatString2(computeTextAlternative3(root2, {
  50269. isEmbeddedInLabel: !1,
  50270. // by spec computeAccessibleDescription starts with the referenced elements as roots
  50271. isReferenced: compute === "description",
  50272. recursion: !1
  50273. }));
  50274. }
  50275. // ../../node_modules/dom-accessibility-api/dist/accessible-description.mjs
  50276. function _typeof5(obj) {
  50277. "@babel/helpers - typeof";
  50278. return _typeof5 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
  50279. return typeof obj2;
  50280. } : function(obj2) {
  50281. return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
  50282. }, _typeof5(obj);
  50283. }
  50284. function ownKeys4(object, enumerableOnly) {
  50285. var keys3 = Object.keys(object);
  50286. if (Object.getOwnPropertySymbols) {
  50287. var symbols = Object.getOwnPropertySymbols(object);
  50288. enumerableOnly && (symbols = symbols.filter(function(sym) {
  50289. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  50290. })), keys3.push.apply(keys3, symbols);
  50291. }
  50292. return keys3;
  50293. }
  50294. function _objectSpread4(target) {
  50295. for (var i = 1; i < arguments.length; i++) {
  50296. var source = arguments[i] != null ? arguments[i] : {};
  50297. i % 2 ? ownKeys4(Object(source), !0).forEach(function(key) {
  50298. _defineProperty5(target, key, source[key]);
  50299. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys4(Object(source)).forEach(function(key) {
  50300. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  50301. });
  50302. }
  50303. return target;
  50304. }
  50305. function _defineProperty5(obj, key, value) {
  50306. return key = _toPropertyKey4(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  50307. }
  50308. function _toPropertyKey4(arg) {
  50309. var key = _toPrimitive4(arg, "string");
  50310. return _typeof5(key) === "symbol" ? key : String(key);
  50311. }
  50312. function _toPrimitive4(input2, hint) {
  50313. if (_typeof5(input2) !== "object" || input2 === null) return input2;
  50314. var prim = input2[Symbol.toPrimitive];
  50315. if (prim !== void 0) {
  50316. var res = prim.call(input2, hint || "default");
  50317. if (_typeof5(res) !== "object") return res;
  50318. throw new TypeError("@@toPrimitive must return a primitive value.");
  50319. }
  50320. return (hint === "string" ? String : Number)(input2);
  50321. }
  50322. function computeAccessibleDescription2(root2) {
  50323. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, description = queryIdRefs2(root2, "aria-describedby").map(function(element) {
  50324. return computeTextAlternative2(element, _objectSpread4(_objectSpread4({}, options), {}, {
  50325. compute: "description"
  50326. }));
  50327. }).join(" ");
  50328. if (description === "") {
  50329. var title = root2.getAttribute("title");
  50330. description = title === null ? "" : title;
  50331. }
  50332. return description;
  50333. }
  50334. // ../../node_modules/dom-accessibility-api/dist/accessible-name.mjs
  50335. function prohibitsNaming2(node2) {
  50336. return hasAnyConcreteRoles2(node2, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
  50337. }
  50338. function computeAccessibleName2(root2) {
  50339. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  50340. return prohibitsNaming2(root2) ? "" : computeTextAlternative2(root2, options);
  50341. }
  50342. // ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
  50343. var import_aria_query3 = __toESM(require_lib2()), import_lz_string = __toESM(require_lz_string());
  50344. function escapeHTML2(str2) {
  50345. return str2.replace(/</g, "&lt;").replace(/>/g, "&gt;");
  50346. }
  50347. var printProps2 = (keys3, props, config4, indentation, depth, refs, printer2) => {
  50348. let indentationNext = indentation + config4.indent, colors3 = config4.colors;
  50349. return keys3.map((key) => {
  50350. let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs);
  50351. return typeof value != "string" && (printed.indexOf(`
  50352. `) !== -1 && (printed = config4.spacingOuter + indentationNext + printed + config4.spacingOuter + indentation), printed = "{" + printed + "}"), config4.spacingInner + indentation + colors3.prop.open + key + colors3.prop.close + "=" + colors3.value.open + printed + colors3.value.close;
  50353. }).join("");
  50354. }, NodeTypeTextNode = 3, printChildren2 = (children, config4, indentation, depth, refs, printer2) => children.map((child) => {
  50355. let printedChild = typeof child == "string" ? printText2(child, config4) : printer2(child, config4, indentation, depth, refs);
  50356. return printedChild === "" && typeof child == "object" && child !== null && child.nodeType !== NodeTypeTextNode ? "" : config4.spacingOuter + indentation + printedChild;
  50357. }).join(""), printText2 = (text, config4) => {
  50358. let contentColor = config4.colors.content;
  50359. return contentColor.open + escapeHTML2(text) + contentColor.close;
  50360. }, printComment2 = (comment2, config4) => {
  50361. let commentColor = config4.colors.comment;
  50362. return commentColor.open + "<!--" + escapeHTML2(comment2) + "-->" + commentColor.close;
  50363. }, printElement2 = (type5, printedProps, printedChildren, config4, indentation) => {
  50364. let tagColor = config4.colors.tag;
  50365. return tagColor.open + "<" + type5 + (printedProps && tagColor.close + printedProps + config4.spacingOuter + indentation + tagColor.open) + (printedChildren ? ">" + tagColor.close + printedChildren + config4.spacingOuter + indentation + tagColor.open + "</" + type5 : (printedProps && !config4.min ? "" : " ") + "/") + ">" + tagColor.close;
  50366. }, printElementAsLeaf2 = (type5, config4) => {
  50367. let tagColor = config4.colors.tag;
  50368. return tagColor.open + "<" + type5 + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close;
  50369. }, ELEMENT_NODE$1 = 1, TEXT_NODE$1 = 3, COMMENT_NODE$1 = 8, FRAGMENT_NODE2 = 11, ELEMENT_REGEXP2 = /^((HTML|SVG)\w*)?Element$/, isCustomElement2 = (val) => {
  50370. let {
  50371. tagName
  50372. } = val;
  50373. return !!(typeof tagName == "string" && tagName.includes("-") || typeof val.hasAttribute == "function" && val.hasAttribute("is"));
  50374. }, testNode2 = (val) => {
  50375. let constructorName = val.constructor.name, {
  50376. nodeType
  50377. } = val;
  50378. return nodeType === ELEMENT_NODE$1 && (ELEMENT_REGEXP2.test(constructorName) || isCustomElement2(val)) || nodeType === TEXT_NODE$1 && constructorName === "Text" || nodeType === COMMENT_NODE$1 && constructorName === "Comment" || nodeType === FRAGMENT_NODE2 && constructorName === "DocumentFragment";
  50379. };
  50380. function nodeIsText2(node2) {
  50381. return node2.nodeType === TEXT_NODE$1;
  50382. }
  50383. function nodeIsComment2(node2) {
  50384. return node2.nodeType === COMMENT_NODE$1;
  50385. }
  50386. function nodeIsFragment2(node2) {
  50387. return node2.nodeType === FRAGMENT_NODE2;
  50388. }
  50389. function createDOMElementFilter(filterNode) {
  50390. return {
  50391. test: (val) => {
  50392. var _val$constructor2;
  50393. return ((val == null || (_val$constructor2 = val.constructor) == null ? void 0 : _val$constructor2.name) || isCustomElement2(val)) && testNode2(val);
  50394. },
  50395. serialize: (node2, config4, indentation, depth, refs, printer2) => {
  50396. if (nodeIsText2(node2))
  50397. return printText2(node2.data, config4);
  50398. if (nodeIsComment2(node2))
  50399. return printComment2(node2.data, config4);
  50400. let type5 = nodeIsFragment2(node2) ? "DocumentFragment" : node2.tagName.toLowerCase();
  50401. return ++depth > config4.maxDepth ? printElementAsLeaf2(type5, config4) : printElement2(type5, printProps2(nodeIsFragment2(node2) ? [] : Array.from(node2.attributes).map((attr) => attr.name).sort(), nodeIsFragment2(node2) ? {} : Array.from(node2.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config4, indentation + config4.indent, depth, refs, printer2), printChildren2(Array.prototype.slice.call(node2.childNodes || node2.children).filter(filterNode), config4, indentation + config4.indent, depth, refs, printer2), config4, indentation);
  50402. }
  50403. };
  50404. }
  50405. var picocolors2 = null, readFileSync = null, codeFrameColumns = null;
  50406. try {
  50407. let nodeRequire = module && module.require;
  50408. readFileSync = nodeRequire.call(module, "fs").readFileSync, codeFrameColumns = nodeRequire.call(module, "@babel/code-frame").codeFrameColumns, picocolors2 = nodeRequire.call(module, "picocolors");
  50409. } catch {
  50410. }
  50411. function getCodeFrame(frame) {
  50412. let locationStart = frame.indexOf("(") + 1, locationEnd = frame.indexOf(")"), frameLocation = frame.slice(locationStart, locationEnd), frameLocationElements = frameLocation.split(":"), [filename, line2, column2] = [frameLocationElements[0], parseInt(frameLocationElements[1], 10), parseInt(frameLocationElements[2], 10)], rawFileContents = "";
  50413. try {
  50414. rawFileContents = readFileSync(filename, "utf-8");
  50415. } catch {
  50416. return "";
  50417. }
  50418. let codeFrame = codeFrameColumns(rawFileContents, {
  50419. start: {
  50420. line: line2,
  50421. column: column2
  50422. }
  50423. }, {
  50424. highlightCode: !0,
  50425. linesBelow: 0
  50426. });
  50427. return picocolors2.dim(frameLocation) + `
  50428. ` + codeFrame + `
  50429. `;
  50430. }
  50431. function getUserCodeFrame() {
  50432. if (!readFileSync || !codeFrameColumns)
  50433. return "";
  50434. let firstClientCodeFrame = new Error().stack.split(`
  50435. `).slice(1).find((frame) => !frame.includes("node_modules/"));
  50436. return getCodeFrame(firstClientCodeFrame);
  50437. }
  50438. var TEXT_NODE2 = 3;
  50439. function jestFakeTimersAreEnabled() {
  50440. return typeof jest < "u" && jest !== null ? (
  50441. // legacy timers
  50442. setTimeout._isMockFunction === !0 || // modern timers
  50443. // eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
  50444. Object.prototype.hasOwnProperty.call(setTimeout, "clock")
  50445. ) : !1;
  50446. }
  50447. function getDocument() {
  50448. if (typeof window > "u")
  50449. throw new Error("Could not find default container");
  50450. return window.document;
  50451. }
  50452. function getWindowFromNode(node2) {
  50453. if (node2.defaultView)
  50454. return node2.defaultView;
  50455. if (node2.ownerDocument && node2.ownerDocument.defaultView)
  50456. return node2.ownerDocument.defaultView;
  50457. if (node2.window)
  50458. return node2.window;
  50459. throw node2.ownerDocument && node2.ownerDocument.defaultView === null ? new Error("It looks like the window object is not available for the provided node.") : node2.then instanceof Function ? new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?") : Array.isArray(node2) ? new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?") : typeof node2.debug == "function" && typeof node2.logTestingPlaygroundURL == "function" ? new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?") : new Error("The given node is not an Element, the node type is: " + typeof node2 + ".");
  50460. }
  50461. function checkContainerType(container) {
  50462. if (!container || typeof container.querySelector != "function" || typeof container.querySelectorAll != "function")
  50463. throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + ".");
  50464. function getTypeName(object) {
  50465. return typeof object == "object" ? object === null ? "null" : object.constructor.name : typeof object;
  50466. }
  50467. }
  50468. var shouldHighlight = () => {
  50469. if (typeof process > "u")
  50470. return !1;
  50471. let colors3;
  50472. try {
  50473. var _process$env;
  50474. let colorsJSON = (_process$env = process.env) == null ? void 0 : _process$env.COLORS;
  50475. colorsJSON && (colors3 = JSON.parse(colorsJSON));
  50476. } catch {
  50477. }
  50478. return typeof colors3 == "boolean" ? colors3 : process.versions !== void 0 && process.versions.node !== void 0;
  50479. }, {
  50480. DOMCollection: DOMCollection3
  50481. } = prettyFormat.plugins, ELEMENT_NODE2 = 1, COMMENT_NODE2 = 8;
  50482. function filterCommentsAndDefaultIgnoreTagsTags(value) {
  50483. return value.nodeType !== COMMENT_NODE2 && (value.nodeType !== ELEMENT_NODE2 || !value.matches(getConfig2().defaultIgnore));
  50484. }
  50485. function prettyDOM(dom, maxLength, options) {
  50486. if (options === void 0 && (options = {}), dom || (dom = getDocument().body), typeof maxLength != "number" && (maxLength = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), maxLength === 0)
  50487. return "";
  50488. dom.documentElement && (dom = dom.documentElement);
  50489. let domTypeName = typeof dom;
  50490. if (domTypeName === "object" ? domTypeName = dom.constructor.name : dom = {}, !("outerHTML" in dom))
  50491. throw new TypeError("Expected an element or document but got " + domTypeName);
  50492. let {
  50493. filterNode = filterCommentsAndDefaultIgnoreTagsTags,
  50494. ...prettyFormatOptions
  50495. } = options, debugContent = prettyFormat.format(dom, {
  50496. plugins: [createDOMElementFilter(filterNode), DOMCollection3],
  50497. printFunctionName: !1,
  50498. highlight: shouldHighlight(),
  50499. ...prettyFormatOptions
  50500. });
  50501. return maxLength !== void 0 && dom.outerHTML.length > maxLength ? debugContent.slice(0, maxLength) + "..." : debugContent;
  50502. }
  50503. var logDOM = function() {
  50504. let userCodeFrame = getUserCodeFrame();
  50505. console.log(userCodeFrame ? prettyDOM(...arguments) + `
  50506. ` + userCodeFrame : prettyDOM(...arguments));
  50507. }, config3 = {
  50508. testIdAttribute: "data-testid",
  50509. asyncUtilTimeout: 1e3,
  50510. // asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
  50511. // forcing react-testing-library to wrap all async functions would've been
  50512. // a total nightmare (consider wrapping every findBy* query and then also
  50513. // updating `within` so those would be wrapped too. Total nightmare).
  50514. // so we have this config option that's really only intended for
  50515. // react-testing-library to use. For that reason, this feature will remain
  50516. // undocumented.
  50517. asyncWrapper: (cb) => cb(),
  50518. unstable_advanceTimersWrapper: (cb) => cb(),
  50519. eventWrapper: (cb) => cb(),
  50520. // default value for the `hidden` option in `ByRole` queries
  50521. defaultHidden: !1,
  50522. // default value for the `ignore` option in `ByText` queries
  50523. defaultIgnore: "script, style",
  50524. // showOriginalStackTrace flag to show the full error stack traces for async errors
  50525. showOriginalStackTrace: !1,
  50526. // throw errors w/ suggestions for better queries. Opt in so off by default.
  50527. throwSuggestions: !1,
  50528. // called when getBy* queries fail. (message, container) => Error
  50529. getElementError(message, container) {
  50530. let prettifiedDOM = prettyDOM(container), error = new Error([message, "Ignored nodes: comments, " + config3.defaultIgnore + `
  50531. ` + prettifiedDOM].filter(Boolean).join(`
  50532. `));
  50533. return error.name = "TestingLibraryElementError", error;
  50534. },
  50535. _disableExpensiveErrorDiagnostics: !1,
  50536. computedStyleSupportsPseudoElements: !1
  50537. };
  50538. function runWithExpensiveErrorDiagnosticsDisabled(callback) {
  50539. try {
  50540. return config3._disableExpensiveErrorDiagnostics = !0, callback();
  50541. } finally {
  50542. config3._disableExpensiveErrorDiagnostics = !1;
  50543. }
  50544. }
  50545. function configure(newConfig) {
  50546. typeof newConfig == "function" && (newConfig = newConfig(config3)), config3 = {
  50547. ...config3,
  50548. ...newConfig
  50549. };
  50550. }
  50551. function getConfig2() {
  50552. return config3;
  50553. }
  50554. var labelledNodeNames = ["button", "meter", "output", "progress", "select", "textarea", "input"];
  50555. function getTextContent(node2) {
  50556. return labelledNodeNames.includes(node2.nodeName.toLowerCase()) ? "" : node2.nodeType === TEXT_NODE2 ? node2.textContent : Array.from(node2.childNodes).map((childNode) => getTextContent(childNode)).join("");
  50557. }
  50558. function getLabelContent(element) {
  50559. let textContent;
  50560. return element.tagName.toLowerCase() === "label" ? textContent = getTextContent(element) : textContent = element.value || element.textContent, textContent;
  50561. }
  50562. function getRealLabels(element) {
  50563. if (element.labels !== void 0) {
  50564. var _labels;
  50565. return (_labels = element.labels) != null ? _labels : [];
  50566. }
  50567. if (!isLabelable(element)) return [];
  50568. let labels = element.ownerDocument.querySelectorAll("label");
  50569. return Array.from(labels).filter((label) => label.control === element);
  50570. }
  50571. function isLabelable(element) {
  50572. return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName) || element.tagName === "INPUT" && element.getAttribute("type") !== "hidden";
  50573. }
  50574. function getLabels3(container, element, _temp) {
  50575. let {
  50576. selector = "*"
  50577. } = _temp === void 0 ? {} : _temp, ariaLabelledBy = element.getAttribute("aria-labelledby"), labelsId = ariaLabelledBy ? ariaLabelledBy.split(" ") : [];
  50578. return labelsId.length ? labelsId.map((labelId) => {
  50579. let labellingElement = container.querySelector('[id="' + labelId + '"]');
  50580. return labellingElement ? {
  50581. content: getLabelContent(labellingElement),
  50582. formControl: null
  50583. } : {
  50584. content: "",
  50585. formControl: null
  50586. };
  50587. }) : Array.from(getRealLabels(element)).map((label) => {
  50588. let textToMatch = getLabelContent(label), labelledFormControl = Array.from(label.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((formControlElement) => formControlElement.matches(selector))[0];
  50589. return {
  50590. content: textToMatch,
  50591. formControl: labelledFormControl
  50592. };
  50593. });
  50594. }
  50595. function assertNotNullOrUndefined(matcher) {
  50596. if (matcher == null)
  50597. throw new Error(
  50598. // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
  50599. "It looks like " + matcher + " was passed instead of a matcher. Did you do something like getByText(" + matcher + ")?"
  50600. );
  50601. }
  50602. function fuzzyMatches(textToMatch, node2, matcher, normalizer) {
  50603. if (typeof textToMatch != "string")
  50604. return !1;
  50605. assertNotNullOrUndefined(matcher);
  50606. let normalizedText = normalizer(textToMatch);
  50607. return typeof matcher == "string" || typeof matcher == "number" ? normalizedText.toLowerCase().includes(matcher.toString().toLowerCase()) : typeof matcher == "function" ? matcher(normalizedText, node2) : matchRegExp(matcher, normalizedText);
  50608. }
  50609. function matches3(textToMatch, node2, matcher, normalizer) {
  50610. if (typeof textToMatch != "string")
  50611. return !1;
  50612. assertNotNullOrUndefined(matcher);
  50613. let normalizedText = normalizer(textToMatch);
  50614. return matcher instanceof Function ? matcher(normalizedText, node2) : matcher instanceof RegExp ? matchRegExp(matcher, normalizedText) : normalizedText === String(matcher);
  50615. }
  50616. function getDefaultNormalizer(_temp) {
  50617. let {
  50618. trim: trim2 = !0,
  50619. collapseWhitespace = !0
  50620. } = _temp === void 0 ? {} : _temp;
  50621. return (text) => {
  50622. let normalizedText = text;
  50623. return normalizedText = trim2 ? normalizedText.trim() : normalizedText, normalizedText = collapseWhitespace ? normalizedText.replace(/\s+/g, " ") : normalizedText, normalizedText;
  50624. };
  50625. }
  50626. function makeNormalizer(_ref) {
  50627. let {
  50628. trim: trim2,
  50629. collapseWhitespace,
  50630. normalizer
  50631. } = _ref;
  50632. if (!normalizer)
  50633. return getDefaultNormalizer({
  50634. trim: trim2,
  50635. collapseWhitespace
  50636. });
  50637. if (typeof trim2 < "u" || typeof collapseWhitespace < "u")
  50638. throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
  50639. return normalizer;
  50640. }
  50641. function matchRegExp(matcher, text) {
  50642. let match3 = matcher.test(text);
  50643. return matcher.global && matcher.lastIndex !== 0 && (console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."), matcher.lastIndex = 0), match3;
  50644. }
  50645. function getNodeText(node2) {
  50646. return node2.matches("input[type=submit], input[type=button], input[type=reset]") ? node2.value : Array.from(node2.childNodes).filter((child) => child.nodeType === TEXT_NODE2 && !!child.textContent).map((c) => c.textContent).join("");
  50647. }
  50648. var elementRoleList2 = buildElementRoleList2(import_aria_query3.elementRoles);
  50649. function isSubtreeInaccessible(element) {
  50650. return element.hidden === !0 || element.getAttribute("aria-hidden") === "true" || element.ownerDocument.defaultView.getComputedStyle(element).display === "none";
  50651. }
  50652. function isInaccessible(element, options) {
  50653. options === void 0 && (options = {});
  50654. let {
  50655. isSubtreeInaccessible: isSubtreeInaccessibleImpl = isSubtreeInaccessible
  50656. } = options;
  50657. if (element.ownerDocument.defaultView.getComputedStyle(element).visibility === "hidden")
  50658. return !0;
  50659. let currentElement = element;
  50660. for (; currentElement; ) {
  50661. if (isSubtreeInaccessibleImpl(currentElement))
  50662. return !0;
  50663. currentElement = currentElement.parentElement;
  50664. }
  50665. return !1;
  50666. }
  50667. function getImplicitAriaRoles2(currentNode) {
  50668. for (let {
  50669. match: match3,
  50670. roles: roles3
  50671. } of elementRoleList2)
  50672. if (match3(currentNode))
  50673. return [...roles3];
  50674. return [];
  50675. }
  50676. function buildElementRoleList2(elementRolesMap) {
  50677. function makeElementSelector(_ref) {
  50678. let {
  50679. name,
  50680. attributes
  50681. } = _ref;
  50682. return "" + name + attributes.map((_ref2) => {
  50683. let {
  50684. name: attributeName,
  50685. value,
  50686. constraints = []
  50687. } = _ref2, shouldNotExist = constraints.indexOf("undefined") !== -1, shouldBeNonEmpty = constraints.indexOf("set") !== -1;
  50688. return typeof value < "u" ? "[" + attributeName + '="' + value + '"]' : shouldNotExist ? ":not([" + attributeName + "])" : shouldBeNonEmpty ? "[" + attributeName + "]:not([" + attributeName + '=""])' : "[" + attributeName + "]";
  50689. }).join("");
  50690. }
  50691. function getSelectorSpecificity(_ref3) {
  50692. let {
  50693. attributes = []
  50694. } = _ref3;
  50695. return attributes.length;
  50696. }
  50697. function bySelectorSpecificity(_ref4, _ref5) {
  50698. let {
  50699. specificity: leftSpecificity
  50700. } = _ref4, {
  50701. specificity: rightSpecificity
  50702. } = _ref5;
  50703. return rightSpecificity - leftSpecificity;
  50704. }
  50705. function match3(element) {
  50706. let {
  50707. attributes = []
  50708. } = element, typeTextIndex = attributes.findIndex((attribute) => attribute.value && attribute.name === "type" && attribute.value === "text");
  50709. typeTextIndex >= 0 && (attributes = [...attributes.slice(0, typeTextIndex), ...attributes.slice(typeTextIndex + 1)]);
  50710. let selector = makeElementSelector({
  50711. ...element,
  50712. attributes
  50713. });
  50714. return (node2) => typeTextIndex >= 0 && node2.type !== "text" ? !1 : node2.matches(selector);
  50715. }
  50716. let result = [];
  50717. for (let [element, roles3] of elementRolesMap.entries())
  50718. result = [...result, {
  50719. match: match3(element),
  50720. roles: Array.from(roles3),
  50721. specificity: getSelectorSpecificity(element)
  50722. }];
  50723. return result.sort(bySelectorSpecificity);
  50724. }
  50725. function getRoles(container, _temp) {
  50726. let {
  50727. hidden = !1
  50728. } = _temp === void 0 ? {} : _temp;
  50729. function flattenDOM(node2) {
  50730. return [node2, ...Array.from(node2.children).reduce((acc, child) => [...acc, ...flattenDOM(child)], [])];
  50731. }
  50732. return flattenDOM(container).filter((element) => hidden === !1 ? isInaccessible(element) === !1 : !0).reduce((acc, node2) => {
  50733. let roles3 = [];
  50734. return node2.hasAttribute("role") ? roles3 = node2.getAttribute("role").split(" ").slice(0, 1) : roles3 = getImplicitAriaRoles2(node2), roles3.reduce((rolesAcc, role) => Array.isArray(rolesAcc[role]) ? {
  50735. ...rolesAcc,
  50736. [role]: [...rolesAcc[role], node2]
  50737. } : {
  50738. ...rolesAcc,
  50739. [role]: [node2]
  50740. }, acc);
  50741. }, {});
  50742. }
  50743. function prettyRoles(dom, _ref6) {
  50744. let {
  50745. hidden,
  50746. includeDescription
  50747. } = _ref6, roles3 = getRoles(dom, {
  50748. hidden
  50749. });
  50750. return Object.entries(roles3).filter((_ref7) => {
  50751. let [role] = _ref7;
  50752. return role !== "generic";
  50753. }).map((_ref8) => {
  50754. let [role, elements] = _ref8, delimiterBar = "-".repeat(50), elementsString = elements.map((el) => {
  50755. let nameString = 'Name "' + computeAccessibleName2(el, {
  50756. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  50757. }) + `":
  50758. `, domString = prettyDOM(el.cloneNode(!1));
  50759. if (includeDescription) {
  50760. let descriptionString = 'Description "' + computeAccessibleDescription2(el, {
  50761. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  50762. }) + `":
  50763. `;
  50764. return "" + nameString + descriptionString + domString;
  50765. }
  50766. return "" + nameString + domString;
  50767. }).join(`
  50768. `);
  50769. return role + `:
  50770. ` + elementsString + `
  50771. ` + delimiterBar;
  50772. }).join(`
  50773. `);
  50774. }
  50775. var logRoles = function(dom, _temp2) {
  50776. let {
  50777. hidden = !1
  50778. } = _temp2 === void 0 ? {} : _temp2;
  50779. return console.log(prettyRoles(dom, {
  50780. hidden
  50781. }));
  50782. };
  50783. function computeAriaSelected(element) {
  50784. return element.tagName === "OPTION" ? element.selected : checkBooleanAttribute(element, "aria-selected");
  50785. }
  50786. function computeAriaBusy(element) {
  50787. return element.getAttribute("aria-busy") === "true";
  50788. }
  50789. function computeAriaChecked(element) {
  50790. if (!("indeterminate" in element && element.indeterminate))
  50791. return "checked" in element ? element.checked : checkBooleanAttribute(element, "aria-checked");
  50792. }
  50793. function computeAriaPressed(element) {
  50794. return checkBooleanAttribute(element, "aria-pressed");
  50795. }
  50796. function computeAriaCurrent(element) {
  50797. var _ref9, _checkBooleanAttribut;
  50798. return (_ref9 = (_checkBooleanAttribut = checkBooleanAttribute(element, "aria-current")) != null ? _checkBooleanAttribut : element.getAttribute("aria-current")) != null ? _ref9 : !1;
  50799. }
  50800. function computeAriaExpanded(element) {
  50801. return checkBooleanAttribute(element, "aria-expanded");
  50802. }
  50803. function checkBooleanAttribute(element, attribute) {
  50804. let attributeValue = element.getAttribute(attribute);
  50805. if (attributeValue === "true")
  50806. return !0;
  50807. if (attributeValue === "false")
  50808. return !1;
  50809. }
  50810. function computeHeadingLevel(element) {
  50811. let implicitHeadingLevels = {
  50812. H1: 1,
  50813. H2: 2,
  50814. H3: 3,
  50815. H4: 4,
  50816. H5: 5,
  50817. H6: 6
  50818. };
  50819. return element.getAttribute("aria-level") && Number(element.getAttribute("aria-level")) || implicitHeadingLevels[element.tagName];
  50820. }
  50821. function computeAriaValueNow(element) {
  50822. let valueNow = element.getAttribute("aria-valuenow");
  50823. return valueNow === null ? void 0 : +valueNow;
  50824. }
  50825. function computeAriaValueMax(element) {
  50826. let valueMax = element.getAttribute("aria-valuemax");
  50827. return valueMax === null ? void 0 : +valueMax;
  50828. }
  50829. function computeAriaValueMin(element) {
  50830. let valueMin = element.getAttribute("aria-valuemin");
  50831. return valueMin === null ? void 0 : +valueMin;
  50832. }
  50833. function computeAriaValueText(element) {
  50834. let valueText = element.getAttribute("aria-valuetext");
  50835. return valueText === null ? void 0 : valueText;
  50836. }
  50837. var normalize2 = getDefaultNormalizer();
  50838. function escapeRegExp(string) {
  50839. return string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
  50840. }
  50841. function getRegExpMatcher(string) {
  50842. return new RegExp(escapeRegExp(string.toLowerCase()), "i");
  50843. }
  50844. function makeSuggestion(queryName, element, content, _ref) {
  50845. let {
  50846. variant,
  50847. name
  50848. } = _ref, warning3 = "", queryOptions = {}, queryArgs = [["Role", "TestId"].includes(queryName) ? content : getRegExpMatcher(content)];
  50849. name && (queryOptions.name = getRegExpMatcher(name)), queryName === "Role" && isInaccessible(element) && (queryOptions.hidden = !0, warning3 = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
  50850. If you are using the aria-hidden prop, make sure this is the right choice for your case.
  50851. `), Object.keys(queryOptions).length > 0 && queryArgs.push(queryOptions);
  50852. let queryMethod = variant + "By" + queryName;
  50853. return {
  50854. queryName,
  50855. queryMethod,
  50856. queryArgs,
  50857. variant,
  50858. warning: warning3,
  50859. toString() {
  50860. warning3 && console.warn(warning3);
  50861. let [text, options] = queryArgs;
  50862. return text = typeof text == "string" ? "'" + text + "'" : text, options = options ? ", { " + Object.entries(options).map((_ref2) => {
  50863. let [k, v] = _ref2;
  50864. return k + ": " + v;
  50865. }).join(", ") + " }" : "", queryMethod + "(" + text + options + ")";
  50866. }
  50867. };
  50868. }
  50869. function canSuggest(currentMethod, requestedMethod, data) {
  50870. return data && (!requestedMethod || requestedMethod.toLowerCase() === currentMethod.toLowerCase());
  50871. }
  50872. function getSuggestedQuery(element, variant, method) {
  50873. var _element$getAttribute, _getImplicitAriaRoles;
  50874. if (variant === void 0 && (variant = "get"), element.matches(getConfig2().defaultIgnore))
  50875. return;
  50876. let role = (_element$getAttribute = element.getAttribute("role")) != null ? _element$getAttribute : (_getImplicitAriaRoles = getImplicitAriaRoles2(element)) == null ? void 0 : _getImplicitAriaRoles[0];
  50877. if (role !== "generic" && canSuggest("Role", method, role))
  50878. return makeSuggestion("Role", element, role, {
  50879. variant,
  50880. name: computeAccessibleName2(element, {
  50881. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  50882. })
  50883. });
  50884. let labelText = getLabels3(document, element).map((label) => label.content).join(" ");
  50885. if (canSuggest("LabelText", method, labelText))
  50886. return makeSuggestion("LabelText", element, labelText, {
  50887. variant
  50888. });
  50889. let placeholderText = element.getAttribute("placeholder");
  50890. if (canSuggest("PlaceholderText", method, placeholderText))
  50891. return makeSuggestion("PlaceholderText", element, placeholderText, {
  50892. variant
  50893. });
  50894. let textContent = normalize2(getNodeText(element));
  50895. if (canSuggest("Text", method, textContent))
  50896. return makeSuggestion("Text", element, textContent, {
  50897. variant
  50898. });
  50899. if (canSuggest("DisplayValue", method, element.value))
  50900. return makeSuggestion("DisplayValue", element, normalize2(element.value), {
  50901. variant
  50902. });
  50903. let alt = element.getAttribute("alt");
  50904. if (canSuggest("AltText", method, alt))
  50905. return makeSuggestion("AltText", element, alt, {
  50906. variant
  50907. });
  50908. let title = element.getAttribute("title");
  50909. if (canSuggest("Title", method, title))
  50910. return makeSuggestion("Title", element, title, {
  50911. variant
  50912. });
  50913. let testId = element.getAttribute(getConfig2().testIdAttribute);
  50914. if (canSuggest("TestId", method, testId))
  50915. return makeSuggestion("TestId", element, testId, {
  50916. variant
  50917. });
  50918. }
  50919. function copyStackTrace(target, source) {
  50920. target.stack = source.stack.replace(source.message, target.message);
  50921. }
  50922. function waitFor(callback, _ref) {
  50923. let {
  50924. container = getDocument(),
  50925. timeout = getConfig2().asyncUtilTimeout,
  50926. showOriginalStackTrace = getConfig2().showOriginalStackTrace,
  50927. stackTraceError,
  50928. interval = 50,
  50929. onTimeout = (error) => (Object.defineProperty(error, "message", {
  50930. value: getConfig2().getElementError(error.message, container).message
  50931. }), error),
  50932. mutationObserverOptions = {
  50933. subtree: !0,
  50934. childList: !0,
  50935. attributes: !0,
  50936. characterData: !0
  50937. }
  50938. } = _ref;
  50939. if (typeof callback != "function")
  50940. throw new TypeError("Received `callback` arg must be a function");
  50941. return new Promise(async (resolve, reject) => {
  50942. let lastError, intervalId, observer, finished = !1, promiseStatus = "idle", overallTimeoutTimer = setTimeout(handleTimeout, timeout), usingJestFakeTimers = jestFakeTimersAreEnabled();
  50943. if (usingJestFakeTimers) {
  50944. let {
  50945. unstable_advanceTimersWrapper: advanceTimersWrapper
  50946. } = getConfig2();
  50947. for (checkCallback(); !finished; ) {
  50948. if (!jestFakeTimersAreEnabled()) {
  50949. let error = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
  50950. showOriginalStackTrace || copyStackTrace(error, stackTraceError), reject(error);
  50951. return;
  50952. }
  50953. if (await advanceTimersWrapper(async () => {
  50954. jest.advanceTimersByTime(interval);
  50955. }), finished)
  50956. break;
  50957. checkCallback();
  50958. }
  50959. } else {
  50960. try {
  50961. checkContainerType(container);
  50962. } catch (e) {
  50963. reject(e);
  50964. return;
  50965. }
  50966. intervalId = setInterval(checkRealTimersCallback, interval);
  50967. let {
  50968. MutationObserver: MutationObserver2
  50969. } = getWindowFromNode(container);
  50970. observer = new MutationObserver2(checkRealTimersCallback), observer.observe(container, mutationObserverOptions), checkCallback();
  50971. }
  50972. function onDone(error, result) {
  50973. finished = !0, clearTimeout(overallTimeoutTimer), usingJestFakeTimers || (clearInterval(intervalId), observer.disconnect()), error ? reject(error) : resolve(result);
  50974. }
  50975. function checkRealTimersCallback() {
  50976. if (jestFakeTimersAreEnabled()) {
  50977. let error = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
  50978. return showOriginalStackTrace || copyStackTrace(error, stackTraceError), reject(error);
  50979. } else
  50980. return checkCallback();
  50981. }
  50982. function checkCallback() {
  50983. if (promiseStatus !== "pending")
  50984. try {
  50985. let result = runWithExpensiveErrorDiagnosticsDisabled(callback);
  50986. typeof result?.then == "function" ? (promiseStatus = "pending", result.then((resolvedValue) => {
  50987. promiseStatus = "resolved", onDone(null, resolvedValue);
  50988. }, (rejectedValue) => {
  50989. promiseStatus = "rejected", lastError = rejectedValue;
  50990. })) : onDone(null, result);
  50991. } catch (error) {
  50992. lastError = error;
  50993. }
  50994. }
  50995. function handleTimeout() {
  50996. let error;
  50997. lastError ? (error = lastError, !showOriginalStackTrace && error.name === "TestingLibraryElementError" && copyStackTrace(error, stackTraceError)) : (error = new Error("Timed out in waitFor."), showOriginalStackTrace || copyStackTrace(error, stackTraceError)), onDone(onTimeout(error), null);
  50998. }
  50999. });
  51000. }
  51001. function waitForWrapper(callback, options) {
  51002. let stackTraceError = new Error("STACK_TRACE_MESSAGE");
  51003. return getConfig2().asyncWrapper(() => waitFor(callback, {
  51004. stackTraceError,
  51005. ...options
  51006. }));
  51007. }
  51008. function getElementError(message, container) {
  51009. return getConfig2().getElementError(message, container);
  51010. }
  51011. function getMultipleElementsFoundError(message, container) {
  51012. return getElementError(message + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", container);
  51013. }
  51014. function queryAllByAttribute(attribute, container, text, _temp) {
  51015. let {
  51016. exact = !0,
  51017. collapseWhitespace,
  51018. trim: trim2,
  51019. normalizer
  51020. } = _temp === void 0 ? {} : _temp, matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51021. collapseWhitespace,
  51022. trim: trim2,
  51023. normalizer
  51024. });
  51025. return Array.from(container.querySelectorAll("[" + attribute + "]")).filter((node2) => matcher(node2.getAttribute(attribute), node2, text, matchNormalizer));
  51026. }
  51027. function queryByAttribute(attribute, container, text, options) {
  51028. let els = queryAllByAttribute(attribute, container, text, options);
  51029. if (els.length > 1)
  51030. throw getMultipleElementsFoundError("Found multiple elements by [" + attribute + "=" + text + "]", container);
  51031. return els[0] || null;
  51032. }
  51033. function makeSingleQuery(allQuery, getMultipleError2) {
  51034. return function(container) {
  51035. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
  51036. args[_key - 1] = arguments[_key];
  51037. let els = allQuery(container, ...args);
  51038. if (els.length > 1) {
  51039. let elementStrings = els.map((element) => getElementError(null, element).message).join(`
  51040. `);
  51041. throw getMultipleElementsFoundError(getMultipleError2(container, ...args) + `
  51042. Here are the matching elements:
  51043. ` + elementStrings, container);
  51044. }
  51045. return els[0] || null;
  51046. };
  51047. }
  51048. function getSuggestionError(suggestion, container) {
  51049. return getConfig2().getElementError(`A better query is available, try this:
  51050. ` + suggestion.toString() + `
  51051. `, container);
  51052. }
  51053. function makeGetAllQuery(allQuery, getMissingError2) {
  51054. return function(container) {
  51055. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)
  51056. args[_key2 - 1] = arguments[_key2];
  51057. let els = allQuery(container, ...args);
  51058. if (!els.length)
  51059. throw getConfig2().getElementError(getMissingError2(container, ...args), container);
  51060. return els;
  51061. };
  51062. }
  51063. function makeFindQuery(getter) {
  51064. return (container, text, options, waitForOptions) => waitForWrapper(() => getter(container, text, options), {
  51065. container,
  51066. ...waitForOptions
  51067. });
  51068. }
  51069. var wrapSingleQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
  51070. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++)
  51071. args[_key3 - 1] = arguments[_key3];
  51072. let element = query(container, ...args), [{
  51073. suggest = getConfig2().throwSuggestions
  51074. } = {}] = args.slice(-1);
  51075. if (element && suggest) {
  51076. let suggestion = getSuggestedQuery(element, variant);
  51077. if (suggestion && !queryAllByName.endsWith(suggestion.queryName))
  51078. throw getSuggestionError(suggestion.toString(), container);
  51079. }
  51080. return element;
  51081. }, wrapAllByQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
  51082. for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++)
  51083. args[_key4 - 1] = arguments[_key4];
  51084. let els = query(container, ...args), [{
  51085. suggest = getConfig2().throwSuggestions
  51086. } = {}] = args.slice(-1);
  51087. if (els.length && suggest) {
  51088. let uniqueSuggestionMessages = [...new Set(els.map((element) => {
  51089. var _getSuggestedQuery;
  51090. return (_getSuggestedQuery = getSuggestedQuery(element, variant)) == null ? void 0 : _getSuggestedQuery.toString();
  51091. }))];
  51092. if (
  51093. // only want to suggest if all the els have the same suggestion.
  51094. uniqueSuggestionMessages.length === 1 && !queryAllByName.endsWith(
  51095. // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
  51096. getSuggestedQuery(els[0], variant).queryName
  51097. )
  51098. )
  51099. throw getSuggestionError(uniqueSuggestionMessages[0], container);
  51100. }
  51101. return els;
  51102. };
  51103. function buildQueries(queryAllBy, getMultipleError2, getMissingError2) {
  51104. let queryBy = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy, getMultipleError2), queryAllBy.name, "query"), getAllBy = makeGetAllQuery(queryAllBy, getMissingError2), getBy = makeSingleQuery(getAllBy, getMultipleError2), getByWithSuggestions = wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "get"), getAllWithSuggestions = wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name.replace("query", "get"), "getAll"), findAllBy = makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name, "findAll")), findBy = makeFindQuery(wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "find"));
  51105. return [queryBy, getAllWithSuggestions, getByWithSuggestions, findAllBy, findBy];
  51106. }
  51107. var queryHelpers = Object.freeze({
  51108. __proto__: null,
  51109. getElementError,
  51110. wrapAllByQueryWithSuggestion,
  51111. wrapSingleQueryWithSuggestion,
  51112. getMultipleElementsFoundError,
  51113. queryAllByAttribute,
  51114. queryByAttribute,
  51115. makeSingleQuery,
  51116. makeGetAllQuery,
  51117. makeFindQuery,
  51118. buildQueries
  51119. });
  51120. function queryAllLabels(container) {
  51121. return Array.from(container.querySelectorAll("label,input")).map((node2) => ({
  51122. node: node2,
  51123. textToMatch: getLabelContent(node2)
  51124. })).filter((_ref) => {
  51125. let {
  51126. textToMatch
  51127. } = _ref;
  51128. return textToMatch !== null;
  51129. });
  51130. }
  51131. var queryAllLabelsByText = function(container, text, _temp) {
  51132. let {
  51133. exact = !0,
  51134. trim: trim2,
  51135. collapseWhitespace,
  51136. normalizer
  51137. } = _temp === void 0 ? {} : _temp, matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51138. collapseWhitespace,
  51139. trim: trim2,
  51140. normalizer
  51141. });
  51142. return queryAllLabels(container).filter((_ref2) => {
  51143. let {
  51144. node: node2,
  51145. textToMatch
  51146. } = _ref2;
  51147. return matcher(textToMatch, node2, text, matchNormalizer);
  51148. }).map((_ref3) => {
  51149. let {
  51150. node: node2
  51151. } = _ref3;
  51152. return node2;
  51153. });
  51154. }, queryAllByLabelText = function(container, text, _temp2) {
  51155. let {
  51156. selector = "*",
  51157. exact = !0,
  51158. collapseWhitespace,
  51159. trim: trim2,
  51160. normalizer
  51161. } = _temp2 === void 0 ? {} : _temp2;
  51162. checkContainerType(container);
  51163. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51164. collapseWhitespace,
  51165. trim: trim2,
  51166. normalizer
  51167. }), matchingLabelledElements = Array.from(container.querySelectorAll("*")).filter((element) => getRealLabels(element).length || element.hasAttribute("aria-labelledby")).reduce((labelledElements, labelledElement) => {
  51168. let labelList = getLabels3(container, labelledElement, {
  51169. selector
  51170. });
  51171. labelList.filter((label) => !!label.formControl).forEach((label) => {
  51172. matcher(label.content, label.formControl, text, matchNormalizer) && label.formControl && labelledElements.push(label.formControl);
  51173. });
  51174. let labelsValue = labelList.filter((label) => !!label.content).map((label) => label.content);
  51175. return matcher(labelsValue.join(" "), labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement), labelsValue.length > 1 && labelsValue.forEach((labelValue, index4) => {
  51176. matcher(labelValue, labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement);
  51177. let labelsFiltered = [...labelsValue];
  51178. labelsFiltered.splice(index4, 1), labelsFiltered.length > 1 && matcher(labelsFiltered.join(" "), labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement);
  51179. }), labelledElements;
  51180. }, []).concat(queryAllByAttribute("aria-label", container, text, {
  51181. exact,
  51182. normalizer: matchNormalizer
  51183. }));
  51184. return Array.from(new Set(matchingLabelledElements)).filter((element) => element.matches(selector));
  51185. }, getAllByLabelText = function(container, text) {
  51186. for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)
  51187. rest[_key - 2] = arguments[_key];
  51188. let els = queryAllByLabelText(container, text, ...rest);
  51189. if (!els.length) {
  51190. let labels = queryAllLabelsByText(container, text, ...rest);
  51191. if (labels.length) {
  51192. let tagNames = labels.map((label) => getTagNameOfElementAssociatedWithLabelViaFor(container, label)).filter((tagName) => !!tagName);
  51193. throw tagNames.length ? getConfig2().getElementError(tagNames.map((tagName) => "Found a label with the text of: " + text + ", however the element associated with this label (<" + tagName + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + tagName + " />, you can use aria-label or aria-labelledby instead.").join(`
  51194. `), container) : getConfig2().getElementError("Found a label with the text of: " + text + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, container);
  51195. } else
  51196. throw getConfig2().getElementError("Unable to find a label with the text of: " + text, container);
  51197. }
  51198. return els;
  51199. };
  51200. function getTagNameOfElementAssociatedWithLabelViaFor(container, label) {
  51201. let htmlFor = label.getAttribute("for");
  51202. if (!htmlFor)
  51203. return null;
  51204. let element = container.querySelector('[id="' + htmlFor + '"]');
  51205. return element ? element.tagName.toLowerCase() : null;
  51206. }
  51207. var getMultipleError$7 = (c, text) => "Found multiple elements with the text of: " + text, queryByLabelText = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText, getMultipleError$7), queryAllByLabelText.name, "query"), getByLabelText = makeSingleQuery(getAllByLabelText, getMultipleError$7), findAllByLabelText = makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "findAll")), findByLabelText = makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "find")), getAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "getAll"), getByLabelTextWithSuggestions = wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "get"), queryAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByLabelText, queryAllByLabelText.name, "queryAll"), queryAllByPlaceholderText = function() {
  51208. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  51209. args[_key] = arguments[_key];
  51210. return checkContainerType(args[0]), queryAllByAttribute("placeholder", ...args);
  51211. }, getMultipleError$6 = (c, text) => "Found multiple elements with the placeholder text of: " + text, getMissingError$6 = (c, text) => "Unable to find an element with the placeholder text of: " + text, queryAllByPlaceholderTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByPlaceholderText, queryAllByPlaceholderText.name, "queryAll"), [queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText] = buildQueries(queryAllByPlaceholderText, getMultipleError$6, getMissingError$6), queryAllByText = function(container, text, _temp) {
  51212. let {
  51213. selector = "*",
  51214. exact = !0,
  51215. collapseWhitespace,
  51216. trim: trim2,
  51217. ignore = getConfig2().defaultIgnore,
  51218. normalizer
  51219. } = _temp === void 0 ? {} : _temp;
  51220. checkContainerType(container);
  51221. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51222. collapseWhitespace,
  51223. trim: trim2,
  51224. normalizer
  51225. }), baseArray = [];
  51226. return typeof container.matches == "function" && container.matches(selector) && (baseArray = [container]), [...baseArray, ...Array.from(container.querySelectorAll(selector))].filter((node2) => !ignore || !node2.matches(ignore)).filter((node2) => matcher(getNodeText(node2), node2, text, matchNormalizer));
  51227. }, getMultipleError$5 = (c, text) => "Found multiple elements with the text: " + text, getMissingError$5 = function(c, text, options) {
  51228. options === void 0 && (options = {});
  51229. let {
  51230. collapseWhitespace,
  51231. trim: trim2,
  51232. normalizer,
  51233. selector
  51234. } = options, normalizedText = makeNormalizer({
  51235. collapseWhitespace,
  51236. trim: trim2,
  51237. normalizer
  51238. })(text.toString()), isNormalizedDifferent = normalizedText !== text.toString(), isCustomSelector = (selector ?? "*") !== "*";
  51239. return "Unable to find an element with the text: " + (isNormalizedDifferent ? normalizedText + " (normalized from '" + text + "')" : text) + (isCustomSelector ? ", which matches selector '" + selector + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
  51240. }, queryAllByTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByText, queryAllByText.name, "queryAll"), [queryByText, getAllByText, getByText, findAllByText, findByText] = buildQueries(queryAllByText, getMultipleError$5, getMissingError$5), queryAllByDisplayValue = function(container, value, _temp) {
  51241. let {
  51242. exact = !0,
  51243. collapseWhitespace,
  51244. trim: trim2,
  51245. normalizer
  51246. } = _temp === void 0 ? {} : _temp;
  51247. checkContainerType(container);
  51248. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51249. collapseWhitespace,
  51250. trim: trim2,
  51251. normalizer
  51252. });
  51253. return Array.from(container.querySelectorAll("input,textarea,select")).filter((node2) => node2.tagName === "SELECT" ? Array.from(node2.options).filter((option) => option.selected).some((optionNode) => matcher(getNodeText(optionNode), optionNode, value, matchNormalizer)) : matcher(node2.value, node2, value, matchNormalizer));
  51254. }, getMultipleError$4 = (c, value) => "Found multiple elements with the display value: " + value + ".", getMissingError$4 = (c, value) => "Unable to find an element with the display value: " + value + ".", queryAllByDisplayValueWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByDisplayValue, queryAllByDisplayValue.name, "queryAll"), [queryByDisplayValue, getAllByDisplayValue, getByDisplayValue, findAllByDisplayValue, findByDisplayValue] = buildQueries(queryAllByDisplayValue, getMultipleError$4, getMissingError$4), VALID_TAG_REGEXP = /^(img|input|area|.+-.+)$/i, queryAllByAltText = function(container, alt, options) {
  51255. return options === void 0 && (options = {}), checkContainerType(container), queryAllByAttribute("alt", container, alt, options).filter((node2) => VALID_TAG_REGEXP.test(node2.tagName));
  51256. }, getMultipleError$3 = (c, alt) => "Found multiple elements with the alt text: " + alt, getMissingError$3 = (c, alt) => "Unable to find an element with the alt text: " + alt, queryAllByAltTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByAltText, queryAllByAltText.name, "queryAll"), [queryByAltText, getAllByAltText, getByAltText, findAllByAltText, findByAltText] = buildQueries(queryAllByAltText, getMultipleError$3, getMissingError$3), isSvgTitle = (node2) => {
  51257. var _node$parentElement;
  51258. return node2.tagName.toLowerCase() === "title" && ((_node$parentElement = node2.parentElement) == null ? void 0 : _node$parentElement.tagName.toLowerCase()) === "svg";
  51259. }, queryAllByTitle = function(container, text, _temp) {
  51260. let {
  51261. exact = !0,
  51262. collapseWhitespace,
  51263. trim: trim2,
  51264. normalizer
  51265. } = _temp === void 0 ? {} : _temp;
  51266. checkContainerType(container);
  51267. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51268. collapseWhitespace,
  51269. trim: trim2,
  51270. normalizer
  51271. });
  51272. return Array.from(container.querySelectorAll("[title], svg > title")).filter((node2) => matcher(node2.getAttribute("title"), node2, text, matchNormalizer) || isSvgTitle(node2) && matcher(getNodeText(node2), node2, text, matchNormalizer));
  51273. }, getMultipleError$2 = (c, title) => "Found multiple elements with the title: " + title + ".", getMissingError$2 = (c, title) => "Unable to find an element with the title: " + title + ".", queryAllByTitleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTitle, queryAllByTitle.name, "queryAll"), [queryByTitle, getAllByTitle, getByTitle, findAllByTitle, findByTitle] = buildQueries(queryAllByTitle, getMultipleError$2, getMissingError$2), queryAllByRole = function(container, role, _temp) {
  51274. let {
  51275. hidden = getConfig2().defaultHidden,
  51276. name,
  51277. description,
  51278. queryFallbacks = !1,
  51279. selected,
  51280. busy,
  51281. checked,
  51282. pressed,
  51283. current,
  51284. level,
  51285. expanded,
  51286. value: {
  51287. now: valueNow,
  51288. min: valueMin,
  51289. max: valueMax,
  51290. text: valueText
  51291. } = {}
  51292. } = _temp === void 0 ? {} : _temp;
  51293. if (checkContainerType(container), selected !== void 0) {
  51294. var _allRoles$get;
  51295. if (((_allRoles$get = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get.props["aria-selected"]) === void 0)
  51296. throw new Error('"aria-selected" is not supported on role "' + role + '".');
  51297. }
  51298. if (busy !== void 0) {
  51299. var _allRoles$get2;
  51300. if (((_allRoles$get2 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get2.props["aria-busy"]) === void 0)
  51301. throw new Error('"aria-busy" is not supported on role "' + role + '".');
  51302. }
  51303. if (checked !== void 0) {
  51304. var _allRoles$get3;
  51305. if (((_allRoles$get3 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get3.props["aria-checked"]) === void 0)
  51306. throw new Error('"aria-checked" is not supported on role "' + role + '".');
  51307. }
  51308. if (pressed !== void 0) {
  51309. var _allRoles$get4;
  51310. if (((_allRoles$get4 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get4.props["aria-pressed"]) === void 0)
  51311. throw new Error('"aria-pressed" is not supported on role "' + role + '".');
  51312. }
  51313. if (current !== void 0) {
  51314. var _allRoles$get5;
  51315. if (((_allRoles$get5 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get5.props["aria-current"]) === void 0)
  51316. throw new Error('"aria-current" is not supported on role "' + role + '".');
  51317. }
  51318. if (level !== void 0 && role !== "heading")
  51319. throw new Error('Role "' + role + '" cannot have "level" property.');
  51320. if (valueNow !== void 0) {
  51321. var _allRoles$get6;
  51322. if (((_allRoles$get6 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get6.props["aria-valuenow"]) === void 0)
  51323. throw new Error('"aria-valuenow" is not supported on role "' + role + '".');
  51324. }
  51325. if (valueMax !== void 0) {
  51326. var _allRoles$get7;
  51327. if (((_allRoles$get7 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get7.props["aria-valuemax"]) === void 0)
  51328. throw new Error('"aria-valuemax" is not supported on role "' + role + '".');
  51329. }
  51330. if (valueMin !== void 0) {
  51331. var _allRoles$get8;
  51332. if (((_allRoles$get8 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get8.props["aria-valuemin"]) === void 0)
  51333. throw new Error('"aria-valuemin" is not supported on role "' + role + '".');
  51334. }
  51335. if (valueText !== void 0) {
  51336. var _allRoles$get9;
  51337. if (((_allRoles$get9 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get9.props["aria-valuetext"]) === void 0)
  51338. throw new Error('"aria-valuetext" is not supported on role "' + role + '".');
  51339. }
  51340. if (expanded !== void 0) {
  51341. var _allRoles$get0;
  51342. if (((_allRoles$get0 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get0.props["aria-expanded"]) === void 0)
  51343. throw new Error('"aria-expanded" is not supported on role "' + role + '".');
  51344. }
  51345. let subtreeIsInaccessibleCache = /* @__PURE__ */ new WeakMap();
  51346. function cachedIsSubtreeInaccessible(element) {
  51347. return subtreeIsInaccessibleCache.has(element) || subtreeIsInaccessibleCache.set(element, isSubtreeInaccessible(element)), subtreeIsInaccessibleCache.get(element);
  51348. }
  51349. return Array.from(container.querySelectorAll(
  51350. // Only query elements that can be matched by the following filters
  51351. makeRoleSelector(role)
  51352. )).filter((node2) => {
  51353. if (node2.hasAttribute("role")) {
  51354. let roleValue = node2.getAttribute("role");
  51355. if (queryFallbacks)
  51356. return roleValue.split(" ").filter(Boolean).some((roleAttributeToken) => roleAttributeToken === role);
  51357. let [firstRoleAttributeToken] = roleValue.split(" ");
  51358. return firstRoleAttributeToken === role;
  51359. }
  51360. return getImplicitAriaRoles2(node2).some((implicitRole) => implicitRole === role);
  51361. }).filter((element) => {
  51362. if (selected !== void 0)
  51363. return selected === computeAriaSelected(element);
  51364. if (busy !== void 0)
  51365. return busy === computeAriaBusy(element);
  51366. if (checked !== void 0)
  51367. return checked === computeAriaChecked(element);
  51368. if (pressed !== void 0)
  51369. return pressed === computeAriaPressed(element);
  51370. if (current !== void 0)
  51371. return current === computeAriaCurrent(element);
  51372. if (expanded !== void 0)
  51373. return expanded === computeAriaExpanded(element);
  51374. if (level !== void 0)
  51375. return level === computeHeadingLevel(element);
  51376. if (valueNow !== void 0 || valueMax !== void 0 || valueMin !== void 0 || valueText !== void 0) {
  51377. let valueMatches = !0;
  51378. if (valueNow !== void 0 && valueMatches && (valueMatches = valueNow === computeAriaValueNow(element)), valueMax !== void 0 && valueMatches && (valueMatches = valueMax === computeAriaValueMax(element)), valueMin !== void 0 && valueMatches && (valueMatches = valueMin === computeAriaValueMin(element)), valueText !== void 0) {
  51379. var _computeAriaValueText;
  51380. valueMatches && (valueMatches = matches3((_computeAriaValueText = computeAriaValueText(element)) != null ? _computeAriaValueText : null, element, valueText, (text) => text));
  51381. }
  51382. return valueMatches;
  51383. }
  51384. return !0;
  51385. }).filter((element) => name === void 0 ? !0 : matches3(computeAccessibleName2(element, {
  51386. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  51387. }), element, name, (text) => text)).filter((element) => description === void 0 ? !0 : matches3(computeAccessibleDescription2(element, {
  51388. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  51389. }), element, description, (text) => text)).filter((element) => hidden === !1 ? isInaccessible(element, {
  51390. isSubtreeInaccessible: cachedIsSubtreeInaccessible
  51391. }) === !1 : !0);
  51392. };
  51393. function makeRoleSelector(role) {
  51394. var _roleElements$get;
  51395. let explicitRoleSelector = '*[role~="' + role + '"]', roleRelations = (_roleElements$get = import_aria_query3.roleElements.get(role)) != null ? _roleElements$get : /* @__PURE__ */ new Set(), implicitRoleSelectors = new Set(Array.from(roleRelations).map((_ref) => {
  51396. let {
  51397. name
  51398. } = _ref;
  51399. return name;
  51400. }));
  51401. return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(",");
  51402. }
  51403. var getNameHint = (name) => {
  51404. let nameHint = "";
  51405. return name === void 0 ? nameHint = "" : typeof name == "string" ? nameHint = ' and name "' + name + '"' : nameHint = " and name `" + name + "`", nameHint;
  51406. }, getMultipleError$1 = function(c, role, _temp2) {
  51407. let {
  51408. name
  51409. } = _temp2 === void 0 ? {} : _temp2;
  51410. return 'Found multiple elements with the role "' + role + '"' + getNameHint(name);
  51411. }, getMissingError$1 = function(container, role, _temp3) {
  51412. let {
  51413. hidden = getConfig2().defaultHidden,
  51414. name,
  51415. description
  51416. } = _temp3 === void 0 ? {} : _temp3;
  51417. if (getConfig2()._disableExpensiveErrorDiagnostics)
  51418. return 'Unable to find role="' + role + '"' + getNameHint(name);
  51419. let roles3 = "";
  51420. Array.from(container.children).forEach((childElement) => {
  51421. roles3 += prettyRoles(childElement, {
  51422. hidden,
  51423. includeDescription: description !== void 0
  51424. });
  51425. });
  51426. let roleMessage;
  51427. roles3.length === 0 ? hidden === !1 ? roleMessage = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole" : roleMessage = "There are no available roles." : roleMessage = (`
  51428. Here are the ` + (hidden === !1 ? "accessible" : "available") + ` roles:
  51429. ` + roles3.replace(/\n/g, `
  51430. `).replace(/\n\s\s\n/g, `
  51431. `) + `
  51432. `).trim();
  51433. let nameHint = "";
  51434. name === void 0 ? nameHint = "" : typeof name == "string" ? nameHint = ' and name "' + name + '"' : nameHint = " and name `" + name + "`";
  51435. let descriptionHint = "";
  51436. return description === void 0 ? descriptionHint = "" : typeof description == "string" ? descriptionHint = ' and description "' + description + '"' : descriptionHint = " and description `" + description + "`", (`
  51437. Unable to find an ` + (hidden === !1 ? "accessible " : "") + 'element with the role "' + role + '"' + nameHint + descriptionHint + `
  51438. ` + roleMessage).trim();
  51439. }, queryAllByRoleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByRole, queryAllByRole.name, "queryAll"), [queryByRole, getAllByRole, getByRole, findAllByRole, findByRole] = buildQueries(queryAllByRole, getMultipleError$1, getMissingError$1), getTestIdAttribute = () => getConfig2().testIdAttribute, queryAllByTestId = function() {
  51440. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  51441. args[_key] = arguments[_key];
  51442. return checkContainerType(args[0]), queryAllByAttribute(getTestIdAttribute(), ...args);
  51443. }, getMultipleError = (c, id) => "Found multiple elements by: [" + getTestIdAttribute() + '="' + id + '"]', getMissingError = (c, id) => "Unable to find an element by: [" + getTestIdAttribute() + '="' + id + '"]', queryAllByTestIdWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTestId, queryAllByTestId.name, "queryAll"), [queryByTestId, getAllByTestId, getByTestId, findAllByTestId, findByTestId] = buildQueries(queryAllByTestId, getMultipleError, getMissingError), queries = Object.freeze({
  51444. __proto__: null,
  51445. queryAllByLabelText: queryAllByLabelTextWithSuggestions,
  51446. queryByLabelText,
  51447. getAllByLabelText: getAllByLabelTextWithSuggestions,
  51448. getByLabelText: getByLabelTextWithSuggestions,
  51449. findAllByLabelText,
  51450. findByLabelText,
  51451. queryByPlaceholderText,
  51452. queryAllByPlaceholderText: queryAllByPlaceholderTextWithSuggestions,
  51453. getByPlaceholderText,
  51454. getAllByPlaceholderText,
  51455. findAllByPlaceholderText,
  51456. findByPlaceholderText,
  51457. queryByText,
  51458. queryAllByText: queryAllByTextWithSuggestions,
  51459. getByText,
  51460. getAllByText,
  51461. findAllByText,
  51462. findByText,
  51463. queryByDisplayValue,
  51464. queryAllByDisplayValue: queryAllByDisplayValueWithSuggestions,
  51465. getByDisplayValue,
  51466. getAllByDisplayValue,
  51467. findAllByDisplayValue,
  51468. findByDisplayValue,
  51469. queryByAltText,
  51470. queryAllByAltText: queryAllByAltTextWithSuggestions,
  51471. getByAltText,
  51472. getAllByAltText,
  51473. findAllByAltText,
  51474. findByAltText,
  51475. queryByTitle,
  51476. queryAllByTitle: queryAllByTitleWithSuggestions,
  51477. getByTitle,
  51478. getAllByTitle,
  51479. findAllByTitle,
  51480. findByTitle,
  51481. queryByRole,
  51482. queryAllByRole: queryAllByRoleWithSuggestions,
  51483. getAllByRole,
  51484. getByRole,
  51485. findAllByRole,
  51486. findByRole,
  51487. queryByTestId,
  51488. queryAllByTestId: queryAllByTestIdWithSuggestions,
  51489. getByTestId,
  51490. getAllByTestId,
  51491. findAllByTestId,
  51492. findByTestId
  51493. });
  51494. function getQueriesForElement(element, queries$1, initialValue2) {
  51495. return queries$1 === void 0 && (queries$1 = queries), initialValue2 === void 0 && (initialValue2 = {}), Object.keys(queries$1).reduce((helpers, key) => {
  51496. let fn4 = queries$1[key];
  51497. return helpers[key] = fn4.bind(null, element), helpers;
  51498. }, initialValue2);
  51499. }
  51500. var isRemoved = (result) => !result || Array.isArray(result) && !result.length;
  51501. function initialCheck(elements) {
  51502. if (isRemoved(elements))
  51503. throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.");
  51504. }
  51505. async function waitForElementToBeRemoved(callback, options) {
  51506. let timeoutError = new Error("Timed out in waitForElementToBeRemoved.");
  51507. if (typeof callback != "function") {
  51508. initialCheck(callback);
  51509. let getRemainingElements = (Array.isArray(callback) ? callback : [callback]).map((element) => {
  51510. let parent = element.parentElement;
  51511. if (parent === null) return () => null;
  51512. for (; parent.parentElement; ) parent = parent.parentElement;
  51513. return () => parent.contains(element) ? element : null;
  51514. });
  51515. callback = () => getRemainingElements.map((c) => c()).filter(Boolean);
  51516. }
  51517. return initialCheck(callback()), waitForWrapper(() => {
  51518. let result;
  51519. try {
  51520. result = callback();
  51521. } catch (error) {
  51522. if (error.name === "TestingLibraryElementError")
  51523. return;
  51524. throw error;
  51525. }
  51526. if (!isRemoved(result))
  51527. throw timeoutError;
  51528. }, options);
  51529. }
  51530. var eventMap = {
  51531. // Clipboard Events
  51532. copy: {
  51533. EventType: "ClipboardEvent",
  51534. defaultInit: {
  51535. bubbles: !0,
  51536. cancelable: !0,
  51537. composed: !0
  51538. }
  51539. },
  51540. cut: {
  51541. EventType: "ClipboardEvent",
  51542. defaultInit: {
  51543. bubbles: !0,
  51544. cancelable: !0,
  51545. composed: !0
  51546. }
  51547. },
  51548. paste: {
  51549. EventType: "ClipboardEvent",
  51550. defaultInit: {
  51551. bubbles: !0,
  51552. cancelable: !0,
  51553. composed: !0
  51554. }
  51555. },
  51556. // Composition Events
  51557. compositionEnd: {
  51558. EventType: "CompositionEvent",
  51559. defaultInit: {
  51560. bubbles: !0,
  51561. cancelable: !0,
  51562. composed: !0
  51563. }
  51564. },
  51565. compositionStart: {
  51566. EventType: "CompositionEvent",
  51567. defaultInit: {
  51568. bubbles: !0,
  51569. cancelable: !0,
  51570. composed: !0
  51571. }
  51572. },
  51573. compositionUpdate: {
  51574. EventType: "CompositionEvent",
  51575. defaultInit: {
  51576. bubbles: !0,
  51577. cancelable: !0,
  51578. composed: !0
  51579. }
  51580. },
  51581. // Keyboard Events
  51582. keyDown: {
  51583. EventType: "KeyboardEvent",
  51584. defaultInit: {
  51585. bubbles: !0,
  51586. cancelable: !0,
  51587. charCode: 0,
  51588. composed: !0
  51589. }
  51590. },
  51591. keyPress: {
  51592. EventType: "KeyboardEvent",
  51593. defaultInit: {
  51594. bubbles: !0,
  51595. cancelable: !0,
  51596. charCode: 0,
  51597. composed: !0
  51598. }
  51599. },
  51600. keyUp: {
  51601. EventType: "KeyboardEvent",
  51602. defaultInit: {
  51603. bubbles: !0,
  51604. cancelable: !0,
  51605. charCode: 0,
  51606. composed: !0
  51607. }
  51608. },
  51609. // Focus Events
  51610. focus: {
  51611. EventType: "FocusEvent",
  51612. defaultInit: {
  51613. bubbles: !1,
  51614. cancelable: !1,
  51615. composed: !0
  51616. }
  51617. },
  51618. blur: {
  51619. EventType: "FocusEvent",
  51620. defaultInit: {
  51621. bubbles: !1,
  51622. cancelable: !1,
  51623. composed: !0
  51624. }
  51625. },
  51626. focusIn: {
  51627. EventType: "FocusEvent",
  51628. defaultInit: {
  51629. bubbles: !0,
  51630. cancelable: !1,
  51631. composed: !0
  51632. }
  51633. },
  51634. focusOut: {
  51635. EventType: "FocusEvent",
  51636. defaultInit: {
  51637. bubbles: !0,
  51638. cancelable: !1,
  51639. composed: !0
  51640. }
  51641. },
  51642. // Form Events
  51643. change: {
  51644. EventType: "Event",
  51645. defaultInit: {
  51646. bubbles: !0,
  51647. cancelable: !1
  51648. }
  51649. },
  51650. input: {
  51651. EventType: "InputEvent",
  51652. defaultInit: {
  51653. bubbles: !0,
  51654. cancelable: !1,
  51655. composed: !0
  51656. }
  51657. },
  51658. invalid: {
  51659. EventType: "Event",
  51660. defaultInit: {
  51661. bubbles: !1,
  51662. cancelable: !0
  51663. }
  51664. },
  51665. submit: {
  51666. EventType: "Event",
  51667. defaultInit: {
  51668. bubbles: !0,
  51669. cancelable: !0
  51670. }
  51671. },
  51672. reset: {
  51673. EventType: "Event",
  51674. defaultInit: {
  51675. bubbles: !0,
  51676. cancelable: !0
  51677. }
  51678. },
  51679. // Mouse Events
  51680. click: {
  51681. EventType: "MouseEvent",
  51682. defaultInit: {
  51683. bubbles: !0,
  51684. cancelable: !0,
  51685. button: 0,
  51686. composed: !0
  51687. }
  51688. },
  51689. contextMenu: {
  51690. EventType: "MouseEvent",
  51691. defaultInit: {
  51692. bubbles: !0,
  51693. cancelable: !0,
  51694. composed: !0
  51695. }
  51696. },
  51697. dblClick: {
  51698. EventType: "MouseEvent",
  51699. defaultInit: {
  51700. bubbles: !0,
  51701. cancelable: !0,
  51702. composed: !0
  51703. }
  51704. },
  51705. drag: {
  51706. EventType: "DragEvent",
  51707. defaultInit: {
  51708. bubbles: !0,
  51709. cancelable: !0,
  51710. composed: !0
  51711. }
  51712. },
  51713. dragEnd: {
  51714. EventType: "DragEvent",
  51715. defaultInit: {
  51716. bubbles: !0,
  51717. cancelable: !1,
  51718. composed: !0
  51719. }
  51720. },
  51721. dragEnter: {
  51722. EventType: "DragEvent",
  51723. defaultInit: {
  51724. bubbles: !0,
  51725. cancelable: !0,
  51726. composed: !0
  51727. }
  51728. },
  51729. dragExit: {
  51730. EventType: "DragEvent",
  51731. defaultInit: {
  51732. bubbles: !0,
  51733. cancelable: !1,
  51734. composed: !0
  51735. }
  51736. },
  51737. dragLeave: {
  51738. EventType: "DragEvent",
  51739. defaultInit: {
  51740. bubbles: !0,
  51741. cancelable: !1,
  51742. composed: !0
  51743. }
  51744. },
  51745. dragOver: {
  51746. EventType: "DragEvent",
  51747. defaultInit: {
  51748. bubbles: !0,
  51749. cancelable: !0,
  51750. composed: !0
  51751. }
  51752. },
  51753. dragStart: {
  51754. EventType: "DragEvent",
  51755. defaultInit: {
  51756. bubbles: !0,
  51757. cancelable: !0,
  51758. composed: !0
  51759. }
  51760. },
  51761. drop: {
  51762. EventType: "DragEvent",
  51763. defaultInit: {
  51764. bubbles: !0,
  51765. cancelable: !0,
  51766. composed: !0
  51767. }
  51768. },
  51769. mouseDown: {
  51770. EventType: "MouseEvent",
  51771. defaultInit: {
  51772. bubbles: !0,
  51773. cancelable: !0,
  51774. composed: !0
  51775. }
  51776. },
  51777. mouseEnter: {
  51778. EventType: "MouseEvent",
  51779. defaultInit: {
  51780. bubbles: !1,
  51781. cancelable: !1,
  51782. composed: !0
  51783. }
  51784. },
  51785. mouseLeave: {
  51786. EventType: "MouseEvent",
  51787. defaultInit: {
  51788. bubbles: !1,
  51789. cancelable: !1,
  51790. composed: !0
  51791. }
  51792. },
  51793. mouseMove: {
  51794. EventType: "MouseEvent",
  51795. defaultInit: {
  51796. bubbles: !0,
  51797. cancelable: !0,
  51798. composed: !0
  51799. }
  51800. },
  51801. mouseOut: {
  51802. EventType: "MouseEvent",
  51803. defaultInit: {
  51804. bubbles: !0,
  51805. cancelable: !0,
  51806. composed: !0
  51807. }
  51808. },
  51809. mouseOver: {
  51810. EventType: "MouseEvent",
  51811. defaultInit: {
  51812. bubbles: !0,
  51813. cancelable: !0,
  51814. composed: !0
  51815. }
  51816. },
  51817. mouseUp: {
  51818. EventType: "MouseEvent",
  51819. defaultInit: {
  51820. bubbles: !0,
  51821. cancelable: !0,
  51822. composed: !0
  51823. }
  51824. },
  51825. // Selection Events
  51826. select: {
  51827. EventType: "Event",
  51828. defaultInit: {
  51829. bubbles: !0,
  51830. cancelable: !1
  51831. }
  51832. },
  51833. // Touch Events
  51834. touchCancel: {
  51835. EventType: "TouchEvent",
  51836. defaultInit: {
  51837. bubbles: !0,
  51838. cancelable: !1,
  51839. composed: !0
  51840. }
  51841. },
  51842. touchEnd: {
  51843. EventType: "TouchEvent",
  51844. defaultInit: {
  51845. bubbles: !0,
  51846. cancelable: !0,
  51847. composed: !0
  51848. }
  51849. },
  51850. touchMove: {
  51851. EventType: "TouchEvent",
  51852. defaultInit: {
  51853. bubbles: !0,
  51854. cancelable: !0,
  51855. composed: !0
  51856. }
  51857. },
  51858. touchStart: {
  51859. EventType: "TouchEvent",
  51860. defaultInit: {
  51861. bubbles: !0,
  51862. cancelable: !0,
  51863. composed: !0
  51864. }
  51865. },
  51866. // UI Events
  51867. resize: {
  51868. EventType: "UIEvent",
  51869. defaultInit: {
  51870. bubbles: !1,
  51871. cancelable: !1
  51872. }
  51873. },
  51874. scroll: {
  51875. EventType: "UIEvent",
  51876. defaultInit: {
  51877. bubbles: !1,
  51878. cancelable: !1
  51879. }
  51880. },
  51881. // Wheel Events
  51882. wheel: {
  51883. EventType: "WheelEvent",
  51884. defaultInit: {
  51885. bubbles: !0,
  51886. cancelable: !0,
  51887. composed: !0
  51888. }
  51889. },
  51890. // Media Events
  51891. abort: {
  51892. EventType: "Event",
  51893. defaultInit: {
  51894. bubbles: !1,
  51895. cancelable: !1
  51896. }
  51897. },
  51898. canPlay: {
  51899. EventType: "Event",
  51900. defaultInit: {
  51901. bubbles: !1,
  51902. cancelable: !1
  51903. }
  51904. },
  51905. canPlayThrough: {
  51906. EventType: "Event",
  51907. defaultInit: {
  51908. bubbles: !1,
  51909. cancelable: !1
  51910. }
  51911. },
  51912. durationChange: {
  51913. EventType: "Event",
  51914. defaultInit: {
  51915. bubbles: !1,
  51916. cancelable: !1
  51917. }
  51918. },
  51919. emptied: {
  51920. EventType: "Event",
  51921. defaultInit: {
  51922. bubbles: !1,
  51923. cancelable: !1
  51924. }
  51925. },
  51926. encrypted: {
  51927. EventType: "Event",
  51928. defaultInit: {
  51929. bubbles: !1,
  51930. cancelable: !1
  51931. }
  51932. },
  51933. ended: {
  51934. EventType: "Event",
  51935. defaultInit: {
  51936. bubbles: !1,
  51937. cancelable: !1
  51938. }
  51939. },
  51940. loadedData: {
  51941. EventType: "Event",
  51942. defaultInit: {
  51943. bubbles: !1,
  51944. cancelable: !1
  51945. }
  51946. },
  51947. loadedMetadata: {
  51948. EventType: "Event",
  51949. defaultInit: {
  51950. bubbles: !1,
  51951. cancelable: !1
  51952. }
  51953. },
  51954. loadStart: {
  51955. EventType: "ProgressEvent",
  51956. defaultInit: {
  51957. bubbles: !1,
  51958. cancelable: !1
  51959. }
  51960. },
  51961. pause: {
  51962. EventType: "Event",
  51963. defaultInit: {
  51964. bubbles: !1,
  51965. cancelable: !1
  51966. }
  51967. },
  51968. play: {
  51969. EventType: "Event",
  51970. defaultInit: {
  51971. bubbles: !1,
  51972. cancelable: !1
  51973. }
  51974. },
  51975. playing: {
  51976. EventType: "Event",
  51977. defaultInit: {
  51978. bubbles: !1,
  51979. cancelable: !1
  51980. }
  51981. },
  51982. progress: {
  51983. EventType: "ProgressEvent",
  51984. defaultInit: {
  51985. bubbles: !1,
  51986. cancelable: !1
  51987. }
  51988. },
  51989. rateChange: {
  51990. EventType: "Event",
  51991. defaultInit: {
  51992. bubbles: !1,
  51993. cancelable: !1
  51994. }
  51995. },
  51996. seeked: {
  51997. EventType: "Event",
  51998. defaultInit: {
  51999. bubbles: !1,
  52000. cancelable: !1
  52001. }
  52002. },
  52003. seeking: {
  52004. EventType: "Event",
  52005. defaultInit: {
  52006. bubbles: !1,
  52007. cancelable: !1
  52008. }
  52009. },
  52010. stalled: {
  52011. EventType: "Event",
  52012. defaultInit: {
  52013. bubbles: !1,
  52014. cancelable: !1
  52015. }
  52016. },
  52017. suspend: {
  52018. EventType: "Event",
  52019. defaultInit: {
  52020. bubbles: !1,
  52021. cancelable: !1
  52022. }
  52023. },
  52024. timeUpdate: {
  52025. EventType: "Event",
  52026. defaultInit: {
  52027. bubbles: !1,
  52028. cancelable: !1
  52029. }
  52030. },
  52031. volumeChange: {
  52032. EventType: "Event",
  52033. defaultInit: {
  52034. bubbles: !1,
  52035. cancelable: !1
  52036. }
  52037. },
  52038. waiting: {
  52039. EventType: "Event",
  52040. defaultInit: {
  52041. bubbles: !1,
  52042. cancelable: !1
  52043. }
  52044. },
  52045. // Events
  52046. load: {
  52047. // TODO: load events can be UIEvent or Event depending on what generated them
  52048. // This is where this abstraction breaks down.
  52049. // But the common targets are <img />, <script /> and window.
  52050. // Neither of these targets receive a UIEvent
  52051. EventType: "Event",
  52052. defaultInit: {
  52053. bubbles: !1,
  52054. cancelable: !1
  52055. }
  52056. },
  52057. error: {
  52058. EventType: "Event",
  52059. defaultInit: {
  52060. bubbles: !1,
  52061. cancelable: !1
  52062. }
  52063. },
  52064. // Animation Events
  52065. animationStart: {
  52066. EventType: "AnimationEvent",
  52067. defaultInit: {
  52068. bubbles: !0,
  52069. cancelable: !1
  52070. }
  52071. },
  52072. animationEnd: {
  52073. EventType: "AnimationEvent",
  52074. defaultInit: {
  52075. bubbles: !0,
  52076. cancelable: !1
  52077. }
  52078. },
  52079. animationIteration: {
  52080. EventType: "AnimationEvent",
  52081. defaultInit: {
  52082. bubbles: !0,
  52083. cancelable: !1
  52084. }
  52085. },
  52086. // Transition Events
  52087. transitionCancel: {
  52088. EventType: "TransitionEvent",
  52089. defaultInit: {
  52090. bubbles: !0,
  52091. cancelable: !1
  52092. }
  52093. },
  52094. transitionEnd: {
  52095. EventType: "TransitionEvent",
  52096. defaultInit: {
  52097. bubbles: !0,
  52098. cancelable: !0
  52099. }
  52100. },
  52101. transitionRun: {
  52102. EventType: "TransitionEvent",
  52103. defaultInit: {
  52104. bubbles: !0,
  52105. cancelable: !1
  52106. }
  52107. },
  52108. transitionStart: {
  52109. EventType: "TransitionEvent",
  52110. defaultInit: {
  52111. bubbles: !0,
  52112. cancelable: !1
  52113. }
  52114. },
  52115. // pointer events
  52116. pointerOver: {
  52117. EventType: "PointerEvent",
  52118. defaultInit: {
  52119. bubbles: !0,
  52120. cancelable: !0,
  52121. composed: !0
  52122. }
  52123. },
  52124. pointerEnter: {
  52125. EventType: "PointerEvent",
  52126. defaultInit: {
  52127. bubbles: !1,
  52128. cancelable: !1
  52129. }
  52130. },
  52131. pointerDown: {
  52132. EventType: "PointerEvent",
  52133. defaultInit: {
  52134. bubbles: !0,
  52135. cancelable: !0,
  52136. composed: !0
  52137. }
  52138. },
  52139. pointerMove: {
  52140. EventType: "PointerEvent",
  52141. defaultInit: {
  52142. bubbles: !0,
  52143. cancelable: !0,
  52144. composed: !0
  52145. }
  52146. },
  52147. pointerUp: {
  52148. EventType: "PointerEvent",
  52149. defaultInit: {
  52150. bubbles: !0,
  52151. cancelable: !0,
  52152. composed: !0
  52153. }
  52154. },
  52155. pointerCancel: {
  52156. EventType: "PointerEvent",
  52157. defaultInit: {
  52158. bubbles: !0,
  52159. cancelable: !1,
  52160. composed: !0
  52161. }
  52162. },
  52163. pointerOut: {
  52164. EventType: "PointerEvent",
  52165. defaultInit: {
  52166. bubbles: !0,
  52167. cancelable: !0,
  52168. composed: !0
  52169. }
  52170. },
  52171. pointerLeave: {
  52172. EventType: "PointerEvent",
  52173. defaultInit: {
  52174. bubbles: !1,
  52175. cancelable: !1
  52176. }
  52177. },
  52178. gotPointerCapture: {
  52179. EventType: "PointerEvent",
  52180. defaultInit: {
  52181. bubbles: !0,
  52182. cancelable: !1,
  52183. composed: !0
  52184. }
  52185. },
  52186. lostPointerCapture: {
  52187. EventType: "PointerEvent",
  52188. defaultInit: {
  52189. bubbles: !0,
  52190. cancelable: !1,
  52191. composed: !0
  52192. }
  52193. },
  52194. // history events
  52195. popState: {
  52196. EventType: "PopStateEvent",
  52197. defaultInit: {
  52198. bubbles: !0,
  52199. cancelable: !1
  52200. }
  52201. },
  52202. // window events
  52203. offline: {
  52204. EventType: "Event",
  52205. defaultInit: {
  52206. bubbles: !1,
  52207. cancelable: !1
  52208. }
  52209. },
  52210. online: {
  52211. EventType: "Event",
  52212. defaultInit: {
  52213. bubbles: !1,
  52214. cancelable: !1
  52215. }
  52216. },
  52217. pageHide: {
  52218. EventType: "PageTransitionEvent",
  52219. defaultInit: {
  52220. bubbles: !0,
  52221. cancelable: !0
  52222. }
  52223. },
  52224. pageShow: {
  52225. EventType: "PageTransitionEvent",
  52226. defaultInit: {
  52227. bubbles: !0,
  52228. cancelable: !0
  52229. }
  52230. }
  52231. }, eventAliasMap = {
  52232. doubleClick: "dblClick"
  52233. };
  52234. function fireEvent(element, event) {
  52235. return getConfig2().eventWrapper(() => {
  52236. if (!event)
  52237. throw new Error("Unable to fire an event - please provide an event object.");
  52238. if (!element)
  52239. throw new Error('Unable to fire a "' + event.type + '" event - please provide a DOM element.');
  52240. return element.dispatchEvent(event);
  52241. });
  52242. }
  52243. function createEvent(eventName, node2, init16, _temp) {
  52244. let {
  52245. EventType = "Event",
  52246. defaultInit = {}
  52247. } = _temp === void 0 ? {} : _temp;
  52248. if (!node2)
  52249. throw new Error('Unable to fire a "' + eventName + '" event - please provide a DOM element.');
  52250. let eventInit = {
  52251. ...defaultInit,
  52252. ...init16
  52253. }, {
  52254. target: {
  52255. value,
  52256. files,
  52257. ...targetProperties
  52258. } = {}
  52259. } = eventInit;
  52260. value !== void 0 && setNativeValue(node2, value), files !== void 0 && Object.defineProperty(node2, "files", {
  52261. configurable: !0,
  52262. enumerable: !0,
  52263. writable: !0,
  52264. value: files
  52265. }), Object.assign(node2, targetProperties);
  52266. let window2 = getWindowFromNode(node2), EventConstructor = window2[EventType] || window2.Event, event;
  52267. if (typeof EventConstructor == "function")
  52268. event = new EventConstructor(eventName, eventInit);
  52269. else {
  52270. event = window2.document.createEvent(EventType);
  52271. let {
  52272. bubbles,
  52273. cancelable,
  52274. detail,
  52275. ...otherInit
  52276. } = eventInit;
  52277. event.initEvent(eventName, bubbles, cancelable, detail), Object.keys(otherInit).forEach((eventKey) => {
  52278. event[eventKey] = otherInit[eventKey];
  52279. });
  52280. }
  52281. return ["dataTransfer", "clipboardData"].forEach((dataTransferKey) => {
  52282. let dataTransferValue = eventInit[dataTransferKey];
  52283. typeof dataTransferValue == "object" && (typeof window2.DataTransfer == "function" ? Object.defineProperty(event, dataTransferKey, {
  52284. value: Object.getOwnPropertyNames(dataTransferValue).reduce((acc, propName) => (Object.defineProperty(acc, propName, {
  52285. value: dataTransferValue[propName]
  52286. }), acc), new window2.DataTransfer())
  52287. }) : Object.defineProperty(event, dataTransferKey, {
  52288. value: dataTransferValue
  52289. }));
  52290. }), event;
  52291. }
  52292. Object.keys(eventMap).forEach((key) => {
  52293. let {
  52294. EventType,
  52295. defaultInit
  52296. } = eventMap[key], eventName = key.toLowerCase();
  52297. createEvent[key] = (node2, init16) => createEvent(eventName, node2, init16, {
  52298. EventType,
  52299. defaultInit
  52300. }), fireEvent[key] = (node2, init16) => fireEvent(node2, createEvent[key](node2, init16));
  52301. });
  52302. function setNativeValue(element, value) {
  52303. let {
  52304. set: valueSetter
  52305. } = Object.getOwnPropertyDescriptor(element, "value") || {}, prototype = Object.getPrototypeOf(element), {
  52306. set: prototypeValueSetter
  52307. } = Object.getOwnPropertyDescriptor(prototype, "value") || {};
  52308. if (prototypeValueSetter && valueSetter !== prototypeValueSetter)
  52309. prototypeValueSetter.call(element, value);
  52310. else if (valueSetter)
  52311. valueSetter.call(element, value);
  52312. else
  52313. throw new Error("The given element does not have a value setter");
  52314. }
  52315. Object.keys(eventAliasMap).forEach((aliasKey) => {
  52316. let key = eventAliasMap[aliasKey];
  52317. fireEvent[aliasKey] = function() {
  52318. return fireEvent[key](...arguments);
  52319. };
  52320. });
  52321. function unindent(string) {
  52322. return string.replace(/[ \t]*[\n][ \t]*/g, `
  52323. `);
  52324. }
  52325. function encode(value) {
  52326. return import_lz_string.default.compressToEncodedURIComponent(unindent(value));
  52327. }
  52328. function getPlaygroundUrl(markup2) {
  52329. return "https://testing-playground.com/#markup=" + encode(markup2);
  52330. }
  52331. var debug = (element, maxLength, options) => Array.isArray(element) ? element.forEach((el) => logDOM(el, maxLength, options)) : logDOM(element, maxLength, options), logTestingPlaygroundURL = function(element) {
  52332. if (element === void 0 && (element = getDocument().body), !element || !("innerHTML" in element)) {
  52333. console.log("The element you're providing isn't a valid DOM element.");
  52334. return;
  52335. }
  52336. if (!element.innerHTML) {
  52337. console.log("The provided element doesn't have any children.");
  52338. return;
  52339. }
  52340. let playgroundUrl = getPlaygroundUrl(element.innerHTML);
  52341. return console.log(`Open this URL in your browser
  52342. ` + playgroundUrl), playgroundUrl;
  52343. }, initialValue = {
  52344. debug,
  52345. logTestingPlaygroundURL
  52346. }, screen = typeof document < "u" && document.body ? getQueriesForElement(document.body, queries, initialValue) : Object.keys(queries).reduce((helpers, key) => (helpers[key] = () => {
  52347. throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
  52348. }, helpers), initialValue);
  52349. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isElementType.js
  52350. function isElementType(element, tag, props) {
  52351. return element.namespaceURI && element.namespaceURI !== "http://www.w3.org/1999/xhtml" || (tag = Array.isArray(tag) ? tag : [
  52352. tag
  52353. ], !tag.includes(element.tagName.toLowerCase())) ? !1 : props ? Object.entries(props).every(([k, v]) => element[k] === v) : !0;
  52354. }
  52355. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getWindow.js
  52356. function getWindow(node2) {
  52357. var _node_ownerDocument;
  52358. if (isDocument(node2) && node2.defaultView)
  52359. return node2.defaultView;
  52360. if (!((_node_ownerDocument = node2.ownerDocument) === null || _node_ownerDocument === void 0) && _node_ownerDocument.defaultView)
  52361. return node2.ownerDocument.defaultView;
  52362. throw new Error(`Could not determine window of node. Node was ${describe(node2)}`);
  52363. }
  52364. function isDocument(node2) {
  52365. return node2.nodeType === 9;
  52366. }
  52367. function describe(val) {
  52368. return typeof val == "function" ? `function ${val.name}` : val === null ? "null" : String(val);
  52369. }
  52370. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Blob.js
  52371. function readBlobText(blob, FileReader) {
  52372. return new Promise((res, rej) => {
  52373. let fr = new FileReader();
  52374. fr.onerror = rej, fr.onabort = rej, fr.onload = () => {
  52375. res(String(fr.result));
  52376. }, fr.readAsText(blob);
  52377. });
  52378. }
  52379. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/FileList.js
  52380. function createFileList(window2, files) {
  52381. let list = {
  52382. ...files,
  52383. length: files.length,
  52384. item: (index4) => list[index4],
  52385. [Symbol.iterator]: function* () {
  52386. for (let i = 0; i < list.length; i++)
  52387. yield list[i];
  52388. }
  52389. };
  52390. return list.constructor = window2.FileList, window2.FileList && Object.setPrototypeOf(list, window2.FileList.prototype), Object.freeze(list), list;
  52391. }
  52392. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/DataTransfer.js
  52393. function _define_property(obj, key, value) {
  52394. return key in obj ? Object.defineProperty(obj, key, {
  52395. value,
  52396. enumerable: !0,
  52397. configurable: !0,
  52398. writable: !0
  52399. }) : obj[key] = value, obj;
  52400. }
  52401. var DataTransferItemStub = class {
  52402. getAsFile() {
  52403. return this.file;
  52404. }
  52405. getAsString(callback) {
  52406. typeof this.data == "string" && callback(this.data);
  52407. }
  52408. /* istanbul ignore next */
  52409. webkitGetAsEntry() {
  52410. throw new Error("not implemented");
  52411. }
  52412. constructor(dataOrFile, type5) {
  52413. _define_property(this, "kind", void 0), _define_property(this, "type", void 0), _define_property(this, "file", null), _define_property(this, "data", void 0), typeof dataOrFile == "string" ? (this.kind = "string", this.type = String(type5), this.data = dataOrFile) : (this.kind = "file", this.type = dataOrFile.type, this.file = dataOrFile);
  52414. }
  52415. }, DataTransferItemListStub = class extends Array {
  52416. add(...args) {
  52417. let item = new DataTransferItemStub(args[0], args[1]);
  52418. return this.push(item), item;
  52419. }
  52420. clear() {
  52421. this.splice(0, this.length);
  52422. }
  52423. remove(index4) {
  52424. this.splice(index4, 1);
  52425. }
  52426. };
  52427. function getTypeMatcher(type5, exact) {
  52428. let [group, sub] = type5.split("/"), isGroup = !sub || sub === "*";
  52429. return (item) => exact ? item.type === (isGroup ? group : type5) : isGroup ? item.type.startsWith(`${group}/`) : item.type === group;
  52430. }
  52431. function createDataTransferStub(window2) {
  52432. return new class {
  52433. getData(format4) {
  52434. var _this_items_find;
  52435. let match3 = (_this_items_find = this.items.find(getTypeMatcher(format4, !0))) !== null && _this_items_find !== void 0 ? _this_items_find : this.items.find(getTypeMatcher(format4, !1)), text = "";
  52436. return match3?.getAsString((t) => {
  52437. text = t;
  52438. }), text;
  52439. }
  52440. setData(format4, data) {
  52441. let matchIndex = this.items.findIndex(getTypeMatcher(format4, !0)), item = new DataTransferItemStub(data, format4);
  52442. matchIndex >= 0 ? this.items.splice(matchIndex, 1, item) : this.items.push(item);
  52443. }
  52444. clearData(format4) {
  52445. if (format4) {
  52446. let matchIndex = this.items.findIndex(getTypeMatcher(format4, !0));
  52447. matchIndex >= 0 && this.items.remove(matchIndex);
  52448. } else
  52449. this.items.clear();
  52450. }
  52451. get types() {
  52452. let t = [];
  52453. return this.files.length && t.push("Files"), this.items.forEach((i) => t.push(i.type)), Object.freeze(t), t;
  52454. }
  52455. /* istanbul ignore next */
  52456. setDragImage() {
  52457. }
  52458. constructor() {
  52459. _define_property(this, "dropEffect", "none"), _define_property(this, "effectAllowed", "uninitialized"), _define_property(this, "items", new DataTransferItemListStub()), _define_property(this, "files", createFileList(window2, []));
  52460. }
  52461. }();
  52462. }
  52463. function createDataTransfer(window2, files = []) {
  52464. let dt = typeof window2.DataTransfer > "u" ? createDataTransferStub(window2) : (
  52465. /* istanbul ignore next */
  52466. new window2.DataTransfer()
  52467. );
  52468. return Object.defineProperty(dt, "files", {
  52469. get: () => createFileList(window2, files)
  52470. }), dt;
  52471. }
  52472. async function getBlobFromDataTransferItem(window2, item) {
  52473. return item.kind === "file" ? item.getAsFile() : new window2.Blob([
  52474. await new Promise((r2) => item.getAsString(r2))
  52475. ], {
  52476. type: item.type
  52477. });
  52478. }
  52479. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Clipboard.js
  52480. function _define_property2(obj, key, value) {
  52481. return key in obj ? Object.defineProperty(obj, key, {
  52482. value,
  52483. enumerable: !0,
  52484. configurable: !0,
  52485. writable: !0
  52486. }) : obj[key] = value, obj;
  52487. }
  52488. function createClipboardItem(window2, ...blobs) {
  52489. let dataMap = Object.fromEntries(blobs.map((b) => [
  52490. typeof b == "string" ? "text/plain" : b.type,
  52491. Promise.resolve(b)
  52492. ]));
  52493. return typeof window2.ClipboardItem < "u" ? new window2.ClipboardItem(dataMap) : new class {
  52494. get types() {
  52495. return Array.from(Object.keys(this.data));
  52496. }
  52497. async getType(type5) {
  52498. let value = await this.data[type5];
  52499. if (!value)
  52500. throw new Error(`${type5} is not one of the available MIME types on this item.`);
  52501. return value instanceof window2.Blob ? value : new window2.Blob([
  52502. value
  52503. ], {
  52504. type: type5
  52505. });
  52506. }
  52507. constructor(d) {
  52508. _define_property2(this, "data", void 0), this.data = d;
  52509. }
  52510. }(dataMap);
  52511. }
  52512. var ClipboardStubControl = /* @__PURE__ */ Symbol("Manage ClipboardSub");
  52513. function createClipboardStub(window2, control) {
  52514. return Object.assign(new class extends window2.EventTarget {
  52515. async read() {
  52516. return Array.from(this.items);
  52517. }
  52518. async readText() {
  52519. let text = "";
  52520. for (let item of this.items) {
  52521. let type5 = item.types.includes("text/plain") ? "text/plain" : item.types.find((t) => t.startsWith("text/"));
  52522. type5 && (text += await item.getType(type5).then((b) => readBlobText(b, window2.FileReader)));
  52523. }
  52524. return text;
  52525. }
  52526. async write(data) {
  52527. this.items = data;
  52528. }
  52529. async writeText(text) {
  52530. this.items = [
  52531. createClipboardItem(window2, text)
  52532. ];
  52533. }
  52534. constructor(...args) {
  52535. super(...args), _define_property2(this, "items", []);
  52536. }
  52537. }(), {
  52538. [ClipboardStubControl]: control
  52539. });
  52540. }
  52541. function isClipboardStub(clipboard) {
  52542. return !!clipboard?.[ClipboardStubControl];
  52543. }
  52544. function attachClipboardStubToView(window2) {
  52545. if (isClipboardStub(window2.navigator.clipboard))
  52546. return window2.navigator.clipboard[ClipboardStubControl];
  52547. let realClipboard = Object.getOwnPropertyDescriptor(window2.navigator, "clipboard"), stub, control = {
  52548. resetClipboardStub: () => {
  52549. stub = createClipboardStub(window2, control);
  52550. },
  52551. detachClipboardStub: () => {
  52552. realClipboard ? Object.defineProperty(window2.navigator, "clipboard", realClipboard) : Object.defineProperty(window2.navigator, "clipboard", {
  52553. value: void 0,
  52554. configurable: !0
  52555. });
  52556. }
  52557. };
  52558. return stub = createClipboardStub(window2, control), Object.defineProperty(window2.navigator, "clipboard", {
  52559. get: () => stub,
  52560. configurable: !0
  52561. }), stub[ClipboardStubControl];
  52562. }
  52563. function resetClipboardStubOnView(window2) {
  52564. isClipboardStub(window2.navigator.clipboard) && window2.navigator.clipboard[ClipboardStubControl].resetClipboardStub();
  52565. }
  52566. function detachClipboardStubFromView(window2) {
  52567. isClipboardStub(window2.navigator.clipboard) && window2.navigator.clipboard[ClipboardStubControl].detachClipboardStub();
  52568. }
  52569. async function readDataTransferFromClipboard(document13) {
  52570. let window2 = document13.defaultView, clipboard = window2?.navigator.clipboard, items = clipboard && await clipboard.read();
  52571. if (!items)
  52572. throw new Error("The Clipboard API is unavailable.");
  52573. let dt = createDataTransfer(window2);
  52574. for (let item of items)
  52575. for (let type5 of item.types)
  52576. dt.setData(type5, await item.getType(type5).then((b) => readBlobText(b, window2.FileReader)));
  52577. return dt;
  52578. }
  52579. async function writeDataTransferToClipboard(document13, clipboardData) {
  52580. let window2 = getWindow(document13), clipboard = window2.navigator.clipboard, items = [];
  52581. for (let i = 0; i < clipboardData.items.length; i++) {
  52582. let dtItem = clipboardData.items[i], blob = await getBlobFromDataTransferItem(window2, dtItem);
  52583. items.push(createClipboardItem(window2, blob));
  52584. }
  52585. if (!(clipboard && await clipboard.write(items).then(
  52586. () => !0,
  52587. // Can happen with other implementations that e.g. require permissions
  52588. /* istanbul ignore next */
  52589. () => !1
  52590. )))
  52591. throw new Error("The Clipboard API is unavailable.");
  52592. }
  52593. var g = globalThis;
  52594. typeof g.afterEach == "function" && g.afterEach(() => {
  52595. typeof globalThis.window < "u" && resetClipboardStubOnView(globalThis.window);
  52596. });
  52597. typeof g.afterAll == "function" && g.afterAll(() => {
  52598. typeof globalThis.window < "u" && detachClipboardStubFromView(globalThis.window);
  52599. });
  52600. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/selector.js
  52601. var FOCUSABLE_SELECTOR = [
  52602. "input:not([type=hidden]):not([disabled])",
  52603. "button:not([disabled])",
  52604. "select:not([disabled])",
  52605. "textarea:not([disabled])",
  52606. '[contenteditable=""]',
  52607. '[contenteditable="true"]',
  52608. "a[href]",
  52609. "[tabindex]:not([disabled])"
  52610. ].join(", ");
  52611. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/isFocusable.js
  52612. function isFocusable(element) {
  52613. return element.matches(FOCUSABLE_SELECTOR);
  52614. }
  52615. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/cloneEvent.js
  52616. function cloneEvent(event) {
  52617. return new event.constructor(event.type, event);
  52618. }
  52619. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isDisabled.js
  52620. function isDisabled2(element) {
  52621. for (let el = element; el; el = el.parentElement)
  52622. if (isElementType(el, [
  52623. "button",
  52624. "input",
  52625. "select",
  52626. "textarea",
  52627. "optgroup",
  52628. "option"
  52629. ])) {
  52630. if (el.hasAttribute("disabled"))
  52631. return !0;
  52632. } else if (isElementType(el, "fieldset")) {
  52633. var _el_querySelector;
  52634. if (el.hasAttribute("disabled") && !(!((_el_querySelector = el.querySelector(":scope > legend")) === null || _el_querySelector === void 0) && _el_querySelector.contains(element)))
  52635. return !0;
  52636. } else if (el.tagName.includes("-") && el.constructor.formAssociated && el.hasAttribute("disabled"))
  52637. return !0;
  52638. return !1;
  52639. }
  52640. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getActiveElement.js
  52641. function getActiveElement(document13) {
  52642. let activeElement = document13.activeElement;
  52643. return activeElement?.shadowRoot ? getActiveElement(activeElement.shadowRoot) : isDisabled2(activeElement) ? document13.ownerDocument ? (
  52644. /* istanbul ignore next */
  52645. document13.ownerDocument.body
  52646. ) : document13.body : activeElement;
  52647. }
  52648. function getActiveElementOrBody(document13) {
  52649. var _getActiveElement;
  52650. return (_getActiveElement = getActiveElement(document13)) !== null && _getActiveElement !== void 0 ? _getActiveElement : (
  52651. /* istanbul ignore next */
  52652. document13.body
  52653. );
  52654. }
  52655. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/findClosest.js
  52656. function findClosest(element, callback) {
  52657. let el = element;
  52658. do {
  52659. if (callback(el))
  52660. return el;
  52661. el = el.parentElement;
  52662. } while (el && el !== element.ownerDocument.body);
  52663. }
  52664. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/isContentEditable.js
  52665. function isContentEditable(element) {
  52666. return element.hasAttribute("contenteditable") && (element.getAttribute("contenteditable") == "true" || element.getAttribute("contenteditable") == "");
  52667. }
  52668. function getContentEditable(node2) {
  52669. let element = getElement(node2);
  52670. return element && (element.closest('[contenteditable=""]') || element.closest('[contenteditable="true"]'));
  52671. }
  52672. function getElement(node2) {
  52673. return node2.nodeType === 1 ? node2 : node2.parentElement;
  52674. }
  52675. // ../../node_modules/@testing-library/user-event/dist/esm/utils/click/isClickableInput.js
  52676. var clickableInputTypes = (function(clickableInputTypes2) {
  52677. return clickableInputTypes2.button = "button", clickableInputTypes2.color = "color", clickableInputTypes2.file = "file", clickableInputTypes2.image = "image", clickableInputTypes2.reset = "reset", clickableInputTypes2.submit = "submit", clickableInputTypes2.checkbox = "checkbox", clickableInputTypes2.radio = "radio", clickableInputTypes2;
  52678. })(clickableInputTypes || {});
  52679. function isClickableInput(element) {
  52680. return isElementType(element, "button") || isElementType(element, "input") && element.type in clickableInputTypes;
  52681. }
  52682. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/isEditable.js
  52683. function isEditable(element) {
  52684. return isEditableInputOrTextArea(element) && !element.readOnly || isContentEditable(element);
  52685. }
  52686. var editableInputTypes = (function(editableInputTypes2) {
  52687. return editableInputTypes2.text = "text", editableInputTypes2.date = "date", editableInputTypes2["datetime-local"] = "datetime-local", editableInputTypes2.email = "email", editableInputTypes2.month = "month", editableInputTypes2.number = "number", editableInputTypes2.password = "password", editableInputTypes2.search = "search", editableInputTypes2.tel = "tel", editableInputTypes2.time = "time", editableInputTypes2.url = "url", editableInputTypes2.week = "week", editableInputTypes2;
  52688. })(editableInputTypes || {});
  52689. function isEditableInputOrTextArea(element) {
  52690. return isElementType(element, "textarea") || isElementType(element, "input") && element.type in editableInputTypes;
  52691. }
  52692. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/selection.js
  52693. function hasOwnSelection(node2) {
  52694. return isElement3(node2) && isEditableInputOrTextArea(node2);
  52695. }
  52696. function hasNoSelection(node2) {
  52697. return isElement3(node2) && isClickableInput(node2);
  52698. }
  52699. function isElement3(node2) {
  52700. return node2.nodeType === 1;
  52701. }
  52702. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/updateSelectionOnFocus.js
  52703. function updateSelectionOnFocus(element) {
  52704. let selection = element.ownerDocument.getSelection();
  52705. if (selection?.focusNode && hasOwnSelection(element)) {
  52706. let contenteditable = getContentEditable(selection.focusNode);
  52707. if (contenteditable) {
  52708. if (!selection.isCollapsed) {
  52709. var _contenteditable_firstChild;
  52710. let focusNode = ((_contenteditable_firstChild = contenteditable.firstChild) === null || _contenteditable_firstChild === void 0 ? void 0 : _contenteditable_firstChild.nodeType) === 3 ? contenteditable.firstChild : contenteditable;
  52711. selection.setBaseAndExtent(focusNode, 0, focusNode, 0);
  52712. }
  52713. } else
  52714. selection.setBaseAndExtent(element, 0, element, 0);
  52715. }
  52716. }
  52717. // ../../node_modules/@testing-library/user-event/dist/esm/event/wrapEvent.js
  52718. function wrapEvent(cb, _element) {
  52719. return getConfig2().eventWrapper(cb);
  52720. }
  52721. // ../../node_modules/@testing-library/user-event/dist/esm/event/focus.js
  52722. function focusElement(element) {
  52723. let target = findClosest(element, isFocusable), activeElement = getActiveElement(element.ownerDocument);
  52724. (target ?? element.ownerDocument.body) !== activeElement && (target ? wrapEvent(() => target.focus()) : wrapEvent(() => activeElement?.blur()), updateSelectionOnFocus(target ?? element.ownerDocument.body));
  52725. }
  52726. function blurElement(element) {
  52727. !isFocusable(element) || !(getActiveElement(element.ownerDocument) === element) || wrapEvent(() => element.blur());
  52728. }
  52729. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/registry.js
  52730. var behavior = {};
  52731. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/click.js
  52732. behavior.click = (event, target, instance) => {
  52733. let context = target.closest("button,input,label,select,textarea"), control = context && isElementType(context, "label") && context.control;
  52734. if (control && control !== target)
  52735. return () => {
  52736. isFocusable(control) && (focusElement(control), instance.dispatchEvent(control, cloneEvent(event)));
  52737. };
  52738. if (isElementType(target, "input", {
  52739. type: "file"
  52740. }))
  52741. return () => {
  52742. blurElement(target), target.dispatchEvent(new (getWindow(target)).Event("fileDialog")), focusElement(target);
  52743. };
  52744. };
  52745. // ../../node_modules/@testing-library/user-event/dist/esm/document/UI.js
  52746. var UIValue = /* @__PURE__ */ Symbol("Displayed value in UI"), UISelection = /* @__PURE__ */ Symbol("Displayed selection in UI"), InitialValue = /* @__PURE__ */ Symbol("Initial value to compare on blur");
  52747. function isUIValue(value) {
  52748. return typeof value == "object" && UIValue in value;
  52749. }
  52750. function isUISelectionStart(start2) {
  52751. return !!start2 && typeof start2 == "object" && UISelection in start2;
  52752. }
  52753. function setUIValue(element, value) {
  52754. element[InitialValue] === void 0 && (element[InitialValue] = element.value), element[UIValue] = value, element.value = Object.assign(new String(value), {
  52755. [UIValue]: !0
  52756. });
  52757. }
  52758. function getUIValue(element) {
  52759. return element[UIValue] === void 0 ? element.value : String(element[UIValue]);
  52760. }
  52761. function setUIValueClean(element) {
  52762. element[UIValue] = void 0;
  52763. }
  52764. function clearInitialValue(element) {
  52765. element[InitialValue] = void 0;
  52766. }
  52767. function getInitialValue(element) {
  52768. return element[InitialValue];
  52769. }
  52770. function setUISelectionRaw(element, selection) {
  52771. element[UISelection] = selection;
  52772. }
  52773. function setUISelection(element, { focusOffset: focusOffsetParam, anchorOffset: anchorOffsetParam = focusOffsetParam }, mode = "replace") {
  52774. let valueLength = getUIValue(element).length, sanitizeOffset = (o) => Math.max(0, Math.min(valueLength, o)), anchorOffset = mode === "replace" || element[UISelection] === void 0 ? sanitizeOffset(anchorOffsetParam) : element[UISelection].anchorOffset, focusOffset = sanitizeOffset(focusOffsetParam), startOffset = Math.min(anchorOffset, focusOffset), endOffset = Math.max(anchorOffset, focusOffset);
  52775. if (element[UISelection] = {
  52776. anchorOffset,
  52777. focusOffset
  52778. }, element.selectionStart === startOffset && element.selectionEnd === endOffset)
  52779. return;
  52780. let startObj = Object.assign(new Number(startOffset), {
  52781. [UISelection]: !0
  52782. });
  52783. try {
  52784. element.setSelectionRange(startObj, endOffset);
  52785. } catch {
  52786. }
  52787. }
  52788. function getUISelection(element) {
  52789. var _element_selectionStart, _element_selectionEnd, _element_UISelection;
  52790. let sel = (_element_UISelection = element[UISelection]) !== null && _element_UISelection !== void 0 ? _element_UISelection : {
  52791. anchorOffset: (_element_selectionStart = element.selectionStart) !== null && _element_selectionStart !== void 0 ? _element_selectionStart : 0,
  52792. focusOffset: (_element_selectionEnd = element.selectionEnd) !== null && _element_selectionEnd !== void 0 ? _element_selectionEnd : 0
  52793. };
  52794. return {
  52795. ...sel,
  52796. startOffset: Math.min(sel.anchorOffset, sel.focusOffset),
  52797. endOffset: Math.max(sel.anchorOffset, sel.focusOffset)
  52798. };
  52799. }
  52800. function hasUISelection(element) {
  52801. return !!element[UISelection];
  52802. }
  52803. function setUISelectionClean(element) {
  52804. element[UISelection] = void 0;
  52805. }
  52806. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/timeValue.js
  52807. var parseInt2 = globalThis.parseInt;
  52808. function buildTimeValue(value) {
  52809. let onlyDigitsValue = value.replace(/\D/g, "");
  52810. if (onlyDigitsValue.length < 2)
  52811. return value;
  52812. let firstDigit = parseInt2(onlyDigitsValue[0], 10), secondDigit = parseInt2(onlyDigitsValue[1], 10);
  52813. if (firstDigit >= 3 || firstDigit === 2 && secondDigit >= 4) {
  52814. let index4;
  52815. return firstDigit >= 3 ? index4 = 1 : index4 = 2, build2(onlyDigitsValue, index4);
  52816. }
  52817. return value.length === 2 ? value : build2(onlyDigitsValue, 2);
  52818. }
  52819. function build2(onlyDigitsValue, index4) {
  52820. let hours = onlyDigitsValue.slice(0, index4), validHours = Math.min(parseInt2(hours, 10), 23), minuteCharacters = onlyDigitsValue.slice(index4), parsedMinutes = parseInt2(minuteCharacters, 10), validMinutes = Math.min(parsedMinutes, 59);
  52821. return `${validHours.toString().padStart(2, "0")}:${validMinutes.toString().padStart(2, "0")}`;
  52822. }
  52823. function isValidDateOrTimeValue(element, value) {
  52824. let clone3 = element.cloneNode();
  52825. return clone3.value = value, clone3.value === value;
  52826. }
  52827. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/maxLength.js
  52828. var maxLengthSupportedTypes = (function(maxLengthSupportedTypes2) {
  52829. return maxLengthSupportedTypes2.email = "email", maxLengthSupportedTypes2.password = "password", maxLengthSupportedTypes2.search = "search", maxLengthSupportedTypes2.telephone = "telephone", maxLengthSupportedTypes2.text = "text", maxLengthSupportedTypes2.url = "url", maxLengthSupportedTypes2;
  52830. })(maxLengthSupportedTypes || {});
  52831. function getMaxLength(element) {
  52832. var _element_getAttribute;
  52833. let attr = (_element_getAttribute = element.getAttribute("maxlength")) !== null && _element_getAttribute !== void 0 ? _element_getAttribute : "";
  52834. return /^\d+$/.test(attr) && Number(attr) >= 0 ? Number(attr) : void 0;
  52835. }
  52836. function supportsMaxLength(element) {
  52837. return isElementType(element, "textarea") || isElementType(element, "input") && element.type in maxLengthSupportedTypes;
  52838. }
  52839. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/cursor.js
  52840. function getNextCursorPosition(node2, offset3, direction, inputType) {
  52841. if (isTextNode(node2) && offset3 + direction >= 0 && offset3 + direction <= node2.nodeValue.length)
  52842. return {
  52843. node: node2,
  52844. offset: offset3 + direction
  52845. };
  52846. let nextNode = getNextCharacterContentNode(node2, offset3, direction);
  52847. if (nextNode) {
  52848. if (isTextNode(nextNode))
  52849. return {
  52850. node: nextNode,
  52851. offset: direction > 0 ? Math.min(1, nextNode.nodeValue.length) : Math.max(nextNode.nodeValue.length - 1, 0)
  52852. };
  52853. if (isElementType(nextNode, "br")) {
  52854. let nextPlusOne = getNextCharacterContentNode(nextNode, void 0, direction);
  52855. return nextPlusOne ? isTextNode(nextPlusOne) ? {
  52856. node: nextPlusOne,
  52857. offset: direction > 0 ? 0 : nextPlusOne.nodeValue.length
  52858. } : direction < 0 && isElementType(nextPlusOne, "br") ? {
  52859. node: nextNode.parentNode,
  52860. offset: getOffset(nextNode)
  52861. } : {
  52862. node: nextPlusOne.parentNode,
  52863. offset: getOffset(nextPlusOne) + (direction > 0 ? 0 : 1)
  52864. } : direction < 0 && inputType === "deleteContentBackward" ? {
  52865. node: nextNode.parentNode,
  52866. offset: getOffset(nextNode)
  52867. } : void 0;
  52868. } else
  52869. return {
  52870. node: nextNode.parentNode,
  52871. offset: getOffset(nextNode) + (direction > 0 ? 1 : 0)
  52872. };
  52873. }
  52874. }
  52875. function getNextCharacterContentNode(node2, offset3, direction) {
  52876. let nextOffset = Number(offset3) + (direction < 0 ? -1 : 0);
  52877. return offset3 !== void 0 && isElement4(node2) && nextOffset >= 0 && nextOffset < node2.children.length && (node2 = node2.children[nextOffset]), walkNodes(node2, direction === 1 ? "next" : "previous", isTreatedAsCharacterContent);
  52878. }
  52879. function isTreatedAsCharacterContent(node2) {
  52880. if (isTextNode(node2))
  52881. return !0;
  52882. if (isElement4(node2)) {
  52883. if (isElementType(node2, [
  52884. "input",
  52885. "textarea"
  52886. ]))
  52887. return node2.type !== "hidden";
  52888. if (isElementType(node2, "br"))
  52889. return !0;
  52890. }
  52891. return !1;
  52892. }
  52893. function getOffset(node2) {
  52894. let i = 0;
  52895. for (; node2.previousSibling; )
  52896. i++, node2 = node2.previousSibling;
  52897. return i;
  52898. }
  52899. function isElement4(node2) {
  52900. return node2.nodeType === 1;
  52901. }
  52902. function isTextNode(node2) {
  52903. return node2.nodeType === 3;
  52904. }
  52905. function walkNodes(node2, direction, callback) {
  52906. for (; ; ) {
  52907. var _node_ownerDocument;
  52908. let sibling = node2[`${direction}Sibling`];
  52909. if (sibling) {
  52910. if (node2 = getDescendant(sibling, direction === "next" ? "first" : "last"), callback(node2))
  52911. return node2;
  52912. } else if (node2.parentNode && (!isElement4(node2.parentNode) || !isContentEditable(node2.parentNode) && node2.parentNode !== ((_node_ownerDocument = node2.ownerDocument) === null || _node_ownerDocument === void 0 ? void 0 : _node_ownerDocument.body)))
  52913. node2 = node2.parentNode;
  52914. else
  52915. break;
  52916. }
  52917. }
  52918. function getDescendant(node2, direction) {
  52919. for (; node2.hasChildNodes(); )
  52920. node2 = node2[`${direction}Child`];
  52921. return node2;
  52922. }
  52923. // ../../node_modules/@testing-library/user-event/dist/esm/document/trackValue.js
  52924. var TrackChanges = /* @__PURE__ */ Symbol("Track programmatic changes for React workaround");
  52925. function isReact17Element(element) {
  52926. return Object.getOwnPropertyNames(element).some((k) => k.startsWith("__react")) && getWindow(element).REACT_VERSION === 17;
  52927. }
  52928. function startTrackValue(element) {
  52929. isReact17Element(element) && (element[TrackChanges] = {
  52930. previousValue: String(element.value),
  52931. tracked: []
  52932. });
  52933. }
  52934. function trackOrSetValue(element, v) {
  52935. var _element_TrackChanges_tracked, _element_TrackChanges;
  52936. (_element_TrackChanges = element[TrackChanges]) === null || _element_TrackChanges === void 0 || (_element_TrackChanges_tracked = _element_TrackChanges.tracked) === null || _element_TrackChanges_tracked === void 0 || _element_TrackChanges_tracked.push(v), element[TrackChanges] || (setUIValueClean(element), setUISelection(element, {
  52937. focusOffset: v.length
  52938. }));
  52939. }
  52940. function commitValueAfterInput(element, cursorOffset) {
  52941. var _changes_tracked;
  52942. let changes = element[TrackChanges];
  52943. if (element[TrackChanges] = void 0, !(!(changes == null || (_changes_tracked = changes.tracked) === null || _changes_tracked === void 0) && _changes_tracked.length))
  52944. return;
  52945. let isJustReactStateUpdate = changes.tracked.length === 2 && changes.tracked[0] === changes.previousValue && changes.tracked[1] === element.value;
  52946. isJustReactStateUpdate || setUIValueClean(element), hasUISelection(element) && setUISelection(element, {
  52947. focusOffset: isJustReactStateUpdate ? cursorOffset : element.value.length
  52948. });
  52949. }
  52950. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/getTargetTypeAndSelection.js
  52951. function getTargetTypeAndSelection(node2) {
  52952. let element = getElement2(node2);
  52953. if (element && hasOwnSelection(element))
  52954. return {
  52955. type: "input",
  52956. selection: getUISelection(element)
  52957. };
  52958. let selection = element?.ownerDocument.getSelection();
  52959. return {
  52960. type: getContentEditable(node2) && selection?.anchorNode && getContentEditable(selection.anchorNode) ? "contenteditable" : "default",
  52961. selection
  52962. };
  52963. }
  52964. function getElement2(node2) {
  52965. return node2.nodeType === 1 ? node2 : node2.parentElement;
  52966. }
  52967. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/getInputRange.js
  52968. function getInputRange(focusNode) {
  52969. let typeAndSelection = getTargetTypeAndSelection(focusNode);
  52970. if (typeAndSelection.type === "input")
  52971. return typeAndSelection.selection;
  52972. if (typeAndSelection.type === "contenteditable") {
  52973. var _typeAndSelection_selection;
  52974. return (_typeAndSelection_selection = typeAndSelection.selection) === null || _typeAndSelection_selection === void 0 ? void 0 : _typeAndSelection_selection.getRangeAt(0);
  52975. }
  52976. }
  52977. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelection.js
  52978. function setSelection({ focusNode, focusOffset, anchorNode = focusNode, anchorOffset = focusOffset }) {
  52979. var _anchorNode_ownerDocument_getSelection, _anchorNode_ownerDocument;
  52980. if (getTargetTypeAndSelection(focusNode).type === "input")
  52981. return setUISelection(focusNode, {
  52982. anchorOffset,
  52983. focusOffset
  52984. });
  52985. (_anchorNode_ownerDocument = anchorNode.ownerDocument) === null || _anchorNode_ownerDocument === void 0 || (_anchorNode_ownerDocument_getSelection = _anchorNode_ownerDocument.getSelection()) === null || _anchorNode_ownerDocument_getSelection === void 0 || _anchorNode_ownerDocument_getSelection.setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset);
  52986. }
  52987. // ../../node_modules/@testing-library/user-event/dist/esm/event/input.js
  52988. function isDateOrTime(element) {
  52989. return isElementType(element, "input") && [
  52990. "date",
  52991. "time"
  52992. ].includes(element.type);
  52993. }
  52994. function input(instance, element, data, inputType = "insertText") {
  52995. let inputRange = getInputRange(element);
  52996. inputRange && (!isDateOrTime(element) && !instance.dispatchUIEvent(element, "beforeinput", {
  52997. inputType,
  52998. data
  52999. }) || ("startContainer" in inputRange ? editContenteditable(instance, element, inputRange, data, inputType) : editInputElement(instance, element, inputRange, data, inputType)));
  53000. }
  53001. function editContenteditable(instance, element, inputRange, data, inputType) {
  53002. let del = !1;
  53003. if (!inputRange.collapsed)
  53004. del = !0, inputRange.deleteContents();
  53005. else if ([
  53006. "deleteContentBackward",
  53007. "deleteContentForward"
  53008. ].includes(inputType)) {
  53009. let nextPosition = getNextCursorPosition(inputRange.startContainer, inputRange.startOffset, inputType === "deleteContentBackward" ? -1 : 1, inputType);
  53010. if (nextPosition) {
  53011. del = !0;
  53012. let delRange = inputRange.cloneRange();
  53013. delRange.comparePoint(nextPosition.node, nextPosition.offset) < 0 ? delRange.setStart(nextPosition.node, nextPosition.offset) : delRange.setEnd(nextPosition.node, nextPosition.offset), delRange.deleteContents();
  53014. }
  53015. }
  53016. if (data)
  53017. if (inputRange.endContainer.nodeType === 3) {
  53018. let offset3 = inputRange.endOffset;
  53019. inputRange.endContainer.insertData(offset3, data), inputRange.setStart(inputRange.endContainer, offset3 + data.length), inputRange.setEnd(inputRange.endContainer, offset3 + data.length);
  53020. } else {
  53021. let text = element.ownerDocument.createTextNode(data);
  53022. inputRange.insertNode(text), inputRange.setStart(text, data.length), inputRange.setEnd(text, data.length);
  53023. }
  53024. (del || data) && instance.dispatchUIEvent(element, "input", {
  53025. inputType
  53026. });
  53027. }
  53028. function editInputElement(instance, element, inputRange, data, inputType) {
  53029. let dataToInsert = data;
  53030. if (supportsMaxLength(element)) {
  53031. let maxLength = getMaxLength(element);
  53032. if (maxLength !== void 0 && data.length > 0) {
  53033. let spaceUntilMaxLength = maxLength - element.value.length;
  53034. if (spaceUntilMaxLength > 0)
  53035. dataToInsert = data.substring(0, spaceUntilMaxLength);
  53036. else
  53037. return;
  53038. }
  53039. }
  53040. let { newValue, newOffset, oldValue } = calculateNewValue(dataToInsert, element, inputRange, inputType);
  53041. newValue === oldValue && newOffset === inputRange.startOffset && newOffset === inputRange.endOffset || isElementType(element, "input", {
  53042. type: "number"
  53043. }) && !isValidNumberInput(newValue) || (setUIValue(element, newValue), setSelection({
  53044. focusNode: element,
  53045. anchorOffset: newOffset,
  53046. focusOffset: newOffset
  53047. }), isDateOrTime(element) ? isValidDateOrTimeValue(element, newValue) && (commitInput(instance, element, newOffset, {}), instance.dispatchUIEvent(element, "change"), clearInitialValue(element)) : commitInput(instance, element, newOffset, {
  53048. data,
  53049. inputType
  53050. }));
  53051. }
  53052. function calculateNewValue(inputData, node2, { startOffset, endOffset }, inputType) {
  53053. let value = getUIValue(node2), prologEnd = Math.max(0, startOffset === endOffset && inputType === "deleteContentBackward" ? startOffset - 1 : startOffset), prolog = value.substring(0, prologEnd), epilogStart = Math.min(value.length, startOffset === endOffset && inputType === "deleteContentForward" ? startOffset + 1 : endOffset), epilog = value.substring(epilogStart, value.length), newValue = `${prolog}${inputData}${epilog}`, newOffset = prologEnd + inputData.length;
  53054. if (isElementType(node2, "input", {
  53055. type: "time"
  53056. })) {
  53057. let builtValue = buildTimeValue(newValue);
  53058. builtValue !== "" && isValidDateOrTimeValue(node2, builtValue) && (newValue = builtValue, newOffset = builtValue.length);
  53059. }
  53060. return {
  53061. oldValue: value,
  53062. newValue,
  53063. newOffset
  53064. };
  53065. }
  53066. function commitInput(instance, element, newOffset, inputInit) {
  53067. instance.dispatchUIEvent(element, "input", inputInit), commitValueAfterInput(element, newOffset);
  53068. }
  53069. function isValidNumberInput(value) {
  53070. var _value_match, _value_match1;
  53071. let valueParts = value.split("e", 2);
  53072. return !(/[^\d.\-e]/.test(value) || Number((_value_match = value.match(/-/g)) === null || _value_match === void 0 ? void 0 : _value_match.length) > 2 || Number((_value_match1 = value.match(/\./g)) === null || _value_match1 === void 0 ? void 0 : _value_match1.length) > 1 || valueParts[1] && !/^-?\d*$/.test(valueParts[1]));
  53073. }
  53074. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/cut.js
  53075. behavior.cut = (event, target, instance) => () => {
  53076. isEditable(target) && input(instance, target, "", "deleteByCut");
  53077. };
  53078. // ../../node_modules/@testing-library/user-event/dist/esm/document/getValueOrTextContent.js
  53079. function getValueOrTextContent(element) {
  53080. return element ? isContentEditable(element) ? element.textContent : getUIValue(element) : null;
  53081. }
  53082. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isVisible.js
  53083. function isVisible(element) {
  53084. let window2 = getWindow(element);
  53085. for (let el = element; el?.ownerDocument; el = el.parentElement) {
  53086. let { display: display2, visibility } = window2.getComputedStyle(el);
  53087. if (display2 === "none" || visibility === "hidden")
  53088. return !1;
  53089. }
  53090. return !0;
  53091. }
  53092. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getTabDestination.js
  53093. function getTabDestination(activeElement, shift) {
  53094. let document13 = activeElement.ownerDocument, focusableElements = document13.querySelectorAll(FOCUSABLE_SELECTOR), enabledElements = Array.from(focusableElements).filter((el) => el === activeElement || !(Number(el.getAttribute("tabindex")) < 0 || isDisabled2(el)));
  53095. Number(activeElement.getAttribute("tabindex")) >= 0 && enabledElements.sort((a3, b) => {
  53096. let i = Number(a3.getAttribute("tabindex")), j = Number(b.getAttribute("tabindex"));
  53097. return i === j ? 0 : i === 0 ? 1 : j === 0 ? -1 : i - j;
  53098. });
  53099. let checkedRadio = {}, prunedElements = [
  53100. document13.body
  53101. ], activeRadioGroup = isElementType(activeElement, "input", {
  53102. type: "radio"
  53103. }) ? activeElement.name : void 0;
  53104. enabledElements.forEach((currentElement) => {
  53105. let el = currentElement;
  53106. if (isElementType(el, "input", {
  53107. type: "radio"
  53108. }) && el.name) {
  53109. if (el === activeElement) {
  53110. prunedElements.push(el);
  53111. return;
  53112. } else if (el.name === activeRadioGroup)
  53113. return;
  53114. if (el.checked) {
  53115. prunedElements = prunedElements.filter((e) => !isElementType(e, "input", {
  53116. type: "radio",
  53117. name: el.name
  53118. })), prunedElements.push(el), checkedRadio[el.name] = el;
  53119. return;
  53120. }
  53121. if (typeof checkedRadio[el.name] < "u")
  53122. return;
  53123. }
  53124. prunedElements.push(el);
  53125. });
  53126. for (let index4 = prunedElements.findIndex((el) => el === activeElement); ; )
  53127. if (index4 += shift ? -1 : 1, index4 === prunedElements.length ? index4 = 0 : index4 === -1 && (index4 = prunedElements.length - 1), prunedElements[index4] === activeElement || prunedElements[index4] === document13.body || isVisible(prunedElements[index4]))
  53128. return prunedElements[index4];
  53129. }
  53130. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/moveSelection.js
  53131. function moveSelection(node2, direction) {
  53132. if (hasOwnSelection(node2)) {
  53133. let selection = getUISelection(node2);
  53134. setSelection({
  53135. focusNode: node2,
  53136. focusOffset: selection.startOffset === selection.endOffset ? selection.focusOffset + direction : direction < 0 ? selection.startOffset : selection.endOffset
  53137. });
  53138. } else {
  53139. let selection = node2.ownerDocument.getSelection();
  53140. if (!selection?.focusNode)
  53141. return;
  53142. if (selection.isCollapsed) {
  53143. let nextPosition = getNextCursorPosition(selection.focusNode, selection.focusOffset, direction);
  53144. nextPosition && setSelection({
  53145. focusNode: nextPosition.node,
  53146. focusOffset: nextPosition.offset
  53147. });
  53148. } else
  53149. selection[direction < 0 ? "collapseToStart" : "collapseToEnd"]();
  53150. }
  53151. }
  53152. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/selectAll.js
  53153. function selectAll(target) {
  53154. if (hasOwnSelection(target))
  53155. return setSelection({
  53156. focusNode: target,
  53157. anchorOffset: 0,
  53158. focusOffset: getUIValue(target).length
  53159. });
  53160. var _getContentEditable;
  53161. let focusNode = (_getContentEditable = getContentEditable(target)) !== null && _getContentEditable !== void 0 ? _getContentEditable : target.ownerDocument.body;
  53162. setSelection({
  53163. focusNode,
  53164. anchorOffset: 0,
  53165. focusOffset: focusNode.childNodes.length
  53166. });
  53167. }
  53168. function isAllSelected(target) {
  53169. if (hasOwnSelection(target))
  53170. return getUISelection(target).startOffset === 0 && getUISelection(target).endOffset === getUIValue(target).length;
  53171. var _getContentEditable;
  53172. let focusNode = (_getContentEditable = getContentEditable(target)) !== null && _getContentEditable !== void 0 ? _getContentEditable : target.ownerDocument.body, selection = target.ownerDocument.getSelection();
  53173. return selection?.anchorNode === focusNode && selection.focusNode === focusNode && selection.anchorOffset === 0 && selection.focusOffset === focusNode.childNodes.length;
  53174. }
  53175. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionRange.js
  53176. function setSelectionRange(element, anchorOffset, focusOffset) {
  53177. var _element_firstChild;
  53178. if (hasOwnSelection(element))
  53179. return setSelection({
  53180. focusNode: element,
  53181. anchorOffset,
  53182. focusOffset
  53183. });
  53184. if (isContentEditable(element) && ((_element_firstChild = element.firstChild) === null || _element_firstChild === void 0 ? void 0 : _element_firstChild.nodeType) === 3)
  53185. return setSelection({
  53186. focusNode: element.firstChild,
  53187. anchorOffset,
  53188. focusOffset
  53189. });
  53190. throw new Error("Not implemented. The result of this interaction is unreliable.");
  53191. }
  53192. // ../../node_modules/@testing-library/user-event/dist/esm/event/radio.js
  53193. function walkRadio(instance, el, direction) {
  53194. let window2 = getWindow(el), group = Array.from(el.ownerDocument.querySelectorAll(el.name ? `input[type="radio"][name="${window2.CSS.escape(el.name)}"]` : 'input[type="radio"][name=""], input[type="radio"]:not([name])'));
  53195. for (let i = group.findIndex((e) => e === el) + direction; ; i += direction) {
  53196. if (group[i] || (i = direction > 0 ? 0 : group.length - 1), group[i] === el)
  53197. return;
  53198. if (!isDisabled2(group[i])) {
  53199. focusElement(group[i]), instance.dispatchUIEvent(group[i], "click");
  53200. return;
  53201. }
  53202. }
  53203. }
  53204. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keydown.js
  53205. behavior.keydown = (event, target, instance) => {
  53206. var _keydownBehavior_event_key, _keydownBehavior_event_key1;
  53207. return (_keydownBehavior_event_key1 = (_keydownBehavior_event_key = keydownBehavior[event.key]) === null || _keydownBehavior_event_key === void 0 ? void 0 : _keydownBehavior_event_key.call(keydownBehavior, event, target, instance)) !== null && _keydownBehavior_event_key1 !== void 0 ? _keydownBehavior_event_key1 : combinationBehavior(event, target, instance);
  53208. };
  53209. var keydownBehavior = {
  53210. ArrowDown: (event, target, instance) => {
  53211. if (isElementType(target, "input", {
  53212. type: "radio"
  53213. }))
  53214. return () => walkRadio(instance, target, 1);
  53215. },
  53216. ArrowLeft: (event, target, instance) => isElementType(target, "input", {
  53217. type: "radio"
  53218. }) ? () => walkRadio(instance, target, -1) : () => moveSelection(target, -1),
  53219. ArrowRight: (event, target, instance) => isElementType(target, "input", {
  53220. type: "radio"
  53221. }) ? () => walkRadio(instance, target, 1) : () => moveSelection(target, 1),
  53222. ArrowUp: (event, target, instance) => {
  53223. if (isElementType(target, "input", {
  53224. type: "radio"
  53225. }))
  53226. return () => walkRadio(instance, target, -1);
  53227. },
  53228. Backspace: (event, target, instance) => {
  53229. if (isEditable(target))
  53230. return () => {
  53231. input(instance, target, "", "deleteContentBackward");
  53232. };
  53233. },
  53234. Delete: (event, target, instance) => {
  53235. if (isEditable(target))
  53236. return () => {
  53237. input(instance, target, "", "deleteContentForward");
  53238. };
  53239. },
  53240. End: (event, target) => {
  53241. if (isElementType(target, [
  53242. "input",
  53243. "textarea"
  53244. ]) || isContentEditable(target))
  53245. return () => {
  53246. var _getValueOrTextContent, _getValueOrTextContent_length;
  53247. let newPos = (_getValueOrTextContent_length = (_getValueOrTextContent = getValueOrTextContent(target)) === null || _getValueOrTextContent === void 0 ? void 0 : _getValueOrTextContent.length) !== null && _getValueOrTextContent_length !== void 0 ? _getValueOrTextContent_length : (
  53248. /* istanbul ignore next */
  53249. 0
  53250. );
  53251. setSelectionRange(target, newPos, newPos);
  53252. };
  53253. },
  53254. Home: (event, target) => {
  53255. if (isElementType(target, [
  53256. "input",
  53257. "textarea"
  53258. ]) || isContentEditable(target))
  53259. return () => {
  53260. setSelectionRange(target, 0, 0);
  53261. };
  53262. },
  53263. PageDown: (event, target) => {
  53264. if (isElementType(target, [
  53265. "input"
  53266. ]))
  53267. return () => {
  53268. let newPos = getUIValue(target).length;
  53269. setSelectionRange(target, newPos, newPos);
  53270. };
  53271. },
  53272. PageUp: (event, target) => {
  53273. if (isElementType(target, [
  53274. "input"
  53275. ]))
  53276. return () => {
  53277. setSelectionRange(target, 0, 0);
  53278. };
  53279. },
  53280. Tab: (event, target, instance) => () => {
  53281. let dest = getTabDestination(target, instance.system.keyboard.modifiers.Shift);
  53282. focusElement(dest), hasOwnSelection(dest) && setUISelection(dest, {
  53283. anchorOffset: 0,
  53284. focusOffset: dest.value.length
  53285. });
  53286. }
  53287. }, combinationBehavior = (event, target, instance) => {
  53288. if (event.code === "KeyA" && instance.system.keyboard.modifiers.Control)
  53289. return () => selectAll(target);
  53290. };
  53291. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keypress.js
  53292. behavior.keypress = (event, target, instance) => {
  53293. if (event.key === "Enter") {
  53294. if (isElementType(target, "button") || isElementType(target, "input") && ClickInputOnEnter.includes(target.type) || isElementType(target, "a") && target.href)
  53295. return () => {
  53296. instance.dispatchUIEvent(target, "click");
  53297. };
  53298. if (isElementType(target, "input")) {
  53299. let form = target.form, submit = form?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');
  53300. return submit ? () => instance.dispatchUIEvent(submit, "click") : form && SubmitSingleInputOnEnter.includes(target.type) && form.querySelectorAll("input").length === 1 ? () => instance.dispatchUIEvent(form, "submit") : void 0;
  53301. }
  53302. }
  53303. if (isEditable(target)) {
  53304. let inputType = event.key === "Enter" ? isContentEditable(target) && !instance.system.keyboard.modifiers.Shift ? "insertParagraph" : "insertLineBreak" : "insertText", inputData = event.key === "Enter" ? `
  53305. ` : event.key;
  53306. return () => input(instance, target, inputData, inputType);
  53307. }
  53308. };
  53309. var ClickInputOnEnter = [
  53310. "button",
  53311. "color",
  53312. "file",
  53313. "image",
  53314. "reset",
  53315. "submit"
  53316. ], SubmitSingleInputOnEnter = [
  53317. "email",
  53318. "month",
  53319. "password",
  53320. "search",
  53321. "tel",
  53322. "text",
  53323. "url",
  53324. "week"
  53325. ];
  53326. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keyup.js
  53327. behavior.keyup = (event, target, instance) => {
  53328. var _keyupBehavior_event_key;
  53329. return (_keyupBehavior_event_key = keyupBehavior[event.key]) === null || _keyupBehavior_event_key === void 0 ? void 0 : _keyupBehavior_event_key.call(keyupBehavior, event, target, instance);
  53330. };
  53331. var keyupBehavior = {
  53332. " ": (event, target, instance) => {
  53333. if (isClickableInput(target))
  53334. return () => instance.dispatchUIEvent(target, "click");
  53335. }
  53336. };
  53337. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/paste.js
  53338. behavior.paste = (event, target, instance) => {
  53339. if (isEditable(target))
  53340. return () => {
  53341. var _event_clipboardData;
  53342. let insertData = (_event_clipboardData = event.clipboardData) === null || _event_clipboardData === void 0 ? void 0 : _event_clipboardData.getData("text");
  53343. insertData && input(instance, target, insertData, "insertFromPaste");
  53344. };
  53345. };
  53346. // ../../node_modules/@testing-library/user-event/dist/esm/event/eventMap.js
  53347. var eventMap2 = {
  53348. auxclick: {
  53349. EventType: "PointerEvent",
  53350. defaultInit: {
  53351. bubbles: !0,
  53352. cancelable: !0,
  53353. composed: !0
  53354. }
  53355. },
  53356. beforeinput: {
  53357. EventType: "InputEvent",
  53358. defaultInit: {
  53359. bubbles: !0,
  53360. cancelable: !0,
  53361. composed: !0
  53362. }
  53363. },
  53364. blur: {
  53365. EventType: "FocusEvent",
  53366. defaultInit: {
  53367. bubbles: !1,
  53368. cancelable: !1,
  53369. composed: !0
  53370. }
  53371. },
  53372. click: {
  53373. EventType: "PointerEvent",
  53374. defaultInit: {
  53375. bubbles: !0,
  53376. cancelable: !0,
  53377. composed: !0
  53378. }
  53379. },
  53380. contextmenu: {
  53381. EventType: "PointerEvent",
  53382. defaultInit: {
  53383. bubbles: !0,
  53384. cancelable: !0,
  53385. composed: !0
  53386. }
  53387. },
  53388. copy: {
  53389. EventType: "ClipboardEvent",
  53390. defaultInit: {
  53391. bubbles: !0,
  53392. cancelable: !0,
  53393. composed: !0
  53394. }
  53395. },
  53396. change: {
  53397. EventType: "Event",
  53398. defaultInit: {
  53399. bubbles: !0,
  53400. cancelable: !1
  53401. }
  53402. },
  53403. cut: {
  53404. EventType: "ClipboardEvent",
  53405. defaultInit: {
  53406. bubbles: !0,
  53407. cancelable: !0,
  53408. composed: !0
  53409. }
  53410. },
  53411. dblclick: {
  53412. EventType: "MouseEvent",
  53413. defaultInit: {
  53414. bubbles: !0,
  53415. cancelable: !0,
  53416. composed: !0
  53417. }
  53418. },
  53419. focus: {
  53420. EventType: "FocusEvent",
  53421. defaultInit: {
  53422. bubbles: !1,
  53423. cancelable: !1,
  53424. composed: !0
  53425. }
  53426. },
  53427. focusin: {
  53428. EventType: "FocusEvent",
  53429. defaultInit: {
  53430. bubbles: !0,
  53431. cancelable: !1,
  53432. composed: !0
  53433. }
  53434. },
  53435. focusout: {
  53436. EventType: "FocusEvent",
  53437. defaultInit: {
  53438. bubbles: !0,
  53439. cancelable: !1,
  53440. composed: !0
  53441. }
  53442. },
  53443. keydown: {
  53444. EventType: "KeyboardEvent",
  53445. defaultInit: {
  53446. bubbles: !0,
  53447. cancelable: !0,
  53448. composed: !0
  53449. }
  53450. },
  53451. keypress: {
  53452. EventType: "KeyboardEvent",
  53453. defaultInit: {
  53454. bubbles: !0,
  53455. cancelable: !0,
  53456. composed: !0
  53457. }
  53458. },
  53459. keyup: {
  53460. EventType: "KeyboardEvent",
  53461. defaultInit: {
  53462. bubbles: !0,
  53463. cancelable: !0,
  53464. composed: !0
  53465. }
  53466. },
  53467. paste: {
  53468. EventType: "ClipboardEvent",
  53469. defaultInit: {
  53470. bubbles: !0,
  53471. cancelable: !0,
  53472. composed: !0
  53473. }
  53474. },
  53475. input: {
  53476. EventType: "InputEvent",
  53477. defaultInit: {
  53478. bubbles: !0,
  53479. cancelable: !1,
  53480. composed: !0
  53481. }
  53482. },
  53483. mousedown: {
  53484. EventType: "MouseEvent",
  53485. defaultInit: {
  53486. bubbles: !0,
  53487. cancelable: !0,
  53488. composed: !0
  53489. }
  53490. },
  53491. mouseenter: {
  53492. EventType: "MouseEvent",
  53493. defaultInit: {
  53494. bubbles: !1,
  53495. cancelable: !1,
  53496. composed: !0
  53497. }
  53498. },
  53499. mouseleave: {
  53500. EventType: "MouseEvent",
  53501. defaultInit: {
  53502. bubbles: !1,
  53503. cancelable: !1,
  53504. composed: !0
  53505. }
  53506. },
  53507. mousemove: {
  53508. EventType: "MouseEvent",
  53509. defaultInit: {
  53510. bubbles: !0,
  53511. cancelable: !0,
  53512. composed: !0
  53513. }
  53514. },
  53515. mouseout: {
  53516. EventType: "MouseEvent",
  53517. defaultInit: {
  53518. bubbles: !0,
  53519. cancelable: !0,
  53520. composed: !0
  53521. }
  53522. },
  53523. mouseover: {
  53524. EventType: "MouseEvent",
  53525. defaultInit: {
  53526. bubbles: !0,
  53527. cancelable: !0,
  53528. composed: !0
  53529. }
  53530. },
  53531. mouseup: {
  53532. EventType: "MouseEvent",
  53533. defaultInit: {
  53534. bubbles: !0,
  53535. cancelable: !0,
  53536. composed: !0
  53537. }
  53538. },
  53539. pointerover: {
  53540. EventType: "PointerEvent",
  53541. defaultInit: {
  53542. bubbles: !0,
  53543. cancelable: !0,
  53544. composed: !0
  53545. }
  53546. },
  53547. pointerenter: {
  53548. EventType: "PointerEvent",
  53549. defaultInit: {
  53550. bubbles: !1,
  53551. cancelable: !1
  53552. }
  53553. },
  53554. pointerdown: {
  53555. EventType: "PointerEvent",
  53556. defaultInit: {
  53557. bubbles: !0,
  53558. cancelable: !0,
  53559. composed: !0
  53560. }
  53561. },
  53562. pointermove: {
  53563. EventType: "PointerEvent",
  53564. defaultInit: {
  53565. bubbles: !0,
  53566. cancelable: !0,
  53567. composed: !0
  53568. }
  53569. },
  53570. pointerup: {
  53571. EventType: "PointerEvent",
  53572. defaultInit: {
  53573. bubbles: !0,
  53574. cancelable: !0,
  53575. composed: !0
  53576. }
  53577. },
  53578. pointercancel: {
  53579. EventType: "PointerEvent",
  53580. defaultInit: {
  53581. bubbles: !0,
  53582. cancelable: !1,
  53583. composed: !0
  53584. }
  53585. },
  53586. pointerout: {
  53587. EventType: "PointerEvent",
  53588. defaultInit: {
  53589. bubbles: !0,
  53590. cancelable: !0,
  53591. composed: !0
  53592. }
  53593. },
  53594. pointerleave: {
  53595. EventType: "PointerEvent",
  53596. defaultInit: {
  53597. bubbles: !1,
  53598. cancelable: !1
  53599. }
  53600. },
  53601. submit: {
  53602. EventType: "Event",
  53603. defaultInit: {
  53604. bubbles: !0,
  53605. cancelable: !0
  53606. }
  53607. }
  53608. };
  53609. function getEventClass(type5) {
  53610. return eventMap2[type5].EventType;
  53611. }
  53612. var mouseEvents = [
  53613. "MouseEvent",
  53614. "PointerEvent"
  53615. ];
  53616. function isMouseEvent(type5) {
  53617. return mouseEvents.includes(getEventClass(type5));
  53618. }
  53619. function isKeyboardEvent(type5) {
  53620. return getEventClass(type5) === "KeyboardEvent";
  53621. }
  53622. // ../../node_modules/@testing-library/user-event/dist/esm/event/createEvent.js
  53623. var eventInitializer = {
  53624. ClipboardEvent: [
  53625. initClipboardEvent
  53626. ],
  53627. Event: [],
  53628. FocusEvent: [
  53629. initUIEvent,
  53630. initFocusEvent
  53631. ],
  53632. InputEvent: [
  53633. initUIEvent,
  53634. initInputEvent
  53635. ],
  53636. MouseEvent: [
  53637. initUIEvent,
  53638. initUIEventModifiers,
  53639. initMouseEvent
  53640. ],
  53641. PointerEvent: [
  53642. initUIEvent,
  53643. initUIEventModifiers,
  53644. initMouseEvent,
  53645. initPointerEvent
  53646. ],
  53647. KeyboardEvent: [
  53648. initUIEvent,
  53649. initUIEventModifiers,
  53650. initKeyboardEvent
  53651. ]
  53652. };
  53653. function createEvent2(type5, target, init16) {
  53654. let window2 = getWindow(target), { EventType, defaultInit } = eventMap2[type5], event = new (getEventConstructors(window2))[EventType](type5, defaultInit);
  53655. var eventInit = {};
  53656. for (var key in init16)
  53657. Object.prototype.hasOwnProperty.call(init16, key) && (eventInit[key] = init16[key]);
  53658. return eventInit.view = window2, eventInitializer[EventType].forEach(function(f4) {
  53659. f4(event, eventInit);
  53660. }), event;
  53661. }
  53662. function getEventConstructors(window2) {
  53663. var _window_Event;
  53664. let Event2 = (_window_Event = window2.Event) !== null && _window_Event !== void 0 ? _window_Event : class {
  53665. };
  53666. var _window_AnimationEvent;
  53667. let AnimationEvent = (_window_AnimationEvent = window2.AnimationEvent) !== null && _window_AnimationEvent !== void 0 ? _window_AnimationEvent : class extends Event2 {
  53668. };
  53669. var _window_ClipboardEvent;
  53670. let ClipboardEvent = (_window_ClipboardEvent = window2.ClipboardEvent) !== null && _window_ClipboardEvent !== void 0 ? _window_ClipboardEvent : class extends Event2 {
  53671. };
  53672. var _window_PopStateEvent;
  53673. let PopStateEvent = (_window_PopStateEvent = window2.PopStateEvent) !== null && _window_PopStateEvent !== void 0 ? _window_PopStateEvent : class extends Event2 {
  53674. };
  53675. var _window_ProgressEvent;
  53676. let ProgressEvent = (_window_ProgressEvent = window2.ProgressEvent) !== null && _window_ProgressEvent !== void 0 ? _window_ProgressEvent : class extends Event2 {
  53677. };
  53678. var _window_TransitionEvent;
  53679. let TransitionEvent = (_window_TransitionEvent = window2.TransitionEvent) !== null && _window_TransitionEvent !== void 0 ? _window_TransitionEvent : class extends Event2 {
  53680. };
  53681. var _window_UIEvent;
  53682. let UIEvent = (_window_UIEvent = window2.UIEvent) !== null && _window_UIEvent !== void 0 ? _window_UIEvent : class extends Event2 {
  53683. };
  53684. var _window_CompositionEvent;
  53685. let CompositionEvent = (_window_CompositionEvent = window2.CompositionEvent) !== null && _window_CompositionEvent !== void 0 ? _window_CompositionEvent : class extends UIEvent {
  53686. };
  53687. var _window_FocusEvent;
  53688. let FocusEvent2 = (_window_FocusEvent = window2.FocusEvent) !== null && _window_FocusEvent !== void 0 ? _window_FocusEvent : class extends UIEvent {
  53689. };
  53690. var _window_InputEvent;
  53691. let InputEvent = (_window_InputEvent = window2.InputEvent) !== null && _window_InputEvent !== void 0 ? _window_InputEvent : class extends UIEvent {
  53692. };
  53693. var _window_KeyboardEvent;
  53694. let KeyboardEvent2 = (_window_KeyboardEvent = window2.KeyboardEvent) !== null && _window_KeyboardEvent !== void 0 ? _window_KeyboardEvent : class extends UIEvent {
  53695. };
  53696. var _window_MouseEvent;
  53697. let MouseEvent2 = (_window_MouseEvent = window2.MouseEvent) !== null && _window_MouseEvent !== void 0 ? _window_MouseEvent : class extends UIEvent {
  53698. };
  53699. var _window_DragEvent;
  53700. let DragEvent = (_window_DragEvent = window2.DragEvent) !== null && _window_DragEvent !== void 0 ? _window_DragEvent : class extends MouseEvent2 {
  53701. };
  53702. var _window_PointerEvent;
  53703. let PointerEvent2 = (_window_PointerEvent = window2.PointerEvent) !== null && _window_PointerEvent !== void 0 ? _window_PointerEvent : class extends MouseEvent2 {
  53704. };
  53705. var _window_TouchEvent;
  53706. let TouchEvent = (_window_TouchEvent = window2.TouchEvent) !== null && _window_TouchEvent !== void 0 ? _window_TouchEvent : class extends UIEvent {
  53707. };
  53708. return {
  53709. Event: Event2,
  53710. AnimationEvent,
  53711. ClipboardEvent,
  53712. PopStateEvent,
  53713. ProgressEvent,
  53714. TransitionEvent,
  53715. UIEvent,
  53716. CompositionEvent,
  53717. FocusEvent: FocusEvent2,
  53718. InputEvent,
  53719. KeyboardEvent: KeyboardEvent2,
  53720. MouseEvent: MouseEvent2,
  53721. DragEvent,
  53722. PointerEvent: PointerEvent2,
  53723. TouchEvent
  53724. };
  53725. }
  53726. function assignProps(obj, props) {
  53727. for (let [key, value] of Object.entries(props))
  53728. Object.defineProperty(obj, key, {
  53729. get: () => value ?? null
  53730. });
  53731. }
  53732. function sanitizeNumber(n) {
  53733. return Number(n ?? 0);
  53734. }
  53735. function initClipboardEvent(event, { clipboardData }) {
  53736. assignProps(event, {
  53737. clipboardData
  53738. });
  53739. }
  53740. function initFocusEvent(event, { relatedTarget }) {
  53741. assignProps(event, {
  53742. relatedTarget
  53743. });
  53744. }
  53745. function initInputEvent(event, { data, inputType, isComposing }) {
  53746. assignProps(event, {
  53747. data,
  53748. isComposing: !!isComposing,
  53749. inputType: String(inputType)
  53750. });
  53751. }
  53752. function initUIEvent(event, { view, detail }) {
  53753. assignProps(event, {
  53754. view,
  53755. detail: sanitizeNumber(detail ?? 0)
  53756. });
  53757. }
  53758. function initUIEventModifiers(event, { altKey, ctrlKey, metaKey, shiftKey, modifierAltGraph, modifierCapsLock, modifierFn, modifierFnLock, modifierNumLock, modifierScrollLock, modifierSymbol, modifierSymbolLock }) {
  53759. assignProps(event, {
  53760. altKey: !!altKey,
  53761. ctrlKey: !!ctrlKey,
  53762. metaKey: !!metaKey,
  53763. shiftKey: !!shiftKey,
  53764. getModifierState(k) {
  53765. return !!{
  53766. Alt: altKey,
  53767. AltGraph: modifierAltGraph,
  53768. CapsLock: modifierCapsLock,
  53769. Control: ctrlKey,
  53770. Fn: modifierFn,
  53771. FnLock: modifierFnLock,
  53772. Meta: metaKey,
  53773. NumLock: modifierNumLock,
  53774. ScrollLock: modifierScrollLock,
  53775. Shift: shiftKey,
  53776. Symbol: modifierSymbol,
  53777. SymbolLock: modifierSymbolLock
  53778. }[k];
  53779. }
  53780. });
  53781. }
  53782. function initKeyboardEvent(event, { key, code, location: location4, repeat, isComposing, charCode }) {
  53783. assignProps(event, {
  53784. key: String(key),
  53785. code: String(code),
  53786. location: sanitizeNumber(location4),
  53787. repeat: !!repeat,
  53788. isComposing: !!isComposing,
  53789. charCode
  53790. });
  53791. }
  53792. function initMouseEvent(event, { x, y, screenX, screenY, clientX = x, clientY = y, button, buttons, relatedTarget, offsetX, offsetY, pageX, pageY }) {
  53793. assignProps(event, {
  53794. screenX: sanitizeNumber(screenX),
  53795. screenY: sanitizeNumber(screenY),
  53796. clientX: sanitizeNumber(clientX),
  53797. x: sanitizeNumber(clientX),
  53798. clientY: sanitizeNumber(clientY),
  53799. y: sanitizeNumber(clientY),
  53800. button: sanitizeNumber(button),
  53801. buttons: sanitizeNumber(buttons),
  53802. relatedTarget,
  53803. offsetX: sanitizeNumber(offsetX),
  53804. offsetY: sanitizeNumber(offsetY),
  53805. pageX: sanitizeNumber(pageX),
  53806. pageY: sanitizeNumber(pageY)
  53807. });
  53808. }
  53809. function initPointerEvent(event, { pointerId, width, height, pressure, tangentialPressure, tiltX, tiltY, twist, pointerType, isPrimary }) {
  53810. assignProps(event, {
  53811. pointerId: sanitizeNumber(pointerId),
  53812. width: sanitizeNumber(width ?? 1),
  53813. height: sanitizeNumber(height ?? 1),
  53814. pressure: sanitizeNumber(pressure),
  53815. tangentialPressure: sanitizeNumber(tangentialPressure),
  53816. tiltX: sanitizeNumber(tiltX),
  53817. tiltY: sanitizeNumber(tiltY),
  53818. twist: sanitizeNumber(twist),
  53819. pointerType: String(pointerType),
  53820. isPrimary: !!isPrimary
  53821. });
  53822. }
  53823. // ../../node_modules/@testing-library/user-event/dist/esm/event/dispatchEvent.js
  53824. function dispatchUIEvent(target, type5, init16, preventDefault = !1) {
  53825. (isMouseEvent(type5) || isKeyboardEvent(type5)) && (init16 = {
  53826. ...init16,
  53827. ...this.system.getUIEventModifiers()
  53828. });
  53829. let event = createEvent2(type5, target, init16);
  53830. return dispatchEvent.call(this, target, event, preventDefault);
  53831. }
  53832. function dispatchEvent(target, event, preventDefault = !1) {
  53833. var _behavior_type;
  53834. let type5 = event.type, behaviorImplementation = preventDefault ? () => {
  53835. } : (_behavior_type = behavior[type5]) === null || _behavior_type === void 0 ? void 0 : _behavior_type.call(behavior, event, target, this);
  53836. if (behaviorImplementation) {
  53837. event.preventDefault();
  53838. let defaultPrevented = !1;
  53839. return Object.defineProperty(event, "defaultPrevented", {
  53840. get: () => defaultPrevented
  53841. }), Object.defineProperty(event, "preventDefault", {
  53842. value: () => {
  53843. defaultPrevented = event.cancelable;
  53844. }
  53845. }), wrapEvent(() => target.dispatchEvent(event)), defaultPrevented || behaviorImplementation(), !defaultPrevented;
  53846. }
  53847. return wrapEvent(() => target.dispatchEvent(event));
  53848. }
  53849. function dispatchDOMEvent(target, type5, init16) {
  53850. let event = createEvent2(type5, target, init16);
  53851. wrapEvent(() => target.dispatchEvent(event));
  53852. }
  53853. // ../../node_modules/@testing-library/user-event/dist/esm/document/patchFocus.js
  53854. var patched = /* @__PURE__ */ Symbol("patched focus/blur methods");
  53855. function patchFocus(HTMLElement2) {
  53856. if (HTMLElement2.prototype[patched])
  53857. return;
  53858. let { focus, blur } = HTMLElement2.prototype;
  53859. Object.defineProperties(HTMLElement2.prototype, {
  53860. focus: {
  53861. configurable: !0,
  53862. get: () => patchedFocus
  53863. },
  53864. blur: {
  53865. configurable: !0,
  53866. get: () => patchedBlur
  53867. },
  53868. [patched]: {
  53869. configurable: !0,
  53870. get: () => ({
  53871. focus,
  53872. blur
  53873. })
  53874. }
  53875. });
  53876. let activeCall;
  53877. function patchedFocus(options) {
  53878. if (this.ownerDocument.visibilityState !== "hidden")
  53879. return focus.call(this, options);
  53880. let blurred = getActiveTarget(this.ownerDocument);
  53881. if (blurred === this)
  53882. return;
  53883. let thisCall = /* @__PURE__ */ Symbol("focus call");
  53884. activeCall = thisCall, blurred && (blur.call(blurred), dispatchDOMEvent(blurred, "blur", {
  53885. relatedTarget: this
  53886. }), dispatchDOMEvent(blurred, "focusout", {
  53887. relatedTarget: activeCall === thisCall ? this : null
  53888. })), activeCall === thisCall && (focus.call(this, options), dispatchDOMEvent(this, "focus", {
  53889. relatedTarget: blurred
  53890. })), activeCall === thisCall && dispatchDOMEvent(this, "focusin", {
  53891. relatedTarget: blurred
  53892. });
  53893. }
  53894. function patchedBlur() {
  53895. if (this.ownerDocument.visibilityState !== "hidden")
  53896. return blur.call(this);
  53897. let blurred = getActiveTarget(this.ownerDocument);
  53898. if (blurred !== this)
  53899. return;
  53900. activeCall = /* @__PURE__ */ Symbol("blur call"), blur.call(this), dispatchDOMEvent(blurred, "blur", {
  53901. relatedTarget: null
  53902. }), dispatchDOMEvent(blurred, "focusout", {
  53903. relatedTarget: null
  53904. });
  53905. }
  53906. }
  53907. function getActiveTarget(document13) {
  53908. let active = getActiveElement(document13);
  53909. return active?.tagName === "BODY" ? null : active;
  53910. }
  53911. // ../../node_modules/@testing-library/user-event/dist/esm/document/interceptor.js
  53912. var Interceptor = /* @__PURE__ */ Symbol("Interceptor for programmatical calls");
  53913. function prepareInterceptor(element, propName, interceptorImpl) {
  53914. let prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, propName), objectDescriptor = Object.getOwnPropertyDescriptor(element, propName), target = prototypeDescriptor?.set ? "set" : "value";
  53915. if (typeof prototypeDescriptor?.[target] != "function" || prototypeDescriptor[target][Interceptor])
  53916. throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`);
  53917. function intercept(...args) {
  53918. let { applyNative = !1, realArgs, then } = interceptorImpl.call(this, ...args), realFunc = (!applyNative && objectDescriptor || prototypeDescriptor)[target];
  53919. target === "set" ? realFunc.call(this, realArgs) : realFunc.call(this, ...realArgs), then?.();
  53920. }
  53921. intercept[Interceptor] = Interceptor, Object.defineProperty(element, propName, {
  53922. ...objectDescriptor ?? prototypeDescriptor,
  53923. [target]: intercept
  53924. });
  53925. }
  53926. function prepareValueInterceptor(element) {
  53927. prepareInterceptor(element, "value", function(v) {
  53928. let isUI = isUIValue(v);
  53929. return isUI && startTrackValue(this), {
  53930. applyNative: !!isUI,
  53931. realArgs: sanitizeValue(this, v),
  53932. then: isUI ? void 0 : () => trackOrSetValue(this, String(v))
  53933. };
  53934. });
  53935. }
  53936. function sanitizeValue(element, v) {
  53937. return isElementType(element, "input", {
  53938. type: "number"
  53939. }) && String(v) !== "" && !Number.isNaN(Number(v)) ? String(Number(v)) : String(v);
  53940. }
  53941. function prepareSelectionInterceptor(element) {
  53942. prepareInterceptor(element, "setSelectionRange", function(start2, ...others) {
  53943. let isUI = isUISelectionStart(start2);
  53944. return {
  53945. applyNative: !!isUI,
  53946. realArgs: [
  53947. Number(start2),
  53948. ...others
  53949. ],
  53950. then: () => isUI ? void 0 : setUISelectionClean(element)
  53951. };
  53952. }), prepareInterceptor(element, "selectionStart", function(v) {
  53953. return {
  53954. realArgs: v,
  53955. then: () => setUISelectionClean(element)
  53956. };
  53957. }), prepareInterceptor(element, "selectionEnd", function(v) {
  53958. return {
  53959. realArgs: v,
  53960. then: () => setUISelectionClean(element)
  53961. };
  53962. }), prepareInterceptor(element, "select", function() {
  53963. return {
  53964. realArgs: [],
  53965. then: () => setUISelectionRaw(element, {
  53966. anchorOffset: 0,
  53967. focusOffset: getUIValue(element).length
  53968. })
  53969. };
  53970. });
  53971. }
  53972. function prepareRangeTextInterceptor(element) {
  53973. prepareInterceptor(element, "setRangeText", function(...realArgs) {
  53974. return {
  53975. realArgs,
  53976. then: () => {
  53977. setUIValueClean(element), setUISelectionClean(element);
  53978. }
  53979. };
  53980. });
  53981. }
  53982. // ../../node_modules/@testing-library/user-event/dist/esm/document/prepareDocument.js
  53983. var isPrepared = /* @__PURE__ */ Symbol("Node prepared with document state workarounds");
  53984. function prepareDocument(document13) {
  53985. document13[isPrepared] || (document13.addEventListener("focus", (e) => {
  53986. let el = e.target;
  53987. prepareElement(el);
  53988. }, {
  53989. capture: !0,
  53990. passive: !0
  53991. }), document13.activeElement && prepareElement(document13.activeElement), document13.addEventListener("blur", (e) => {
  53992. let el = e.target, initialValue2 = getInitialValue(el);
  53993. initialValue2 !== void 0 && (el.value !== initialValue2 && dispatchDOMEvent(el, "change"), clearInitialValue(el));
  53994. }, {
  53995. capture: !0,
  53996. passive: !0
  53997. }), document13[isPrepared] = isPrepared);
  53998. }
  53999. function prepareElement(el) {
  54000. el[isPrepared] || (isElementType(el, [
  54001. "input",
  54002. "textarea"
  54003. ]) && (prepareValueInterceptor(el), prepareSelectionInterceptor(el), prepareRangeTextInterceptor(el)), el[isPrepared] = isPrepared);
  54004. }
  54005. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getDocumentFromNode.js
  54006. function getDocumentFromNode(el) {
  54007. return isDocument2(el) ? el : el.ownerDocument;
  54008. }
  54009. function isDocument2(node2) {
  54010. return node2.nodeType === 9;
  54011. }
  54012. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/level.js
  54013. var ApiLevel = (function(ApiLevel2) {
  54014. return ApiLevel2[ApiLevel2.Trigger = 2] = "Trigger", ApiLevel2[ApiLevel2.Call = 1] = "Call", ApiLevel2;
  54015. })({});
  54016. function setLevelRef(instance, level) {
  54017. instance.levelRefs[level] = {};
  54018. }
  54019. function getLevelRef(instance, level) {
  54020. return instance.levelRefs[level];
  54021. }
  54022. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/wait.js
  54023. function wait(config4) {
  54024. let delay = config4.delay;
  54025. if (typeof delay == "number")
  54026. return Promise.all([
  54027. new Promise((resolve) => globalThis.setTimeout(() => resolve(), delay)),
  54028. config4.advanceTimers(delay)
  54029. ]);
  54030. }
  54031. // ../../node_modules/@testing-library/user-event/dist/esm/options.js
  54032. var PointerEventsCheckLevel = (function(PointerEventsCheckLevel2) {
  54033. return PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTrigger = 4] = "EachTrigger", PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall = 2] = "EachApiCall", PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget = 1] = "EachTarget", PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never = 0] = "Never", PointerEventsCheckLevel2;
  54034. })({});
  54035. // ../../node_modules/@testing-library/user-event/dist/esm/system/keyboard.js
  54036. function _define_property3(obj, key, value) {
  54037. return key in obj ? Object.defineProperty(obj, key, {
  54038. value,
  54039. enumerable: !0,
  54040. configurable: !0,
  54041. writable: !0
  54042. }) : obj[key] = value, obj;
  54043. }
  54044. var DOM_KEY_LOCATION = (function(DOM_KEY_LOCATION2) {
  54045. return DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.STANDARD = 0] = "STANDARD", DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.LEFT = 1] = "LEFT", DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.RIGHT = 2] = "RIGHT", DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.NUMPAD = 3] = "NUMPAD", DOM_KEY_LOCATION2;
  54046. })({}), modifierKeys = [
  54047. "Alt",
  54048. "AltGraph",
  54049. "Control",
  54050. "Fn",
  54051. "Meta",
  54052. "Shift",
  54053. "Symbol"
  54054. ];
  54055. function isModifierKey(key) {
  54056. return modifierKeys.includes(key);
  54057. }
  54058. var modifierLocks = [
  54059. "CapsLock",
  54060. "FnLock",
  54061. "NumLock",
  54062. "ScrollLock",
  54063. "SymbolLock"
  54064. ];
  54065. function isModifierLock(key) {
  54066. return modifierLocks.includes(key);
  54067. }
  54068. var KeyboardHost = class {
  54069. isKeyPressed(keyDef) {
  54070. return this.pressed.has(String(keyDef.code));
  54071. }
  54072. getPressedKeys() {
  54073. return this.pressed.values().map((p3) => p3.keyDef);
  54074. }
  54075. /** Press a key */
  54076. async keydown(instance, keyDef) {
  54077. let key = String(keyDef.key), code = String(keyDef.code), target = getActiveElementOrBody(instance.config.document);
  54078. this.setKeydownTarget(target), this.pressed.add(code, keyDef), isModifierKey(key) && (this.modifiers[key] = !0);
  54079. let unprevented = instance.dispatchUIEvent(target, "keydown", {
  54080. key,
  54081. code
  54082. });
  54083. isModifierLock(key) && !this.modifiers[key] && (this.modifiers[key] = !0, this.modifierLockStart[key] = !0), unprevented && this.pressed.setUnprevented(code), unprevented && this.hasKeyPress(key) && instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document), "keypress", {
  54084. key,
  54085. code,
  54086. charCode: keyDef.key === "Enter" ? 13 : String(keyDef.key).charCodeAt(0)
  54087. });
  54088. }
  54089. /** Release a key */
  54090. async keyup(instance, keyDef) {
  54091. let key = String(keyDef.key), code = String(keyDef.code), unprevented = this.pressed.isUnprevented(code);
  54092. this.pressed.delete(code), isModifierKey(key) && !this.pressed.values().find((p3) => p3.keyDef.key === key) && (this.modifiers[key] = !1), instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document), "keyup", {
  54093. key,
  54094. code
  54095. }, !unprevented), isModifierLock(key) && this.modifiers[key] && (this.modifierLockStart[key] ? this.modifierLockStart[key] = !1 : this.modifiers[key] = !1);
  54096. }
  54097. setKeydownTarget(target) {
  54098. target !== this.lastKeydownTarget && (this.carryChar = ""), this.lastKeydownTarget = target;
  54099. }
  54100. hasKeyPress(key) {
  54101. return (key.length === 1 || key === "Enter") && !this.modifiers.Control && !this.modifiers.Alt;
  54102. }
  54103. constructor(system) {
  54104. _define_property3(this, "system", void 0), _define_property3(this, "modifiers", {
  54105. Alt: !1,
  54106. AltGraph: !1,
  54107. CapsLock: !1,
  54108. Control: !1,
  54109. Fn: !1,
  54110. FnLock: !1,
  54111. Meta: !1,
  54112. NumLock: !1,
  54113. ScrollLock: !1,
  54114. Shift: !1,
  54115. Symbol: !1,
  54116. SymbolLock: !1
  54117. }), _define_property3(this, "pressed", new class {
  54118. add(code, keyDef) {
  54119. var _this_registry, _code, _;
  54120. (_ = (_this_registry = this.registry)[_code = code]) !== null && _ !== void 0 || (_this_registry[_code] = {
  54121. keyDef,
  54122. unpreventedDefault: !1
  54123. });
  54124. }
  54125. has(code) {
  54126. return !!this.registry[code];
  54127. }
  54128. setUnprevented(code) {
  54129. let o = this.registry[code];
  54130. o && (o.unpreventedDefault = !0);
  54131. }
  54132. isUnprevented(code) {
  54133. var _this_registry_code;
  54134. return !!(!((_this_registry_code = this.registry[code]) === null || _this_registry_code === void 0) && _this_registry_code.unpreventedDefault);
  54135. }
  54136. delete(code) {
  54137. delete this.registry[code];
  54138. }
  54139. values() {
  54140. return Object.values(this.registry);
  54141. }
  54142. constructor() {
  54143. _define_property3(this, "registry", {});
  54144. }
  54145. }()), _define_property3(this, "carryChar", ""), _define_property3(this, "lastKeydownTarget", void 0), _define_property3(this, "modifierLockStart", {}), this.system = system;
  54146. }
  54147. };
  54148. // ../../node_modules/@testing-library/user-event/dist/esm/keyboard/keyMap.js
  54149. var defaultKeyMap = [
  54150. // alphanumeric block - writing system
  54151. ..."0123456789".split("").map((c) => ({
  54152. code: `Digit${c}`,
  54153. key: c
  54154. })),
  54155. ...")!@#$%^&*(".split("").map((c, i) => ({
  54156. code: `Digit${i}`,
  54157. key: c,
  54158. shiftKey: !0
  54159. })),
  54160. ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => ({
  54161. code: `Key${c.toUpperCase()}`,
  54162. key: c
  54163. })),
  54164. ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => ({
  54165. code: `Key${c}`,
  54166. key: c,
  54167. shiftKey: !0
  54168. })),
  54169. {
  54170. code: "BracketLeft",
  54171. key: "["
  54172. },
  54173. {
  54174. code: "BracketLeft",
  54175. key: "{",
  54176. shiftKey: !0
  54177. },
  54178. {
  54179. code: "BracketRight",
  54180. key: "]"
  54181. },
  54182. {
  54183. code: "BracketRight",
  54184. key: "}",
  54185. shiftKey: !0
  54186. },
  54187. // alphanumeric block - functional
  54188. {
  54189. code: "Space",
  54190. key: " "
  54191. },
  54192. {
  54193. code: "AltLeft",
  54194. key: "Alt",
  54195. location: DOM_KEY_LOCATION.LEFT
  54196. },
  54197. {
  54198. code: "AltRight",
  54199. key: "Alt",
  54200. location: DOM_KEY_LOCATION.RIGHT
  54201. },
  54202. {
  54203. code: "ShiftLeft",
  54204. key: "Shift",
  54205. location: DOM_KEY_LOCATION.LEFT
  54206. },
  54207. {
  54208. code: "ShiftRight",
  54209. key: "Shift",
  54210. location: DOM_KEY_LOCATION.RIGHT
  54211. },
  54212. {
  54213. code: "ControlLeft",
  54214. key: "Control",
  54215. location: DOM_KEY_LOCATION.LEFT
  54216. },
  54217. {
  54218. code: "ControlRight",
  54219. key: "Control",
  54220. location: DOM_KEY_LOCATION.RIGHT
  54221. },
  54222. {
  54223. code: "MetaLeft",
  54224. key: "Meta",
  54225. location: DOM_KEY_LOCATION.LEFT
  54226. },
  54227. {
  54228. code: "MetaRight",
  54229. key: "Meta",
  54230. location: DOM_KEY_LOCATION.RIGHT
  54231. },
  54232. {
  54233. code: "OSLeft",
  54234. key: "OS",
  54235. location: DOM_KEY_LOCATION.LEFT
  54236. },
  54237. {
  54238. code: "OSRight",
  54239. key: "OS",
  54240. location: DOM_KEY_LOCATION.RIGHT
  54241. },
  54242. {
  54243. code: "ContextMenu",
  54244. key: "ContextMenu"
  54245. },
  54246. {
  54247. code: "Tab",
  54248. key: "Tab"
  54249. },
  54250. {
  54251. code: "CapsLock",
  54252. key: "CapsLock"
  54253. },
  54254. {
  54255. code: "Backspace",
  54256. key: "Backspace"
  54257. },
  54258. {
  54259. code: "Enter",
  54260. key: "Enter"
  54261. },
  54262. // function
  54263. {
  54264. code: "Escape",
  54265. key: "Escape"
  54266. },
  54267. // arrows
  54268. {
  54269. code: "ArrowUp",
  54270. key: "ArrowUp"
  54271. },
  54272. {
  54273. code: "ArrowDown",
  54274. key: "ArrowDown"
  54275. },
  54276. {
  54277. code: "ArrowLeft",
  54278. key: "ArrowLeft"
  54279. },
  54280. {
  54281. code: "ArrowRight",
  54282. key: "ArrowRight"
  54283. },
  54284. // control pad
  54285. {
  54286. code: "Home",
  54287. key: "Home"
  54288. },
  54289. {
  54290. code: "End",
  54291. key: "End"
  54292. },
  54293. {
  54294. code: "Delete",
  54295. key: "Delete"
  54296. },
  54297. {
  54298. code: "PageUp",
  54299. key: "PageUp"
  54300. },
  54301. {
  54302. code: "PageDown",
  54303. key: "PageDown"
  54304. },
  54305. // Special keys that are not part of a default US-layout but included for specific behavior
  54306. {
  54307. code: "Fn",
  54308. key: "Fn"
  54309. },
  54310. {
  54311. code: "Symbol",
  54312. key: "Symbol"
  54313. },
  54314. {
  54315. code: "AltRight",
  54316. key: "AltGraph"
  54317. }
  54318. ];
  54319. // ../../node_modules/@testing-library/user-event/dist/esm/pointer/keyMap.js
  54320. var defaultKeyMap2 = [
  54321. {
  54322. name: "MouseLeft",
  54323. pointerType: "mouse",
  54324. button: "primary"
  54325. },
  54326. {
  54327. name: "MouseRight",
  54328. pointerType: "mouse",
  54329. button: "secondary"
  54330. },
  54331. {
  54332. name: "MouseMiddle",
  54333. pointerType: "mouse",
  54334. button: "auxiliary"
  54335. },
  54336. {
  54337. name: "TouchA",
  54338. pointerType: "touch"
  54339. },
  54340. {
  54341. name: "TouchB",
  54342. pointerType: "touch"
  54343. },
  54344. {
  54345. name: "TouchC",
  54346. pointerType: "touch"
  54347. }
  54348. ];
  54349. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/buttons.js
  54350. function _define_property4(obj, key, value) {
  54351. return key in obj ? Object.defineProperty(obj, key, {
  54352. value,
  54353. enumerable: !0,
  54354. configurable: !0,
  54355. writable: !0
  54356. }) : obj[key] = value, obj;
  54357. }
  54358. var Buttons = class {
  54359. getButtons() {
  54360. let v = 0;
  54361. for (let button of Object.keys(this.pressed))
  54362. v |= 2 ** Number(button);
  54363. return v;
  54364. }
  54365. down(keyDef) {
  54366. let button = getMouseButtonId(keyDef.button);
  54367. if (button in this.pressed) {
  54368. this.pressed[button].push(keyDef);
  54369. return;
  54370. }
  54371. return this.pressed[button] = [
  54372. keyDef
  54373. ], button;
  54374. }
  54375. up(keyDef) {
  54376. let button = getMouseButtonId(keyDef.button);
  54377. if (button in this.pressed && (this.pressed[button] = this.pressed[button].filter((k) => k.name !== keyDef.name), this.pressed[button].length === 0))
  54378. return delete this.pressed[button], button;
  54379. }
  54380. constructor() {
  54381. _define_property4(this, "pressed", {});
  54382. }
  54383. }, MouseButton = {
  54384. primary: 0,
  54385. secondary: 1,
  54386. auxiliary: 2,
  54387. back: 3,
  54388. X1: 3,
  54389. forward: 4,
  54390. X2: 4
  54391. };
  54392. function getMouseButtonId(button = 0) {
  54393. return button in MouseButton ? MouseButton[button] : Number(button);
  54394. }
  54395. var MouseButtonFlip = {
  54396. 1: 2,
  54397. 2: 1
  54398. };
  54399. function getMouseEventButton(button) {
  54400. return button = getMouseButtonId(button), button in MouseButtonFlip ? MouseButtonFlip[button] : button;
  54401. }
  54402. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/device.js
  54403. function _define_property5(obj, key, value) {
  54404. return key in obj ? Object.defineProperty(obj, key, {
  54405. value,
  54406. enumerable: !0,
  54407. configurable: !0,
  54408. writable: !0
  54409. }) : obj[key] = value, obj;
  54410. }
  54411. var Device = class {
  54412. get countPressed() {
  54413. return this.pressedKeys.size;
  54414. }
  54415. isPressed(keyDef) {
  54416. return this.pressedKeys.has(keyDef.name);
  54417. }
  54418. addPressed(keyDef) {
  54419. return this.pressedKeys.add(keyDef.name);
  54420. }
  54421. removePressed(keyDef) {
  54422. return this.pressedKeys.delete(keyDef.name);
  54423. }
  54424. constructor() {
  54425. _define_property5(this, "pressedKeys", /* @__PURE__ */ new Set());
  54426. }
  54427. };
  54428. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js
  54429. function getTreeDiff(a3, b) {
  54430. let treeA = [];
  54431. for (let el = a3; el; el = el.parentElement)
  54432. treeA.push(el);
  54433. let treeB = [];
  54434. for (let el = b; el; el = el.parentElement)
  54435. treeB.push(el);
  54436. let i = 0;
  54437. for (; !(i >= treeA.length || i >= treeB.length || treeA[treeA.length - 1 - i] !== treeB[treeB.length - 1 - i]); i++)
  54438. ;
  54439. return [
  54440. treeA.slice(0, treeA.length - i),
  54441. treeB.slice(0, treeB.length - i),
  54442. treeB.slice(treeB.length - i)
  54443. ];
  54444. }
  54445. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/resolveCaretPosition.js
  54446. function resolveCaretPosition({ target, node: node2, offset: offset3 }) {
  54447. return hasOwnSelection(target) ? {
  54448. node: target,
  54449. offset: offset3 ?? getUIValue(target).length
  54450. } : node2 ? {
  54451. node: node2,
  54452. offset: offset3 ?? (node2.nodeType === 3 ? node2.nodeValue.length : node2.childNodes.length)
  54453. } : findNodeAtTextOffset(target, offset3);
  54454. }
  54455. function findNodeAtTextOffset(node2, offset3, isRoot = !0) {
  54456. let i = offset3 === void 0 ? node2.childNodes.length - 1 : 0, step2 = offset3 === void 0 ? -1 : 1;
  54457. for (; offset3 === void 0 ? i >= (isRoot ? Math.max(node2.childNodes.length - 1, 0) : 0) : i <= node2.childNodes.length; ) {
  54458. if (offset3 && i === node2.childNodes.length)
  54459. throw new Error("The given offset is out of bounds.");
  54460. let c = node2.childNodes.item(i), text = String(c.textContent);
  54461. if (text.length)
  54462. if (offset3 !== void 0 && text.length < offset3)
  54463. offset3 -= text.length;
  54464. else {
  54465. if (c.nodeType === 1)
  54466. return findNodeAtTextOffset(c, offset3, !1);
  54467. if (c.nodeType === 3)
  54468. return {
  54469. node: c,
  54470. offset: offset3 ?? c.nodeValue.length
  54471. };
  54472. }
  54473. i += step2;
  54474. }
  54475. return {
  54476. node: node2,
  54477. offset: node2.childNodes.length
  54478. };
  54479. }
  54480. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionPerMouse.js
  54481. function setSelectionPerMouseDown({ document: document13, target, clickCount, node: node2, offset: offset3 }) {
  54482. if (hasNoSelection(target))
  54483. return;
  54484. let targetHasOwnSelection = hasOwnSelection(target), text = String(targetHasOwnSelection ? getUIValue(target) : target.textContent), [start2, end2] = node2 ? (
  54485. // which elements might be considered in the same line of text.
  54486. // TODO: support expanding initial range on multiple clicks if node is given
  54487. [
  54488. offset3,
  54489. offset3
  54490. ]
  54491. ) : getTextRange(text, offset3, clickCount);
  54492. if (targetHasOwnSelection)
  54493. return setUISelection(target, {
  54494. anchorOffset: start2 ?? text.length,
  54495. focusOffset: end2 ?? text.length
  54496. }), {
  54497. node: target,
  54498. start: start2 ?? 0,
  54499. end: end2 ?? text.length
  54500. };
  54501. {
  54502. let { node: startNode, offset: startOffset } = resolveCaretPosition({
  54503. target,
  54504. node: node2,
  54505. offset: start2
  54506. }), { node: endNode, offset: endOffset } = resolveCaretPosition({
  54507. target,
  54508. node: node2,
  54509. offset: end2
  54510. }), range = target.ownerDocument.createRange();
  54511. try {
  54512. range.setStart(startNode, startOffset), range.setEnd(endNode, endOffset);
  54513. } catch {
  54514. throw new Error("The given offset is out of bounds.");
  54515. }
  54516. let selection = document13.getSelection();
  54517. return selection?.removeAllRanges(), selection?.addRange(range.cloneRange()), range;
  54518. }
  54519. }
  54520. function getTextRange(text, pos, clickCount) {
  54521. if (clickCount % 3 === 1 || text.length === 0)
  54522. return [
  54523. pos,
  54524. pos
  54525. ];
  54526. let textPos = pos ?? text.length;
  54527. return clickCount % 3 === 2 ? [
  54528. textPos - text.substr(0, pos).match(/(\w+|\s+|\W)?$/)[0].length,
  54529. pos === void 0 ? pos : pos + text.substr(pos).match(/^(\w+|\s+|\W)?/)[0].length
  54530. ] : [
  54531. textPos - text.substr(0, pos).match(/[^\r\n]*$/)[0].length,
  54532. pos === void 0 ? pos : pos + text.substr(pos).match(/^[^\r\n]*/)[0].length
  54533. ];
  54534. }
  54535. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/modifySelectionPerMouse.js
  54536. function modifySelectionPerMouseMove(selectionRange, { document: document13, target, node: node2, offset: offset3 }) {
  54537. let selectionFocus = resolveCaretPosition({
  54538. target,
  54539. node: node2,
  54540. offset: offset3
  54541. });
  54542. if ("node" in selectionRange) {
  54543. if (selectionFocus.node === selectionRange.node) {
  54544. let anchorOffset = selectionFocus.offset < selectionRange.start ? selectionRange.end : selectionRange.start, focusOffset = selectionFocus.offset > selectionRange.end || selectionFocus.offset < selectionRange.start ? selectionFocus.offset : selectionRange.end;
  54545. setUISelection(selectionRange.node, {
  54546. anchorOffset,
  54547. focusOffset
  54548. });
  54549. }
  54550. } else {
  54551. let range = selectionRange.cloneRange(), cmp = range.comparePoint(selectionFocus.node, selectionFocus.offset);
  54552. cmp < 0 ? range.setStart(selectionFocus.node, selectionFocus.offset) : cmp > 0 && range.setEnd(selectionFocus.node, selectionFocus.offset);
  54553. let selection = document13.getSelection();
  54554. selection?.removeAllRanges(), selection?.addRange(range.cloneRange());
  54555. }
  54556. }
  54557. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/shared.js
  54558. function isDifferentPointerPosition(positionA, positionB) {
  54559. var _positionA_coords, _positionB_coords, _positionA_coords1, _positionB_coords1, _positionA_coords2, _positionB_coords2, _positionA_coords3, _positionB_coords3, _positionA_coords4, _positionB_coords4, _positionA_coords5, _positionB_coords5, _positionA_coords6, _positionB_coords6, _positionA_coords7, _positionB_coords7, _positionA_coords8, _positionB_coords8, _positionA_coords9, _positionB_coords9, _positionA_caret, _positionB_caret, _positionA_caret1, _positionB_caret1;
  54560. return positionA.target !== positionB.target || ((_positionA_coords = positionA.coords) === null || _positionA_coords === void 0 ? void 0 : _positionA_coords.x) !== ((_positionB_coords = positionB.coords) === null || _positionB_coords === void 0 ? void 0 : _positionB_coords.x) || ((_positionA_coords1 = positionA.coords) === null || _positionA_coords1 === void 0 ? void 0 : _positionA_coords1.y) !== ((_positionB_coords1 = positionB.coords) === null || _positionB_coords1 === void 0 ? void 0 : _positionB_coords1.y) || ((_positionA_coords2 = positionA.coords) === null || _positionA_coords2 === void 0 ? void 0 : _positionA_coords2.clientX) !== ((_positionB_coords2 = positionB.coords) === null || _positionB_coords2 === void 0 ? void 0 : _positionB_coords2.clientX) || ((_positionA_coords3 = positionA.coords) === null || _positionA_coords3 === void 0 ? void 0 : _positionA_coords3.clientY) !== ((_positionB_coords3 = positionB.coords) === null || _positionB_coords3 === void 0 ? void 0 : _positionB_coords3.clientY) || ((_positionA_coords4 = positionA.coords) === null || _positionA_coords4 === void 0 ? void 0 : _positionA_coords4.offsetX) !== ((_positionB_coords4 = positionB.coords) === null || _positionB_coords4 === void 0 ? void 0 : _positionB_coords4.offsetX) || ((_positionA_coords5 = positionA.coords) === null || _positionA_coords5 === void 0 ? void 0 : _positionA_coords5.offsetY) !== ((_positionB_coords5 = positionB.coords) === null || _positionB_coords5 === void 0 ? void 0 : _positionB_coords5.offsetY) || ((_positionA_coords6 = positionA.coords) === null || _positionA_coords6 === void 0 ? void 0 : _positionA_coords6.pageX) !== ((_positionB_coords6 = positionB.coords) === null || _positionB_coords6 === void 0 ? void 0 : _positionB_coords6.pageX) || ((_positionA_coords7 = positionA.coords) === null || _positionA_coords7 === void 0 ? void 0 : _positionA_coords7.pageY) !== ((_positionB_coords7 = positionB.coords) === null || _positionB_coords7 === void 0 ? void 0 : _positionB_coords7.pageY) || ((_positionA_coords8 = positionA.coords) === null || _positionA_coords8 === void 0 ? void 0 : _positionA_coords8.screenX) !== ((_positionB_coords8 = positionB.coords) === null || _positionB_coords8 === void 0 ? void 0 : _positionB_coords8.screenX) || ((_positionA_coords9 = positionA.coords) === null || _positionA_coords9 === void 0 ? void 0 : _positionA_coords9.screenY) !== ((_positionB_coords9 = positionB.coords) === null || _positionB_coords9 === void 0 ? void 0 : _positionB_coords9.screenY) || ((_positionA_caret = positionA.caret) === null || _positionA_caret === void 0 ? void 0 : _positionA_caret.node) !== ((_positionB_caret = positionB.caret) === null || _positionB_caret === void 0 ? void 0 : _positionB_caret.node) || ((_positionA_caret1 = positionA.caret) === null || _positionA_caret1 === void 0 ? void 0 : _positionA_caret1.offset) !== ((_positionB_caret1 = positionB.caret) === null || _positionB_caret1 === void 0 ? void 0 : _positionB_caret1.offset);
  54561. }
  54562. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/mouse.js
  54563. function _define_property6(obj, key, value) {
  54564. return key in obj ? Object.defineProperty(obj, key, {
  54565. value,
  54566. enumerable: !0,
  54567. configurable: !0,
  54568. writable: !0
  54569. }) : obj[key] = value, obj;
  54570. }
  54571. var Mouse = class {
  54572. move(instance, position2, isPrevented) {
  54573. let prevPosition = this.position, prevTarget = this.getTarget(instance);
  54574. if (this.position = position2, !isDifferentPointerPosition(prevPosition, position2))
  54575. return;
  54576. let nextTarget = this.getTarget(instance), init16 = this.getEventInit("mousemove"), [leave, enter] = getTreeDiff(prevTarget, nextTarget);
  54577. return {
  54578. leave: () => {
  54579. prevTarget !== nextTarget && (instance.dispatchUIEvent(prevTarget, "mouseout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "mouseleave", init16)));
  54580. },
  54581. enter: () => {
  54582. prevTarget !== nextTarget && (instance.dispatchUIEvent(nextTarget, "mouseover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "mouseenter", init16)));
  54583. },
  54584. move: () => {
  54585. isPrevented || (instance.dispatchUIEvent(nextTarget, "mousemove", init16), this.modifySelecting(instance));
  54586. }
  54587. };
  54588. }
  54589. down(instance, keyDef, isPrevented) {
  54590. let button = this.buttons.down(keyDef);
  54591. if (button === void 0)
  54592. return;
  54593. let target = this.getTarget(instance);
  54594. this.buttonDownTarget[button] = target;
  54595. let init16 = this.getEventInit("mousedown", keyDef.button), disabled = isDisabled2(target);
  54596. !isPrevented && (disabled || instance.dispatchUIEvent(target, "mousedown", init16)) && (this.startSelecting(instance, init16.detail), focusElement(target)), !disabled && getMouseEventButton(keyDef.button) === 2 && instance.dispatchUIEvent(target, "contextmenu", this.getEventInit("contextmenu", keyDef.button));
  54597. }
  54598. up(instance, keyDef, isPrevented) {
  54599. let button = this.buttons.up(keyDef);
  54600. if (button === void 0)
  54601. return;
  54602. let target = this.getTarget(instance);
  54603. if (!isDisabled2(target)) {
  54604. if (!isPrevented) {
  54605. let mouseUpInit = this.getEventInit("mouseup", keyDef.button);
  54606. instance.dispatchUIEvent(target, "mouseup", mouseUpInit), this.endSelecting();
  54607. }
  54608. let clickTarget = getTreeDiff(this.buttonDownTarget[button], target)[2][0];
  54609. if (clickTarget) {
  54610. let init16 = this.getEventInit("click", keyDef.button);
  54611. init16.detail && (instance.dispatchUIEvent(clickTarget, init16.button === 0 ? "click" : "auxclick", init16), init16.button === 0 && init16.detail === 2 && instance.dispatchUIEvent(clickTarget, "dblclick", {
  54612. ...this.getEventInit("dblclick", keyDef.button),
  54613. detail: init16.detail
  54614. }));
  54615. }
  54616. }
  54617. }
  54618. resetClickCount() {
  54619. this.clickCount.reset();
  54620. }
  54621. getEventInit(type5, button) {
  54622. let init16 = {
  54623. ...this.position.coords
  54624. };
  54625. return init16.button = getMouseEventButton(button), init16.buttons = this.buttons.getButtons(), type5 === "mousedown" ? init16.detail = this.clickCount.getOnDown(init16.button) : type5 === "mouseup" ? init16.detail = this.clickCount.getOnUp(init16.button) : (type5 === "click" || type5 === "auxclick") && (init16.detail = this.clickCount.incOnClick(init16.button)), init16;
  54626. }
  54627. getTarget(instance) {
  54628. var _this_position_target;
  54629. return (_this_position_target = this.position.target) !== null && _this_position_target !== void 0 ? _this_position_target : instance.config.document.body;
  54630. }
  54631. startSelecting(instance, clickCount) {
  54632. var _this_position_caret, _this_position_caret1;
  54633. this.selecting = setSelectionPerMouseDown({
  54634. document: instance.config.document,
  54635. target: this.getTarget(instance),
  54636. node: (_this_position_caret = this.position.caret) === null || _this_position_caret === void 0 ? void 0 : _this_position_caret.node,
  54637. offset: (_this_position_caret1 = this.position.caret) === null || _this_position_caret1 === void 0 ? void 0 : _this_position_caret1.offset,
  54638. clickCount
  54639. });
  54640. }
  54641. modifySelecting(instance) {
  54642. var _this_position_caret, _this_position_caret1;
  54643. this.selecting && modifySelectionPerMouseMove(this.selecting, {
  54644. document: instance.config.document,
  54645. target: this.getTarget(instance),
  54646. node: (_this_position_caret = this.position.caret) === null || _this_position_caret === void 0 ? void 0 : _this_position_caret.node,
  54647. offset: (_this_position_caret1 = this.position.caret) === null || _this_position_caret1 === void 0 ? void 0 : _this_position_caret1.offset
  54648. });
  54649. }
  54650. endSelecting() {
  54651. this.selecting = void 0;
  54652. }
  54653. constructor() {
  54654. _define_property6(this, "position", {}), _define_property6(this, "buttons", new Buttons()), _define_property6(this, "selecting", void 0), _define_property6(this, "buttonDownTarget", {}), _define_property6(this, "clickCount", new class {
  54655. incOnClick(button) {
  54656. let current = this.down[button] === void 0 ? void 0 : Number(this.down[button]) + 1;
  54657. return this.count = this.count[button] === void 0 ? {} : {
  54658. [button]: Number(this.count[button]) + 1
  54659. }, current;
  54660. }
  54661. getOnDown(button) {
  54662. var _this_count_button;
  54663. this.down = {
  54664. [button]: (_this_count_button = this.count[button]) !== null && _this_count_button !== void 0 ? _this_count_button : 0
  54665. };
  54666. var _this_count_button1;
  54667. return this.count = {
  54668. [button]: (_this_count_button1 = this.count[button]) !== null && _this_count_button1 !== void 0 ? _this_count_button1 : 0
  54669. }, Number(this.count[button]) + 1;
  54670. }
  54671. getOnUp(button) {
  54672. return this.down[button] === void 0 ? void 0 : Number(this.down[button]) + 1;
  54673. }
  54674. reset() {
  54675. this.count = {};
  54676. }
  54677. constructor() {
  54678. _define_property6(this, "down", {}), _define_property6(this, "count", {});
  54679. }
  54680. }());
  54681. }
  54682. };
  54683. // ../../node_modules/@testing-library/user-event/dist/esm/utils/pointer/cssPointerEvents.js
  54684. function hasPointerEvents(instance, element) {
  54685. var _checkPointerEvents;
  54686. return ((_checkPointerEvents = checkPointerEvents(instance, element)) === null || _checkPointerEvents === void 0 ? void 0 : _checkPointerEvents.pointerEvents) !== "none";
  54687. }
  54688. function closestPointerEventsDeclaration(element) {
  54689. let window2 = getWindow(element);
  54690. for (let el = element, tree = []; el?.ownerDocument; el = el.parentElement) {
  54691. tree.push(el);
  54692. let pointerEvents = window2.getComputedStyle(el).pointerEvents;
  54693. if (pointerEvents && ![
  54694. "inherit",
  54695. "unset"
  54696. ].includes(pointerEvents))
  54697. return {
  54698. pointerEvents,
  54699. tree
  54700. };
  54701. }
  54702. }
  54703. var PointerEventsCheck = /* @__PURE__ */ Symbol("Last check for pointer-events");
  54704. function checkPointerEvents(instance, element) {
  54705. let lastCheck = element[PointerEventsCheck];
  54706. if (!(instance.config.pointerEventsCheck !== PointerEventsCheckLevel.Never && (!lastCheck || hasBitFlag(instance.config.pointerEventsCheck, PointerEventsCheckLevel.EachApiCall) && lastCheck[ApiLevel.Call] !== getLevelRef(instance, ApiLevel.Call) || hasBitFlag(instance.config.pointerEventsCheck, PointerEventsCheckLevel.EachTrigger) && lastCheck[ApiLevel.Trigger] !== getLevelRef(instance, ApiLevel.Trigger))))
  54707. return lastCheck?.result;
  54708. let declaration2 = closestPointerEventsDeclaration(element);
  54709. return element[PointerEventsCheck] = {
  54710. [ApiLevel.Call]: getLevelRef(instance, ApiLevel.Call),
  54711. [ApiLevel.Trigger]: getLevelRef(instance, ApiLevel.Trigger),
  54712. result: declaration2
  54713. }, declaration2;
  54714. }
  54715. function assertPointerEvents(instance, element) {
  54716. let declaration2 = checkPointerEvents(instance, element);
  54717. if (declaration2?.pointerEvents === "none")
  54718. throw new Error([
  54719. `Unable to perform pointer interaction as the element ${declaration2.tree.length > 1 ? "inherits" : "has"} \`pointer-events: none\`:`,
  54720. "",
  54721. printTree(declaration2.tree)
  54722. ].join(`
  54723. `));
  54724. }
  54725. function printTree(tree) {
  54726. return tree.reverse().map((el, i) => [
  54727. "".padEnd(i),
  54728. el.tagName,
  54729. el.id && `#${el.id}`,
  54730. el.hasAttribute("data-testid") && `(testId=${el.getAttribute("data-testid")})`,
  54731. getLabelDescr(el),
  54732. tree.length > 1 && i === 0 && " <-- This element declared `pointer-events: none`",
  54733. tree.length > 1 && i === tree.length - 1 && " <-- Asserted pointer events here"
  54734. ].filter(Boolean).join("")).join(`
  54735. `);
  54736. }
  54737. function getLabelDescr(element) {
  54738. var _element_labels;
  54739. let label;
  54740. if (element.hasAttribute("aria-label"))
  54741. label = element.getAttribute("aria-label");
  54742. else if (element.hasAttribute("aria-labelledby")) {
  54743. var _element_ownerDocument_getElementById_textContent, _element_ownerDocument_getElementById;
  54744. label = (_element_ownerDocument_getElementById = element.ownerDocument.getElementById(element.getAttribute("aria-labelledby"))) === null || _element_ownerDocument_getElementById === void 0 || (_element_ownerDocument_getElementById_textContent = _element_ownerDocument_getElementById.textContent) === null || _element_ownerDocument_getElementById_textContent === void 0 ? void 0 : _element_ownerDocument_getElementById_textContent.trim();
  54745. } else if (isElementType(element, [
  54746. "button",
  54747. "input",
  54748. "meter",
  54749. "output",
  54750. "progress",
  54751. "select",
  54752. "textarea"
  54753. ]) && (!((_element_labels = element.labels) === null || _element_labels === void 0) && _element_labels.length))
  54754. label = Array.from(element.labels).map((el) => {
  54755. var _el_textContent;
  54756. return (_el_textContent = el.textContent) === null || _el_textContent === void 0 ? void 0 : _el_textContent.trim();
  54757. }).join("|");
  54758. else if (isElementType(element, "button")) {
  54759. var _element_textContent;
  54760. label = (_element_textContent = element.textContent) === null || _element_textContent === void 0 ? void 0 : _element_textContent.trim();
  54761. }
  54762. return label = label?.replace(/\n/g, " "), Number(label?.length) > 30 && (label = `${label?.substring(0, 29)}\u2026`), label ? `(label=${label})` : "";
  54763. }
  54764. function hasBitFlag(conf, flag3) {
  54765. return (conf & flag3) > 0;
  54766. }
  54767. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/pointer.js
  54768. function _define_property7(obj, key, value) {
  54769. return key in obj ? Object.defineProperty(obj, key, {
  54770. value,
  54771. enumerable: !0,
  54772. configurable: !0,
  54773. writable: !0
  54774. }) : obj[key] = value, obj;
  54775. }
  54776. var Pointer = class {
  54777. init(instance) {
  54778. let target = this.getTarget(instance), [, enter] = getTreeDiff(null, target), init16 = this.getEventInit();
  54779. return assertPointerEvents(instance, target), instance.dispatchUIEvent(target, "pointerover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "pointerenter", init16)), this;
  54780. }
  54781. move(instance, position2) {
  54782. let prevPosition = this.position, prevTarget = this.getTarget(instance);
  54783. if (this.position = position2, !isDifferentPointerPosition(prevPosition, position2))
  54784. return;
  54785. let nextTarget = this.getTarget(instance), init16 = this.getEventInit(-1), [leave, enter] = getTreeDiff(prevTarget, nextTarget);
  54786. return {
  54787. leave: () => {
  54788. hasPointerEvents(instance, prevTarget) && prevTarget !== nextTarget && (instance.dispatchUIEvent(prevTarget, "pointerout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "pointerleave", init16)));
  54789. },
  54790. enter: () => {
  54791. assertPointerEvents(instance, nextTarget), prevTarget !== nextTarget && (instance.dispatchUIEvent(nextTarget, "pointerover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "pointerenter", init16)));
  54792. },
  54793. move: () => {
  54794. instance.dispatchUIEvent(nextTarget, "pointermove", init16);
  54795. }
  54796. };
  54797. }
  54798. down(instance, button = 0) {
  54799. if (this.isDown)
  54800. return;
  54801. let target = this.getTarget(instance);
  54802. assertPointerEvents(instance, target), this.isDown = !0, this.isPrevented = !instance.dispatchUIEvent(target, "pointerdown", this.getEventInit(button));
  54803. }
  54804. up(instance, button = 0) {
  54805. if (!this.isDown)
  54806. return;
  54807. let target = this.getTarget(instance);
  54808. assertPointerEvents(instance, target), this.isPrevented = !1, this.isDown = !1, instance.dispatchUIEvent(target, "pointerup", this.getEventInit(button));
  54809. }
  54810. release(instance) {
  54811. let target = this.getTarget(instance), [leave] = getTreeDiff(target, null), init16 = this.getEventInit();
  54812. hasPointerEvents(instance, target) && (instance.dispatchUIEvent(target, "pointerout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "pointerleave", init16))), this.isCancelled = !0;
  54813. }
  54814. getTarget(instance) {
  54815. var _this_position_target;
  54816. return (_this_position_target = this.position.target) !== null && _this_position_target !== void 0 ? _this_position_target : instance.config.document.body;
  54817. }
  54818. getEventInit(button) {
  54819. return {
  54820. ...this.position.coords,
  54821. pointerId: this.pointerId,
  54822. pointerType: this.pointerType,
  54823. isPrimary: this.isPrimary,
  54824. button: getMouseEventButton(button),
  54825. buttons: this.buttons.getButtons()
  54826. };
  54827. }
  54828. constructor({ pointerId, pointerType, isPrimary }, buttons) {
  54829. _define_property7(this, "pointerId", void 0), _define_property7(this, "pointerType", void 0), _define_property7(this, "isPrimary", void 0), _define_property7(this, "buttons", void 0), _define_property7(this, "isMultitouch", !1), _define_property7(this, "isCancelled", !1), _define_property7(this, "isDown", !1), _define_property7(this, "isPrevented", !1), _define_property7(this, "position", {}), this.pointerId = pointerId, this.pointerType = pointerType, this.isPrimary = isPrimary, this.isMultitouch = !isPrimary, this.buttons = buttons;
  54830. }
  54831. };
  54832. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/index.js
  54833. function _define_property8(obj, key, value) {
  54834. return key in obj ? Object.defineProperty(obj, key, {
  54835. value,
  54836. enumerable: !0,
  54837. configurable: !0,
  54838. writable: !0
  54839. }) : obj[key] = value, obj;
  54840. }
  54841. var PointerHost = class {
  54842. isKeyPressed(keyDef) {
  54843. return this.devices.get(keyDef.pointerType).isPressed(keyDef);
  54844. }
  54845. async press(instance, keyDef, position2) {
  54846. this.devices.get(keyDef.pointerType).addPressed(keyDef), this.buttons.down(keyDef);
  54847. let pointerName = this.getPointerName(keyDef), pointer4 = keyDef.pointerType === "touch" ? this.pointers.new(pointerName, keyDef.pointerType, this.buttons) : this.pointers.get(pointerName);
  54848. pointer4.position = position2, pointer4.pointerType !== "touch" && (this.mouse.position = position2), pointer4.pointerType === "touch" && pointer4.init(instance), pointer4.down(instance, keyDef.button), pointer4.pointerType !== "touch" && this.mouse.down(instance, keyDef, pointer4.isPrevented);
  54849. }
  54850. async move(instance, pointerName, position2) {
  54851. let pointer4 = this.pointers.get(pointerName), pointermove = pointer4.move(instance, position2), mousemove = pointer4.pointerType === "touch" ? void 0 : this.mouse.move(instance, position2, pointer4.isPrevented);
  54852. pointermove?.leave(), mousemove?.leave(), pointermove?.enter(), mousemove?.enter(), pointermove?.move(), mousemove?.move();
  54853. }
  54854. async release(instance, keyDef, position2) {
  54855. let device = this.devices.get(keyDef.pointerType);
  54856. device.removePressed(keyDef), this.buttons.up(keyDef);
  54857. let pointer4 = this.pointers.get(this.getPointerName(keyDef)), isPrevented = pointer4.isPrevented;
  54858. if (pointer4.position = position2, pointer4.pointerType !== "touch" && (this.mouse.position = position2), device.countPressed === 0 && pointer4.up(instance, keyDef.button), pointer4.pointerType === "touch" && pointer4.release(instance), pointer4.pointerType === "touch" && !pointer4.isMultitouch) {
  54859. let mousemove = this.mouse.move(instance, position2, isPrevented);
  54860. mousemove?.leave(), mousemove?.enter(), mousemove?.move(), this.mouse.down(instance, keyDef, isPrevented);
  54861. }
  54862. if (!pointer4.isMultitouch) {
  54863. let mousemove = this.mouse.move(instance, position2, isPrevented);
  54864. mousemove?.leave(), mousemove?.enter(), mousemove?.move(), this.mouse.up(instance, keyDef, isPrevented);
  54865. }
  54866. }
  54867. getPointerName(keyDef) {
  54868. return keyDef.pointerType === "touch" ? keyDef.name : keyDef.pointerType;
  54869. }
  54870. getPreviousPosition(pointerName) {
  54871. return this.pointers.has(pointerName) ? this.pointers.get(pointerName).position : void 0;
  54872. }
  54873. resetClickCount() {
  54874. this.mouse.resetClickCount();
  54875. }
  54876. getMouseTarget(instance) {
  54877. var _this_mouse_position_target;
  54878. return (_this_mouse_position_target = this.mouse.position.target) !== null && _this_mouse_position_target !== void 0 ? _this_mouse_position_target : instance.config.document.body;
  54879. }
  54880. setMousePosition(position2) {
  54881. this.mouse.position = position2, this.pointers.get("mouse").position = position2;
  54882. }
  54883. constructor(system) {
  54884. _define_property8(this, "system", void 0), _define_property8(this, "mouse", void 0), _define_property8(this, "buttons", void 0), _define_property8(this, "devices", new class {
  54885. get(k) {
  54886. var _this_registry, _k, _;
  54887. return (_ = (_this_registry = this.registry)[_k = k]) !== null && _ !== void 0 ? _ : _this_registry[_k] = new Device();
  54888. }
  54889. constructor() {
  54890. _define_property8(this, "registry", {});
  54891. }
  54892. }()), _define_property8(this, "pointers", new class {
  54893. new(pointerName, pointerType, buttons) {
  54894. let isPrimary = pointerType !== "touch" || !Object.values(this.registry).some((p3) => p3.pointerType === "touch" && !p3.isCancelled);
  54895. return isPrimary || Object.values(this.registry).forEach((p3) => {
  54896. p3.pointerType === pointerType && !p3.isCancelled && (p3.isMultitouch = !0);
  54897. }), this.registry[pointerName] = new Pointer({
  54898. pointerId: this.nextId++,
  54899. pointerType,
  54900. isPrimary
  54901. }, buttons), this.registry[pointerName];
  54902. }
  54903. get(pointerName) {
  54904. if (!this.has(pointerName))
  54905. throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`);
  54906. return this.registry[pointerName];
  54907. }
  54908. has(pointerName) {
  54909. return pointerName in this.registry;
  54910. }
  54911. constructor() {
  54912. _define_property8(this, "registry", {}), _define_property8(this, "nextId", 1);
  54913. }
  54914. }()), this.system = system, this.buttons = new Buttons(), this.mouse = new Mouse(), this.pointers.new("mouse", "mouse", this.buttons);
  54915. }
  54916. };
  54917. // ../../node_modules/@testing-library/user-event/dist/esm/system/index.js
  54918. function _define_property9(obj, key, value) {
  54919. return key in obj ? Object.defineProperty(obj, key, {
  54920. value,
  54921. enumerable: !0,
  54922. configurable: !0,
  54923. writable: !0
  54924. }) : obj[key] = value, obj;
  54925. }
  54926. var System = class {
  54927. getUIEventModifiers() {
  54928. return {
  54929. altKey: this.keyboard.modifiers.Alt,
  54930. ctrlKey: this.keyboard.modifiers.Control,
  54931. metaKey: this.keyboard.modifiers.Meta,
  54932. shiftKey: this.keyboard.modifiers.Shift,
  54933. modifierAltGraph: this.keyboard.modifiers.AltGraph,
  54934. modifierCapsLock: this.keyboard.modifiers.CapsLock,
  54935. modifierFn: this.keyboard.modifiers.Fn,
  54936. modifierFnLock: this.keyboard.modifiers.FnLock,
  54937. modifierNumLock: this.keyboard.modifiers.NumLock,
  54938. modifierScrollLock: this.keyboard.modifiers.ScrollLock,
  54939. modifierSymbol: this.keyboard.modifiers.Symbol,
  54940. modifierSymbolLock: this.keyboard.modifiers.SymbolLock
  54941. };
  54942. }
  54943. constructor() {
  54944. _define_property9(this, "keyboard", new KeyboardHost(this)), _define_property9(this, "pointer", new PointerHost(this));
  54945. }
  54946. };
  54947. // ../../node_modules/@testing-library/user-event/dist/esm/convenience/click.js
  54948. async function click(element) {
  54949. let pointerIn = [];
  54950. return this.config.skipHover || pointerIn.push({
  54951. target: element
  54952. }), pointerIn.push({
  54953. keys: "[MouseLeft]",
  54954. target: element
  54955. }), this.pointer(pointerIn);
  54956. }
  54957. async function dblClick(element) {
  54958. return this.pointer([
  54959. {
  54960. target: element
  54961. },
  54962. "[MouseLeft][MouseLeft]"
  54963. ]);
  54964. }
  54965. async function tripleClick(element) {
  54966. return this.pointer([
  54967. {
  54968. target: element
  54969. },
  54970. "[MouseLeft][MouseLeft][MouseLeft]"
  54971. ]);
  54972. }
  54973. // ../../node_modules/@testing-library/user-event/dist/esm/convenience/hover.js
  54974. async function hover(element) {
  54975. return this.pointer({
  54976. target: element
  54977. });
  54978. }
  54979. async function unhover(element) {
  54980. return assertPointerEvents(this, this.system.pointer.getMouseTarget(this)), this.pointer({
  54981. target: element.ownerDocument.body
  54982. });
  54983. }
  54984. // ../../node_modules/@testing-library/user-event/dist/esm/convenience/tab.js
  54985. async function tab({ shift } = {}) {
  54986. return this.keyboard(shift === !0 ? "{Shift>}{Tab}{/Shift}" : shift === !1 ? "[/ShiftLeft][/ShiftRight]{Tab}" : "{Tab}");
  54987. }
  54988. // ../../node_modules/@testing-library/user-event/dist/esm/utils/keyDef/readNextDescriptor.js
  54989. var bracketDict = (function(bracketDict2) {
  54990. return bracketDict2["{"] = "}", bracketDict2["["] = "]", bracketDict2;
  54991. })(bracketDict || {});
  54992. function readNextDescriptor(text, context) {
  54993. let pos = 0, startBracket = text[pos] in bracketDict ? text[pos] : "";
  54994. pos += startBracket.length;
  54995. let type5 = new RegExp(`^\\${startBracket}{2}`).test(text) ? "" : startBracket;
  54996. return {
  54997. type: type5,
  54998. ...type5 === "" ? readPrintableChar(text, pos, context) : readTag(text, pos, type5, context)
  54999. };
  55000. }
  55001. function readPrintableChar(text, pos, context) {
  55002. let descriptor = text[pos];
  55003. return assertDescriptor(descriptor, text, pos, context), pos += descriptor.length, {
  55004. consumedLength: pos,
  55005. descriptor,
  55006. releasePrevious: !1,
  55007. releaseSelf: !0,
  55008. repeat: 1
  55009. };
  55010. }
  55011. function readTag(text, pos, startBracket, context) {
  55012. var _text_slice_match, _text_slice_match1;
  55013. let releasePreviousModifier = text[pos] === "/" ? "/" : "";
  55014. pos += releasePreviousModifier.length;
  55015. let escapedDescriptor = startBracket === "{" && text[pos] === "\\";
  55016. pos += Number(escapedDescriptor);
  55017. let descriptor = escapedDescriptor ? text[pos] : (_text_slice_match = text.slice(pos).match(startBracket === "{" ? /^\w+|^[^}>/]/ : /^\w+/)) === null || _text_slice_match === void 0 ? void 0 : _text_slice_match[0];
  55018. assertDescriptor(descriptor, text, pos, context), pos += descriptor.length;
  55019. var _text_slice_match_;
  55020. let repeatModifier = (_text_slice_match_ = (_text_slice_match1 = text.slice(pos).match(/^>\d+/)) === null || _text_slice_match1 === void 0 ? void 0 : _text_slice_match1[0]) !== null && _text_slice_match_ !== void 0 ? _text_slice_match_ : "";
  55021. pos += repeatModifier.length;
  55022. let releaseSelfModifier = text[pos] === "/" || !repeatModifier && text[pos] === ">" ? text[pos] : "";
  55023. pos += releaseSelfModifier.length;
  55024. let expectedEndBracket = bracketDict[startBracket], endBracket = text[pos] === expectedEndBracket ? expectedEndBracket : "";
  55025. if (!endBracket)
  55026. throw new Error(getErrorMessage([
  55027. !repeatModifier && "repeat modifier",
  55028. !releaseSelfModifier && "release modifier",
  55029. `"${expectedEndBracket}"`
  55030. ].filter(Boolean).join(" or "), text[pos], text, context));
  55031. return pos += endBracket.length, {
  55032. consumedLength: pos,
  55033. descriptor,
  55034. releasePrevious: !!releasePreviousModifier,
  55035. repeat: repeatModifier ? Math.max(Number(repeatModifier.substr(1)), 1) : 1,
  55036. releaseSelf: hasReleaseSelf(releaseSelfModifier, repeatModifier)
  55037. };
  55038. }
  55039. function assertDescriptor(descriptor, text, pos, context) {
  55040. if (!descriptor)
  55041. throw new Error(getErrorMessage("key descriptor", text[pos], text, context));
  55042. }
  55043. function hasReleaseSelf(releaseSelfModifier, repeatModifier) {
  55044. if (releaseSelfModifier)
  55045. return releaseSelfModifier === "/";
  55046. if (repeatModifier)
  55047. return !1;
  55048. }
  55049. function getErrorMessage(expected, found, text, context) {
  55050. return `Expected ${expected} but found "${found ?? ""}" in "${text}"
  55051. See ${context === "pointer" ? "https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen" : "https://testing-library.com/docs/user-event/keyboard"}
  55052. for more information about how userEvent parses your input.`;
  55053. }
  55054. // ../../node_modules/@testing-library/user-event/dist/esm/keyboard/parseKeyDef.js
  55055. function parseKeyDef(keyboardMap, text) {
  55056. let defs = [];
  55057. do {
  55058. let { type: type5, descriptor, consumedLength, releasePrevious, releaseSelf = !0, repeat } = readNextDescriptor(text, "keyboard");
  55059. var _keyboardMap_find;
  55060. let keyDef = (_keyboardMap_find = keyboardMap.find((def) => {
  55061. if (type5 === "[") {
  55062. var _def_code;
  55063. return ((_def_code = def.code) === null || _def_code === void 0 ? void 0 : _def_code.toLowerCase()) === descriptor.toLowerCase();
  55064. } else if (type5 === "{") {
  55065. var _def_key;
  55066. return ((_def_key = def.key) === null || _def_key === void 0 ? void 0 : _def_key.toLowerCase()) === descriptor.toLowerCase();
  55067. }
  55068. return def.key === descriptor;
  55069. })) !== null && _keyboardMap_find !== void 0 ? _keyboardMap_find : {
  55070. key: "Unknown",
  55071. code: "Unknown",
  55072. [type5 === "[" ? "code" : "key"]: descriptor
  55073. };
  55074. defs.push({
  55075. keyDef,
  55076. releasePrevious,
  55077. releaseSelf,
  55078. repeat
  55079. }), text = text.slice(consumedLength);
  55080. } while (text);
  55081. return defs;
  55082. }
  55083. // ../../node_modules/@testing-library/user-event/dist/esm/keyboard/index.js
  55084. async function keyboard(text) {
  55085. let actions = parseKeyDef(this.config.keyboardMap, text);
  55086. for (let i = 0; i < actions.length; i++)
  55087. await wait(this.config), await keyboardAction(this, actions[i]);
  55088. }
  55089. async function keyboardAction(instance, { keyDef, releasePrevious, releaseSelf, repeat }) {
  55090. let { system } = instance;
  55091. if (system.keyboard.isKeyPressed(keyDef) && await system.keyboard.keyup(instance, keyDef), !releasePrevious) {
  55092. for (let i = 1; i <= repeat; i++)
  55093. await system.keyboard.keydown(instance, keyDef), i < repeat && await wait(instance.config);
  55094. releaseSelf && await system.keyboard.keyup(instance, keyDef);
  55095. }
  55096. }
  55097. async function releaseAllKeys(instance) {
  55098. for (let k of instance.system.keyboard.getPressedKeys())
  55099. await instance.system.keyboard.keyup(instance, k);
  55100. }
  55101. // ../../node_modules/@testing-library/user-event/dist/esm/document/copySelection.js
  55102. function copySelection(target) {
  55103. let data = hasOwnSelection(target) ? {
  55104. "text/plain": readSelectedValueFromInput(target)
  55105. } : {
  55106. "text/plain": String(target.ownerDocument.getSelection())
  55107. }, dt = createDataTransfer(getWindow(target));
  55108. for (let type5 in data)
  55109. data[type5] && dt.setData(type5, data[type5]);
  55110. return dt;
  55111. }
  55112. function readSelectedValueFromInput(target) {
  55113. let sel = getUISelection(target);
  55114. return getUIValue(target).substring(sel.startOffset, sel.endOffset);
  55115. }
  55116. // ../../node_modules/@testing-library/user-event/dist/esm/clipboard/copy.js
  55117. async function copy2() {
  55118. let doc = this.config.document;
  55119. var _doc_activeElement;
  55120. let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : (
  55121. /* istanbul ignore next */
  55122. doc.body
  55123. ), clipboardData = copySelection(target);
  55124. if (clipboardData.items.length !== 0)
  55125. return this.dispatchUIEvent(target, "copy", {
  55126. clipboardData
  55127. }) && this.config.writeToClipboard && await writeDataTransferToClipboard(doc, clipboardData), clipboardData;
  55128. }
  55129. // ../../node_modules/@testing-library/user-event/dist/esm/clipboard/cut.js
  55130. async function cut() {
  55131. let doc = this.config.document;
  55132. var _doc_activeElement;
  55133. let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : (
  55134. /* istanbul ignore next */
  55135. doc.body
  55136. ), clipboardData = copySelection(target);
  55137. if (clipboardData.items.length !== 0)
  55138. return this.dispatchUIEvent(target, "cut", {
  55139. clipboardData
  55140. }) && this.config.writeToClipboard && await writeDataTransferToClipboard(target.ownerDocument, clipboardData), clipboardData;
  55141. }
  55142. // ../../node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js
  55143. async function paste(clipboardData) {
  55144. let doc = this.config.document;
  55145. var _doc_activeElement;
  55146. let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : (
  55147. /* istanbul ignore next */
  55148. doc.body
  55149. );
  55150. var _ref;
  55151. let dataTransfer = (_ref = typeof clipboardData == "string" ? getClipboardDataFromString(doc, clipboardData) : clipboardData) !== null && _ref !== void 0 ? _ref : await readDataTransferFromClipboard(doc).catch(() => {
  55152. throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.");
  55153. });
  55154. this.dispatchUIEvent(target, "paste", {
  55155. clipboardData: dataTransfer
  55156. });
  55157. }
  55158. function getClipboardDataFromString(doc, text) {
  55159. let dt = createDataTransfer(getWindow(doc));
  55160. return dt.setData("text", text), dt;
  55161. }
  55162. // ../../node_modules/@testing-library/user-event/dist/esm/pointer/parseKeyDef.js
  55163. function parseKeyDef2(pointerMap, keys3) {
  55164. let defs = [];
  55165. do {
  55166. let { descriptor, consumedLength, releasePrevious, releaseSelf = !0 } = readNextDescriptor(keys3, "pointer"), keyDef = pointerMap.find((p3) => p3.name === descriptor);
  55167. keyDef && defs.push({
  55168. keyDef,
  55169. releasePrevious,
  55170. releaseSelf
  55171. }), keys3 = keys3.slice(consumedLength);
  55172. } while (keys3);
  55173. return defs;
  55174. }
  55175. // ../../node_modules/@testing-library/user-event/dist/esm/pointer/index.js
  55176. async function pointer(input2) {
  55177. let { pointerMap } = this.config, actions = [];
  55178. (Array.isArray(input2) ? input2 : [
  55179. input2
  55180. ]).forEach((actionInput) => {
  55181. typeof actionInput == "string" ? actions.push(...parseKeyDef2(pointerMap, actionInput)) : "keys" in actionInput ? actions.push(...parseKeyDef2(pointerMap, actionInput.keys).map((i) => ({
  55182. ...actionInput,
  55183. ...i
  55184. }))) : actions.push(actionInput);
  55185. });
  55186. for (let i = 0; i < actions.length; i++)
  55187. await wait(this.config), await pointerAction(this, actions[i]);
  55188. this.system.pointer.resetClickCount();
  55189. }
  55190. async function pointerAction(instance, action2) {
  55191. var _previousPosition_caret, _previousPosition_caret1;
  55192. let pointerName = "pointerName" in action2 && action2.pointerName ? action2.pointerName : "keyDef" in action2 ? instance.system.pointer.getPointerName(action2.keyDef) : "mouse", previousPosition = instance.system.pointer.getPreviousPosition(pointerName);
  55193. var _action_target, _action_coords, _action_node, _action_offset;
  55194. let position2 = {
  55195. target: (_action_target = action2.target) !== null && _action_target !== void 0 ? _action_target : getPrevTarget(instance, previousPosition),
  55196. coords: (_action_coords = action2.coords) !== null && _action_coords !== void 0 ? _action_coords : previousPosition?.coords,
  55197. caret: {
  55198. node: (_action_node = action2.node) !== null && _action_node !== void 0 ? _action_node : hasCaretPosition(action2) || previousPosition == null || (_previousPosition_caret = previousPosition.caret) === null || _previousPosition_caret === void 0 ? void 0 : _previousPosition_caret.node,
  55199. offset: (_action_offset = action2.offset) !== null && _action_offset !== void 0 ? _action_offset : hasCaretPosition(action2) || previousPosition == null || (_previousPosition_caret1 = previousPosition.caret) === null || _previousPosition_caret1 === void 0 ? void 0 : _previousPosition_caret1.offset
  55200. }
  55201. };
  55202. "keyDef" in action2 ? (instance.system.pointer.isKeyPressed(action2.keyDef) && (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.release(instance, action2.keyDef, position2)), action2.releasePrevious || (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.press(instance, action2.keyDef, position2), action2.releaseSelf && (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.release(instance, action2.keyDef, position2)))) : (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.move(instance, pointerName, position2));
  55203. }
  55204. function hasCaretPosition(action2) {
  55205. var _action_target, _ref;
  55206. return !!((_ref = (_action_target = action2.target) !== null && _action_target !== void 0 ? _action_target : action2.node) !== null && _ref !== void 0 ? _ref : action2.offset !== void 0);
  55207. }
  55208. function getPrevTarget(instance, position2) {
  55209. if (!position2)
  55210. throw new Error("This pointer has no previous position. Provide a target property!");
  55211. var _position_target;
  55212. return (_position_target = position2.target) !== null && _position_target !== void 0 ? _position_target : instance.config.document.body;
  55213. }
  55214. // ../../node_modules/@testing-library/user-event/dist/esm/utility/clear.js
  55215. async function clear(element) {
  55216. if (!isEditable(element) || isDisabled2(element))
  55217. throw new Error("clear()` is only supported on editable elements.");
  55218. if (focusElement(element), element.ownerDocument.activeElement !== element)
  55219. throw new Error("The element to be cleared could not be focused.");
  55220. if (selectAll(element), !isAllSelected(element))
  55221. throw new Error("The element content to be cleared could not be selected.");
  55222. input(this, element, "", "deleteContentBackward");
  55223. }
  55224. // ../../node_modules/@testing-library/user-event/dist/esm/utility/selectOptions.js
  55225. async function selectOptions(select, values) {
  55226. return selectOptionsBase.call(this, !0, select, values);
  55227. }
  55228. async function deselectOptions(select, values) {
  55229. return selectOptionsBase.call(this, !1, select, values);
  55230. }
  55231. async function selectOptionsBase(newValue, select, values) {
  55232. if (!newValue && !select.multiple)
  55233. throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.", select);
  55234. let valArray = Array.isArray(values) ? values : [
  55235. values
  55236. ], allOptions = Array.from(select.querySelectorAll('option, [role="option"]')), selectedOptions = valArray.map((val) => {
  55237. if (typeof val != "string" && allOptions.includes(val))
  55238. return val;
  55239. {
  55240. let matchingOption = allOptions.find((o) => o.value === val || o.innerHTML === val);
  55241. if (matchingOption)
  55242. return matchingOption;
  55243. throw getConfig2().getElementError(`Value "${String(val)}" not found in options`, select);
  55244. }
  55245. }).filter((option) => !isDisabled2(option));
  55246. if (isDisabled2(select) || !selectedOptions.length) return;
  55247. let selectOption = (option) => {
  55248. option.selected = newValue, this.dispatchUIEvent(select, "input", {
  55249. bubbles: !0,
  55250. cancelable: !1,
  55251. composed: !0
  55252. }), this.dispatchUIEvent(select, "change");
  55253. };
  55254. if (isElementType(select, "select"))
  55255. if (select.multiple)
  55256. for (let option of selectedOptions) {
  55257. let withPointerEvents = this.config.pointerEventsCheck === 0 ? !0 : hasPointerEvents(this, option);
  55258. withPointerEvents && (this.dispatchUIEvent(option, "pointerover"), this.dispatchUIEvent(select, "pointerenter"), this.dispatchUIEvent(option, "mouseover"), this.dispatchUIEvent(select, "mouseenter"), this.dispatchUIEvent(option, "pointermove"), this.dispatchUIEvent(option, "mousemove"), this.dispatchUIEvent(option, "pointerdown"), this.dispatchUIEvent(option, "mousedown")), focusElement(select), withPointerEvents && (this.dispatchUIEvent(option, "pointerup"), this.dispatchUIEvent(option, "mouseup")), selectOption(option), withPointerEvents && this.dispatchUIEvent(option, "click"), await wait(this.config);
  55259. }
  55260. else if (selectedOptions.length === 1) {
  55261. let withPointerEvents = this.config.pointerEventsCheck === 0 ? !0 : hasPointerEvents(this, select);
  55262. withPointerEvents ? await this.click(select) : focusElement(select), selectOption(selectedOptions[0]), withPointerEvents && (this.dispatchUIEvent(select, "pointerover"), this.dispatchUIEvent(select, "pointerenter"), this.dispatchUIEvent(select, "mouseover"), this.dispatchUIEvent(select, "mouseenter"), this.dispatchUIEvent(select, "pointerup"), this.dispatchUIEvent(select, "mouseup"), this.dispatchUIEvent(select, "click")), await wait(this.config);
  55263. } else
  55264. throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select", select);
  55265. else if (select.getAttribute("role") === "listbox")
  55266. for (let option of selectedOptions)
  55267. await this.click(option), await this.unhover(option);
  55268. else
  55269. throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements", select);
  55270. }
  55271. // ../../node_modules/@testing-library/user-event/dist/esm/utility/type.js
  55272. async function type3(element, text, { skipClick = this.config.skipClick, skipAutoClose = this.config.skipAutoClose, initialSelectionStart, initialSelectionEnd } = {}) {
  55273. element.disabled || (skipClick || await this.click(element), initialSelectionStart !== void 0 && setSelectionRange(element, initialSelectionStart, initialSelectionEnd ?? initialSelectionStart), await this.keyboard(text), skipAutoClose || await releaseAllKeys(this));
  55274. }
  55275. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/setFiles.js
  55276. var fakeFiles = /* @__PURE__ */ Symbol("files and value properties are mocked");
  55277. function restoreProperty(obj, prop, descriptor) {
  55278. descriptor ? Object.defineProperty(obj, prop, descriptor) : delete obj[prop];
  55279. }
  55280. function setFiles(el, files) {
  55281. var _el_fakeFiles;
  55282. (_el_fakeFiles = el[fakeFiles]) === null || _el_fakeFiles === void 0 || _el_fakeFiles.restore();
  55283. let typeDescr = Object.getOwnPropertyDescriptor(el, "type"), valueDescr = Object.getOwnPropertyDescriptor(el, "value"), filesDescr = Object.getOwnPropertyDescriptor(el, "files");
  55284. function restore() {
  55285. restoreProperty(el, "type", typeDescr), restoreProperty(el, "value", valueDescr), restoreProperty(el, "files", filesDescr);
  55286. }
  55287. el[fakeFiles] = {
  55288. restore
  55289. }, Object.defineProperties(el, {
  55290. files: {
  55291. configurable: !0,
  55292. get: () => files
  55293. },
  55294. value: {
  55295. configurable: !0,
  55296. get: () => files.length ? `C:\\fakepath\\${files[0].name}` : "",
  55297. set(v) {
  55298. if (v === "")
  55299. restore();
  55300. else {
  55301. var _valueDescr_set;
  55302. valueDescr == null || (_valueDescr_set = valueDescr.set) === null || _valueDescr_set === void 0 || _valueDescr_set.call(el, v);
  55303. }
  55304. }
  55305. },
  55306. type: {
  55307. configurable: !0,
  55308. get: () => "file",
  55309. set(v) {
  55310. v !== "file" && (restore(), el.type = v);
  55311. }
  55312. }
  55313. });
  55314. }
  55315. // ../../node_modules/@testing-library/user-event/dist/esm/utility/upload.js
  55316. async function upload(element, fileOrFiles) {
  55317. let input2 = isElementType(element, "label") ? element.control : element;
  55318. if (!input2 || !isElementType(input2, "input", {
  55319. type: "file"
  55320. }))
  55321. throw new TypeError(`The ${input2 === element ? "given" : "associated"} ${input2?.tagName} element does not accept file uploads`);
  55322. if (isDisabled2(element)) return;
  55323. let files = (Array.isArray(fileOrFiles) ? fileOrFiles : [
  55324. fileOrFiles
  55325. ]).filter((file) => !this.config.applyAccept || isAcceptableFile(file, input2.accept)).slice(0, input2.multiple ? void 0 : 1), fileDialog = () => {
  55326. var _input_files;
  55327. files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((f4, i) => {
  55328. var _input_files2;
  55329. return f4 === ((_input_files2 = input2.files) === null || _input_files2 === void 0 ? void 0 : _input_files2.item(i));
  55330. }) || (setFiles(input2, createFileList(getWindow(element), files)), this.dispatchUIEvent(input2, "input"), this.dispatchUIEvent(input2, "change"));
  55331. };
  55332. input2.addEventListener("fileDialog", fileDialog), await this.click(element), input2.removeEventListener("fileDialog", fileDialog);
  55333. }
  55334. function normalize3(nameOrType) {
  55335. return nameOrType.toLowerCase().replace(/(\.|\/)jpg\b/g, "$1jpeg");
  55336. }
  55337. function isAcceptableFile(file, accept) {
  55338. if (!accept)
  55339. return !0;
  55340. let wildcards = [
  55341. "audio/*",
  55342. "image/*",
  55343. "video/*"
  55344. ];
  55345. return normalize3(accept).trim().split(/\s*,\s*/).some((acceptToken) => acceptToken.startsWith(".") ? normalize3(file.name).endsWith(acceptToken) : wildcards.includes(acceptToken) ? normalize3(file.type).startsWith(acceptToken.replace("*", "")) : normalize3(file.type) === acceptToken);
  55346. }
  55347. // ../../node_modules/@testing-library/user-event/dist/esm/setup/api.js
  55348. var userEventApi = {
  55349. click,
  55350. dblClick,
  55351. tripleClick,
  55352. hover,
  55353. unhover,
  55354. tab,
  55355. keyboard,
  55356. copy: copy2,
  55357. cut,
  55358. paste,
  55359. pointer,
  55360. clear,
  55361. deselectOptions,
  55362. selectOptions,
  55363. type: type3,
  55364. upload
  55365. };
  55366. // ../../node_modules/@testing-library/user-event/dist/esm/setup/wrapAsync.js
  55367. function wrapAsync(implementation) {
  55368. return getConfig2().asyncWrapper(implementation);
  55369. }
  55370. // ../../node_modules/@testing-library/user-event/dist/esm/setup/setup.js
  55371. var defaultOptionsDirect = {
  55372. applyAccept: !0,
  55373. autoModify: !0,
  55374. delay: 0,
  55375. document: globalThis.document,
  55376. keyboardMap: defaultKeyMap,
  55377. pointerMap: defaultKeyMap2,
  55378. pointerEventsCheck: PointerEventsCheckLevel.EachApiCall,
  55379. skipAutoClose: !1,
  55380. skipClick: !1,
  55381. skipHover: !1,
  55382. writeToClipboard: !1,
  55383. advanceTimers: () => Promise.resolve()
  55384. }, defaultOptionsSetup = {
  55385. ...defaultOptionsDirect,
  55386. writeToClipboard: !0
  55387. };
  55388. function createConfig(options = {}, defaults = defaultOptionsSetup, node2) {
  55389. let document13 = getDocument2(options, node2, defaults);
  55390. return {
  55391. ...defaults,
  55392. ...options,
  55393. document: document13
  55394. };
  55395. }
  55396. function setupMain(options = {}) {
  55397. let config4 = createConfig(options);
  55398. prepareDocument(config4.document), patchFocus(getWindow(config4.document).HTMLElement);
  55399. var _config_document_defaultView;
  55400. let view = (_config_document_defaultView = config4.document.defaultView) !== null && _config_document_defaultView !== void 0 ? _config_document_defaultView : (
  55401. /* istanbul ignore next */
  55402. globalThis.window
  55403. );
  55404. return attachClipboardStubToView(view), createInstance(config4).api;
  55405. }
  55406. function setupDirect({ keyboardState, pointerState, ...options } = {}, node2) {
  55407. let config4 = createConfig(options, defaultOptionsDirect, node2);
  55408. prepareDocument(config4.document), patchFocus(getWindow(config4.document).HTMLElement);
  55409. var _ref;
  55410. let system = (_ref = pointerState ?? keyboardState) !== null && _ref !== void 0 ? _ref : new System();
  55411. return {
  55412. api: createInstance(config4, system).api,
  55413. system
  55414. };
  55415. }
  55416. function setupSub(options) {
  55417. return createInstance({
  55418. ...this.config,
  55419. ...options
  55420. }, this.system).api;
  55421. }
  55422. function wrapAndBindImpl(instance, impl) {
  55423. function method(...args) {
  55424. return setLevelRef(instance, ApiLevel.Call), wrapAsync(() => impl.apply(instance, args).then(async (ret) => (await wait(instance.config), ret)));
  55425. }
  55426. return Object.defineProperty(method, "name", {
  55427. get: () => impl.name
  55428. }), method;
  55429. }
  55430. function createInstance(config4, system = new System()) {
  55431. let instance = {};
  55432. return Object.assign(instance, {
  55433. config: config4,
  55434. dispatchEvent: dispatchEvent.bind(instance),
  55435. dispatchUIEvent: dispatchUIEvent.bind(instance),
  55436. system,
  55437. levelRefs: {},
  55438. ...userEventApi
  55439. }), {
  55440. instance,
  55441. api: {
  55442. ...Object.fromEntries(Object.entries(userEventApi).map(([name, api]) => [
  55443. name,
  55444. wrapAndBindImpl(instance, api)
  55445. ])),
  55446. setup: setupSub.bind(instance)
  55447. }
  55448. };
  55449. }
  55450. function getDocument2(options, node2, defaults) {
  55451. var _options_document, _ref;
  55452. return (_ref = (_options_document = options.document) !== null && _options_document !== void 0 ? _options_document : node2 && getDocumentFromNode(node2)) !== null && _ref !== void 0 ? _ref : defaults.document;
  55453. }
  55454. // ../../node_modules/@testing-library/user-event/dist/esm/setup/directApi.js
  55455. var directApi_exports = {};
  55456. __export(directApi_exports, {
  55457. clear: () => clear2,
  55458. click: () => click2,
  55459. copy: () => copy3,
  55460. cut: () => cut2,
  55461. dblClick: () => dblClick2,
  55462. deselectOptions: () => deselectOptions2,
  55463. hover: () => hover2,
  55464. keyboard: () => keyboard2,
  55465. paste: () => paste2,
  55466. pointer: () => pointer2,
  55467. selectOptions: () => selectOptions2,
  55468. tab: () => tab2,
  55469. tripleClick: () => tripleClick2,
  55470. type: () => type4,
  55471. unhover: () => unhover2,
  55472. upload: () => upload2
  55473. });
  55474. function clear2(element) {
  55475. return setupDirect().api.clear(element);
  55476. }
  55477. function click2(element, options = {}) {
  55478. return setupDirect(options, element).api.click(element);
  55479. }
  55480. function copy3(options = {}) {
  55481. return setupDirect(options).api.copy();
  55482. }
  55483. function cut2(options = {}) {
  55484. return setupDirect(options).api.cut();
  55485. }
  55486. function dblClick2(element, options = {}) {
  55487. return setupDirect(options).api.dblClick(element);
  55488. }
  55489. function deselectOptions2(select, values, options = {}) {
  55490. return setupDirect(options).api.deselectOptions(select, values);
  55491. }
  55492. function hover2(element, options = {}) {
  55493. return setupDirect(options).api.hover(element);
  55494. }
  55495. async function keyboard2(text, options = {}) {
  55496. let { api, system } = setupDirect(options);
  55497. return api.keyboard(text).then(() => system);
  55498. }
  55499. async function pointer2(input2, options = {}) {
  55500. let { api, system } = setupDirect(options);
  55501. return api.pointer(input2).then(() => system);
  55502. }
  55503. function paste2(clipboardData, options) {
  55504. return setupDirect(options).api.paste(clipboardData);
  55505. }
  55506. function selectOptions2(select, values, options = {}) {
  55507. return setupDirect(options).api.selectOptions(select, values);
  55508. }
  55509. function tripleClick2(element, options = {}) {
  55510. return setupDirect(options).api.tripleClick(element);
  55511. }
  55512. function type4(element, text, options = {}) {
  55513. return setupDirect(options, element).api.type(element, text, options);
  55514. }
  55515. function unhover2(element, options = {}) {
  55516. let { api, system } = setupDirect(options);
  55517. return system.pointer.setMousePosition({
  55518. target: element
  55519. }), api.unhover(element);
  55520. }
  55521. function upload2(element, fileOrFiles, options = {}) {
  55522. return setupDirect(options).api.upload(element, fileOrFiles);
  55523. }
  55524. function tab2(options = {}) {
  55525. return setupDirect().api.tab(options);
  55526. }
  55527. // ../../node_modules/@testing-library/user-event/dist/esm/setup/index.js
  55528. var userEvent = {
  55529. ...directApi_exports,
  55530. setup: setupMain
  55531. };
  55532. // src/test/testing-library.ts
  55533. init_client_logger();
  55534. init_esm();
  55535. var testingLibrary = instrument(
  55536. { ...dom_esm_exports },
  55537. {
  55538. getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"),
  55539. intercept: (method, path) => path[0] === "fireEvent" || method.startsWith("find") || method.startsWith("waitFor")
  55540. }
  55541. );
  55542. testingLibrary.screen = new Proxy(testingLibrary.screen, {
  55543. get(target, prop, receiver) {
  55544. return typeof window < "u" && globalThis.location?.href?.includes("viewMode=docs") && once.warn(dedent`
  55545. You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
  55546. More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
  55547. `), Reflect.get(target, prop, receiver);
  55548. }
  55549. });
  55550. var {
  55551. buildQueries: buildQueries2,
  55552. configure: configure2,
  55553. createEvent: createEvent3,
  55554. fireEvent: fireEvent2,
  55555. findAllByAltText: findAllByAltText2,
  55556. findAllByDisplayValue: findAllByDisplayValue2,
  55557. findAllByLabelText: findAllByLabelText2,
  55558. findAllByPlaceholderText: findAllByPlaceholderText2,
  55559. findAllByRole: findAllByRole2,
  55560. findAllByTestId: findAllByTestId2,
  55561. findAllByText: findAllByText2,
  55562. findAllByTitle: findAllByTitle2,
  55563. findByAltText: findByAltText2,
  55564. findByDisplayValue: findByDisplayValue2,
  55565. findByLabelText: findByLabelText2,
  55566. findByPlaceholderText: findByPlaceholderText2,
  55567. findByRole: findByRole2,
  55568. findByTestId: findByTestId2,
  55569. findByText: findByText2,
  55570. findByTitle: findByTitle2,
  55571. getAllByAltText: getAllByAltText2,
  55572. getAllByDisplayValue: getAllByDisplayValue2,
  55573. getAllByLabelText: getAllByLabelText2,
  55574. getAllByPlaceholderText: getAllByPlaceholderText2,
  55575. getAllByRole: getAllByRole2,
  55576. getAllByTestId: getAllByTestId2,
  55577. getAllByText: getAllByText2,
  55578. getAllByTitle: getAllByTitle2,
  55579. getByAltText: getByAltText2,
  55580. getByDisplayValue: getByDisplayValue2,
  55581. getByLabelText: getByLabelText2,
  55582. getByPlaceholderText: getByPlaceholderText2,
  55583. getByRole: getByRole2,
  55584. getByTestId: getByTestId2,
  55585. getByText: getByText2,
  55586. getByTitle: getByTitle2,
  55587. getConfig: getConfig3,
  55588. getDefaultNormalizer: getDefaultNormalizer2,
  55589. getElementError: getElementError2,
  55590. getNodeText: getNodeText2,
  55591. getQueriesForElement: getQueriesForElement2,
  55592. getRoles: getRoles2,
  55593. getSuggestedQuery: getSuggestedQuery2,
  55594. isInaccessible: isInaccessible2,
  55595. logDOM: logDOM2,
  55596. logRoles: logRoles2,
  55597. prettyDOM: prettyDOM2,
  55598. queries: queries2,
  55599. queryAllByAltText: queryAllByAltText2,
  55600. queryAllByAttribute: queryAllByAttribute2,
  55601. queryAllByDisplayValue: queryAllByDisplayValue2,
  55602. queryAllByLabelText: queryAllByLabelText2,
  55603. queryAllByPlaceholderText: queryAllByPlaceholderText2,
  55604. queryAllByRole: queryAllByRole2,
  55605. queryAllByTestId: queryAllByTestId2,
  55606. queryAllByText: queryAllByText2,
  55607. queryAllByTitle: queryAllByTitle2,
  55608. queryByAltText: queryByAltText2,
  55609. queryByAttribute: queryByAttribute2,
  55610. queryByDisplayValue: queryByDisplayValue2,
  55611. queryByLabelText: queryByLabelText2,
  55612. queryByPlaceholderText: queryByPlaceholderText2,
  55613. queryByRole: queryByRole2,
  55614. queryByTestId: queryByTestId2,
  55615. queryByText: queryByText2,
  55616. queryByTitle: queryByTitle2,
  55617. queryHelpers: queryHelpers2,
  55618. screen: screen2,
  55619. waitFor: waitFor2,
  55620. waitForElementToBeRemoved: waitForElementToBeRemoved2,
  55621. within,
  55622. prettyFormat: prettyFormat2
  55623. } = testingLibrary, uninstrumentedUserEvent = userEvent, { userEvent: userEvent2 } = instrument(
  55624. { userEvent },
  55625. { intercept: !0, getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper") }
  55626. );
  55627. // src/test/index.ts
  55628. var { expect: expect3 } = instrument(
  55629. { expect: expect2 },
  55630. {
  55631. getKeys: (obj, depth) => {
  55632. if ("constructor" in obj && obj.constructor === Assertion) {
  55633. let privateApi = ["assert", "__methods", "__flags", "_obj"], keys3 = Object.keys(Object.getPrototypeOf(obj)).filter(
  55634. (it) => !privateApi.includes(it)
  55635. );
  55636. return depth > 2 ? keys3 : [...keys3, "not"];
  55637. }
  55638. return "any" in obj ? Object.keys(obj).filter((it) => it !== "any") : Object.keys(obj);
  55639. },
  55640. mutate: !0,
  55641. intercept: (method) => method !== "expect"
  55642. }
  55643. ), sb = {
  55644. mock: () => {
  55645. }
  55646. };
  55647. // src/backgrounds/constants.ts
  55648. var ADDON_ID3 = "storybook/background", PARAM_KEY = "backgrounds";
  55649. var EVENTS2 = {
  55650. UPDATE: `${ADDON_ID3}/update`
  55651. };
  55652. // src/backgrounds/defaults.ts
  55653. var DEFAULT_BACKGROUNDS = {
  55654. light: { name: "light", value: "#F8F8F8" },
  55655. dark: { name: "dark", value: "#333" }
  55656. };
  55657. // src/backgrounds/utils.ts
  55658. var { document: document7 } = globalThis, isReduceMotionEnabled = () => globalThis?.matchMedia ? !!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches : !1, clearStyles = (selector) => {
  55659. (Array.isArray(selector) ? selector : [selector]).forEach(clearStyle);
  55660. }, clearStyle = (selector) => {
  55661. if (!document7)
  55662. return;
  55663. let element = document7.getElementById(selector);
  55664. element && element.parentElement && element.parentElement.removeChild(element);
  55665. }, addGridStyle = (selector, css3) => {
  55666. if (!document7)
  55667. return;
  55668. let existingStyle = document7.getElementById(selector);
  55669. if (existingStyle)
  55670. existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3);
  55671. else {
  55672. let style = document7.createElement("style");
  55673. style.setAttribute("id", selector), style.innerHTML = css3, document7.head.appendChild(style);
  55674. }
  55675. }, addBackgroundStyle = (selector, css3, storyId) => {
  55676. if (!document7)
  55677. return;
  55678. let existingStyle = document7.getElementById(selector);
  55679. if (existingStyle)
  55680. existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3);
  55681. else {
  55682. let style = document7.createElement("style");
  55683. style.setAttribute("id", selector), style.innerHTML = css3;
  55684. let gridStyleSelector = `addon-backgrounds-grid${storyId ? `-docs-${storyId}` : ""}`, existingGridStyle = document7.getElementById(gridStyleSelector);
  55685. existingGridStyle ? existingGridStyle.parentElement?.insertBefore(style, existingGridStyle) : document7.head.appendChild(style);
  55686. }
  55687. };
  55688. // src/backgrounds/decorator.ts
  55689. var defaultGrid = {
  55690. cellSize: 100,
  55691. cellAmount: 10,
  55692. opacity: 0.8
  55693. }, BG_SELECTOR_BASE = "addon-backgrounds", GRID_SELECTOR_BASE = "addon-backgrounds-grid", transitionStyle = isReduceMotionEnabled() ? "" : "transition: background-color 0.3s;", withBackgroundAndGrid = (StoryFn, context) => {
  55694. let { globals = {}, parameters: parameters2 = {}, viewMode, id } = context, {
  55695. options = DEFAULT_BACKGROUNDS,
  55696. disable,
  55697. grid = defaultGrid
  55698. } = parameters2[PARAM_KEY] || {}, data = globals[PARAM_KEY] || {}, backgroundName = typeof data == "string" ? data : data?.value, item = backgroundName ? options[backgroundName] : void 0, value = typeof item == "string" ? item : item?.value || "transparent", showGrid = typeof data == "string" ? !1 : data.grid || !1, shownBackground = !!item && !disable, backgroundSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".sb-show-main", gridSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".sb-show-main", isLayoutPadded = parameters2.layout === void 0 || parameters2.layout === "padded", defaultOffset = viewMode === "docs" ? 20 : isLayoutPadded ? 16 : 0, { cellAmount, cellSize, opacity, offsetX = defaultOffset, offsetY = defaultOffset } = grid, backgroundSelectorId = viewMode === "docs" ? `${BG_SELECTOR_BASE}-docs-${id}` : `${BG_SELECTOR_BASE}-color`, backgroundTarget = viewMode === "docs" ? id : null;
  55699. useEffect6(() => {
  55700. let backgroundStyles = `
  55701. ${backgroundSelector} {
  55702. background: ${value} !important;
  55703. ${transitionStyle}
  55704. }`;
  55705. if (!shownBackground) {
  55706. clearStyles(backgroundSelectorId);
  55707. return;
  55708. }
  55709. addBackgroundStyle(backgroundSelectorId, backgroundStyles, backgroundTarget);
  55710. }, [backgroundSelector, backgroundSelectorId, backgroundTarget, shownBackground, value]);
  55711. let gridSelectorId = viewMode === "docs" ? `${GRID_SELECTOR_BASE}-docs-${id}` : `${GRID_SELECTOR_BASE}`;
  55712. return useEffect6(() => {
  55713. if (!showGrid) {
  55714. clearStyles(gridSelectorId);
  55715. return;
  55716. }
  55717. let gridSize = [
  55718. `${cellSize * cellAmount}px ${cellSize * cellAmount}px`,
  55719. `${cellSize * cellAmount}px ${cellSize * cellAmount}px`,
  55720. `${cellSize}px ${cellSize}px`,
  55721. `${cellSize}px ${cellSize}px`
  55722. ].join(", "), gridStyles = `
  55723. ${gridSelector} {
  55724. background-size: ${gridSize} !important;
  55725. background-position: ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px !important;
  55726. background-blend-mode: difference !important;
  55727. background-image: linear-gradient(rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),
  55728. linear-gradient(90deg, rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),
  55729. linear-gradient(rgba(130, 130, 130, ${opacity / 2}) 1px, transparent 1px),
  55730. linear-gradient(90deg, rgba(130, 130, 130, ${opacity / 2}) 1px, transparent 1px) !important;
  55731. }
  55732. `;
  55733. addGridStyle(gridSelectorId, gridStyles);
  55734. }, [cellAmount, cellSize, gridSelector, gridSelectorId, showGrid, offsetX, offsetY, opacity]), StoryFn();
  55735. };
  55736. // src/backgrounds/preview.ts
  55737. var decorators = globalThis.FEATURES?.backgrounds ? [withBackgroundAndGrid] : [], parameters = {
  55738. [PARAM_KEY]: {
  55739. grid: {
  55740. cellSize: 20,
  55741. opacity: 0.5,
  55742. cellAmount: 5
  55743. },
  55744. disable: !1
  55745. }
  55746. }, initialGlobals = {
  55747. [PARAM_KEY]: { value: void 0, grid: !1 }
  55748. };
  55749. // src/component-testing/preview.ts
  55750. var { step } = instrument(
  55751. {
  55752. // It seems like the label is unused, but the instrumenter has access to it
  55753. // The context will be bounded later in StoryRender, so that the user can write just:
  55754. // await step("label", (context) => {
  55755. // // labeled step
  55756. // });
  55757. step: async (label, play, context) => play(context)
  55758. },
  55759. { intercept: !0 }
  55760. );
  55761. // src/highlight/constants.ts
  55762. var ADDON_ID4 = "storybook/highlight", HIGHLIGHT = `${ADDON_ID4}/add`, REMOVE_HIGHLIGHT = `${ADDON_ID4}/remove`, RESET_HIGHLIGHT = `${ADDON_ID4}/reset`, SCROLL_INTO_VIEW = `${ADDON_ID4}/scroll-into-view`, MAX_Z_INDEX = 2147483647, MIN_TOUCH_AREA_SIZE = 28;
  55763. // src/highlight/icons.ts
  55764. var iconPaths = {
  55765. chevronLeft: [
  55766. "M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"
  55767. ],
  55768. chevronRight: [
  55769. "M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"
  55770. ],
  55771. info: [
  55772. "M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",
  55773. "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"
  55774. ],
  55775. shareAlt: [
  55776. "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",
  55777. "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"
  55778. ]
  55779. };
  55780. // src/highlight/utils.ts
  55781. var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","), createElement6 = (type5, props = {}, children) => {
  55782. let element = svgElements.includes(type5) ? document.createElementNS("http://www.w3.org/2000/svg", type5) : document.createElement(type5);
  55783. return Object.entries(props).forEach(([key, val]) => {
  55784. /[A-Z]/.test(key) ? (key === "onClick" && (element.addEventListener("click", val), element.addEventListener("keydown", (e) => {
  55785. (e.key === "Enter" || e.key === " ") && (e.preventDefault(), val());
  55786. })), key === "onMouseEnter" && element.addEventListener("mouseenter", val), key === "onMouseLeave" && element.addEventListener("mouseleave", val)) : element.setAttribute(key, val);
  55787. }), children?.forEach((child) => {
  55788. if (!(child == null || child === !1))
  55789. try {
  55790. element.appendChild(child);
  55791. } catch {
  55792. element.appendChild(document.createTextNode(String(child)));
  55793. }
  55794. }), element;
  55795. }, createIcon = (name) => iconPaths[name] && createElement6(
  55796. "svg",
  55797. { width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg" },
  55798. iconPaths[name].map(
  55799. (d) => createElement6("path", {
  55800. fill: "currentColor",
  55801. "fill-rule": "evenodd",
  55802. "clip-rule": "evenodd",
  55803. d
  55804. })
  55805. )
  55806. ), normalizeOptions = (options) => {
  55807. if ("elements" in options) {
  55808. let { elements, color: color2, style } = options;
  55809. return {
  55810. id: void 0,
  55811. priority: 0,
  55812. selectors: elements,
  55813. styles: {
  55814. outline: `2px ${style} ${color2}`,
  55815. outlineOffset: "2px",
  55816. boxShadow: "0 0 0 6px rgba(255,255,255,0.6)"
  55817. },
  55818. menu: void 0
  55819. };
  55820. }
  55821. let { menu, ...rest } = options;
  55822. return {
  55823. id: void 0,
  55824. priority: 0,
  55825. styles: {
  55826. outline: "2px dashed #029cfd"
  55827. },
  55828. ...rest,
  55829. menu: Array.isArray(menu) ? menu.every(Array.isArray) ? menu : [menu] : void 0
  55830. };
  55831. }, isFunction3 = (obj) => obj instanceof Function, state = /* @__PURE__ */ new Map(), listeners2 = /* @__PURE__ */ new Map(), teardowns = /* @__PURE__ */ new Map(), useStore = (initialValue2) => {
  55832. let key = /* @__PURE__ */ Symbol();
  55833. return listeners2.set(key, []), state.set(key, initialValue2), { get: () => state.get(key), set: (update2) => {
  55834. let current = state.get(key), next2 = isFunction3(update2) ? update2(current) : update2;
  55835. next2 !== current && (state.set(key, next2), listeners2.get(key)?.forEach((listener) => {
  55836. teardowns.get(listener)?.(), teardowns.set(listener, listener(next2));
  55837. }));
  55838. }, subscribe: (listener) => (listeners2.get(key)?.push(listener), () => {
  55839. let list = listeners2.get(key);
  55840. list && listeners2.set(
  55841. key,
  55842. list.filter((l) => l !== listener)
  55843. );
  55844. }), teardown: () => {
  55845. listeners2.get(key)?.forEach((listener) => {
  55846. teardowns.get(listener)?.(), teardowns.delete(listener);
  55847. }), listeners2.delete(key), state.delete(key);
  55848. } };
  55849. }, mapElements = (highlights) => {
  55850. let root2 = document.getElementById("storybook-root"), map2 = /* @__PURE__ */ new Map();
  55851. for (let highlight of highlights) {
  55852. let { priority = 0 } = highlight;
  55853. for (let selector of highlight.selectors) {
  55854. let elements = [
  55855. ...document.querySelectorAll(
  55856. // Elements matching the selector, excluding storybook elements and their descendants.
  55857. // Necessary to find portaled elements (e.g. children of `body`).
  55858. `:is(${selector}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`
  55859. ),
  55860. // Elements matching the selector inside the storybook root, as these were excluded above.
  55861. ...root2?.querySelectorAll(selector) || []
  55862. ];
  55863. for (let element of elements) {
  55864. let existing = map2.get(element);
  55865. (!existing || existing.priority <= priority) && map2.set(element, {
  55866. ...highlight,
  55867. priority,
  55868. selectors: Array.from(new Set((existing?.selectors || []).concat(selector)))
  55869. });
  55870. }
  55871. }
  55872. }
  55873. return map2;
  55874. }, mapBoxes = (elements) => Array.from(elements.entries()).map(([element, { selectors, styles: styles4, hoverStyles, focusStyles, menu }]) => {
  55875. let { top: top2, left: left2, width, height } = element.getBoundingClientRect(), { position: position2 } = getComputedStyle(element);
  55876. return {
  55877. element,
  55878. selectors,
  55879. styles: styles4,
  55880. hoverStyles,
  55881. focusStyles,
  55882. menu,
  55883. top: position2 === "fixed" ? top2 : top2 + window.scrollY,
  55884. left: position2 === "fixed" ? left2 : left2 + window.scrollX,
  55885. width,
  55886. height
  55887. };
  55888. }).sort((a3, b) => b.width * b.height - a3.width * a3.height), isOverMenu = (menuElement, coordinates) => {
  55889. let menu = menuElement.getBoundingClientRect(), { x, y } = coordinates;
  55890. return menu?.top && menu?.left && x >= menu.left && x <= menu.left + menu.width && y >= menu.top && y <= menu.top + menu.height;
  55891. }, isTargeted = (box, boxElement, coordinates) => {
  55892. if (!boxElement || !coordinates)
  55893. return !1;
  55894. let { left: left2, top: top2, width, height } = box;
  55895. height < MIN_TOUCH_AREA_SIZE && (top2 = top2 - Math.round((MIN_TOUCH_AREA_SIZE - height) / 2), height = MIN_TOUCH_AREA_SIZE), width < MIN_TOUCH_AREA_SIZE && (left2 = left2 - Math.round((MIN_TOUCH_AREA_SIZE - width) / 2), width = MIN_TOUCH_AREA_SIZE), boxElement.style.position === "fixed" && (left2 += window.scrollX, top2 += window.scrollY);
  55896. let { x, y } = coordinates;
  55897. return x >= left2 && x <= left2 + width && y >= top2 && y <= top2 + height;
  55898. }, keepInViewport = (element, targetCoordinates, options = {}) => {
  55899. let { x, y } = targetCoordinates, { margin = 5, topOffset = 0, centered = !1 } = options, { scrollX, scrollY, innerHeight: windowHeight, innerWidth: windowWidth } = window, top2 = Math.min(
  55900. element.style.position === "fixed" ? y - scrollY : y,
  55901. windowHeight - element.clientHeight - margin - topOffset + scrollY
  55902. ), leftOffset = centered ? element.clientWidth / 2 : 0, left2 = element.style.position === "fixed" ? Math.max(Math.min(x - scrollX, windowWidth - leftOffset - margin), leftOffset + margin) : Math.max(
  55903. Math.min(x, windowWidth - leftOffset - margin + scrollX),
  55904. leftOffset + margin + scrollX
  55905. );
  55906. Object.assign(element.style, {
  55907. ...left2 !== x && { left: `${left2}px` },
  55908. ...top2 !== y && { top: `${top2}px` }
  55909. });
  55910. }, showPopover = (element) => {
  55911. window.HTMLElement.prototype.hasOwnProperty("showPopover") && element.showPopover();
  55912. }, hidePopover = (element) => {
  55913. window.HTMLElement.prototype.hasOwnProperty("showPopover") && element.hidePopover();
  55914. }, getEventDetails = (target) => ({
  55915. top: target.top,
  55916. left: target.left,
  55917. width: target.width,
  55918. height: target.height,
  55919. selectors: target.selectors,
  55920. element: {
  55921. attributes: Object.fromEntries(
  55922. Array.from(target.element.attributes).map((attr) => [attr.name, attr.value])
  55923. ),
  55924. localName: target.element.localName,
  55925. tagName: target.element.tagName,
  55926. outerHTML: target.element.outerHTML
  55927. }
  55928. });
  55929. // src/highlight/useHighlights.ts
  55930. var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root", storybookRootId = "storybook-root", useHighlights = (channel) => {
  55931. if (globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)
  55932. return;
  55933. globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED = !0;
  55934. let { document: document13 } = globalThis, highlights = useStore([]), elements = useStore(/* @__PURE__ */ new Map()), boxes = useStore([]), clickCoords = useStore(), hoverCoords = useStore(), targets = useStore([]), hovered = useStore([]), focused = useStore(), selected = useStore(), root2 = document13.getElementById(rootId);
  55935. highlights.subscribe(() => {
  55936. root2 || (root2 = createElement6("div", { id: rootId }), document13.body.appendChild(root2));
  55937. }), highlights.subscribe((value) => {
  55938. let storybookRoot = document13.getElementById(storybookRootId);
  55939. if (!storybookRoot)
  55940. return;
  55941. elements.set(mapElements(value));
  55942. let observer = new MutationObserver(() => elements.set(mapElements(value)));
  55943. return observer.observe(storybookRoot, { subtree: !0, childList: !0 }), () => {
  55944. observer.disconnect();
  55945. };
  55946. }), elements.subscribe((value) => {
  55947. let updateBoxes = () => requestAnimationFrame(() => boxes.set(mapBoxes(value))), observer = new ResizeObserver(updateBoxes);
  55948. observer.observe(document13.body), Array.from(value.keys()).forEach((element) => observer.observe(element));
  55949. let scrollers = Array.from(document13.body.querySelectorAll("*")).filter((el) => {
  55950. let { overflow, overflowX, overflowY } = window.getComputedStyle(el);
  55951. return ["auto", "scroll"].some((o) => [overflow, overflowX, overflowY].includes(o));
  55952. });
  55953. return scrollers.forEach((element) => element.addEventListener("scroll", updateBoxes)), () => {
  55954. observer.disconnect(), scrollers.forEach((element) => element.removeEventListener("scroll", updateBoxes));
  55955. };
  55956. }), elements.subscribe((value) => {
  55957. let sticky = Array.from(value.keys()).filter(({ style }) => style.position === "sticky"), updateBoxes = () => requestAnimationFrame(() => {
  55958. boxes.set(
  55959. (current) => current.map((box) => {
  55960. if (sticky.includes(box.element)) {
  55961. let { top: top2, left: left2 } = box.element.getBoundingClientRect();
  55962. return { ...box, top: top2 + window.scrollY, left: left2 + window.scrollX };
  55963. }
  55964. return box;
  55965. })
  55966. );
  55967. });
  55968. return document13.addEventListener("scroll", updateBoxes), () => document13.removeEventListener("scroll", updateBoxes);
  55969. }), elements.subscribe((value) => {
  55970. targets.set((t) => t.filter(({ element }) => value.has(element)));
  55971. }), targets.subscribe((value) => {
  55972. value.length ? (selected.set((s3) => value.some((t) => t.element === s3?.element) ? s3 : void 0), focused.set((s3) => value.some((t) => t.element === s3?.element) ? s3 : void 0)) : (selected.set(void 0), focused.set(void 0), clickCoords.set(void 0));
  55973. });
  55974. let styleElementByHighlight = new Map(/* @__PURE__ */ new Map());
  55975. highlights.subscribe((value) => {
  55976. value.forEach(({ keyframes: keyframes2 }) => {
  55977. if (keyframes2) {
  55978. let style = styleElementByHighlight.get(keyframes2);
  55979. style || (style = document13.createElement("style"), style.setAttribute("data-highlight", "keyframes"), styleElementByHighlight.set(keyframes2, style), document13.head.appendChild(style)), style.innerHTML = keyframes2;
  55980. }
  55981. }), styleElementByHighlight.forEach((style, keyframes2) => {
  55982. value.some((v) => v.keyframes === keyframes2) || (style.remove(), styleElementByHighlight.delete(keyframes2));
  55983. });
  55984. });
  55985. let boxElementByTargetElement = new Map(/* @__PURE__ */ new Map());
  55986. boxes.subscribe((value) => {
  55987. value.forEach((box) => {
  55988. let boxElement = boxElementByTargetElement.get(box.element);
  55989. if (root2 && !boxElement) {
  55990. let props = {
  55991. popover: "manual",
  55992. "data-highlight-dimensions": `w${box.width.toFixed(0)}h${box.height.toFixed(0)}`,
  55993. "data-highlight-coordinates": `x${box.left.toFixed(0)}y${box.top.toFixed(0)}`
  55994. };
  55995. boxElement = root2.appendChild(
  55996. createElement6("div", props, [createElement6("div")])
  55997. ), boxElementByTargetElement.set(box.element, boxElement);
  55998. }
  55999. }), boxElementByTargetElement.forEach((box, element) => {
  56000. value.some(({ element: e }) => e === element) || (box.remove(), boxElementByTargetElement.delete(element));
  56001. });
  56002. }), boxes.subscribe((value) => {
  56003. let targetable = value.filter((box) => box.menu);
  56004. if (!targetable.length)
  56005. return;
  56006. let onClick = (event) => {
  56007. requestAnimationFrame(() => {
  56008. let menu = document13.getElementById(menuId), coords = { x: event.pageX, y: event.pageY };
  56009. if (menu && !isOverMenu(menu, coords)) {
  56010. let results = targetable.filter((box) => {
  56011. let boxElement = boxElementByTargetElement.get(box.element);
  56012. return isTargeted(box, boxElement, coords);
  56013. });
  56014. clickCoords.set(results.length ? coords : void 0), targets.set(results);
  56015. }
  56016. });
  56017. };
  56018. return document13.addEventListener("click", onClick), () => document13.removeEventListener("click", onClick);
  56019. });
  56020. let updateHovered = () => {
  56021. let menu = document13.getElementById(menuId), coords = hoverCoords.get();
  56022. !coords || menu && isOverMenu(menu, coords) || hovered.set((current) => {
  56023. let update2 = boxes.get().filter((box) => {
  56024. let boxElement = boxElementByTargetElement.get(box.element);
  56025. return isTargeted(box, boxElement, coords);
  56026. }), existing = current.filter((box) => update2.includes(box)), additions = update2.filter((box) => !current.includes(box)), hasRemovals = current.length - existing.length;
  56027. return additions.length || hasRemovals ? [...existing, ...additions] : current;
  56028. });
  56029. };
  56030. hoverCoords.subscribe(updateHovered), boxes.subscribe(updateHovered);
  56031. let updateBoxStyles = () => {
  56032. let selectedElement = selected.get(), targetElements = selectedElement ? [selectedElement] : targets.get(), focusedElement = targetElements.length === 1 ? targetElements[0] : focused.get(), isMenuOpen = clickCoords.get() !== void 0;
  56033. boxes.get().forEach((box) => {
  56034. let boxElement = boxElementByTargetElement.get(box.element);
  56035. if (boxElement) {
  56036. let isFocused = focusedElement === box, isHovered = isMenuOpen ? focusedElement ? isFocused : targetElements.includes(box) : hovered.get()?.includes(box);
  56037. Object.assign(boxElement.style, {
  56038. animation: "none",
  56039. background: "transparent",
  56040. border: "none",
  56041. boxSizing: "border-box",
  56042. outline: "none",
  56043. outlineOffset: "0px",
  56044. ...box.styles,
  56045. ...isHovered ? box.hoverStyles : {},
  56046. ...isFocused ? box.focusStyles : {},
  56047. position: getComputedStyle(box.element).position === "fixed" ? "fixed" : "absolute",
  56048. zIndex: MAX_Z_INDEX - 10,
  56049. top: `${box.top}px`,
  56050. left: `${box.left}px`,
  56051. width: `${box.width}px`,
  56052. height: `${box.height}px`,
  56053. margin: 0,
  56054. padding: 0,
  56055. cursor: box.menu && isHovered ? "pointer" : "default",
  56056. pointerEvents: box.menu ? "auto" : "none",
  56057. display: "flex",
  56058. alignItems: "center",
  56059. justifyContent: "center",
  56060. overflow: "visible"
  56061. }), Object.assign(boxElement.children[0].style, {
  56062. width: "100%",
  56063. height: "100%",
  56064. minHeight: `${MIN_TOUCH_AREA_SIZE}px`,
  56065. minWidth: `${MIN_TOUCH_AREA_SIZE}px`,
  56066. boxSizing: "content-box",
  56067. padding: boxElement.style.outlineWidth || "0px"
  56068. }), showPopover(boxElement);
  56069. }
  56070. });
  56071. };
  56072. boxes.subscribe(updateBoxStyles), targets.subscribe(updateBoxStyles), hovered.subscribe(updateBoxStyles), focused.subscribe(updateBoxStyles), selected.subscribe(updateBoxStyles);
  56073. let renderMenu = () => {
  56074. if (!root2)
  56075. return;
  56076. let menu = document13.getElementById(menuId);
  56077. if (menu)
  56078. menu.innerHTML = "";
  56079. else {
  56080. let props = { id: menuId, popover: "manual" };
  56081. menu = root2.appendChild(createElement6("div", props)), root2.appendChild(
  56082. createElement6("style", {}, [
  56083. `
  56084. #${menuId} {
  56085. position: absolute;
  56086. z-index: ${MAX_Z_INDEX};
  56087. width: 300px;
  56088. padding: 0px;
  56089. margin: 15px 0 0 0;
  56090. transform: translateX(-50%);
  56091. font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  56092. font-size: 12px;
  56093. background: white;
  56094. border: none;
  56095. border-radius: 6px;
  56096. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  56097. color: #2E3438;
  56098. }
  56099. #${menuId} ul {
  56100. list-style: none;
  56101. margin: 0;
  56102. padding: 0;
  56103. }
  56104. #${menuId} > ul {
  56105. max-height: 300px;
  56106. overflow-y: auto;
  56107. padding: 4px 0;
  56108. }
  56109. #${menuId} li {
  56110. padding: 0 4px;
  56111. margin: 0;
  56112. }
  56113. #${menuId} li > :not(ul) {
  56114. display: flex;
  56115. padding: 8px;
  56116. margin: 0;
  56117. align-items: center;
  56118. gap: 8px;
  56119. border-radius: 4px;
  56120. }
  56121. #${menuId} button {
  56122. width: 100%;
  56123. border: 0;
  56124. background: transparent;
  56125. color: inherit;
  56126. text-align: left;
  56127. font-family: inherit;
  56128. font-size: inherit;
  56129. }
  56130. #${menuId} button:focus-visible {
  56131. outline-color: #029CFD;
  56132. }
  56133. #${menuId} button:hover {
  56134. background: rgba(2, 156, 253, 0.07);
  56135. color: #029CFD;
  56136. cursor: pointer;
  56137. }
  56138. #${menuId} li code {
  56139. white-space: nowrap;
  56140. overflow: hidden;
  56141. text-overflow: ellipsis;
  56142. line-height: 16px;
  56143. font-size: 11px;
  56144. }
  56145. #${menuId} li svg {
  56146. flex-shrink: 0;
  56147. margin: 1px;
  56148. color: #73828C;
  56149. }
  56150. #${menuId} li > button:hover svg, #${menuId} li > button:focus-visible svg {
  56151. color: #029CFD;
  56152. }
  56153. #${menuId} .element-list li svg {
  56154. display: none;
  56155. }
  56156. #${menuId} li.selectable svg, #${menuId} li.selected svg {
  56157. display: block;
  56158. }
  56159. #${menuId} .menu-list {
  56160. border-top: 1px solid rgba(38, 85, 115, 0.15);
  56161. }
  56162. #${menuId} .menu-list > li:not(:last-child) {
  56163. padding-bottom: 4px;
  56164. margin-bottom: 4px;
  56165. border-bottom: 1px solid rgba(38, 85, 115, 0.15);
  56166. }
  56167. #${menuId} .menu-items, #${menuId} .menu-items li {
  56168. padding: 0;
  56169. }
  56170. #${menuId} .menu-item {
  56171. display: flex;
  56172. }
  56173. #${menuId} .menu-item-content {
  56174. display: flex;
  56175. flex-direction: column;
  56176. flex-grow: 1;
  56177. }
  56178. `
  56179. ])
  56180. );
  56181. }
  56182. let selectedElement = selected.get(), elementList = selectedElement ? [selectedElement] : targets.get();
  56183. if (elementList.length && (menu.style.position = getComputedStyle(elementList[0].element).position === "fixed" ? "fixed" : "absolute", menu.appendChild(
  56184. createElement6(
  56185. "ul",
  56186. { class: "element-list" },
  56187. elementList.map((target) => {
  56188. let selectable = elementList.length > 1 && !!target.menu?.some(
  56189. (group) => group.some(
  56190. (item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3))
  56191. )
  56192. ), props = selectable ? {
  56193. class: "selectable",
  56194. onClick: () => selected.set(target),
  56195. onMouseEnter: () => focused.set(target),
  56196. onMouseLeave: () => focused.set(void 0)
  56197. } : selectedElement ? { class: "selected", onClick: () => selected.set(void 0) } : {}, asButton = selectable || selectedElement;
  56198. return createElement6("li", props, [
  56199. createElement6(asButton ? "button" : "div", asButton ? { type: "button" } : {}, [
  56200. selectedElement ? createIcon("chevronLeft") : null,
  56201. createElement6("code", {}, [target.element.outerHTML]),
  56202. selectable ? createIcon("chevronRight") : null
  56203. ])
  56204. ]);
  56205. })
  56206. )
  56207. )), selected.get() || targets.get().length === 1) {
  56208. let target = selected.get() || targets.get()[0], menuGroups = target.menu?.filter(
  56209. (group) => group.some(
  56210. (item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3))
  56211. )
  56212. );
  56213. menuGroups?.length && menu.appendChild(
  56214. createElement6(
  56215. "ul",
  56216. { class: "menu-list" },
  56217. menuGroups.map(
  56218. (menuItems) => createElement6("li", {}, [
  56219. createElement6(
  56220. "ul",
  56221. { class: "menu-items" },
  56222. menuItems.map(
  56223. ({ id, title, description, iconLeft, iconRight, clickEvent: event }) => {
  56224. let onClick = event && (() => channel.emit(event, id, getEventDetails(target)));
  56225. return createElement6("li", {}, [
  56226. createElement6(
  56227. onClick ? "button" : "div",
  56228. onClick ? { class: "menu-item", type: "button", onClick } : { class: "menu-item" },
  56229. [
  56230. iconLeft ? createIcon(iconLeft) : null,
  56231. createElement6("div", { class: "menu-item-content" }, [
  56232. createElement6(description ? "strong" : "span", {}, [title]),
  56233. description && createElement6("span", {}, [description])
  56234. ]),
  56235. iconRight ? createIcon(iconRight) : null
  56236. ]
  56237. )
  56238. ]);
  56239. }
  56240. )
  56241. )
  56242. ])
  56243. )
  56244. )
  56245. );
  56246. }
  56247. let coords = clickCoords.get();
  56248. coords ? (Object.assign(menu.style, {
  56249. display: "block",
  56250. left: `${menu.style.position === "fixed" ? coords.x - window.scrollX : coords.x}px`,
  56251. top: `${menu.style.position === "fixed" ? coords.y - window.scrollY : coords.y}px`
  56252. }), showPopover(menu), requestAnimationFrame(() => keepInViewport(menu, coords, { topOffset: 15, centered: !0 }))) : (hidePopover(menu), Object.assign(menu.style, { display: "none" }));
  56253. };
  56254. targets.subscribe(renderMenu), selected.subscribe(renderMenu);
  56255. let addHighlight = (highlight) => {
  56256. let info = normalizeOptions(highlight);
  56257. highlights.set((value) => {
  56258. let others = info.id ? value.filter((h3) => h3.id !== info.id) : value;
  56259. return info.selectors?.length ? [...others, info] : others;
  56260. });
  56261. }, removeHighlight = (id) => {
  56262. id && highlights.set((value) => value.filter((h3) => h3.id !== id));
  56263. }, resetState = () => {
  56264. highlights.set([]), elements.set(/* @__PURE__ */ new Map()), boxes.set([]), clickCoords.set(void 0), hoverCoords.set(void 0), targets.set([]), hovered.set([]), focused.set(void 0), selected.set(void 0);
  56265. }, removeTimeout, scrollIntoView = (target, options) => {
  56266. let id = "scrollIntoView-highlight";
  56267. clearTimeout(removeTimeout), removeHighlight(id);
  56268. let element = document13.querySelector(target);
  56269. if (!element) {
  56270. console.warn(`Cannot scroll into view: ${target} not found`);
  56271. return;
  56272. }
  56273. element.scrollIntoView({ behavior: "smooth", block: "center", ...options });
  56274. let keyframeName = `kf-${Math.random().toString(36).substring(2, 15)}`;
  56275. highlights.set((value) => [
  56276. ...value,
  56277. {
  56278. id,
  56279. priority: 1e3,
  56280. selectors: [target],
  56281. styles: {
  56282. outline: "2px solid #1EA7FD",
  56283. outlineOffset: "-1px",
  56284. animation: `${keyframeName} 3s linear forwards`
  56285. },
  56286. keyframes: `@keyframes ${keyframeName} {
  56287. 0% { outline: 2px solid #1EA7FD; }
  56288. 20% { outline: 2px solid #1EA7FD00; }
  56289. 40% { outline: 2px solid #1EA7FD; }
  56290. 60% { outline: 2px solid #1EA7FD00; }
  56291. 80% { outline: 2px solid #1EA7FD; }
  56292. 100% { outline: 2px solid #1EA7FD00; }
  56293. }`
  56294. }
  56295. ]), removeTimeout = setTimeout(() => removeHighlight(id), 3500);
  56296. }, onMouseMove = (event) => {
  56297. requestAnimationFrame(() => hoverCoords.set({ x: event.pageX, y: event.pageY }));
  56298. };
  56299. document13.body.addEventListener("mousemove", onMouseMove), channel.on(HIGHLIGHT, addHighlight), channel.on(REMOVE_HIGHLIGHT, removeHighlight), channel.on(RESET_HIGHLIGHT, resetState), channel.on(SCROLL_INTO_VIEW, scrollIntoView), channel.on(STORY_RENDER_PHASE_CHANGED, ({ newPhase }) => {
  56300. newPhase === "loading" && resetState();
  56301. });
  56302. };
  56303. // src/highlight/preview.ts
  56304. globalThis?.FEATURES?.highlight && addons2?.ready && addons2.ready().then(useHighlights);
  56305. // src/measure/constants.ts
  56306. var ADDON_ID5 = "storybook/measure-addon", TOOL_ID = `${ADDON_ID5}/tool`, PARAM_KEY2 = "measureEnabled", EVENTS3 = {
  56307. RESULT: `${ADDON_ID5}/result`,
  56308. REQUEST: `${ADDON_ID5}/request`,
  56309. CLEAR: `${ADDON_ID5}/clear`
  56310. };
  56311. // src/measure/box-model/canvas.ts
  56312. init_dist();
  56313. function getDocumentWidthAndHeight() {
  56314. let container = scope.document.documentElement, height = Math.max(container.scrollHeight, container.offsetHeight);
  56315. return { width: Math.max(container.scrollWidth, container.offsetWidth), height };
  56316. }
  56317. function createCanvas() {
  56318. let canvas = scope.document.createElement("canvas");
  56319. canvas.id = "storybook-addon-measure";
  56320. let context = canvas.getContext("2d");
  56321. invariant(context != null);
  56322. let { width, height } = getDocumentWidthAndHeight();
  56323. return setCanvasWidthAndHeight(canvas, context, { width, height }), canvas.style.position = "absolute", canvas.style.left = "0", canvas.style.top = "0", canvas.style.zIndex = "2147483647", canvas.style.pointerEvents = "none", scope.document.body.appendChild(canvas), { canvas, context, width, height };
  56324. }
  56325. function setCanvasWidthAndHeight(canvas, context, { width, height }) {
  56326. canvas.style.width = `${width}px`, canvas.style.height = `${height}px`;
  56327. let scale = scope.window.devicePixelRatio;
  56328. canvas.width = Math.floor(width * scale), canvas.height = Math.floor(height * scale), context.scale(scale, scale);
  56329. }
  56330. var state2 = {};
  56331. function init3() {
  56332. state2.canvas || (state2 = createCanvas());
  56333. }
  56334. function clear3() {
  56335. state2.context && state2.context.clearRect(0, 0, state2.width ?? 0, state2.height ?? 0);
  56336. }
  56337. function draw(callback) {
  56338. clear3(), callback(state2.context);
  56339. }
  56340. function rescale() {
  56341. invariant(state2.canvas, "Canvas should exist in the state."), invariant(state2.context, "Context should exist in the state."), setCanvasWidthAndHeight(state2.canvas, state2.context, { width: 0, height: 0 });
  56342. let { width, height } = getDocumentWidthAndHeight();
  56343. setCanvasWidthAndHeight(state2.canvas, state2.context, { width, height }), state2.width = width, state2.height = height;
  56344. }
  56345. function destroy() {
  56346. state2.canvas && (clear3(), state2.canvas.parentNode?.removeChild(state2.canvas), state2 = {});
  56347. }
  56348. // src/measure/box-model/visualizer.ts
  56349. init_dist();
  56350. // src/measure/box-model/labels.ts
  56351. var colors = {
  56352. margin: "#f6b26b",
  56353. border: "#ffe599",
  56354. padding: "#93c47d",
  56355. content: "#6fa8dc",
  56356. text: "#232020"
  56357. }, labelPadding = 6;
  56358. function roundedRect(context, { x, y, w, h: h3, r: r2 }) {
  56359. x = x - w / 2, y = y - h3 / 2, w < 2 * r2 && (r2 = w / 2), h3 < 2 * r2 && (r2 = h3 / 2), context.beginPath(), context.moveTo(x + r2, y), context.arcTo(x + w, y, x + w, y + h3, r2), context.arcTo(x + w, y + h3, x, y + h3, r2), context.arcTo(x, y + h3, x, y, r2), context.arcTo(x, y, x + w, y, r2), context.closePath();
  56360. }
  56361. function positionCoordinate(position2, { padding, border, width, height, top: top2, left: left2 }) {
  56362. let contentWidth = width - border.left - border.right - padding.left - padding.right, contentHeight = height - padding.top - padding.bottom - border.top - border.bottom, x = left2 + border.left + padding.left, y = top2 + border.top + padding.top;
  56363. return position2 === "top" ? x += contentWidth / 2 : position2 === "right" ? (x += contentWidth, y += contentHeight / 2) : position2 === "bottom" ? (x += contentWidth / 2, y += contentHeight) : position2 === "left" ? y += contentHeight / 2 : position2 === "center" && (x += contentWidth / 2, y += contentHeight / 2), { x, y };
  56364. }
  56365. function offset(type5, position2, { margin, border, padding }, labelPaddingSize, external) {
  56366. let shift = (dir) => 0, offsetX = 0, offsetY = 0, locationMultiplier = external ? 1 : 0.5, labelPaddingShift = external ? labelPaddingSize * 2 : 0;
  56367. return type5 === "padding" ? shift = (dir) => padding[dir] * locationMultiplier + labelPaddingShift : type5 === "border" ? shift = (dir) => padding[dir] + border[dir] * locationMultiplier + labelPaddingShift : type5 === "margin" && (shift = (dir) => padding[dir] + border[dir] + margin[dir] * locationMultiplier + labelPaddingShift), position2 === "top" ? offsetY = -shift("top") : position2 === "right" ? offsetX = shift("right") : position2 === "bottom" ? offsetY = shift("bottom") : position2 === "left" && (offsetX = -shift("left")), { offsetX, offsetY };
  56368. }
  56369. function collide(a3, b) {
  56370. return Math.abs(a3.x - b.x) < Math.abs(a3.w + b.w) / 2 && Math.abs(a3.y - b.y) < Math.abs(a3.h + b.h) / 2;
  56371. }
  56372. function overlapAdjustment(position2, currentRect, prevRect) {
  56373. return position2 === "top" ? currentRect.y = prevRect.y - prevRect.h - labelPadding : position2 === "right" ? currentRect.x = prevRect.x + prevRect.w / 2 + labelPadding + currentRect.w / 2 : position2 === "bottom" ? currentRect.y = prevRect.y + prevRect.h + labelPadding : position2 === "left" && (currentRect.x = prevRect.x - prevRect.w / 2 - labelPadding - currentRect.w / 2), { x: currentRect.x, y: currentRect.y };
  56374. }
  56375. function textWithRect(context, type5, { x, y, w, h: h3 }, text) {
  56376. return roundedRect(context, { x, y, w, h: h3, r: 3 }), context.fillStyle = `${colors[type5]}dd`, context.fill(), context.strokeStyle = colors[type5], context.stroke(), context.fillStyle = colors.text, context.fillText(text, x, y), roundedRect(context, { x, y, w, h: h3, r: 3 }), context.fillStyle = `${colors[type5]}dd`, context.fill(), context.strokeStyle = colors[type5], context.stroke(), context.fillStyle = colors.text, context.fillText(text, x, y), { x, y, w, h: h3 };
  56377. }
  56378. function configureText(context, text) {
  56379. context.font = "600 12px monospace", context.textBaseline = "middle", context.textAlign = "center";
  56380. let metrics = context.measureText(text), actualHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent, w = metrics.width + labelPadding * 2, h3 = actualHeight + labelPadding * 2;
  56381. return { w, h: h3 };
  56382. }
  56383. function drawLabel(context, measurements, { type: type5, position: position2 = "center", text }, prevRect, external = !1) {
  56384. let { x, y } = positionCoordinate(position2, measurements), { offsetX, offsetY } = offset(type5, position2, measurements, labelPadding + 1, external);
  56385. x += offsetX, y += offsetY;
  56386. let { w, h: h3 } = configureText(context, text);
  56387. if (prevRect && collide({ x, y, w, h: h3 }, prevRect)) {
  56388. let adjusted = overlapAdjustment(position2, { x, y, w, h: h3 }, prevRect);
  56389. x = adjusted.x, y = adjusted.y;
  56390. }
  56391. return textWithRect(context, type5, { x, y, w, h: h3 }, text);
  56392. }
  56393. function floatingOffset(alignment2, { w, h: h3 }) {
  56394. let deltaW = w * 0.5 + labelPadding, deltaH = h3 * 0.5 + labelPadding;
  56395. return {
  56396. offsetX: (alignment2.x === "left" ? -1 : 1) * deltaW,
  56397. offsetY: (alignment2.y === "top" ? -1 : 1) * deltaH
  56398. };
  56399. }
  56400. function drawFloatingLabel(context, measurements, { type: type5, text }) {
  56401. let { floatingAlignment: floatingAlignment2, extremities } = measurements, x = extremities[floatingAlignment2.x], y = extremities[floatingAlignment2.y], { w, h: h3 } = configureText(context, text), { offsetX, offsetY } = floatingOffset(floatingAlignment2, {
  56402. w,
  56403. h: h3
  56404. });
  56405. return x += offsetX, y += offsetY, textWithRect(context, type5, { x, y, w, h: h3 }, text);
  56406. }
  56407. function drawStack(context, measurements, stack, external) {
  56408. let rects = [];
  56409. stack.forEach((l, idx) => {
  56410. let rect = external && l.position === "center" ? drawFloatingLabel(context, measurements, l) : drawLabel(context, measurements, l, rects[idx - 1], external);
  56411. rects[idx] = rect;
  56412. });
  56413. }
  56414. function labelStacks(context, measurements, labels, externalLabels) {
  56415. let stacks = labels.reduce((acc, l) => (Object.prototype.hasOwnProperty.call(acc, l.position) || (acc[l.position] = []), acc[l.position]?.push(l), acc), {});
  56416. stacks.top && drawStack(context, measurements, stacks.top, externalLabels), stacks.right && drawStack(context, measurements, stacks.right, externalLabels), stacks.bottom && drawStack(context, measurements, stacks.bottom, externalLabels), stacks.left && drawStack(context, measurements, stacks.left, externalLabels), stacks.center && drawStack(context, measurements, stacks.center, externalLabels);
  56417. }
  56418. // src/measure/box-model/visualizer.ts
  56419. var colors2 = {
  56420. margin: "#f6b26ba8",
  56421. border: "#ffe599a8",
  56422. padding: "#93c47d8c",
  56423. content: "#6fa8dca8"
  56424. }, SMALL_NODE_SIZE = 30;
  56425. function pxToNumber(px) {
  56426. return parseInt(px.replace("px", ""), 10);
  56427. }
  56428. function round(value) {
  56429. return Number.isInteger(value) ? value : value.toFixed(2);
  56430. }
  56431. function filterZeroValues(labels) {
  56432. return labels.filter((l) => l.text !== 0 && l.text !== "0");
  56433. }
  56434. function floatingAlignment(extremities) {
  56435. let windowExtremities = {
  56436. top: scope.window.scrollY,
  56437. bottom: scope.window.scrollY + scope.window.innerHeight,
  56438. left: scope.window.scrollX,
  56439. right: scope.window.scrollX + scope.window.innerWidth
  56440. }, distances = {
  56441. top: Math.abs(windowExtremities.top - extremities.top),
  56442. bottom: Math.abs(windowExtremities.bottom - extremities.bottom),
  56443. left: Math.abs(windowExtremities.left - extremities.left),
  56444. right: Math.abs(windowExtremities.right - extremities.right)
  56445. };
  56446. return {
  56447. x: distances.left > distances.right ? "left" : "right",
  56448. y: distances.top > distances.bottom ? "top" : "bottom"
  56449. };
  56450. }
  56451. function measureElement(element) {
  56452. let style = scope.getComputedStyle(element), { top: top2, left: left2, right: right2, bottom: bottom2, width, height } = element.getBoundingClientRect(), {
  56453. marginTop,
  56454. marginBottom,
  56455. marginLeft,
  56456. marginRight,
  56457. paddingTop,
  56458. paddingBottom,
  56459. paddingLeft,
  56460. paddingRight,
  56461. borderBottomWidth,
  56462. borderTopWidth,
  56463. borderLeftWidth,
  56464. borderRightWidth
  56465. } = style;
  56466. top2 = top2 + scope.window.scrollY, left2 = left2 + scope.window.scrollX, bottom2 = bottom2 + scope.window.scrollY, right2 = right2 + scope.window.scrollX;
  56467. let margin = {
  56468. top: pxToNumber(marginTop),
  56469. bottom: pxToNumber(marginBottom),
  56470. left: pxToNumber(marginLeft),
  56471. right: pxToNumber(marginRight)
  56472. }, padding = {
  56473. top: pxToNumber(paddingTop),
  56474. bottom: pxToNumber(paddingBottom),
  56475. left: pxToNumber(paddingLeft),
  56476. right: pxToNumber(paddingRight)
  56477. }, border = {
  56478. top: pxToNumber(borderTopWidth),
  56479. bottom: pxToNumber(borderBottomWidth),
  56480. left: pxToNumber(borderLeftWidth),
  56481. right: pxToNumber(borderRightWidth)
  56482. }, extremities = {
  56483. top: top2 - margin.top,
  56484. bottom: bottom2 + margin.bottom,
  56485. left: left2 - margin.left,
  56486. right: right2 + margin.right
  56487. };
  56488. return {
  56489. margin,
  56490. padding,
  56491. border,
  56492. top: top2,
  56493. left: left2,
  56494. bottom: bottom2,
  56495. right: right2,
  56496. width,
  56497. height,
  56498. extremities,
  56499. floatingAlignment: floatingAlignment(extremities)
  56500. };
  56501. }
  56502. function drawMargin(context, { margin, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) {
  56503. let marginHeight = height + margin.bottom + margin.top;
  56504. context.fillStyle = colors2.margin, context.fillRect(left2, top2 - margin.top, width, margin.top), context.fillRect(right2, top2 - margin.top, margin.right, marginHeight), context.fillRect(left2, bottom2, width, margin.bottom), context.fillRect(left2 - margin.left, top2 - margin.top, margin.left, marginHeight);
  56505. let marginLabels = [
  56506. {
  56507. type: "margin",
  56508. text: round(margin.top),
  56509. position: "top"
  56510. },
  56511. {
  56512. type: "margin",
  56513. text: round(margin.right),
  56514. position: "right"
  56515. },
  56516. {
  56517. type: "margin",
  56518. text: round(margin.bottom),
  56519. position: "bottom"
  56520. },
  56521. {
  56522. type: "margin",
  56523. text: round(margin.left),
  56524. position: "left"
  56525. }
  56526. ];
  56527. return filterZeroValues(marginLabels);
  56528. }
  56529. function drawPadding(context, { padding, border, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) {
  56530. let paddingWidth = width - border.left - border.right, paddingHeight = height - padding.top - padding.bottom - border.top - border.bottom;
  56531. context.fillStyle = colors2.padding, context.fillRect(left2 + border.left, top2 + border.top, paddingWidth, padding.top), context.fillRect(
  56532. right2 - padding.right - border.right,
  56533. top2 + padding.top + border.top,
  56534. padding.right,
  56535. paddingHeight
  56536. ), context.fillRect(
  56537. left2 + border.left,
  56538. bottom2 - padding.bottom - border.bottom,
  56539. paddingWidth,
  56540. padding.bottom
  56541. ), context.fillRect(left2 + border.left, top2 + padding.top + border.top, padding.left, paddingHeight);
  56542. let paddingLabels = [
  56543. {
  56544. type: "padding",
  56545. text: padding.top,
  56546. position: "top"
  56547. },
  56548. {
  56549. type: "padding",
  56550. text: padding.right,
  56551. position: "right"
  56552. },
  56553. {
  56554. type: "padding",
  56555. text: padding.bottom,
  56556. position: "bottom"
  56557. },
  56558. {
  56559. type: "padding",
  56560. text: padding.left,
  56561. position: "left"
  56562. }
  56563. ];
  56564. return filterZeroValues(paddingLabels);
  56565. }
  56566. function drawBorder(context, { border, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) {
  56567. let borderHeight = height - border.top - border.bottom;
  56568. context.fillStyle = colors2.border, context.fillRect(left2, top2, width, border.top), context.fillRect(left2, bottom2 - border.bottom, width, border.bottom), context.fillRect(left2, top2 + border.top, border.left, borderHeight), context.fillRect(right2 - border.right, top2 + border.top, border.right, borderHeight);
  56569. let borderLabels = [
  56570. {
  56571. type: "border",
  56572. text: border.top,
  56573. position: "top"
  56574. },
  56575. {
  56576. type: "border",
  56577. text: border.right,
  56578. position: "right"
  56579. },
  56580. {
  56581. type: "border",
  56582. text: border.bottom,
  56583. position: "bottom"
  56584. },
  56585. {
  56586. type: "border",
  56587. text: border.left,
  56588. position: "left"
  56589. }
  56590. ];
  56591. return filterZeroValues(borderLabels);
  56592. }
  56593. function drawContent(context, { padding, border, width, height, top: top2, left: left2 }) {
  56594. let contentWidth = width - border.left - border.right - padding.left - padding.right, contentHeight = height - padding.top - padding.bottom - border.top - border.bottom;
  56595. return context.fillStyle = colors2.content, context.fillRect(
  56596. left2 + border.left + padding.left,
  56597. top2 + border.top + padding.top,
  56598. contentWidth,
  56599. contentHeight
  56600. ), [
  56601. {
  56602. type: "content",
  56603. position: "center",
  56604. text: `${round(contentWidth)} x ${round(contentHeight)}`
  56605. }
  56606. ];
  56607. }
  56608. function drawBoxModel(element) {
  56609. return (context) => {
  56610. if (element && context) {
  56611. let measurements = measureElement(element), marginLabels = drawMargin(context, measurements), paddingLabels = drawPadding(context, measurements), borderLabels = drawBorder(context, measurements), contentLabels = drawContent(context, measurements), externalLabels = measurements.width <= SMALL_NODE_SIZE * 3 || measurements.height <= SMALL_NODE_SIZE;
  56612. labelStacks(
  56613. context,
  56614. measurements,
  56615. [...contentLabels, ...paddingLabels, ...borderLabels, ...marginLabels],
  56616. externalLabels
  56617. );
  56618. }
  56619. };
  56620. }
  56621. function drawSelectedElement(element) {
  56622. draw(drawBoxModel(element));
  56623. }
  56624. // src/measure/util.ts
  56625. init_dist();
  56626. var deepElementFromPoint = (x, y) => {
  56627. let element = scope.document.elementFromPoint(x, y), crawlShadows = (node2) => {
  56628. if (node2 && node2.shadowRoot) {
  56629. let nestedElement = node2.shadowRoot.elementFromPoint(x, y);
  56630. return node2.isEqualNode(nestedElement) ? node2 : nestedElement.shadowRoot ? crawlShadows(nestedElement) : nestedElement;
  56631. }
  56632. return node2;
  56633. };
  56634. return crawlShadows(element) || element;
  56635. };
  56636. // src/measure/withMeasure.ts
  56637. var nodeAtPointerRef, pointer3 = { x: 0, y: 0 };
  56638. function findAndDrawElement(x, y) {
  56639. nodeAtPointerRef = deepElementFromPoint(x, y), drawSelectedElement(nodeAtPointerRef);
  56640. }
  56641. var withMeasure = (StoryFn, context) => {
  56642. let { measureEnabled } = context.globals || {};
  56643. return useEffect6(() => {
  56644. if (typeof globalThis.document > "u")
  56645. return;
  56646. let onPointerMove = (event) => {
  56647. window.requestAnimationFrame(() => {
  56648. event.stopPropagation(), pointer3.x = event.clientX, pointer3.y = event.clientY;
  56649. });
  56650. };
  56651. return globalThis.document.addEventListener("pointermove", onPointerMove), () => {
  56652. globalThis.document.removeEventListener("pointermove", onPointerMove);
  56653. };
  56654. }, []), useEffect6(() => {
  56655. let onPointerOver = (event) => {
  56656. window.requestAnimationFrame(() => {
  56657. event.stopPropagation(), findAndDrawElement(event.clientX, event.clientY);
  56658. });
  56659. }, onResize = () => {
  56660. window.requestAnimationFrame(() => {
  56661. rescale();
  56662. });
  56663. };
  56664. return context.viewMode === "story" && measureEnabled && (globalThis.document.addEventListener("pointerover", onPointerOver), init3(), globalThis.window.addEventListener("resize", onResize), findAndDrawElement(pointer3.x, pointer3.y)), () => {
  56665. globalThis.window.removeEventListener("resize", onResize), destroy();
  56666. };
  56667. }, [measureEnabled, context.viewMode]), StoryFn();
  56668. };
  56669. // src/measure/preview.ts
  56670. var decorators2 = globalThis.FEATURES?.measure ? [withMeasure] : [], initialGlobals2 = {
  56671. [PARAM_KEY2]: !1
  56672. };
  56673. // src/outline/constants.ts
  56674. var PARAM_KEY3 = "outline";
  56675. // src/outline/helpers.ts
  56676. init_dist();
  56677. var clearStyles2 = (selector) => {
  56678. (Array.isArray(selector) ? selector : [selector]).forEach(clearStyle2);
  56679. }, clearStyle2 = (input2) => {
  56680. let selector = typeof input2 == "string" ? input2 : input2.join(""), element = scope.document.getElementById(selector);
  56681. element && element.parentElement && element.parentElement.removeChild(element);
  56682. }, addOutlineStyles = (selector, css3) => {
  56683. let existingStyle = scope.document.getElementById(selector);
  56684. if (existingStyle)
  56685. existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3);
  56686. else {
  56687. let style = scope.document.createElement("style");
  56688. style.setAttribute("id", selector), style.innerHTML = css3, scope.document.head.appendChild(style);
  56689. }
  56690. };
  56691. // src/outline/outlineCSS.ts
  56692. init_esm();
  56693. function outlineCSS(selector) {
  56694. return dedent`
  56695. ${selector} body {
  56696. outline: 1px solid #2980b9 !important;
  56697. }
  56698. ${selector} article {
  56699. outline: 1px solid #3498db !important;
  56700. }
  56701. ${selector} nav {
  56702. outline: 1px solid #0088c3 !important;
  56703. }
  56704. ${selector} aside {
  56705. outline: 1px solid #33a0ce !important;
  56706. }
  56707. ${selector} section {
  56708. outline: 1px solid #66b8da !important;
  56709. }
  56710. ${selector} header {
  56711. outline: 1px solid #99cfe7 !important;
  56712. }
  56713. ${selector} footer {
  56714. outline: 1px solid #cce7f3 !important;
  56715. }
  56716. ${selector} h1 {
  56717. outline: 1px solid #162544 !important;
  56718. }
  56719. ${selector} h2 {
  56720. outline: 1px solid #314e6e !important;
  56721. }
  56722. ${selector} h3 {
  56723. outline: 1px solid #3e5e85 !important;
  56724. }
  56725. ${selector} h4 {
  56726. outline: 1px solid #449baf !important;
  56727. }
  56728. ${selector} h5 {
  56729. outline: 1px solid #c7d1cb !important;
  56730. }
  56731. ${selector} h6 {
  56732. outline: 1px solid #4371d0 !important;
  56733. }
  56734. ${selector} main {
  56735. outline: 1px solid #2f4f90 !important;
  56736. }
  56737. ${selector} address {
  56738. outline: 1px solid #1a2c51 !important;
  56739. }
  56740. ${selector} div {
  56741. outline: 1px solid #036cdb !important;
  56742. }
  56743. ${selector} p {
  56744. outline: 1px solid #ac050b !important;
  56745. }
  56746. ${selector} hr {
  56747. outline: 1px solid #ff063f !important;
  56748. }
  56749. ${selector} pre {
  56750. outline: 1px solid #850440 !important;
  56751. }
  56752. ${selector} blockquote {
  56753. outline: 1px solid #f1b8e7 !important;
  56754. }
  56755. ${selector} ol {
  56756. outline: 1px solid #ff050c !important;
  56757. }
  56758. ${selector} ul {
  56759. outline: 1px solid #d90416 !important;
  56760. }
  56761. ${selector} li {
  56762. outline: 1px solid #d90416 !important;
  56763. }
  56764. ${selector} dl {
  56765. outline: 1px solid #fd3427 !important;
  56766. }
  56767. ${selector} dt {
  56768. outline: 1px solid #ff0043 !important;
  56769. }
  56770. ${selector} dd {
  56771. outline: 1px solid #e80174 !important;
  56772. }
  56773. ${selector} figure {
  56774. outline: 1px solid #ff00bb !important;
  56775. }
  56776. ${selector} figcaption {
  56777. outline: 1px solid #bf0032 !important;
  56778. }
  56779. ${selector} table {
  56780. outline: 1px solid #00cc99 !important;
  56781. }
  56782. ${selector} caption {
  56783. outline: 1px solid #37ffc4 !important;
  56784. }
  56785. ${selector} thead {
  56786. outline: 1px solid #98daca !important;
  56787. }
  56788. ${selector} tbody {
  56789. outline: 1px solid #64a7a0 !important;
  56790. }
  56791. ${selector} tfoot {
  56792. outline: 1px solid #22746b !important;
  56793. }
  56794. ${selector} tr {
  56795. outline: 1px solid #86c0b2 !important;
  56796. }
  56797. ${selector} th {
  56798. outline: 1px solid #a1e7d6 !important;
  56799. }
  56800. ${selector} td {
  56801. outline: 1px solid #3f5a54 !important;
  56802. }
  56803. ${selector} col {
  56804. outline: 1px solid #6c9a8f !important;
  56805. }
  56806. ${selector} colgroup {
  56807. outline: 1px solid #6c9a9d !important;
  56808. }
  56809. ${selector} button {
  56810. outline: 1px solid #da8301 !important;
  56811. }
  56812. ${selector} datalist {
  56813. outline: 1px solid #c06000 !important;
  56814. }
  56815. ${selector} fieldset {
  56816. outline: 1px solid #d95100 !important;
  56817. }
  56818. ${selector} form {
  56819. outline: 1px solid #d23600 !important;
  56820. }
  56821. ${selector} input {
  56822. outline: 1px solid #fca600 !important;
  56823. }
  56824. ${selector} keygen {
  56825. outline: 1px solid #b31e00 !important;
  56826. }
  56827. ${selector} label {
  56828. outline: 1px solid #ee8900 !important;
  56829. }
  56830. ${selector} legend {
  56831. outline: 1px solid #de6d00 !important;
  56832. }
  56833. ${selector} meter {
  56834. outline: 1px solid #e8630c !important;
  56835. }
  56836. ${selector} optgroup {
  56837. outline: 1px solid #b33600 !important;
  56838. }
  56839. ${selector} option {
  56840. outline: 1px solid #ff8a00 !important;
  56841. }
  56842. ${selector} output {
  56843. outline: 1px solid #ff9619 !important;
  56844. }
  56845. ${selector} progress {
  56846. outline: 1px solid #e57c00 !important;
  56847. }
  56848. ${selector} select {
  56849. outline: 1px solid #e26e0f !important;
  56850. }
  56851. ${selector} textarea {
  56852. outline: 1px solid #cc5400 !important;
  56853. }
  56854. ${selector} details {
  56855. outline: 1px solid #33848f !important;
  56856. }
  56857. ${selector} summary {
  56858. outline: 1px solid #60a1a6 !important;
  56859. }
  56860. ${selector} command {
  56861. outline: 1px solid #438da1 !important;
  56862. }
  56863. ${selector} menu {
  56864. outline: 1px solid #449da6 !important;
  56865. }
  56866. ${selector} del {
  56867. outline: 1px solid #bf0000 !important;
  56868. }
  56869. ${selector} ins {
  56870. outline: 1px solid #400000 !important;
  56871. }
  56872. ${selector} img {
  56873. outline: 1px solid #22746b !important;
  56874. }
  56875. ${selector} iframe {
  56876. outline: 1px solid #64a7a0 !important;
  56877. }
  56878. ${selector} embed {
  56879. outline: 1px solid #98daca !important;
  56880. }
  56881. ${selector} object {
  56882. outline: 1px solid #00cc99 !important;
  56883. }
  56884. ${selector} param {
  56885. outline: 1px solid #37ffc4 !important;
  56886. }
  56887. ${selector} video {
  56888. outline: 1px solid #6ee866 !important;
  56889. }
  56890. ${selector} audio {
  56891. outline: 1px solid #027353 !important;
  56892. }
  56893. ${selector} source {
  56894. outline: 1px solid #012426 !important;
  56895. }
  56896. ${selector} canvas {
  56897. outline: 1px solid #a2f570 !important;
  56898. }
  56899. ${selector} track {
  56900. outline: 1px solid #59a600 !important;
  56901. }
  56902. ${selector} map {
  56903. outline: 1px solid #7be500 !important;
  56904. }
  56905. ${selector} area {
  56906. outline: 1px solid #305900 !important;
  56907. }
  56908. ${selector} a {
  56909. outline: 1px solid #ff62ab !important;
  56910. }
  56911. ${selector} em {
  56912. outline: 1px solid #800b41 !important;
  56913. }
  56914. ${selector} strong {
  56915. outline: 1px solid #ff1583 !important;
  56916. }
  56917. ${selector} i {
  56918. outline: 1px solid #803156 !important;
  56919. }
  56920. ${selector} b {
  56921. outline: 1px solid #cc1169 !important;
  56922. }
  56923. ${selector} u {
  56924. outline: 1px solid #ff0430 !important;
  56925. }
  56926. ${selector} s {
  56927. outline: 1px solid #f805e3 !important;
  56928. }
  56929. ${selector} small {
  56930. outline: 1px solid #d107b2 !important;
  56931. }
  56932. ${selector} abbr {
  56933. outline: 1px solid #4a0263 !important;
  56934. }
  56935. ${selector} q {
  56936. outline: 1px solid #240018 !important;
  56937. }
  56938. ${selector} cite {
  56939. outline: 1px solid #64003c !important;
  56940. }
  56941. ${selector} dfn {
  56942. outline: 1px solid #b4005a !important;
  56943. }
  56944. ${selector} sub {
  56945. outline: 1px solid #dba0c8 !important;
  56946. }
  56947. ${selector} sup {
  56948. outline: 1px solid #cc0256 !important;
  56949. }
  56950. ${selector} time {
  56951. outline: 1px solid #d6606d !important;
  56952. }
  56953. ${selector} code {
  56954. outline: 1px solid #e04251 !important;
  56955. }
  56956. ${selector} kbd {
  56957. outline: 1px solid #5e001f !important;
  56958. }
  56959. ${selector} samp {
  56960. outline: 1px solid #9c0033 !important;
  56961. }
  56962. ${selector} var {
  56963. outline: 1px solid #d90047 !important;
  56964. }
  56965. ${selector} mark {
  56966. outline: 1px solid #ff0053 !important;
  56967. }
  56968. ${selector} bdi {
  56969. outline: 1px solid #bf3668 !important;
  56970. }
  56971. ${selector} bdo {
  56972. outline: 1px solid #6f1400 !important;
  56973. }
  56974. ${selector} ruby {
  56975. outline: 1px solid #ff7b93 !important;
  56976. }
  56977. ${selector} rt {
  56978. outline: 1px solid #ff2f54 !important;
  56979. }
  56980. ${selector} rp {
  56981. outline: 1px solid #803e49 !important;
  56982. }
  56983. ${selector} span {
  56984. outline: 1px solid #cc2643 !important;
  56985. }
  56986. ${selector} br {
  56987. outline: 1px solid #db687d !important;
  56988. }
  56989. ${selector} wbr {
  56990. outline: 1px solid #db175b !important;
  56991. }`;
  56992. }
  56993. // src/outline/withOutline.ts
  56994. var withOutline = (StoryFn, context) => {
  56995. let globals = context.globals || {}, isActive = [!0, "true"].includes(globals[PARAM_KEY3]), isInDocs = context.viewMode === "docs", outlineStyles = useMemo4(() => outlineCSS(isInDocs ? '[data-story-block="true"]' : ".sb-show-main"), [context]);
  56996. return useEffect6(() => {
  56997. let selectorId = isInDocs ? `addon-outline-docs-${context.id}` : "addon-outline";
  56998. return isActive ? addOutlineStyles(selectorId, outlineStyles) : clearStyles2(selectorId), () => {
  56999. clearStyles2(selectorId);
  57000. };
  57001. }, [isActive, outlineStyles, context]), StoryFn();
  57002. };
  57003. // src/outline/preview.ts
  57004. var decorators3 = globalThis.FEATURES?.outline ? [withOutline] : [], initialGlobals3 = {
  57005. [PARAM_KEY3]: !1
  57006. };
  57007. // src/viewport/constants.ts
  57008. var ADDON_ID6 = "storybook/viewport", PARAM_KEY4 = "viewport", PANEL_ID3 = `${ADDON_ID6}/panel`, TOOL_ID2 = `${ADDON_ID6}/tool`;
  57009. // src/viewport/preview.ts
  57010. var initialGlobals4 = {
  57011. [PARAM_KEY4]: { value: void 0, isRotated: !1 }
  57012. };
  57013. // src/csf/index.ts
  57014. var sanitize = (string) => string.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-").replace(/-+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), sanitizeSafe = (string, part) => {
  57015. let sanitized = sanitize(string);
  57016. if (sanitized === "")
  57017. throw new Error(`Invalid ${part} '${string}', must include alphanumeric characters`);
  57018. return sanitized;
  57019. }, toId = (kind, name) => `${sanitizeSafe(kind, "kind")}${name ? `--${sanitizeSafe(name, "name")}` : ""}`;
  57020. // ../../node_modules/es-toolkit/dist/array/countBy.mjs
  57021. function countBy(arr, mapper) {
  57022. let result = {};
  57023. for (let i = 0; i < arr.length; i++) {
  57024. let item = arr[i], key = mapper(item);
  57025. result[key] = (result[key] ?? 0) + 1;
  57026. }
  57027. return result;
  57028. }
  57029. // ../../node_modules/es-toolkit/dist/array/partition.mjs
  57030. function partition(arr, isInTruthy) {
  57031. let truthy = [], falsy = [];
  57032. for (let i = 0; i < arr.length; i++) {
  57033. let item = arr[i];
  57034. isInTruthy(item) ? truthy.push(item) : falsy.push(item);
  57035. }
  57036. return [truthy, falsy];
  57037. }
  57038. // src/manager-api/lib/stories.ts
  57039. var import_memoizerific6 = __toESM(require_memoizerific(), 1);
  57040. init_esm();
  57041. // src/manager-api/lib/intersect.ts
  57042. var intersect_default = (a3, b) => !Array.isArray(a3) || !Array.isArray(b) || !a3.length || !b.length ? [] : a3.reduce((acc, aValue) => (b.includes(aValue) && acc.push(aValue), acc), []);
  57043. // src/manager-api/lib/stories.ts
  57044. var TITLE_PATH_SEPARATOR = /\s*\/\s*/, denormalizeStoryParameters = ({
  57045. globalParameters,
  57046. kindParameters,
  57047. stories
  57048. }) => mapValues(stories, (storyData) => ({
  57049. ...storyData,
  57050. parameters: combineParameters2(
  57051. globalParameters,
  57052. kindParameters[storyData.kind],
  57053. storyData.parameters
  57054. )
  57055. })), transformSetStoriesStoryDataToPreparedStoryIndex = (stories) => ({ v: 5, entries: Object.entries(stories).reduce(
  57056. (acc, [id, story]) => {
  57057. if (!story)
  57058. return acc;
  57059. let { docsOnly, fileName, ...parameters2 } = story.parameters, base = {
  57060. title: story.kind,
  57061. id,
  57062. name: story.name,
  57063. importPath: fileName
  57064. };
  57065. if (docsOnly)
  57066. acc[id] = {
  57067. type: "docs",
  57068. tags: ["stories-mdx"],
  57069. storiesImports: [],
  57070. ...base
  57071. };
  57072. else {
  57073. let { argTypes, args, initialArgs } = story;
  57074. acc[id] = {
  57075. type: "story",
  57076. subtype: "story",
  57077. ...base,
  57078. parameters: parameters2,
  57079. argTypes,
  57080. args,
  57081. initialArgs
  57082. };
  57083. }
  57084. return acc;
  57085. },
  57086. {}
  57087. ) }), transformStoryIndexV2toV3 = (index4) => ({
  57088. v: 3,
  57089. stories: Object.values(index4.stories).reduce(
  57090. (acc, entry) => (acc[entry.id] = {
  57091. ...entry,
  57092. title: entry.kind,
  57093. name: entry.name || entry.story,
  57094. importPath: entry.parameters.fileName || ""
  57095. }, acc),
  57096. {}
  57097. )
  57098. }), transformStoryIndexV3toV4 = (index4) => {
  57099. let countByTitle = countBy(Object.values(index4.stories), (item) => item.title);
  57100. return {
  57101. v: 4,
  57102. entries: Object.values(index4.stories).reduce(
  57103. (acc, entry) => {
  57104. let type5 = "story";
  57105. return (entry.parameters?.docsOnly || entry.name === "Page" && countByTitle[entry.title] === 1) && (type5 = "docs"), acc[entry.id] = {
  57106. type: type5,
  57107. ...type5 === "docs" && { tags: ["stories-mdx"], storiesImports: [] },
  57108. ...entry
  57109. }, delete acc[entry.id].story, delete acc[entry.id].kind, acc;
  57110. },
  57111. {}
  57112. )
  57113. };
  57114. }, transformStoryIndexV4toV5 = (index4) => ({
  57115. v: 5,
  57116. entries: Object.values(index4.entries).reduce(
  57117. (acc, entry) => (acc[entry.id] = {
  57118. ...entry,
  57119. tags: entry.tags ? [Tag.DEV, Tag.TEST, ...entry.tags] : [Tag.DEV]
  57120. }, acc),
  57121. {}
  57122. )
  57123. }), transformStoryIndexToStoriesHash = (input2, { provider, docsOptions, filters, allStatuses, statusFilterKey }) => {
  57124. if (!input2.v)
  57125. throw new Error("Composition: Missing stories.json version");
  57126. let index4 = input2;
  57127. index4 = index4.v === 2 ? transformStoryIndexV2toV3(index4) : index4, index4 = index4.v === 3 ? transformStoryIndexV3toV4(index4) : index4, index4 = index4.v === 4 ? transformStoryIndexV4toV5(index4) : index4, index4 = index4;
  57128. let indexEntries = Object.values(index4.entries), filterFunctions = Object.values(filters), statusFilterFn = statusFilterKey ? filters[statusFilterKey] : void 0, entryValues = indexEntries.filter((entry) => {
  57129. let statuses = allStatuses[entry.id] ?? {};
  57130. return statusFilterFn && !statusFilterFn({ ...entry, statuses }) && !indexEntries.filter((item) => "parent" in item && item.parent === entry.id).some(
  57131. (child) => statusFilterFn({ ...child, statuses: allStatuses[child.id] ?? {} })
  57132. ) ? !1 : Object.values(statuses).some(({ value }) => value === "status-value:error") || filterFunctions.every((fn4) => fn4({ ...entry, statuses })) ? !0 : indexEntries.filter((item) => "parent" in item && item.parent === entry.id).some((child) => filterFunctions.every((fn4) => fn4({ ...child, statuses })));
  57133. }), { sidebar = {} } = provider.getConfig(), { showRoots, collapsedRoots = [], renderLabel } = sidebar, setShowRoots = typeof showRoots < "u", storiesHashOutOfOrder = entryValues.reduce((acc, item) => {
  57134. if (docsOptions.docsMode && item.type !== "docs")
  57135. return acc;
  57136. let { title } = item, groups = title.trim().split(TITLE_PATH_SEPARATOR), root2 = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [], names = [...root2, ...groups], paths = names.reduce((list, name, idx) => {
  57137. let parent = idx > 0 && list[idx - 1], id = sanitize(parent ? `${parent}-${name}` : name);
  57138. if (name.trim() === "")
  57139. throw new Error(dedent`Invalid title ${title} ending in slash.`);
  57140. if (parent === id)
  57141. throw new Error(
  57142. dedent`
  57143. Invalid part '${name}', leading to id === parentId ('${id}'), inside title '${title}'
  57144. Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
  57145. `
  57146. );
  57147. return list.push(id), list;
  57148. }, []);
  57149. return paths.forEach((id, idx) => {
  57150. let childId = paths[idx + 1] || item.id;
  57151. root2.length && idx === 0 ? acc[id] = merge_default(acc[id] || {}, {
  57152. type: "root",
  57153. id,
  57154. name: names[idx],
  57155. tags: [],
  57156. depth: idx,
  57157. renderLabel,
  57158. startCollapsed: collapsedRoots.includes(id),
  57159. // Note that this will later get appended to the previous list of children (see below)
  57160. children: [childId]
  57161. }) : (!acc[id] || acc[id].type === "component") && idx === paths.length - 1 ? acc[id] = merge_default(acc[id] || {}, {
  57162. type: "component",
  57163. id,
  57164. name: names[idx],
  57165. tags: [],
  57166. parent: paths[idx - 1],
  57167. depth: idx,
  57168. renderLabel,
  57169. ...childId && {
  57170. children: [childId]
  57171. }
  57172. }) : acc[id] = merge_default(acc[id] || {}, {
  57173. type: "group",
  57174. id,
  57175. name: names[idx],
  57176. tags: [],
  57177. parent: paths[idx - 1],
  57178. depth: idx,
  57179. renderLabel,
  57180. ...childId && {
  57181. children: [childId]
  57182. }
  57183. });
  57184. }), acc[item.id] = {
  57185. tags: [],
  57186. ...item,
  57187. depth: paths.length,
  57188. parent: "parent" in item ? item.parent : paths[paths.length - 1],
  57189. renderLabel,
  57190. prepared: !!item.parameters
  57191. }, acc;
  57192. }, {});
  57193. function addItem(acc, item) {
  57194. if (acc[item.id] || (acc[item.id] = item, "children" in item && item.children && (item.children.forEach((childId) => addItem(acc, storiesHashOutOfOrder[childId])), item.tags = item.children.reduce((currentTags, childId) => currentTags === null ? acc[childId].tags : intersect_default(currentTags, acc[childId].tags), null) || [])), item.type === "component") {
  57195. let firstChild = acc[item.children[0]];
  57196. firstChild && "importPath" in firstChild && (item.importPath = firstChild.importPath);
  57197. }
  57198. return acc;
  57199. }
  57200. let storiesHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type !== "root" && !i.parent).reduce((acc, item) => addItem(acc, item), {});
  57201. return storiesHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type === "root").reduce(addItem, storiesHash), storiesHash = Object.values(storiesHash).reduce((acc, item) => {
  57202. if (item.type === "story" && item.subtype === "test") {
  57203. let story = acc[item.parent], component = acc[story.parent];
  57204. acc[component.id] = {
  57205. ...component,
  57206. // Remove test from the component node as it will be attached to the story node instead
  57207. children: component.children && component.children.filter((id) => id !== item.id)
  57208. }, acc[story.id] = {
  57209. ...story,
  57210. // Add test to the story node
  57211. children: (story.children || []).concat(item.id)
  57212. }, acc[item.id] = {
  57213. ...item,
  57214. depth: item.depth + 1
  57215. };
  57216. } else
  57217. acc[item.id] = item;
  57218. return acc;
  57219. }, {}), storiesHash;
  57220. }, addPreparedStories = (newHash, oldHash) => oldHash ? Object.fromEntries(
  57221. Object.entries(newHash).map(([id, newEntry]) => {
  57222. let oldEntry = oldHash[id];
  57223. return newEntry.type === "story" && oldEntry?.type === "story" && oldEntry.prepared ? ("children" in oldEntry && delete oldEntry.children, [id, { ...oldEntry, ...newEntry, prepared: !0 }]) : [id, newEntry];
  57224. })
  57225. ) : newHash, getComponentLookupList = (0, import_memoizerific6.default)(1)((hash4) => Object.entries(hash4).reduce((acc, i) => {
  57226. let value = i[1];
  57227. return value.type === "component" && acc.push([...value.children]), acc;
  57228. }, [])), getStoriesLookupList = (0, import_memoizerific6.default)(1)((hash4) => Object.keys(hash4).filter((k) => ["story", "docs"].includes(hash4[k].type)));
  57229. // src/manager-api/modules/refs.ts
  57230. var { location: location3, fetch: fetch2 } = scope, getSourceType = (source, refId) => {
  57231. let { origin: localOrigin, pathname: localPathname } = location3, { origin: sourceOrigin, pathname: sourcePathname } = new URL(source), localFull = `${localOrigin + localPathname}`.replace(/\/[^\/]*$/, ""), sourceFull = `${sourceOrigin + sourcePathname}`.replace(/\/[^\/]*$/, "");
  57232. return localFull === sourceFull ? ["local", sourceFull] : refId || source ? ["external", sourceFull] : [null, null];
  57233. }, defaultStoryMapper = (b, a3) => ({ ...a3, kind: a3.kind.replace("|", "/") }), addRefIds = (input2, ref) => Object.entries(input2).reduce((acc, [id, item]) => ({ ...acc, [id]: { ...item, refId: ref.id } }), {});
  57234. async function handleRequest(request) {
  57235. if (!request)
  57236. return {};
  57237. try {
  57238. let response = await request;
  57239. if (response === !1 || response === !0)
  57240. throw new Error("Unexpected boolean response");
  57241. if (!response.ok) {
  57242. if (response.status === 401)
  57243. try {
  57244. let json4 = await response.json();
  57245. if (json4.loginUrl)
  57246. return { loginUrl: json4.loginUrl };
  57247. } catch {
  57248. }
  57249. throw new Error(`Unexpected response not OK: ${response.statusText}`);
  57250. }
  57251. let json3 = await response.json();
  57252. return json3.entries || json3.stories ? { storyIndex: json3 } : json3;
  57253. } catch (err) {
  57254. return { indexError: err };
  57255. }
  57256. }
  57257. var parseUrl = (url) => {
  57258. let credentialsRegex = /https?:\/\/(.+:.+)@/, cleanUrl = url, authorization, [, credentials] = url.match(credentialsRegex) || [];
  57259. return credentials && (cleanUrl = url.replace(`${credentials}@`, ""), authorization = btoa(`${credentials}`)), {
  57260. url: cleanUrl,
  57261. authorization
  57262. };
  57263. }, map = (input2, ref, options) => {
  57264. let { storyMapper } = options;
  57265. return storyMapper ? Object.entries(input2).reduce((acc, [id, item]) => ({ ...acc, [id]: storyMapper(ref, item) }), {}) : input2;
  57266. }, init4 = ({ store: store2, provider, singleStory, docsOptions = {} }, { runCheck = !0 } = {}) => {
  57267. let api = {
  57268. findRef: (source) => {
  57269. let refs2 = api.getRefs();
  57270. return Object.values(refs2).find(({ url }) => url.match(source));
  57271. },
  57272. changeRefVersion: async (id, url) => {
  57273. let { versions, title } = api.getRefs()[id], ref = {
  57274. id,
  57275. url,
  57276. versions,
  57277. title,
  57278. index: {},
  57279. filteredIndex: {},
  57280. expanded: !0
  57281. };
  57282. await api.setRef(id, { ...ref, type: "unknown" }, !1), await api.checkRef(ref);
  57283. },
  57284. changeRefState: (id, previewInitialized) => {
  57285. let { [id]: ref, ...updated } = api.getRefs();
  57286. updated[id] = { ...ref, previewInitialized }, store2.setState({
  57287. refs: updated
  57288. });
  57289. },
  57290. checkRef: async (ref) => {
  57291. let { id, url, version: version2, type: type5 } = ref, isPublic = type5 === "server-checked", loadedData = {}, query = version2 ? `?version=${version2}` : "", credentials = isPublic ? "omit" : "include", urlParseResult = parseUrl(url), headers = {
  57292. Accept: "application/json"
  57293. };
  57294. urlParseResult.authorization && Object.assign(headers, {
  57295. Authorization: `Basic ${urlParseResult.authorization}`
  57296. });
  57297. let [indexResult, storiesResult] = await Promise.all(
  57298. ["index.json", "stories.json"].map(
  57299. async (file) => handleRequest(
  57300. fetch2(`${urlParseResult.url}/${file}${query}`, {
  57301. headers,
  57302. credentials
  57303. })
  57304. )
  57305. )
  57306. );
  57307. if (!indexResult.indexError || !storiesResult.indexError) {
  57308. let metadata = await handleRequest(
  57309. fetch2(`${urlParseResult.url}/metadata.json${query}`, {
  57310. headers,
  57311. credentials,
  57312. cache: "no-cache"
  57313. }).catch(() => !1)
  57314. );
  57315. Object.assign(loadedData, {
  57316. ...indexResult.indexError ? storiesResult : indexResult,
  57317. ...!metadata.indexError && metadata
  57318. });
  57319. } else isPublic || (loadedData.indexError = {
  57320. message: dedent`
  57321. Error: Loading of ref failed
  57322. at fetch (lib/api/src/modules/refs.ts)
  57323. URL: ${urlParseResult.url}
  57324. We weren't able to load the above URL,
  57325. it's possible a CORS error happened.
  57326. Please check your dev-tools network tab.
  57327. `
  57328. });
  57329. let versions = ref.versions && Object.keys(ref.versions).length ? ref.versions : loadedData.versions;
  57330. await api.setRef(id, {
  57331. id,
  57332. url: urlParseResult.url,
  57333. ...loadedData,
  57334. ...versions ? { versions } : {},
  57335. type: loadedData.storyIndex ? "lazy" : "auto-inject"
  57336. });
  57337. },
  57338. getRefs: () => {
  57339. let { refs: refs2 = {} } = store2.getState();
  57340. return refs2;
  57341. },
  57342. setRef: async (id, { storyIndex, setStoriesData, ...rest }, ready = !1) => {
  57343. if (singleStory)
  57344. return;
  57345. let internal_index, index4, filteredIndex, { filters } = store2.getState(), { storyMapper = defaultStoryMapper } = provider.getConfig(), ref = api.getRefs()[id];
  57346. (storyIndex || setStoriesData) && (internal_index = setStoriesData ? transformSetStoriesStoryDataToPreparedStoryIndex(
  57347. map(setStoriesData, ref, { storyMapper })
  57348. ) : storyIndex, filteredIndex = transformStoryIndexToStoriesHash(storyIndex, {
  57349. provider,
  57350. docsOptions,
  57351. filters,
  57352. allStatuses: {}
  57353. }), index4 = transformStoryIndexToStoriesHash(storyIndex, {
  57354. provider,
  57355. docsOptions,
  57356. filters: {},
  57357. allStatuses: {}
  57358. })), index4 && (index4 = addRefIds(index4, ref)), filteredIndex && (filteredIndex = addRefIds(filteredIndex, ref)), await api.updateRef(id, { ...ref, ...rest, index: index4, filteredIndex, internal_index });
  57359. },
  57360. updateRef: async (id, data) => {
  57361. let { [id]: ref, ...updated } = api.getRefs();
  57362. updated[id] = { ...ref, ...data };
  57363. let ordered = Object.keys(initialState2).reduce((obj, key) => (obj[key] = updated[key], obj), {});
  57364. await store2.setState({
  57365. refs: ordered
  57366. });
  57367. }
  57368. }, refs = !singleStory && scope.REFS || {}, initialState2 = refs;
  57369. return runCheck && new Promise(async (resolve) => {
  57370. for (let ref of Object.values(refs))
  57371. await api.checkRef({ ...ref, stories: {} });
  57372. resolve(void 0);
  57373. }), {
  57374. api,
  57375. state: {
  57376. refs: initialState2
  57377. }
  57378. };
  57379. };
  57380. // src/manager-api/lib/events.ts
  57381. var getEventMetadata = (context, fullAPI) => {
  57382. let { source, refId, type: type5 } = context, [sourceType, sourceLocation] = getSourceType(source, refId), ref;
  57383. (refId || sourceType === "external") && (ref = refId && fullAPI.getRefs()[refId] ? fullAPI.getRefs()[refId] : fullAPI.findRef(sourceLocation));
  57384. let meta = {
  57385. source,
  57386. sourceType,
  57387. sourceLocation,
  57388. refId,
  57389. ref,
  57390. type: type5
  57391. };
  57392. switch (!0) {
  57393. case typeof refId == "string":
  57394. case sourceType === "local":
  57395. case sourceType === "external":
  57396. return meta;
  57397. // if we couldn't find the source, something risky happened, we ignore the input, and log a warning
  57398. default:
  57399. return logger.warn(`Received a ${type5} frame that was not configured as a ref`), null;
  57400. }
  57401. };
  57402. // src/manager-api/modules/globals.ts
  57403. var init5 = ({ store: store2, fullAPI, provider }) => {
  57404. let api = {
  57405. getGlobals() {
  57406. return store2.getState().globals;
  57407. },
  57408. getUserGlobals() {
  57409. return store2.getState().userGlobals;
  57410. },
  57411. getStoryGlobals() {
  57412. return store2.getState().storyGlobals;
  57413. },
  57414. getGlobalTypes() {
  57415. return store2.getState().globalTypes;
  57416. },
  57417. updateGlobals(newGlobals) {
  57418. provider.channel?.emit(UPDATE_GLOBALS, {
  57419. globals: newGlobals,
  57420. options: {
  57421. target: "storybook-preview-iframe"
  57422. }
  57423. });
  57424. }
  57425. }, state3 = {
  57426. globals: {},
  57427. userGlobals: {},
  57428. storyGlobals: {},
  57429. globalTypes: {}
  57430. }, updateGlobals = ({
  57431. globals,
  57432. storyGlobals,
  57433. userGlobals
  57434. }) => {
  57435. let {
  57436. globals: currentGlobals,
  57437. userGlobals: currentUserGlobals,
  57438. storyGlobals: currentStoryGlobals
  57439. } = store2.getState();
  57440. dequal(globals, currentGlobals) || store2.setState({ globals }), dequal(userGlobals, currentUserGlobals) || store2.setState({ userGlobals }), dequal(storyGlobals, currentStoryGlobals) || store2.setState({ storyGlobals });
  57441. };
  57442. return provider.channel?.on(
  57443. GLOBALS_UPDATED,
  57444. function({ globals, storyGlobals, userGlobals }) {
  57445. let { ref } = getEventMetadata(this, fullAPI);
  57446. ref ? logger.warn(
  57447. "received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."
  57448. ) : updateGlobals({ globals, storyGlobals, userGlobals });
  57449. }
  57450. ), provider.channel?.on(
  57451. SET_GLOBALS,
  57452. function({ globals, globalTypes }) {
  57453. let { ref } = getEventMetadata(this, fullAPI), currentUserGlobals = store2.getState()?.userGlobals;
  57454. ref ? Object.keys(globals).length > 0 && logger.warn("received globals from a non-local ref. This is not currently supported.") : store2.setState({ globals, userGlobals: globals, globalTypes }), currentUserGlobals && Object.keys(currentUserGlobals).length !== 0 && !dequal(globals, currentUserGlobals) && api.updateGlobals(currentUserGlobals);
  57455. }
  57456. ), {
  57457. api,
  57458. state: state3
  57459. };
  57460. };
  57461. // src/manager-api/modules/layout.ts
  57462. var layout_exports = {};
  57463. __export(layout_exports, {
  57464. ActiveTabs: () => ActiveTabs,
  57465. DEFAULT_BOTTOM_PANEL_HEIGHT: () => DEFAULT_BOTTOM_PANEL_HEIGHT,
  57466. DEFAULT_NAV_SIZE: () => DEFAULT_NAV_SIZE,
  57467. DEFAULT_RIGHT_PANEL_WIDTH: () => DEFAULT_RIGHT_PANEL_WIDTH,
  57468. focusableUIElements: () => focusableUIElements,
  57469. getDefaultLayoutState: () => getDefaultLayoutState,
  57470. init: () => init6
  57471. });
  57472. init_dist();
  57473. init_create();
  57474. var { document: document8 } = scope, isFunction4 = (val) => typeof val == "function", ActiveTabs = {
  57475. SIDEBAR: "sidebar",
  57476. CANVAS: "canvas",
  57477. ADDONS: "addons"
  57478. }, DEFAULT_NAV_SIZE = 300, DEFAULT_BOTTOM_PANEL_HEIGHT = 300, DEFAULT_RIGHT_PANEL_WIDTH = 400, getDefaultLayoutState = () => ({
  57479. ui: {
  57480. enableShortcuts: !0
  57481. },
  57482. layout: {
  57483. initialActive: ActiveTabs.CANVAS,
  57484. showToolbar: !0,
  57485. navSize: DEFAULT_NAV_SIZE,
  57486. bottomPanelHeight: DEFAULT_BOTTOM_PANEL_HEIGHT,
  57487. rightPanelWidth: DEFAULT_RIGHT_PANEL_WIDTH,
  57488. recentVisibleSizes: {
  57489. navSize: DEFAULT_NAV_SIZE,
  57490. bottomPanelHeight: DEFAULT_BOTTOM_PANEL_HEIGHT,
  57491. rightPanelWidth: DEFAULT_RIGHT_PANEL_WIDTH
  57492. },
  57493. panelPosition: "bottom",
  57494. showTabs: !0
  57495. },
  57496. layoutCustomisations: {
  57497. showSidebar: void 0,
  57498. showToolbar: void 0
  57499. },
  57500. selectedPanel: void 0,
  57501. theme: create()
  57502. }), focusableUIElements = {
  57503. addonPanel: "storybook-panel-region",
  57504. storySearchField: "storybook-explorer-searchfield",
  57505. storyListMenu: "storybook-explorer-menu",
  57506. storyPanelRoot: "storybook-panel-root",
  57507. showAddonPanel: "storybook-show-addon-panel",
  57508. sidebarRegion: "storybook-sidebar-region",
  57509. showSidebar: "storybook-show-sidebar"
  57510. }, getIsNavShown = (state3) => state3.layout.navSize > 0, getIsPanelShown = (state3) => {
  57511. let { bottomPanelHeight, rightPanelWidth, panelPosition } = state3.layout;
  57512. return panelPosition === "bottom" && bottomPanelHeight > 0 || panelPosition === "right" && rightPanelWidth > 0;
  57513. }, getIsFullscreen = (state3) => !getIsNavShown(state3) && !getIsPanelShown(state3), getRecentVisibleSizes = (layoutState) => ({
  57514. navSize: layoutState.navSize > 0 ? layoutState.navSize : layoutState.recentVisibleSizes.navSize,
  57515. bottomPanelHeight: layoutState.bottomPanelHeight > 0 ? layoutState.bottomPanelHeight : layoutState.recentVisibleSizes.bottomPanelHeight,
  57516. rightPanelWidth: layoutState.rightPanelWidth > 0 ? layoutState.rightPanelWidth : layoutState.recentVisibleSizes.rightPanelWidth
  57517. }), init6 = ({ store: store2, provider, singleStory }) => {
  57518. let api = {
  57519. toggleFullscreen(nextState) {
  57520. return store2.setState(
  57521. (state3) => {
  57522. let isFullscreen = getIsFullscreen(state3), shouldFullscreen = typeof nextState == "boolean" ? nextState : !isFullscreen;
  57523. return shouldFullscreen === isFullscreen ? { layout: state3.layout } : shouldFullscreen ? {
  57524. layout: {
  57525. ...state3.layout,
  57526. navSize: 0,
  57527. bottomPanelHeight: 0,
  57528. rightPanelWidth: 0,
  57529. recentVisibleSizes: getRecentVisibleSizes(state3.layout)
  57530. }
  57531. } : {
  57532. layout: {
  57533. ...state3.layout,
  57534. navSize: state3.singleStory ? 0 : state3.layout.recentVisibleSizes.navSize,
  57535. bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
  57536. rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth
  57537. }
  57538. };
  57539. },
  57540. { persistence: "session" }
  57541. );
  57542. },
  57543. togglePanel(nextState) {
  57544. return store2.setState(
  57545. (state3) => {
  57546. let isPanelShown = getIsPanelShown(state3), shouldShowPanel = typeof nextState == "boolean" ? nextState : !isPanelShown;
  57547. return shouldShowPanel === isPanelShown ? { layout: state3.layout } : shouldShowPanel ? {
  57548. layout: {
  57549. ...state3.layout,
  57550. bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
  57551. rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth
  57552. }
  57553. } : {
  57554. layout: {
  57555. ...state3.layout,
  57556. bottomPanelHeight: 0,
  57557. rightPanelWidth: 0,
  57558. recentVisibleSizes: getRecentVisibleSizes(state3.layout)
  57559. }
  57560. };
  57561. },
  57562. { persistence: "session" }
  57563. );
  57564. },
  57565. togglePanelPosition(position2) {
  57566. return store2.setState(
  57567. (state3) => {
  57568. let nextPosition = position2 || (state3.layout.panelPosition === "right" ? "bottom" : "right");
  57569. return {
  57570. layout: {
  57571. ...state3.layout,
  57572. panelPosition: nextPosition,
  57573. bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
  57574. rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth
  57575. }
  57576. };
  57577. },
  57578. { persistence: "permanent" }
  57579. );
  57580. },
  57581. toggleNav(nextState) {
  57582. return store2.setState(
  57583. (state3) => {
  57584. if (state3.singleStory)
  57585. return { layout: state3.layout };
  57586. let isNavShown = getIsNavShown(state3), shouldShowNav = typeof nextState == "boolean" ? nextState : !isNavShown;
  57587. return shouldShowNav === isNavShown ? { layout: state3.layout } : shouldShowNav ? {
  57588. layout: {
  57589. ...state3.layout,
  57590. navSize: state3.layout.recentVisibleSizes.navSize
  57591. }
  57592. } : {
  57593. layout: {
  57594. ...state3.layout,
  57595. navSize: 0,
  57596. recentVisibleSizes: getRecentVisibleSizes(state3.layout)
  57597. }
  57598. };
  57599. },
  57600. { persistence: "session" }
  57601. );
  57602. },
  57603. toggleToolbar(toggled) {
  57604. return store2.setState(
  57605. (state3) => {
  57606. let value = typeof toggled < "u" ? toggled : !state3.layout.showToolbar;
  57607. return {
  57608. layout: {
  57609. ...state3.layout,
  57610. showToolbar: value
  57611. }
  57612. };
  57613. },
  57614. { persistence: "session" }
  57615. );
  57616. },
  57617. setSizes({
  57618. navSize,
  57619. bottomPanelHeight,
  57620. rightPanelWidth
  57621. }) {
  57622. return store2.setState(
  57623. (state3) => {
  57624. let nextLayoutState = {
  57625. ...state3.layout,
  57626. navSize: navSize ?? state3.layout.navSize,
  57627. bottomPanelHeight: bottomPanelHeight ?? state3.layout.bottomPanelHeight,
  57628. rightPanelWidth: rightPanelWidth ?? state3.layout.rightPanelWidth
  57629. };
  57630. return {
  57631. layout: {
  57632. ...nextLayoutState,
  57633. recentVisibleSizes: getRecentVisibleSizes(nextLayoutState)
  57634. }
  57635. };
  57636. },
  57637. { persistence: "session" }
  57638. );
  57639. },
  57640. /**
  57641. * Attempts to focus (and select) an element identified by its ID. It is the responsibility of
  57642. * the callee to ensure that the element is present in the DOM and that no focus trap is
  57643. * available. When polling is enabled, this API polls and attempts to perform the focus for a
  57644. * set duration (max 500ms), so that race conditions can be avoided with the current API
  57645. * design.
  57646. *
  57647. * @param elementId The id of the element to focus.
  57648. * @param options When a boolean, treated as the `select` option for backwards compatibility.
  57649. * When an object, may contain `select` and `poll` options.
  57650. * @returns Whether the element was successfully focused. Returns a Promise when polling.
  57651. */
  57652. focusOnUIElement(elementId, options) {
  57653. let {
  57654. forceFocus = !1,
  57655. select = !1,
  57656. poll = !0
  57657. } = typeof options == "boolean" ? { select: options } : options ?? {};
  57658. if (!elementId)
  57659. return !1;
  57660. let attemptFocus = () => {
  57661. let element = document8.getElementById(elementId);
  57662. return !element || (element.focus(), element !== document8.activeElement && forceFocus && element.getAttribute("tabindex") === null && (element.setAttribute("tabindex", "-1"), element.focus()), element !== document8.activeElement && element.id !== document8.activeElement?.id) ? !1 : (select && element.select?.(), !0);
  57663. };
  57664. return attemptFocus() ? !0 : poll ? new Promise((resolve) => {
  57665. let startTime = Date.now(), maxDuration = 500, intervalId = setInterval(() => {
  57666. let elapsed = Date.now() - startTime;
  57667. if (attemptFocus()) {
  57668. clearInterval(intervalId), resolve(!0);
  57669. return;
  57670. }
  57671. elapsed >= maxDuration && (clearInterval(intervalId), resolve(!1));
  57672. }, 50);
  57673. }) : !1;
  57674. },
  57675. getInitialOptions() {
  57676. let { theme: theme3, selectedPanel, layoutCustomisations, ...options } = provider.getConfig(), defaultLayoutState = getDefaultLayoutState();
  57677. return {
  57678. ...defaultLayoutState,
  57679. layout: {
  57680. ...toMerged(
  57681. defaultLayoutState.layout,
  57682. pick(options, Object.keys(defaultLayoutState.layout))
  57683. ),
  57684. ...singleStory && { navSize: 0 }
  57685. },
  57686. layoutCustomisations: {
  57687. ...defaultLayoutState.layoutCustomisations,
  57688. ...layoutCustomisations ?? {}
  57689. },
  57690. ui: toMerged(defaultLayoutState.ui, pick(options, Object.keys(defaultLayoutState.ui))),
  57691. selectedPanel: selectedPanel || defaultLayoutState.selectedPanel,
  57692. theme: theme3 || defaultLayoutState.theme
  57693. };
  57694. },
  57695. getIsFullscreen() {
  57696. return getIsFullscreen(store2.getState());
  57697. },
  57698. getIsPanelShown() {
  57699. return getIsPanelShown(store2.getState());
  57700. },
  57701. getIsNavShown() {
  57702. return getIsNavShown(store2.getState());
  57703. },
  57704. getShowToolbarWithCustomisations(showToolbar) {
  57705. let state3 = store2.getState();
  57706. return isFunction4(state3.layoutCustomisations.showToolbar) ? state3.layoutCustomisations.showToolbar(state3, showToolbar) ?? showToolbar : showToolbar;
  57707. },
  57708. getShowPanelWithCustomisations(showPanel) {
  57709. let state3 = store2.getState();
  57710. return isFunction4(state3.layoutCustomisations.showPanel) ? state3.layoutCustomisations.showPanel(state3, showPanel) ?? showPanel : showPanel;
  57711. },
  57712. getNavSizeWithCustomisations(navSize) {
  57713. let state3 = store2.getState();
  57714. if (isFunction4(state3.layoutCustomisations.showSidebar)) {
  57715. let shouldShowNav = state3.layoutCustomisations.showSidebar(state3, navSize !== 0);
  57716. if (navSize === 0 && shouldShowNav === !0)
  57717. return state3.layout.recentVisibleSizes.navSize;
  57718. if (navSize !== 0 && shouldShowNav === !1)
  57719. return 0;
  57720. }
  57721. return navSize;
  57722. },
  57723. setOptions: (options) => {
  57724. let { layout, ui, selectedPanel, theme: theme3 } = store2.getState();
  57725. if (!options)
  57726. return;
  57727. let updatedLayout = {
  57728. ...layout,
  57729. ...options.layout || {},
  57730. ...pick(options, Object.keys(layout)),
  57731. ...singleStory && { navSize: 0 }
  57732. }, updatedUi = {
  57733. ...ui,
  57734. ...options.ui,
  57735. ...toMerged(options.ui || {}, pick(options, Object.keys(ui)))
  57736. }, updatedTheme = {
  57737. ...theme3,
  57738. ...options.theme
  57739. }, modification = {};
  57740. isEqual(ui, updatedUi) || (modification.ui = updatedUi), isEqual(layout, updatedLayout) || (modification.layout = updatedLayout), options.selectedPanel && !isEqual(selectedPanel, options.selectedPanel) && (modification.selectedPanel = options.selectedPanel), Object.keys(modification).length && store2.setState(modification, { persistence: "permanent" }), isEqual(theme3, updatedTheme) || store2.setState({ theme: updatedTheme });
  57741. }
  57742. }, persisted = pick(store2.getState(), ["layout", "selectedPanel"]);
  57743. return provider.channel?.on(SET_CONFIG, () => {
  57744. api.setOptions(merge_default(api.getInitialOptions(), persisted));
  57745. }), {
  57746. api,
  57747. state: merge_default(api.getInitialOptions(), persisted)
  57748. };
  57749. };
  57750. // src/manager-api/modules/notifications.ts
  57751. var notifications_exports = {};
  57752. __export(notifications_exports, {
  57753. init: () => init7
  57754. });
  57755. var init7 = ({ store: store2 }) => ({
  57756. api: {
  57757. addNotification: (newNotification) => {
  57758. store2.setState(({ notifications }) => {
  57759. let [existing, others] = partition(notifications, (n) => n.id === newNotification.id);
  57760. return existing.forEach((notification) => {
  57761. notification.onClear && notification.onClear({ dismissed: !1, timeout: !1 });
  57762. }), { notifications: [...others, newNotification] };
  57763. });
  57764. },
  57765. clearNotification: (notificationId) => {
  57766. store2.setState(({ notifications }) => {
  57767. let [matching, others] = partition(notifications, (n) => n.id === notificationId);
  57768. return matching.forEach((notification) => {
  57769. notification.onClear && notification.onClear({ dismissed: !1, timeout: !1 });
  57770. }), { notifications: others };
  57771. });
  57772. }
  57773. },
  57774. state: { notifications: [] }
  57775. });
  57776. // src/manager-api/modules/open-in-editor.tsx
  57777. var open_in_editor_exports = {};
  57778. __export(open_in_editor_exports, {
  57779. init: () => init8
  57780. });
  57781. var import_react20 = __toESM(require_react(), 1);
  57782. var init8 = ({ provider, fullAPI }) => ({
  57783. api: {
  57784. openInEditor(payload) {
  57785. return new Promise((resolve) => {
  57786. let { file, line: line2, column: column2 } = payload, handler = (res) => {
  57787. res.file === file && res.line === line2 && res.column === column2 && (provider.channel?.off(OPEN_IN_EDITOR_RESPONSE, handler), resolve(res));
  57788. };
  57789. provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, handler), provider.channel?.emit(OPEN_IN_EDITOR_REQUEST, payload);
  57790. });
  57791. }
  57792. },
  57793. state: { notifications: [] },
  57794. init: async () => {
  57795. let { color: color2 } = await Promise.resolve().then(() => (init_theming(), theming_exports));
  57796. provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, (payload) => {
  57797. payload.error !== null && fullAPI.addNotification({
  57798. id: "open-in-editor-error",
  57799. content: {
  57800. headline: "Failed to open in editor",
  57801. subHeadline: payload.error || "Check the Storybook process on the command line for more details."
  57802. },
  57803. icon: import_react20.default.createElement(FailedIcon, { color: color2.negative }),
  57804. duration: 8e3
  57805. });
  57806. });
  57807. }
  57808. });
  57809. // src/manager-api/modules/provider.ts
  57810. var provider_exports = {};
  57811. __export(provider_exports, {
  57812. init: () => init9
  57813. });
  57814. var init9 = ({ provider, fullAPI }) => ({
  57815. api: provider.renderPreview ? { renderPreview: provider.renderPreview } : {},
  57816. state: {},
  57817. init: () => {
  57818. provider.handleAPI(fullAPI);
  57819. }
  57820. });
  57821. // src/manager-api/modules/settings.ts
  57822. var settings_exports = {};
  57823. __export(settings_exports, {
  57824. init: () => init10
  57825. });
  57826. var init10 = ({ store: store2, navigate, fullAPI }) => ({
  57827. state: { settings: { lastTrackedStoryId: null } },
  57828. api: {
  57829. closeSettings: () => {
  57830. let {
  57831. settings: { lastTrackedStoryId }
  57832. } = store2.getState();
  57833. lastTrackedStoryId ? fullAPI.selectStory(lastTrackedStoryId) : fullAPI.selectFirstStory();
  57834. },
  57835. changeSettingsTab: (path) => {
  57836. navigate(`/settings/${path}`);
  57837. },
  57838. isSettingsScreenActive: () => {
  57839. let { path } = fullAPI.getUrlState();
  57840. return !!(path || "").match(/^\/settings/);
  57841. },
  57842. retrieveSelection() {
  57843. let { settings } = store2.getState();
  57844. return settings.lastTrackedStoryId;
  57845. },
  57846. storeSelection: async () => {
  57847. let { storyId, settings } = store2.getState();
  57848. await store2.setState({
  57849. settings: { ...settings, lastTrackedStoryId: storyId }
  57850. });
  57851. }
  57852. }
  57853. });
  57854. // src/manager-api/modules/shortcuts.ts
  57855. var shortcuts_exports = {};
  57856. __export(shortcuts_exports, {
  57857. controlOrMetaKey: () => controlOrMetaKey2,
  57858. defaultShortcuts: () => defaultShortcuts,
  57859. init: () => init11,
  57860. isMacLike: () => isMacLike2,
  57861. keys: () => keys2
  57862. });
  57863. init_dist();
  57864. var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
  57865. // src/manager-api/lib/platform.ts
  57866. init_dist();
  57867. var { navigator: navigator2 } = scope, isMacLike = () => navigator2 && navigator2.platform ? !!navigator2.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1;
  57868. // src/manager-api/lib/shortcut.ts
  57869. var controlOrMetaSymbol = () => isMacLike() ? "\u2318" : "ctrl", controlOrMetaKey = () => isMacLike() ? "meta" : "control", optionOrAltSymbol = () => isMacLike() ? "\u2325" : "alt", isShortcutTaken = (arr1, arr2) => JSON.stringify(arr1) === JSON.stringify(arr2), eventToShortcut = (e) => {
  57870. if (["Meta", "Alt", "Control", "Shift", "Tab"].includes(e.key))
  57871. return null;
  57872. let keys3 = [];
  57873. e.altKey && keys3.push("alt"), e.ctrlKey && keys3.push("control"), e.metaKey && keys3.push("meta"), e.shiftKey && keys3.push("shift");
  57874. let codeUpper = e.code?.toUpperCase(), codeToCharMap = {
  57875. MINUS: "-",
  57876. EQUAL: "=",
  57877. BRACKETLEFT: "[",
  57878. BRACKETRIGHT: "]",
  57879. BACKSLASH: "\\",
  57880. SEMICOLON: ";",
  57881. QUOTE: "'",
  57882. BACKQUOTE: "`",
  57883. COMMA: ",",
  57884. PERIOD: ".",
  57885. SLASH: "/"
  57886. }, codeChar = codeUpper ? codeUpper.startsWith("KEY") && codeUpper.length === 4 ? codeUpper.replace("KEY", "") : codeUpper.startsWith("DIGIT") ? codeUpper.replace("DIGIT", "") : codeToCharMap[codeUpper] : void 0;
  57887. if (e.key && e.key.length === 1 && e.key !== " ") {
  57888. let key = e.key.toUpperCase(), code = codeChar;
  57889. code && code.length === 1 && code !== key ? keys3.push([key, code]) : keys3.push(key);
  57890. } else e.key === "Dead" && codeChar && keys3.push(codeChar);
  57891. return e.key === " " && keys3.push("space"), e.key === "Escape" && keys3.push("escape"), e.key === "ArrowRight" && keys3.push("ArrowRight"), e.key === "ArrowDown" && keys3.push("ArrowDown"), e.key === "ArrowUp" && keys3.push("ArrowUp"), e.key === "ArrowLeft" && keys3.push("ArrowLeft"), keys3.length > 0 ? keys3 : null;
  57892. }, shortcutMatchesShortcut = (inputShortcut, shortcut) => !inputShortcut || !shortcut || (inputShortcut.join("").startsWith("shift/") && inputShortcut.shift(), inputShortcut.length !== shortcut.length) ? !1 : !inputShortcut.find(
  57893. (input2, i) => Array.isArray(input2) ? !input2.includes(shortcut[i]) : input2 !== shortcut[i]
  57894. ), eventMatchesShortcut = (e, shortcut) => shortcutMatchesShortcut(eventToShortcut(e), shortcut), keyToSymbol = (key) => key === "alt" ? optionOrAltSymbol() : key === "control" ? "\u2303" : key === "meta" ? "\u2318" : key === "shift" ? "\u21E7\u200B" : key === "Enter" || key === "Backspace" || key === "Esc" || key === "escape" ? "" : key === " " ? "SPACE" : key === "ArrowUp" ? "\u2191" : key === "ArrowDown" ? "\u2193" : key === "ArrowLeft" ? "\u2190" : key === "ArrowRight" ? "\u2192" : key?.toUpperCase(), shortcutToHumanString = (shortcut) => shortcut.map(keyToSymbol).join(" "), shortcutToAriaKeyshortcuts = (shortcut) => shortcut.map((shortcut2) => shortcut2 === "+" ? "plus" : shortcut2 === " " ? "space" : shortcut2).join("+");
  57895. // src/manager-api/modules/shortcuts.ts
  57896. var { navigator: navigator3, document: document9 } = scope;
  57897. function wasFocusInElement(element) {
  57898. return document9.activeElement && element?.contains(document9.activeElement);
  57899. }
  57900. var isMacLike2 = () => navigator3 && navigator3.platform ? !!navigator3.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, controlOrMetaKey2 = () => isMacLike2() ? "meta" : "control";
  57901. function keys2(o) {
  57902. return Object.keys(o);
  57903. }
  57904. var defaultShortcuts = Object.freeze({
  57905. fullScreen: ["alt", "F"],
  57906. togglePanel: ["alt", "A"],
  57907. panelPosition: ["alt", "D"],
  57908. toggleNav: ["alt", "S"],
  57909. toolbar: ["alt", "T"],
  57910. search: [controlOrMetaKey2(), "K"],
  57911. focusNav: ["1"],
  57912. focusIframe: ["2"],
  57913. focusPanel: ["3"],
  57914. prevComponent: ["alt", "ArrowUp"],
  57915. nextComponent: ["alt", "ArrowDown"],
  57916. prevStory: ["alt", "ArrowLeft"],
  57917. nextStory: ["alt", "ArrowRight"],
  57918. shortcutsPage: [controlOrMetaKey2(), "shift", ","],
  57919. aboutPage: [controlOrMetaKey2(), ","],
  57920. escape: ["escape"],
  57921. // This one is not customizable
  57922. collapseAll: [controlOrMetaKey2(), "shift", "ArrowUp"],
  57923. expandAll: [controlOrMetaKey2(), "shift", "ArrowDown"],
  57924. remount: ["alt", "R"],
  57925. openInEditor: ["alt", "shift", "E"],
  57926. openInIsolation: ["alt", "shift", "I"],
  57927. copyStoryLink: ["alt", "shift", "L"],
  57928. goToPreviousLandmark: ["shift", "F6"],
  57929. // hardcoded in react-aria
  57930. goToNextLandmark: ["F6"]
  57931. // hardcoded in react-aria
  57932. // TODO: bring this back once we want to add shortcuts for this
  57933. // copyStoryName: ['alt', 'shift', 'C'],
  57934. }), addonsShortcuts = {};
  57935. function shouldSkipShortcut(event) {
  57936. let target = event.target;
  57937. return !!(/input|textarea/i.test(target.tagName) || target.getAttribute("contenteditable") !== null || target.closest("dialog[open]"));
  57938. }
  57939. var init11 = ({ store: store2, fullAPI, provider }) => {
  57940. let api = {
  57941. // Getting and setting shortcuts
  57942. getShortcutKeys() {
  57943. return store2.getState().shortcuts;
  57944. },
  57945. getDefaultShortcuts() {
  57946. return {
  57947. ...defaultShortcuts,
  57948. ...api.getAddonsShortcutDefaults()
  57949. };
  57950. },
  57951. getAddonsShortcuts() {
  57952. return addonsShortcuts;
  57953. },
  57954. getAddonsShortcutLabels() {
  57955. let labels = {};
  57956. return Object.entries(api.getAddonsShortcuts()).forEach(([actionName, { label }]) => {
  57957. labels[actionName] = label;
  57958. }), labels;
  57959. },
  57960. getAddonsShortcutDefaults() {
  57961. let defaults = {};
  57962. return Object.entries(api.getAddonsShortcuts()).forEach(([actionName, { defaultShortcut }]) => {
  57963. defaults[actionName] = defaultShortcut;
  57964. }), defaults;
  57965. },
  57966. async setShortcuts(update2) {
  57967. let { shortcuts } = await store2.setState(
  57968. (state4) => ({ shortcuts: typeof update2 == "function" ? update2(state4.shortcuts) : update2 }),
  57969. { persistence: "permanent" }
  57970. );
  57971. return shortcuts;
  57972. },
  57973. async restoreAllDefaultShortcuts() {
  57974. return api.setShortcuts(api.getDefaultShortcuts());
  57975. },
  57976. async setShortcut(action2, value) {
  57977. return await api.setShortcuts((shortcuts) => ({ ...shortcuts, [action2]: value })), value;
  57978. },
  57979. async setAddonShortcut(addon, shortcut) {
  57980. return await api.setShortcuts((shortcuts) => ({
  57981. ...shortcuts,
  57982. [`${addon}-${shortcut.actionName}`]: shortcut.defaultShortcut
  57983. })), addonsShortcuts[`${addon}-${shortcut.actionName}`] = shortcut, shortcut;
  57984. },
  57985. async restoreDefaultShortcut(action2) {
  57986. let defaultShortcut = api.getDefaultShortcuts()[action2];
  57987. return api.setShortcut(action2, defaultShortcut);
  57988. },
  57989. // Listening to shortcut events
  57990. handleKeydownEvent(event) {
  57991. let shortcut = eventToShortcut(event), shortcuts = api.getShortcutKeys(), matchedFeature = keys2(shortcuts).find(
  57992. (feature) => shortcutMatchesShortcut(shortcut, shortcuts[feature])
  57993. );
  57994. matchedFeature && api.handleShortcutFeature(matchedFeature, event);
  57995. },
  57996. // warning: event might not have a full prototype chain because it may originate from the channel
  57997. handleShortcutFeature(feature, event) {
  57998. let {
  57999. ui: { enableShortcuts },
  58000. storyId,
  58001. refId,
  58002. viewMode
  58003. } = store2.getState();
  58004. if (enableShortcuts)
  58005. switch (event?.preventDefault && event.preventDefault(), feature) {
  58006. case "escape": {
  58007. fullAPI.getIsFullscreen() ? fullAPI.toggleFullscreen(!1) : fullAPI.getIsNavShown() && fullAPI.toggleNav(!0);
  58008. break;
  58009. }
  58010. // Handled by @react-aria/interactions and useLandmarkIndicator
  58011. case "goToNextLandmark":
  58012. case "goToPreviousLandmark":
  58013. break;
  58014. case "focusNav": {
  58015. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsNavShown() || fullAPI.toggleNav(!0), fullAPI.focusOnUIElement(focusableUIElements.storyListMenu);
  58016. break;
  58017. }
  58018. case "search": {
  58019. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsNavShown() || fullAPI.toggleNav(!0), setTimeout(() => {
  58020. fullAPI.focusOnUIElement(focusableUIElements.storySearchField, !0);
  58021. }, 0);
  58022. break;
  58023. }
  58024. case "focusIframe": {
  58025. let element = document9.getElementById("storybook-preview-iframe");
  58026. if (element)
  58027. try {
  58028. element.contentWindow.focus();
  58029. } catch {
  58030. }
  58031. break;
  58032. }
  58033. case "focusPanel": {
  58034. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsPanelShown() || fullAPI.togglePanel(!0), fullAPI.focusOnUIElement(focusableUIElements.storyPanelRoot);
  58035. break;
  58036. }
  58037. case "nextStory": {
  58038. fullAPI.jumpToStory(1);
  58039. break;
  58040. }
  58041. case "prevStory": {
  58042. fullAPI.jumpToStory(-1);
  58043. break;
  58044. }
  58045. case "nextComponent": {
  58046. fullAPI.jumpToComponent(1);
  58047. break;
  58048. }
  58049. case "prevComponent": {
  58050. fullAPI.jumpToComponent(-1);
  58051. break;
  58052. }
  58053. case "fullScreen": {
  58054. fullAPI.toggleFullscreen();
  58055. break;
  58056. }
  58057. case "togglePanel": {
  58058. let wasPanelShown = fullAPI.getIsPanelShown(), panelElement = document9.getElementById(focusableUIElements.addonPanel);
  58059. fullAPI.togglePanel(), wasPanelShown && wasFocusInElement(panelElement) && fullAPI.focusOnUIElement(focusableUIElements.showAddonPanel, {
  58060. poll: !0
  58061. }).then((success) => {
  58062. success === !1 && document9.body.focus();
  58063. }), wasPanelShown || fullAPI.focusOnUIElement(focusableUIElements.addonPanel, {
  58064. forceFocus: !0,
  58065. poll: !0
  58066. });
  58067. break;
  58068. }
  58069. case "toggleNav": {
  58070. let wasNavShown = fullAPI.getIsNavShown(), sidebarElement = document9.getElementById(focusableUIElements.sidebarRegion);
  58071. fullAPI.toggleNav(), wasNavShown && wasFocusInElement(sidebarElement) && fullAPI.focusOnUIElement(focusableUIElements.showSidebar, {
  58072. poll: !0
  58073. }).then((success) => {
  58074. success === !1 && document9.body.focus();
  58075. }), wasNavShown || fullAPI.focusOnUIElement(focusableUIElements.sidebarRegion, {
  58076. forceFocus: !0,
  58077. poll: !0
  58078. });
  58079. break;
  58080. }
  58081. case "toolbar": {
  58082. fullAPI.toggleToolbar();
  58083. break;
  58084. }
  58085. case "panelPosition": {
  58086. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsPanelShown() || fullAPI.togglePanel(!0), fullAPI.togglePanelPosition();
  58087. break;
  58088. }
  58089. case "aboutPage": {
  58090. fullAPI.navigate("/settings/about");
  58091. break;
  58092. }
  58093. case "shortcutsPage": {
  58094. fullAPI.navigate("/settings/shortcuts");
  58095. break;
  58096. }
  58097. case "collapseAll": {
  58098. fullAPI.emit(STORIES_COLLAPSE_ALL);
  58099. break;
  58100. }
  58101. case "expandAll": {
  58102. fullAPI.emit(STORIES_EXPAND_ALL);
  58103. break;
  58104. }
  58105. case "remount": {
  58106. fullAPI.emit(FORCE_REMOUNT, { storyId });
  58107. break;
  58108. }
  58109. case "openInEditor": {
  58110. scope.CONFIG_TYPE === "DEVELOPMENT" && fullAPI.openInEditor({
  58111. file: fullAPI.getCurrentStoryData().importPath
  58112. });
  58113. break;
  58114. }
  58115. case "openInIsolation": {
  58116. if (storyId && viewMode === "story") {
  58117. let { previewHref } = fullAPI.getStoryHrefs(storyId, { refId });
  58118. window.open(previewHref, "_blank", "noopener,noreferrer");
  58119. }
  58120. break;
  58121. }
  58122. // TODO: bring this back once we want to add shortcuts for this
  58123. // case 'copyStoryName': {
  58124. // const storyData = fullAPI.getCurrentStoryData();
  58125. // if (storyData.type === 'story') {
  58126. // copy(storyData.exportName);
  58127. // }
  58128. // break;
  58129. // }
  58130. case "copyStoryLink": {
  58131. if (storyId) {
  58132. let { managerHref } = fullAPI.getStoryHrefs(storyId, { refId });
  58133. (0, import_copy_to_clipboard.default)(managerHref);
  58134. }
  58135. break;
  58136. }
  58137. default:
  58138. addonsShortcuts[feature].action();
  58139. break;
  58140. }
  58141. }
  58142. }, { shortcuts: persistedShortcuts = defaultShortcuts } = store2.getState(), state3 = {
  58143. // Any saved shortcuts that are still in our set of defaults
  58144. shortcuts: keys2(defaultShortcuts).reduce(
  58145. (acc, key) => ({ ...acc, [key]: persistedShortcuts[key] || defaultShortcuts[key] }),
  58146. defaultShortcuts
  58147. )
  58148. };
  58149. return { api, state: state3, init: () => {
  58150. document9.addEventListener("keydown", (event) => {
  58151. shouldSkipShortcut(event) || api.handleKeydownEvent(event);
  58152. }), provider.channel?.on(PREVIEW_KEYDOWN, (data) => {
  58153. api.handleKeydownEvent(data.event);
  58154. });
  58155. } };
  58156. };
  58157. // src/manager-api/modules/stories.ts
  58158. var stories_exports = {};
  58159. __export(stories_exports, {
  58160. init: () => init12
  58161. });
  58162. init_client_logger();
  58163. // src/router/index.ts
  58164. var router_exports = {};
  58165. __export(router_exports, {
  58166. BaseLocationProvider: () => BaseLocationProvider,
  58167. DEEPLY_EQUAL: () => DEEPLY_EQUAL2,
  58168. Link: () => Link4,
  58169. Location: () => Location,
  58170. LocationProvider: () => LocationProvider,
  58171. Match: () => Match,
  58172. MemoryRouter: () => MemoryRouter2,
  58173. Route: () => Route2,
  58174. buildArgsParam: () => buildArgsParam,
  58175. deepDiff: () => deepDiff2,
  58176. getMatch: () => getMatch,
  58177. parsePath: () => parsePath2,
  58178. queryFromLocation: () => queryFromLocation,
  58179. stringifyQuery: () => stringifyQuery,
  58180. useNavigate: () => useNavigate2
  58181. });
  58182. // src/router/utils.ts
  58183. init_client_logger();
  58184. var import_memoizerific7 = __toESM(require_memoizerific(), 1), import_picoquery4 = __toESM(require_main(), 1);
  58185. init_esm();
  58186. var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath2 = (0, import_memoizerific7.default)(1e3)((path) => {
  58187. let result = {
  58188. viewMode: void 0,
  58189. storyId: void 0,
  58190. refId: void 0
  58191. };
  58192. if (path) {
  58193. let [, viewMode, refId, storyId] = path.toLowerCase().match(splitPathRegex) || [];
  58194. viewMode && Object.assign(result, {
  58195. viewMode,
  58196. storyId,
  58197. refId
  58198. });
  58199. }
  58200. return result;
  58201. }), DEEPLY_EQUAL2 = /* @__PURE__ */ Symbol("Deeply equal"), deepDiff2 = (value, update2) => {
  58202. if (typeof value != typeof update2)
  58203. return update2;
  58204. if (isEqual(value, update2))
  58205. return DEEPLY_EQUAL2;
  58206. if (Array.isArray(value) && Array.isArray(update2)) {
  58207. let res = update2.reduce((acc, upd, index4) => {
  58208. let diff2 = deepDiff2(value[index4], upd);
  58209. return diff2 !== DEEPLY_EQUAL2 && (acc[index4] = diff2), acc;
  58210. }, new Array(update2.length));
  58211. return update2.length >= value.length ? res : res.concat(new Array(value.length - update2.length).fill(void 0));
  58212. }
  58213. return isPlainObject(value) && isPlainObject(update2) ? Object.keys({ ...value, ...update2 }).reduce((acc, key) => {
  58214. let diff2 = deepDiff2(value?.[key], update2?.[key]);
  58215. return diff2 === DEEPLY_EQUAL2 ? acc : Object.assign(acc, { [key]: diff2 });
  58216. }, {}) : update2;
  58217. }, VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+)?$/, HEX_REGEXP = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, COLOR_REGEXP = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i, validateArgs = (key = "", value) => key === null || key === "" || !VALIDATION_REGEXP.test(key) ? !1 : value == null || value instanceof Date || typeof value == "number" || typeof value == "boolean" ? !0 : typeof value == "string" ? VALIDATION_REGEXP.test(value) || NUMBER_REGEXP.test(value) || HEX_REGEXP.test(value) || COLOR_REGEXP.test(value) : Array.isArray(value) ? value.every((v) => validateArgs(key, v)) : isPlainObject(value) ? Object.entries(value).every(([k, v]) => validateArgs(k, v)) : !1, encodeSpecialValues = (value) => value === void 0 ? "!undefined" : value === null ? "!null" : typeof value == "string" ? HEX_REGEXP.test(value) ? `!hex(${value.slice(1)})` : COLOR_REGEXP.test(value) ? `!${value.replace(/[\s%]/g, "")}` : value : typeof value == "boolean" ? `!${value}` : value instanceof Date ? `!date(${value.toISOString()})` : Array.isArray(value) ? value.map(encodeSpecialValues) : isPlainObject(value) ? Object.entries(value).reduce(
  58218. (acc, [key, val]) => Object.assign(acc, { [key]: encodeSpecialValues(val) }),
  58219. {}
  58220. ) : value, decodeKnownQueryChar = (chr) => {
  58221. switch (chr) {
  58222. case "%20":
  58223. return "+";
  58224. case "%5B":
  58225. return "[";
  58226. case "%5D":
  58227. return "]";
  58228. case "%2C":
  58229. return ",";
  58230. case "%3A":
  58231. return ":";
  58232. }
  58233. return chr;
  58234. }, knownQueryChar = /%[0-9A-F]{2}/g, buildArgsParam = (initialArgs, args) => {
  58235. let update2 = deepDiff2(initialArgs, args);
  58236. if (!update2 || update2 === DEEPLY_EQUAL2)
  58237. return "";
  58238. let object = Object.entries(update2).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once.warn(dedent`
  58239. Omitted potentially unsafe URL args.
  58240. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
  58241. `), acc), {});
  58242. return (0, import_picoquery4.stringify)(encodeSpecialValues(object), {
  58243. delimiter: ";",
  58244. // we don't actually create multiple query params
  58245. nesting: !0,
  58246. nestingSyntax: "js"
  58247. // encode objects using dot notation: obj.key=val
  58248. }).replace(knownQueryChar, decodeKnownQueryChar).split(";").map((part) => part.replace("=", ":")).join(";");
  58249. }, queryFromString = (0, import_memoizerific7.default)(1e3)((s3) => s3 !== void 0 ? (0, import_picoquery4.parse)(s3) : {}), queryFromLocation = (location4) => queryFromString(location4?.search ? location4.search.slice(1) : ""), stringifyQuery = (query) => {
  58250. let queryStr = (0, import_picoquery4.stringify)(query);
  58251. return queryStr ? "?" + queryStr : "";
  58252. }, getMatch = (0, import_memoizerific7.default)(1e3)((current, target, startsWith4 = !0) => {
  58253. if (startsWith4) {
  58254. if (typeof target != "string")
  58255. throw new Error("startsWith only works with string targets");
  58256. return current && current.startsWith(target) ? { path: current } : null;
  58257. }
  58258. let currentIsTarget = typeof target == "string" && current === target, matchTarget = current && target && current.match(target);
  58259. return currentIsTarget || matchTarget ? { path: current } : null;
  58260. });
  58261. // src/router/router.tsx
  58262. var import_react21 = __toESM(require_react(), 1);
  58263. init_dist();
  58264. // ../../node_modules/react-router-dom/dist/index.js
  58265. var React31 = __toESM(require_react());
  58266. // ../../node_modules/react-router/dist/index.js
  58267. var React30 = __toESM(require_react());
  58268. // ../../node_modules/@remix-run/router/dist/router.js
  58269. function _extends2() {
  58270. return _extends2 = Object.assign ? Object.assign.bind() : function(target) {
  58271. for (var i = 1; i < arguments.length; i++) {
  58272. var source = arguments[i];
  58273. for (var key in source)
  58274. Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
  58275. }
  58276. return target;
  58277. }, _extends2.apply(this, arguments);
  58278. }
  58279. var Action;
  58280. (function(Action2) {
  58281. Action2.Pop = "POP", Action2.Push = "PUSH", Action2.Replace = "REPLACE";
  58282. })(Action || (Action = {}));
  58283. var PopStateEventType = "popstate";
  58284. function createMemoryHistory(options) {
  58285. options === void 0 && (options = {});
  58286. let {
  58287. initialEntries = ["/"],
  58288. initialIndex,
  58289. v5Compat = !1
  58290. } = options, entries;
  58291. entries = initialEntries.map((entry, index5) => createMemoryLocation(entry, typeof entry == "string" ? null : entry.state, index5 === 0 ? "default" : void 0));
  58292. let index4 = clampIndex(initialIndex ?? entries.length - 1), action2 = Action.Pop, listener = null;
  58293. function clampIndex(n) {
  58294. return Math.min(Math.max(n, 0), entries.length - 1);
  58295. }
  58296. function getCurrentLocation() {
  58297. return entries[index4];
  58298. }
  58299. function createMemoryLocation(to, state3, key) {
  58300. state3 === void 0 && (state3 = null);
  58301. let location4 = createLocation(entries ? getCurrentLocation().pathname : "/", to, state3, key);
  58302. return warning(location4.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(to)), location4;
  58303. }
  58304. function createHref(to) {
  58305. return typeof to == "string" ? to : createPath(to);
  58306. }
  58307. return {
  58308. get index() {
  58309. return index4;
  58310. },
  58311. get action() {
  58312. return action2;
  58313. },
  58314. get location() {
  58315. return getCurrentLocation();
  58316. },
  58317. createHref,
  58318. createURL(to) {
  58319. return new URL(createHref(to), "http://localhost");
  58320. },
  58321. encodeLocation(to) {
  58322. let path = typeof to == "string" ? parsePath3(to) : to;
  58323. return {
  58324. pathname: path.pathname || "",
  58325. search: path.search || "",
  58326. hash: path.hash || ""
  58327. };
  58328. },
  58329. push(to, state3) {
  58330. action2 = Action.Push;
  58331. let nextLocation = createMemoryLocation(to, state3);
  58332. index4 += 1, entries.splice(index4, entries.length, nextLocation), v5Compat && listener && listener({
  58333. action: action2,
  58334. location: nextLocation,
  58335. delta: 1
  58336. });
  58337. },
  58338. replace(to, state3) {
  58339. action2 = Action.Replace;
  58340. let nextLocation = createMemoryLocation(to, state3);
  58341. entries[index4] = nextLocation, v5Compat && listener && listener({
  58342. action: action2,
  58343. location: nextLocation,
  58344. delta: 0
  58345. });
  58346. },
  58347. go(delta) {
  58348. action2 = Action.Pop;
  58349. let nextIndex = clampIndex(index4 + delta), nextLocation = entries[nextIndex];
  58350. index4 = nextIndex, listener && listener({
  58351. action: action2,
  58352. location: nextLocation,
  58353. delta
  58354. });
  58355. },
  58356. listen(fn4) {
  58357. return listener = fn4, () => {
  58358. listener = null;
  58359. };
  58360. }
  58361. };
  58362. }
  58363. function createBrowserHistory(options) {
  58364. options === void 0 && (options = {});
  58365. function createBrowserLocation(window2, globalHistory) {
  58366. let {
  58367. pathname,
  58368. search,
  58369. hash: hash4
  58370. } = window2.location;
  58371. return createLocation(
  58372. "",
  58373. {
  58374. pathname,
  58375. search,
  58376. hash: hash4
  58377. },
  58378. // state defaults to `null` because `window.history.state` does
  58379. globalHistory.state && globalHistory.state.usr || null,
  58380. globalHistory.state && globalHistory.state.key || "default"
  58381. );
  58382. }
  58383. function createBrowserHref(window2, to) {
  58384. return typeof to == "string" ? to : createPath(to);
  58385. }
  58386. return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);
  58387. }
  58388. function invariant2(value, message) {
  58389. if (value === !1 || value === null || typeof value > "u")
  58390. throw new Error(message);
  58391. }
  58392. function warning(cond, message) {
  58393. if (!cond) {
  58394. typeof console < "u" && console.warn(message);
  58395. try {
  58396. throw new Error(message);
  58397. } catch {
  58398. }
  58399. }
  58400. }
  58401. function createKey() {
  58402. return Math.random().toString(36).substr(2, 8);
  58403. }
  58404. function getHistoryState(location4, index4) {
  58405. return {
  58406. usr: location4.state,
  58407. key: location4.key,
  58408. idx: index4
  58409. };
  58410. }
  58411. function createLocation(current, to, state3, key) {
  58412. return state3 === void 0 && (state3 = null), _extends2({
  58413. pathname: typeof current == "string" ? current : current.pathname,
  58414. search: "",
  58415. hash: ""
  58416. }, typeof to == "string" ? parsePath3(to) : to, {
  58417. state: state3,
  58418. // TODO: This could be cleaned up. push/replace should probably just take
  58419. // full Locations now and avoid the need to run through this flow at all
  58420. // But that's a pretty big refactor to the current test suite so going to
  58421. // keep as is for the time being and just let any incoming keys take precedence
  58422. key: to && to.key || key || createKey()
  58423. });
  58424. }
  58425. function createPath(_ref) {
  58426. let {
  58427. pathname = "/",
  58428. search = "",
  58429. hash: hash4 = ""
  58430. } = _ref;
  58431. return search && search !== "?" && (pathname += search.charAt(0) === "?" ? search : "?" + search), hash4 && hash4 !== "#" && (pathname += hash4.charAt(0) === "#" ? hash4 : "#" + hash4), pathname;
  58432. }
  58433. function parsePath3(path) {
  58434. let parsedPath = {};
  58435. if (path) {
  58436. let hashIndex = path.indexOf("#");
  58437. hashIndex >= 0 && (parsedPath.hash = path.substr(hashIndex), path = path.substr(0, hashIndex));
  58438. let searchIndex = path.indexOf("?");
  58439. searchIndex >= 0 && (parsedPath.search = path.substr(searchIndex), path = path.substr(0, searchIndex)), path && (parsedPath.pathname = path);
  58440. }
  58441. return parsedPath;
  58442. }
  58443. function getUrlBasedHistory(getLocation, createHref, validateLocation, options) {
  58444. options === void 0 && (options = {});
  58445. let {
  58446. window: window2 = document.defaultView,
  58447. v5Compat = !1
  58448. } = options, globalHistory = window2.history, action2 = Action.Pop, listener = null, index4 = getIndex();
  58449. index4 == null && (index4 = 0, globalHistory.replaceState(_extends2({}, globalHistory.state, {
  58450. idx: index4
  58451. }), ""));
  58452. function getIndex() {
  58453. return (globalHistory.state || {
  58454. idx: null
  58455. }).idx;
  58456. }
  58457. function handlePop() {
  58458. action2 = Action.Pop;
  58459. let nextIndex = getIndex(), delta = nextIndex == null ? null : nextIndex - index4;
  58460. index4 = nextIndex, listener && listener({
  58461. action: action2,
  58462. location: history2.location,
  58463. delta
  58464. });
  58465. }
  58466. function push(to, state3) {
  58467. action2 = Action.Push;
  58468. let location4 = createLocation(history2.location, to, state3);
  58469. validateLocation && validateLocation(location4, to), index4 = getIndex() + 1;
  58470. let historyState = getHistoryState(location4, index4), url = history2.createHref(location4);
  58471. try {
  58472. globalHistory.pushState(historyState, "", url);
  58473. } catch (error) {
  58474. if (error instanceof DOMException && error.name === "DataCloneError")
  58475. throw error;
  58476. window2.location.assign(url);
  58477. }
  58478. v5Compat && listener && listener({
  58479. action: action2,
  58480. location: history2.location,
  58481. delta: 1
  58482. });
  58483. }
  58484. function replace2(to, state3) {
  58485. action2 = Action.Replace;
  58486. let location4 = createLocation(history2.location, to, state3);
  58487. validateLocation && validateLocation(location4, to), index4 = getIndex();
  58488. let historyState = getHistoryState(location4, index4), url = history2.createHref(location4);
  58489. globalHistory.replaceState(historyState, "", url), v5Compat && listener && listener({
  58490. action: action2,
  58491. location: history2.location,
  58492. delta: 0
  58493. });
  58494. }
  58495. function createURL(to) {
  58496. let base = window2.location.origin !== "null" ? window2.location.origin : window2.location.href, href = typeof to == "string" ? to : createPath(to);
  58497. return invariant2(base, "No window.location.(origin|href) available to create URL for href: " + href), new URL(href, base);
  58498. }
  58499. let history2 = {
  58500. get action() {
  58501. return action2;
  58502. },
  58503. get location() {
  58504. return getLocation(window2, globalHistory);
  58505. },
  58506. listen(fn4) {
  58507. if (listener)
  58508. throw new Error("A history only accepts one active listener");
  58509. return window2.addEventListener(PopStateEventType, handlePop), listener = fn4, () => {
  58510. window2.removeEventListener(PopStateEventType, handlePop), listener = null;
  58511. };
  58512. },
  58513. createHref(to) {
  58514. return createHref(window2, to);
  58515. },
  58516. createURL,
  58517. encodeLocation(to) {
  58518. let url = createURL(to);
  58519. return {
  58520. pathname: url.pathname,
  58521. search: url.search,
  58522. hash: url.hash
  58523. };
  58524. },
  58525. push,
  58526. replace: replace2,
  58527. go(n) {
  58528. return globalHistory.go(n);
  58529. }
  58530. };
  58531. return history2;
  58532. }
  58533. var ResultType;
  58534. (function(ResultType2) {
  58535. ResultType2.data = "data", ResultType2.deferred = "deferred", ResultType2.redirect = "redirect", ResultType2.error = "error";
  58536. })(ResultType || (ResultType = {}));
  58537. function stripBasename(pathname, basename) {
  58538. if (basename === "/") return pathname;
  58539. if (!pathname.toLowerCase().startsWith(basename.toLowerCase()))
  58540. return null;
  58541. let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length, nextChar = pathname.charAt(startIndex);
  58542. return nextChar && nextChar !== "/" ? null : pathname.slice(startIndex) || "/";
  58543. }
  58544. function resolvePath(to, fromPathname) {
  58545. fromPathname === void 0 && (fromPathname = "/");
  58546. let {
  58547. pathname: toPathname,
  58548. search = "",
  58549. hash: hash4 = ""
  58550. } = typeof to == "string" ? parsePath3(to) : to;
  58551. return {
  58552. pathname: toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname,
  58553. search: normalizeSearch(search),
  58554. hash: normalizeHash(hash4)
  58555. };
  58556. }
  58557. function resolvePathname(relativePath, fromPathname) {
  58558. let segments = fromPathname.replace(/\/+$/, "").split("/");
  58559. return relativePath.split("/").forEach((segment) => {
  58560. segment === ".." ? segments.length > 1 && segments.pop() : segment !== "." && segments.push(segment);
  58561. }), segments.length > 1 ? segments.join("/") : "/";
  58562. }
  58563. function getInvalidPathError(char2, field, dest, path) {
  58564. return "Cannot include a '" + char2 + "' character in a manually specified " + ("`to." + field + "` field [" + JSON.stringify(path) + "]. Please separate it out to the ") + ("`to." + dest + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
  58565. }
  58566. function getPathContributingMatches(matches4) {
  58567. return matches4.filter((match3, index4) => index4 === 0 || match3.route.path && match3.route.path.length > 0);
  58568. }
  58569. function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
  58570. isPathRelative === void 0 && (isPathRelative = !1);
  58571. let to;
  58572. typeof toArg == "string" ? to = parsePath3(toArg) : (to = _extends2({}, toArg), invariant2(!to.pathname || !to.pathname.includes("?"), getInvalidPathError("?", "pathname", "search", to)), invariant2(!to.pathname || !to.pathname.includes("#"), getInvalidPathError("#", "pathname", "hash", to)), invariant2(!to.search || !to.search.includes("#"), getInvalidPathError("#", "search", "hash", to)));
  58573. let isEmptyPath = toArg === "" || to.pathname === "", toPathname = isEmptyPath ? "/" : to.pathname, from2;
  58574. if (isPathRelative || toPathname == null)
  58575. from2 = locationPathname;
  58576. else {
  58577. let routePathnameIndex = routePathnames.length - 1;
  58578. if (toPathname.startsWith("..")) {
  58579. let toSegments = toPathname.split("/");
  58580. for (; toSegments[0] === ".."; )
  58581. toSegments.shift(), routePathnameIndex -= 1;
  58582. to.pathname = toSegments.join("/");
  58583. }
  58584. from2 = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
  58585. }
  58586. let path = resolvePath(to, from2), hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/"), hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/");
  58587. return !path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash) && (path.pathname += "/"), path;
  58588. }
  58589. var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/");
  58590. var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search, normalizeHash = (hash4) => !hash4 || hash4 === "#" ? "" : hash4.startsWith("#") ? hash4 : "#" + hash4;
  58591. function isRouteErrorResponse(error) {
  58592. return error != null && typeof error.status == "number" && typeof error.statusText == "string" && typeof error.internal == "boolean" && "data" in error;
  58593. }
  58594. var validMutationMethodsArr = ["post", "put", "patch", "delete"], validMutationMethods = new Set(validMutationMethodsArr), validRequestMethodsArr = ["get", ...validMutationMethodsArr], validRequestMethods = new Set(validRequestMethodsArr);
  58595. // ../../node_modules/react-router/dist/index.js
  58596. function _extends3() {
  58597. return _extends3 = Object.assign ? Object.assign.bind() : function(target) {
  58598. for (var i = 1; i < arguments.length; i++) {
  58599. var source = arguments[i];
  58600. for (var key in source)
  58601. Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
  58602. }
  58603. return target;
  58604. }, _extends3.apply(this, arguments);
  58605. }
  58606. var DataRouterContext = React30.createContext(null), DataRouterStateContext = React30.createContext(null), AwaitContext = React30.createContext(null), NavigationContext = React30.createContext(null), LocationContext = React30.createContext(null), RouteContext = React30.createContext({
  58607. outlet: null,
  58608. matches: [],
  58609. isDataRoute: !1
  58610. }), RouteErrorContext = React30.createContext(null);
  58611. function useHref(to, _temp) {
  58612. let {
  58613. relative
  58614. } = _temp === void 0 ? {} : _temp;
  58615. useInRouterContext() || invariant2(!1);
  58616. let {
  58617. basename,
  58618. navigator: navigator4
  58619. } = React30.useContext(NavigationContext), {
  58620. hash: hash4,
  58621. pathname,
  58622. search
  58623. } = useResolvedPath(to, {
  58624. relative
  58625. }), joinedPathname = pathname;
  58626. return basename !== "/" && (joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname])), navigator4.createHref({
  58627. pathname: joinedPathname,
  58628. search,
  58629. hash: hash4
  58630. });
  58631. }
  58632. function useInRouterContext() {
  58633. return React30.useContext(LocationContext) != null;
  58634. }
  58635. function useLocation() {
  58636. return useInRouterContext() || invariant2(!1), React30.useContext(LocationContext).location;
  58637. }
  58638. function useIsomorphicLayoutEffect(cb) {
  58639. React30.useContext(NavigationContext).static || React30.useLayoutEffect(cb);
  58640. }
  58641. function useNavigate() {
  58642. let {
  58643. isDataRoute
  58644. } = React30.useContext(RouteContext);
  58645. return isDataRoute ? useNavigateStable() : useNavigateUnstable();
  58646. }
  58647. function useNavigateUnstable() {
  58648. useInRouterContext() || invariant2(!1);
  58649. let dataRouterContext = React30.useContext(DataRouterContext), {
  58650. basename,
  58651. navigator: navigator4
  58652. } = React30.useContext(NavigationContext), {
  58653. matches: matches4
  58654. } = React30.useContext(RouteContext), {
  58655. pathname: locationPathname
  58656. } = useLocation(), routePathnamesJson = JSON.stringify(getPathContributingMatches(matches4).map((match3) => match3.pathnameBase)), activeRef = React30.useRef(!1);
  58657. return useIsomorphicLayoutEffect(() => {
  58658. activeRef.current = !0;
  58659. }), React30.useCallback(function(to, options) {
  58660. if (options === void 0 && (options = {}), !activeRef.current) return;
  58661. if (typeof to == "number") {
  58662. navigator4.go(to);
  58663. return;
  58664. }
  58665. let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
  58666. dataRouterContext == null && basename !== "/" && (path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname])), (options.replace ? navigator4.replace : navigator4.push)(path, options.state, options);
  58667. }, [basename, navigator4, routePathnamesJson, locationPathname, dataRouterContext]);
  58668. }
  58669. var OutletContext = React30.createContext(null);
  58670. function useResolvedPath(to, _temp2) {
  58671. let {
  58672. relative
  58673. } = _temp2 === void 0 ? {} : _temp2, {
  58674. matches: matches4
  58675. } = React30.useContext(RouteContext), {
  58676. pathname: locationPathname
  58677. } = useLocation(), routePathnamesJson = JSON.stringify(getPathContributingMatches(matches4).map((match3) => match3.pathnameBase));
  58678. return React30.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [to, routePathnamesJson, locationPathname, relative]);
  58679. }
  58680. function DefaultErrorComponent() {
  58681. let error = useRouteError(), message = isRouteErrorResponse(error) ? error.status + " " + error.statusText : error instanceof Error ? error.message : JSON.stringify(error), stack = error instanceof Error ? error.stack : null, lightgrey = "rgba(200,200,200, 0.5)", preStyles = {
  58682. padding: "0.5rem",
  58683. backgroundColor: lightgrey
  58684. }, codeStyles = {
  58685. padding: "2px 4px",
  58686. backgroundColor: lightgrey
  58687. };
  58688. return React30.createElement(React30.Fragment, null, React30.createElement("h2", null, "Unexpected Application Error!"), React30.createElement("h3", {
  58689. style: {
  58690. fontStyle: "italic"
  58691. }
  58692. }, message), stack ? React30.createElement("pre", {
  58693. style: preStyles
  58694. }, stack) : null, null);
  58695. }
  58696. var defaultErrorElement = React30.createElement(DefaultErrorComponent, null);
  58697. var DataRouterHook = (function(DataRouterHook3) {
  58698. return DataRouterHook3.UseBlocker = "useBlocker", DataRouterHook3.UseRevalidator = "useRevalidator", DataRouterHook3.UseNavigateStable = "useNavigate", DataRouterHook3;
  58699. })(DataRouterHook || {}), DataRouterStateHook = (function(DataRouterStateHook3) {
  58700. return DataRouterStateHook3.UseBlocker = "useBlocker", DataRouterStateHook3.UseLoaderData = "useLoaderData", DataRouterStateHook3.UseActionData = "useActionData", DataRouterStateHook3.UseRouteError = "useRouteError", DataRouterStateHook3.UseNavigation = "useNavigation", DataRouterStateHook3.UseRouteLoaderData = "useRouteLoaderData", DataRouterStateHook3.UseMatches = "useMatches", DataRouterStateHook3.UseRevalidator = "useRevalidator", DataRouterStateHook3.UseNavigateStable = "useNavigate", DataRouterStateHook3.UseRouteId = "useRouteId", DataRouterStateHook3;
  58701. })(DataRouterStateHook || {});
  58702. function useDataRouterContext(hookName) {
  58703. let ctx = React30.useContext(DataRouterContext);
  58704. return ctx || invariant2(!1), ctx;
  58705. }
  58706. function useDataRouterState(hookName) {
  58707. let state3 = React30.useContext(DataRouterStateContext);
  58708. return state3 || invariant2(!1), state3;
  58709. }
  58710. function useRouteContext(hookName) {
  58711. let route = React30.useContext(RouteContext);
  58712. return route || invariant2(!1), route;
  58713. }
  58714. function useCurrentRouteId(hookName) {
  58715. let route = useRouteContext(hookName), thisRoute = route.matches[route.matches.length - 1];
  58716. return thisRoute.route.id || invariant2(!1), thisRoute.route.id;
  58717. }
  58718. function useRouteId() {
  58719. return useCurrentRouteId(DataRouterStateHook.UseRouteId);
  58720. }
  58721. function useRouteError() {
  58722. var _state$errors;
  58723. let error = React30.useContext(RouteErrorContext), state3 = useDataRouterState(DataRouterStateHook.UseRouteError), routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);
  58724. return error || ((_state$errors = state3.errors) == null ? void 0 : _state$errors[routeId]);
  58725. }
  58726. function useNavigateStable() {
  58727. let {
  58728. router
  58729. } = useDataRouterContext(DataRouterHook.UseNavigateStable), id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable), activeRef = React30.useRef(!1);
  58730. return useIsomorphicLayoutEffect(() => {
  58731. activeRef.current = !0;
  58732. }), React30.useCallback(function(to, options) {
  58733. options === void 0 && (options = {}), activeRef.current && (typeof to == "number" ? router.navigate(to) : router.navigate(to, _extends3({
  58734. fromRouteId: id
  58735. }, options)));
  58736. }, [router, id]);
  58737. }
  58738. var START_TRANSITION = "startTransition", startTransitionImpl = React30[START_TRANSITION];
  58739. function MemoryRouter(_ref3) {
  58740. let {
  58741. basename,
  58742. children,
  58743. initialEntries,
  58744. initialIndex,
  58745. future
  58746. } = _ref3, historyRef = React30.useRef();
  58747. historyRef.current == null && (historyRef.current = createMemoryHistory({
  58748. initialEntries,
  58749. initialIndex,
  58750. v5Compat: !0
  58751. }));
  58752. let history2 = historyRef.current, [state3, setStateImpl] = React30.useState({
  58753. action: history2.action,
  58754. location: history2.location
  58755. }), {
  58756. v7_startTransition
  58757. } = future || {}, setState2 = React30.useCallback((newState) => {
  58758. v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
  58759. }, [setStateImpl, v7_startTransition]);
  58760. return React30.useLayoutEffect(() => history2.listen(setState2), [history2, setState2]), React30.createElement(Router, {
  58761. basename,
  58762. children,
  58763. location: state3.location,
  58764. navigationType: state3.action,
  58765. navigator: history2
  58766. });
  58767. }
  58768. function Router(_ref5) {
  58769. let {
  58770. basename: basenameProp = "/",
  58771. children = null,
  58772. location: locationProp,
  58773. navigationType = Action.Pop,
  58774. navigator: navigator4,
  58775. static: staticProp = !1
  58776. } = _ref5;
  58777. useInRouterContext() && invariant2(!1);
  58778. let basename = basenameProp.replace(/^\/*/, "/"), navigationContext = React30.useMemo(() => ({
  58779. basename,
  58780. navigator: navigator4,
  58781. static: staticProp
  58782. }), [basename, navigator4, staticProp]);
  58783. typeof locationProp == "string" && (locationProp = parsePath3(locationProp));
  58784. let {
  58785. pathname = "/",
  58786. search = "",
  58787. hash: hash4 = "",
  58788. state: state3 = null,
  58789. key = "default"
  58790. } = locationProp, locationContext = React30.useMemo(() => {
  58791. let trailingPathname = stripBasename(pathname, basename);
  58792. return trailingPathname == null ? null : {
  58793. location: {
  58794. pathname: trailingPathname,
  58795. search,
  58796. hash: hash4,
  58797. state: state3,
  58798. key
  58799. },
  58800. navigationType
  58801. };
  58802. }, [basename, pathname, search, hash4, state3, key, navigationType]);
  58803. return locationContext == null ? null : React30.createElement(NavigationContext.Provider, {
  58804. value: navigationContext
  58805. }, React30.createElement(LocationContext.Provider, {
  58806. children,
  58807. value: locationContext
  58808. }));
  58809. }
  58810. var AwaitRenderStatus = (function(AwaitRenderStatus2) {
  58811. return AwaitRenderStatus2[AwaitRenderStatus2.pending = 0] = "pending", AwaitRenderStatus2[AwaitRenderStatus2.success = 1] = "success", AwaitRenderStatus2[AwaitRenderStatus2.error = 2] = "error", AwaitRenderStatus2;
  58812. })(AwaitRenderStatus || {}), neverSettledPromise = new Promise(() => {
  58813. });
  58814. // ../../node_modules/react-router-dom/dist/index.js
  58815. function _extends4() {
  58816. return _extends4 = Object.assign ? Object.assign.bind() : function(target) {
  58817. for (var i = 1; i < arguments.length; i++) {
  58818. var source = arguments[i];
  58819. for (var key in source)
  58820. Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
  58821. }
  58822. return target;
  58823. }, _extends4.apply(this, arguments);
  58824. }
  58825. function _objectWithoutPropertiesLoose2(source, excluded) {
  58826. if (source == null) return {};
  58827. var target = {}, sourceKeys = Object.keys(source), key, i;
  58828. for (i = 0; i < sourceKeys.length; i++)
  58829. key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
  58830. return target;
  58831. }
  58832. var defaultMethod = "get", defaultEncType = "application/x-www-form-urlencoded";
  58833. function isHtmlElement(object) {
  58834. return object != null && typeof object.tagName == "string";
  58835. }
  58836. function isButtonElement(object) {
  58837. return isHtmlElement(object) && object.tagName.toLowerCase() === "button";
  58838. }
  58839. function isFormElement(object) {
  58840. return isHtmlElement(object) && object.tagName.toLowerCase() === "form";
  58841. }
  58842. function isInputElement(object) {
  58843. return isHtmlElement(object) && object.tagName.toLowerCase() === "input";
  58844. }
  58845. function isModifiedEvent(event) {
  58846. return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
  58847. }
  58848. function shouldProcessLinkClick(event, target) {
  58849. return event.button === 0 && // Ignore everything but left clicks
  58850. (!target || target === "_self") && // Let browser handle "target=_blank" etc.
  58851. !isModifiedEvent(event);
  58852. }
  58853. var _formDataSupportsSubmitter = null;
  58854. function isFormDataSubmitterSupported() {
  58855. if (_formDataSupportsSubmitter === null)
  58856. try {
  58857. new FormData(
  58858. document.createElement("form"),
  58859. // @ts-expect-error if FormData supports the submitter parameter, this will throw
  58860. 0
  58861. ), _formDataSupportsSubmitter = !1;
  58862. } catch {
  58863. _formDataSupportsSubmitter = !0;
  58864. }
  58865. return _formDataSupportsSubmitter;
  58866. }
  58867. var supportedFormEncTypes = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
  58868. function getFormEncType(encType) {
  58869. return encType != null && !supportedFormEncTypes.has(encType) ? null : encType;
  58870. }
  58871. function getFormSubmissionInfo(target, basename) {
  58872. let method, action2, encType, formData, body;
  58873. if (isFormElement(target)) {
  58874. let attr = target.getAttribute("action");
  58875. action2 = attr ? stripBasename(attr, basename) : null, method = target.getAttribute("method") || defaultMethod, encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType, formData = new FormData(target);
  58876. } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) {
  58877. let form = target.form;
  58878. if (form == null)
  58879. throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
  58880. let attr = target.getAttribute("formaction") || form.getAttribute("action");
  58881. if (action2 = attr ? stripBasename(attr, basename) : null, method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod, encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType, formData = new FormData(form, target), !isFormDataSubmitterSupported()) {
  58882. let {
  58883. name,
  58884. type: type5,
  58885. value
  58886. } = target;
  58887. if (type5 === "image") {
  58888. let prefix4 = name ? name + "." : "";
  58889. formData.append(prefix4 + "x", "0"), formData.append(prefix4 + "y", "0");
  58890. } else name && formData.append(name, value);
  58891. }
  58892. } else {
  58893. if (isHtmlElement(target))
  58894. throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
  58895. method = defaultMethod, action2 = null, encType = defaultEncType, body = target;
  58896. }
  58897. return formData && encType === "text/plain" && (body = formData, formData = void 0), {
  58898. action: action2,
  58899. method: method.toLowerCase(),
  58900. encType,
  58901. formData,
  58902. body
  58903. };
  58904. }
  58905. var _excluded2 = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], _excluded22 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], _excluded3 = ["reloadDocument", "replace", "state", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
  58906. var START_TRANSITION2 = "startTransition", startTransitionImpl2 = React31[START_TRANSITION2];
  58907. function BrowserRouter(_ref) {
  58908. let {
  58909. basename,
  58910. children,
  58911. future,
  58912. window: window2
  58913. } = _ref, historyRef = React31.useRef();
  58914. historyRef.current == null && (historyRef.current = createBrowserHistory({
  58915. window: window2,
  58916. v5Compat: !0
  58917. }));
  58918. let history2 = historyRef.current, [state3, setStateImpl] = React31.useState({
  58919. action: history2.action,
  58920. location: history2.location
  58921. }), {
  58922. v7_startTransition
  58923. } = future || {}, setState2 = React31.useCallback((newState) => {
  58924. v7_startTransition && startTransitionImpl2 ? startTransitionImpl2(() => setStateImpl(newState)) : setStateImpl(newState);
  58925. }, [setStateImpl, v7_startTransition]);
  58926. return React31.useLayoutEffect(() => history2.listen(setState2), [history2, setState2]), React31.createElement(Router, {
  58927. basename,
  58928. children,
  58929. location: state3.location,
  58930. navigationType: state3.action,
  58931. navigator: history2
  58932. });
  58933. }
  58934. var isBrowser3 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link3 = React31.forwardRef(function(_ref4, ref) {
  58935. let {
  58936. onClick,
  58937. relative,
  58938. reloadDocument,
  58939. replace: replace2,
  58940. state: state3,
  58941. target,
  58942. to,
  58943. preventScrollReset
  58944. } = _ref4, rest = _objectWithoutPropertiesLoose2(_ref4, _excluded2), {
  58945. basename
  58946. } = React31.useContext(NavigationContext), absoluteHref, isExternal = !1;
  58947. if (typeof to == "string" && ABSOLUTE_URL_REGEX.test(to) && (absoluteHref = to, isBrowser3))
  58948. try {
  58949. let currentUrl = new URL(window.location.href), targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to), path = stripBasename(targetUrl.pathname, basename);
  58950. targetUrl.origin === currentUrl.origin && path != null ? to = path + targetUrl.search + targetUrl.hash : isExternal = !0;
  58951. } catch {
  58952. }
  58953. let href = useHref(to, {
  58954. relative
  58955. }), internalOnClick = useLinkClickHandler(to, {
  58956. replace: replace2,
  58957. state: state3,
  58958. target,
  58959. preventScrollReset,
  58960. relative
  58961. });
  58962. function handleClick(event) {
  58963. onClick && onClick(event), event.defaultPrevented || internalOnClick(event);
  58964. }
  58965. return (
  58966. // eslint-disable-next-line jsx-a11y/anchor-has-content
  58967. React31.createElement("a", _extends4({}, rest, {
  58968. href: absoluteHref || href,
  58969. onClick: isExternal || reloadDocument ? onClick : handleClick,
  58970. ref,
  58971. target
  58972. }))
  58973. );
  58974. }), NavLink = React31.forwardRef(function(_ref5, ref) {
  58975. let {
  58976. "aria-current": ariaCurrentProp = "page",
  58977. caseSensitive = !1,
  58978. className: classNameProp = "",
  58979. end: end2 = !1,
  58980. style: styleProp,
  58981. to,
  58982. children
  58983. } = _ref5, rest = _objectWithoutPropertiesLoose2(_ref5, _excluded22), path = useResolvedPath(to, {
  58984. relative: rest.relative
  58985. }), location4 = useLocation(), routerState = React31.useContext(DataRouterStateContext), {
  58986. navigator: navigator4
  58987. } = React31.useContext(NavigationContext), toPathname = navigator4.encodeLocation ? navigator4.encodeLocation(path).pathname : path.pathname, locationPathname = location4.pathname, nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;
  58988. caseSensitive || (locationPathname = locationPathname.toLowerCase(), nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null, toPathname = toPathname.toLowerCase());
  58989. let isActive = locationPathname === toPathname || !end2 && locationPathname.startsWith(toPathname) && locationPathname.charAt(toPathname.length) === "/", isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end2 && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === "/"), ariaCurrent = isActive ? ariaCurrentProp : void 0, className;
  58990. typeof classNameProp == "function" ? className = classNameProp({
  58991. isActive,
  58992. isPending
  58993. }) : className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null].filter(Boolean).join(" ");
  58994. let style = typeof styleProp == "function" ? styleProp({
  58995. isActive,
  58996. isPending
  58997. }) : styleProp;
  58998. return React31.createElement(Link3, _extends4({}, rest, {
  58999. "aria-current": ariaCurrent,
  59000. className,
  59001. ref,
  59002. style,
  59003. to
  59004. }), typeof children == "function" ? children({
  59005. isActive,
  59006. isPending
  59007. }) : children);
  59008. }), Form = React31.forwardRef((props, ref) => {
  59009. let submit = useSubmit();
  59010. return React31.createElement(FormImpl, _extends4({}, props, {
  59011. submit,
  59012. ref
  59013. }));
  59014. }), FormImpl = React31.forwardRef((_ref6, forwardedRef) => {
  59015. let {
  59016. reloadDocument,
  59017. replace: replace2,
  59018. state: state3,
  59019. method = defaultMethod,
  59020. action: action2,
  59021. onSubmit,
  59022. submit,
  59023. relative,
  59024. preventScrollReset
  59025. } = _ref6, props = _objectWithoutPropertiesLoose2(_ref6, _excluded3), formMethod = method.toLowerCase() === "get" ? "get" : "post", formAction = useFormAction(action2, {
  59026. relative
  59027. });
  59028. return React31.createElement("form", _extends4({
  59029. ref: forwardedRef,
  59030. method: formMethod,
  59031. action: formAction,
  59032. onSubmit: reloadDocument ? onSubmit : (event) => {
  59033. if (onSubmit && onSubmit(event), event.defaultPrevented) return;
  59034. event.preventDefault();
  59035. let submitter = event.nativeEvent.submitter, submitMethod = submitter?.getAttribute("formmethod") || method;
  59036. submit(submitter || event.currentTarget, {
  59037. method: submitMethod,
  59038. replace: replace2,
  59039. state: state3,
  59040. relative,
  59041. preventScrollReset
  59042. });
  59043. }
  59044. }, props));
  59045. });
  59046. var DataRouterHook2;
  59047. (function(DataRouterHook3) {
  59048. DataRouterHook3.UseScrollRestoration = "useScrollRestoration", DataRouterHook3.UseSubmit = "useSubmit", DataRouterHook3.UseSubmitFetcher = "useSubmitFetcher", DataRouterHook3.UseFetcher = "useFetcher";
  59049. })(DataRouterHook2 || (DataRouterHook2 = {}));
  59050. var DataRouterStateHook2;
  59051. (function(DataRouterStateHook3) {
  59052. DataRouterStateHook3.UseFetchers = "useFetchers", DataRouterStateHook3.UseScrollRestoration = "useScrollRestoration";
  59053. })(DataRouterStateHook2 || (DataRouterStateHook2 = {}));
  59054. function useDataRouterContext2(hookName) {
  59055. let ctx = React31.useContext(DataRouterContext);
  59056. return ctx || invariant2(!1), ctx;
  59057. }
  59058. function useLinkClickHandler(to, _temp) {
  59059. let {
  59060. target,
  59061. replace: replaceProp,
  59062. state: state3,
  59063. preventScrollReset,
  59064. relative
  59065. } = _temp === void 0 ? {} : _temp, navigate = useNavigate(), location4 = useLocation(), path = useResolvedPath(to, {
  59066. relative
  59067. });
  59068. return React31.useCallback((event) => {
  59069. if (shouldProcessLinkClick(event, target)) {
  59070. event.preventDefault();
  59071. let replace2 = replaceProp !== void 0 ? replaceProp : createPath(location4) === createPath(path);
  59072. navigate(to, {
  59073. replace: replace2,
  59074. state: state3,
  59075. preventScrollReset,
  59076. relative
  59077. });
  59078. }
  59079. }, [location4, navigate, path, replaceProp, state3, target, to, preventScrollReset, relative]);
  59080. }
  59081. function validateClientSideSubmission() {
  59082. if (typeof document > "u")
  59083. throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
  59084. }
  59085. function useSubmit() {
  59086. let {
  59087. router
  59088. } = useDataRouterContext2(DataRouterHook2.UseSubmit), {
  59089. basename
  59090. } = React31.useContext(NavigationContext), currentRouteId = useRouteId();
  59091. return React31.useCallback(function(target, options) {
  59092. options === void 0 && (options = {}), validateClientSideSubmission();
  59093. let {
  59094. action: action2,
  59095. method,
  59096. encType,
  59097. formData,
  59098. body
  59099. } = getFormSubmissionInfo(target, basename);
  59100. router.navigate(options.action || action2, {
  59101. preventScrollReset: options.preventScrollReset,
  59102. formData,
  59103. body,
  59104. formMethod: options.method || method,
  59105. formEncType: options.encType || encType,
  59106. replace: options.replace,
  59107. state: options.state,
  59108. fromRouteId: currentRouteId
  59109. });
  59110. }, [router, basename, currentRouteId]);
  59111. }
  59112. function useFormAction(action2, _temp2) {
  59113. let {
  59114. relative
  59115. } = _temp2 === void 0 ? {} : _temp2, {
  59116. basename
  59117. } = React31.useContext(NavigationContext), routeContext = React31.useContext(RouteContext);
  59118. routeContext || invariant2(!1);
  59119. let [match3] = routeContext.matches.slice(-1), path = _extends4({}, useResolvedPath(action2 || ".", {
  59120. relative
  59121. })), location4 = useLocation();
  59122. if (action2 == null && (path.search = location4.search, match3.route.index)) {
  59123. let params = new URLSearchParams(path.search);
  59124. params.delete("index"), path.search = params.toString() ? "?" + params.toString() : "";
  59125. }
  59126. return (!action2 || action2 === ".") && match3.route.index && (path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index"), basename !== "/" && (path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname])), createPath(path);
  59127. }
  59128. // src/router/router.tsx
  59129. var { document: document10 } = scope, getBase = () => `${document10.location.pathname}?`, useNavigate2 = () => {
  59130. let navigate = useNavigate();
  59131. return (0, import_react21.useCallback)((to, { plain, ...options } = {}) => {
  59132. if (typeof to == "string" && to.startsWith("#")) {
  59133. to === "#" ? navigate(document10.location.search) : document10.location.hash = to;
  59134. return;
  59135. }
  59136. if (typeof to == "string") {
  59137. let target = plain ? to : `?path=${to}`;
  59138. return navigate(target, options);
  59139. }
  59140. if (typeof to == "number")
  59141. return navigate(to);
  59142. }, []);
  59143. }, Link4 = ({ to, children, ...rest }) => import_react21.default.createElement(Link3, { to: `${getBase()}path=${to}`, ...rest }, children);
  59144. Link4.displayName = "QueryLink";
  59145. var Location = ({ children }) => {
  59146. let location4 = useLocation(), { path, singleStory } = queryFromLocation(location4), { viewMode, storyId, refId } = parsePath2(path);
  59147. return import_react21.default.createElement(import_react21.default.Fragment, null, children({
  59148. path: path || "/",
  59149. location: location4,
  59150. viewMode,
  59151. storyId,
  59152. refId,
  59153. singleStory: singleStory === "true"
  59154. }));
  59155. };
  59156. Location.displayName = "QueryLocation";
  59157. function Match({
  59158. children,
  59159. path: targetPath,
  59160. startsWith: startsWith4 = !1
  59161. }) {
  59162. return import_react21.default.createElement(Location, null, ({ path: urlPath, ...rest }) => children({
  59163. match: getMatch(urlPath, targetPath, startsWith4),
  59164. ...rest
  59165. }));
  59166. }
  59167. Match.displayName = "QueryMatch";
  59168. function Route2(input2) {
  59169. let { children, ...rest } = input2;
  59170. return rest.startsWith === void 0 && (rest.startsWith = !1), import_react21.default.createElement(Match, { ...rest }, ({ match: match3 }) => match3 ? children : null);
  59171. }
  59172. Route2.displayName = "Route";
  59173. var LocationProvider = (...args) => BrowserRouter(...args), BaseLocationProvider = (...args) => Router(...args), MemoryRouter2 = (...args) => MemoryRouter(...args);
  59174. // src/manager-api/modules/stories.ts
  59175. init_dist();
  59176. // src/manager-api/lib/url.ts
  59177. var buildNavigationUrl = (path, queryParams = {}) => {
  59178. let params = Object.entries(queryParams).filter(([, v]) => v != null).sort(([a3], [b]) => a3 < b ? -1 : 1).map(([k, v]) => `${k}=${v}`);
  59179. return [path, ...params].join("&");
  59180. };
  59181. // src/shared/universal-store/use-universal-store-manager.ts
  59182. var React33 = __toESM(require_react(), 1);
  59183. var useUniversalStore = (universalStore, selector) => {
  59184. let snapshotRef = React33.useRef(
  59185. selector ? selector(universalStore.getState()) : universalStore.getState()
  59186. ), subscribe = React33.useCallback(
  59187. (listener) => universalStore.onStateChange((state4, previousState) => {
  59188. if (!selector) {
  59189. snapshotRef.current = state4, listener();
  59190. return;
  59191. }
  59192. let selectedState = selector(state4), selectedPreviousState = selector(previousState);
  59193. !isEqual(selectedState, selectedPreviousState) && (snapshotRef.current = selectedState, listener());
  59194. }),
  59195. [universalStore, selector]
  59196. ), getSnapshot = React33.useCallback(() => {
  59197. let currentState = universalStore.getState(), selectedState = selector ? selector(currentState) : currentState;
  59198. return isEqual(selectedState, snapshotRef.current) || (snapshotRef.current = selectedState), snapshotRef.current;
  59199. }, [universalStore, selector]);
  59200. return [React33.useSyncExternalStore(subscribe, getSnapshot), universalStore.setState];
  59201. };
  59202. // src/manager-api/stores/status.ts
  59203. var statusStore = createStatusStore({
  59204. universalStatusStore: UniversalStore.create({
  59205. ...UNIVERSAL_STATUS_STORE_OPTIONS,
  59206. leader: globalThis.CONFIG_TYPE === "PRODUCTION"
  59207. }),
  59208. useUniversalStore,
  59209. environment: "manager"
  59210. }), { fullStatusStore, getStatusStoreByTypeId, useStatusStore, universalStatusStore } = statusStore;
  59211. // src/manager-api/lib/filter-param.ts
  59212. var parseFilterParam = (param, transform) => {
  59213. if (!param)
  59214. return { included: [], excluded: [] };
  59215. let included = [], excluded = [];
  59216. return param.split(";").forEach((raw) => {
  59217. if (!raw)
  59218. return;
  59219. let isExcluded = raw.startsWith("!"), value = transform(isExcluded ? raw.slice(1) : raw);
  59220. value != null && (isExcluded ? excluded.push(value) : included.push(value));
  59221. }), { included, excluded };
  59222. };
  59223. // src/manager-api/modules/statuses.ts
  59224. var parseStatusesParam = (statusesParam) => parseFilterParam(statusesParam, toStatusValue), serializeStatusesParam = (included, excluded) => {
  59225. if (!included.length && !excluded.length)
  59226. return;
  59227. let serializedIncluded = included.map((v) => statusValueShortName(v)).sort(), serializedExcluded = excluded.map((v) => `!${statusValueShortName(v)}`).sort();
  59228. return [...serializedIncluded, ...serializedExcluded].join(";");
  59229. }, computeStatusFilterFn = (includedStatusFilters, excludedStatusFilters) => (entry) => {
  59230. if (!includedStatusFilters.length && !excludedStatusFilters.length)
  59231. return !0;
  59232. let storyStatuses = (fullStatusStore.getAll() ?? {})[entry.id], storyStatusValues = storyStatuses ? Object.values(storyStatuses).map((s3) => s3.value) : [], passesInclude = !includedStatusFilters.length || includedStatusFilters.some((v) => storyStatusValues.includes(v)), passesExclude = !excludedStatusFilters.length || excludedStatusFilters.every((v) => !storyStatusValues.includes(v));
  59233. return passesInclude && passesExclude;
  59234. };
  59235. // src/manager-api/modules/tags.ts
  59236. var import_memoizerific8 = __toESM(require_memoizerific(), 1);
  59237. var BUILT_IN_URL_TAG_MAP = {
  59238. $docs: "_docs",
  59239. $play: "_play",
  59240. $test: "_test"
  59241. }, parseTagsParam = (tagsParam) => parseFilterParam(tagsParam, (raw) => BUILT_IN_URL_TAG_MAP[raw] ?? raw), serializeTagsParam = (included, excluded) => {
  59242. if (!included.length && !excluded.length)
  59243. return "";
  59244. let reverseBuiltInUrlTagMap = Object.fromEntries(
  59245. Object.entries(BUILT_IN_URL_TAG_MAP).map(([urlTag, internalTag]) => [internalTag, urlTag])
  59246. ), serializedIncluded = included.map((tag) => reverseBuiltInUrlTagMap[tag] ?? tag).sort(), serializedExcluded = excluded.map((tag) => `!${reverseBuiltInUrlTagMap[tag] ?? tag}`).sort();
  59247. return [...serializedIncluded, ...serializedExcluded].join(";");
  59248. }, getDefaultTagsFromPreset = (0, import_memoizerific8.default)(1)((presets) => {
  59249. let presetEntries = Object.entries(presets);
  59250. return {
  59251. included: presetEntries.filter(([, option]) => option.defaultFilterSelection === "include").map(([tag]) => tag),
  59252. excluded: presetEntries.filter(([, option]) => option.defaultFilterSelection === "exclude").map(([tag]) => tag)
  59253. };
  59254. }), computeStaticFilterFn = (tagPresets) => {
  59255. let staticExcludeTags = Object.entries(tagPresets).reduce(
  59256. (acc, entry) => {
  59257. let [tag, option] = entry;
  59258. return option.excludeFromSidebar && (acc[tag] = !0), acc;
  59259. },
  59260. {}
  59261. );
  59262. return (item) => {
  59263. let tags2 = item.tags ?? [], isCsfAutodocsEntry = item.type === "docs" && !tags2.includes(Tag.ATTACHED_MDX) && !tags2.includes(Tag.UNATTACHED_MDX);
  59264. return (tags2.includes(Tag.DEV) || isCsfAutodocsEntry) && tags2.filter((tag) => staticExcludeTags[tag]).length === 0;
  59265. };
  59266. }, computeTagsFilterFn = (includedTagFilters, excludedTagFilters) => {
  59267. let computeFilterFunctions = (set3) => Object.values(
  59268. set3.reduce(
  59269. (acc, tag) => (Object.hasOwn(BUILT_IN_FILTERS, tag) ? acc["built-in"].push(BUILT_IN_FILTERS[tag]) : acc.user.push(USER_TAG_FILTER(tag)), acc),
  59270. { "built-in": [], user: [] }
  59271. )
  59272. ).filter((group) => group.length > 0);
  59273. return (item) => {
  59274. let included = computeFilterFunctions(includedTagFilters), excluded = computeFilterFunctions(excludedTagFilters);
  59275. return (!included.length || included.every((group) => group.some((filterFn) => filterFn(item, !1)))) && (!excluded.length || excluded.every((group) => group.every((filterFn) => filterFn(item, !0))));
  59276. };
  59277. };
  59278. // src/manager-api/modules/stories.ts
  59279. var { fetch: fetch3 } = scope, STORY_INDEX_PATH = "./index.json", TAGS_FILTER = "tags-filter", STATIC_FILTER = "static-filter", STATUS_FILTER = "status-filter", BUILT_IN_TAG_IDS = new Set(Object.keys(BUILT_IN_FILTERS)), removedOptions = ["enableShortcuts", "theme", "showRoots"];
  59280. function removeRemovedOptions(options) {
  59281. if (!options || typeof options == "string")
  59282. return options;
  59283. let result = { ...options };
  59284. return removedOptions.forEach((option) => {
  59285. option in result && delete result[option];
  59286. }), result;
  59287. }
  59288. var FILTER_KEYS = {
  59289. tag: { included: "includedTagFilters", excluded: "excludedTagFilters" },
  59290. status: { included: "includedStatusFilters", excluded: "excludedStatusFilters" }
  59291. }, init12 = ({
  59292. fullAPI,
  59293. store: store2,
  59294. navigate,
  59295. provider,
  59296. state: { location: location4 } = {},
  59297. storyId: initialStoryId,
  59298. viewMode: initialViewMode,
  59299. docsOptions = {}
  59300. }) => {
  59301. let navigateWithQueryParams = (path, options) => {
  59302. let { customQueryParams } = store2.getState();
  59303. navigate(buildNavigationUrl(path, customQueryParams ?? {}), options);
  59304. }, persistFilters = (inputPatch) => store2.setState(inputPatch, {
  59305. persistence: "url",
  59306. serialize: (s3) => {
  59307. let tagsValue = serializeTagsParam(s3.includedTagFilters, s3.excludedTagFilters), statusesValue = serializeStatusesParam(
  59308. s3.includedStatusFilters,
  59309. s3.excludedStatusFilters
  59310. );
  59311. return { tags: tagsValue ?? null, statuses: statusesValue ?? null };
  59312. }
  59313. }), urlFilterTelemetryEmitted = !1, addFilters = async (type5, items, excluded) => {
  59314. let { included, excluded: excludedKey } = FILTER_KEYS[type5], state3 = store2.getState(), newIncluded = new Set(state3[included]), newExcluded = new Set(state3[excludedKey]);
  59315. for (let item of items) {
  59316. let [target, other] = excluded ? [newExcluded, newIncluded] : [newIncluded, newExcluded];
  59317. other.delete(item), target.add(item);
  59318. }
  59319. await persistFilters({
  59320. [included]: Array.from(newIncluded),
  59321. [excludedKey]: Array.from(newExcluded)
  59322. });
  59323. }, removeFilters = async (type5, items) => {
  59324. let { included, excluded } = FILTER_KEYS[type5], state3 = store2.getState(), itemSet = new Set(items);
  59325. await persistFilters({
  59326. [included]: state3[included].filter((v) => !itemSet.has(v)),
  59327. [excluded]: state3[excluded].filter((v) => !itemSet.has(v))
  59328. });
  59329. }, emitFilterTelemetry = (trigger, changed) => {
  59330. let state3 = store2.getState(), includedTags = (state3.includedTagFilters ?? []).filter((id) => BUILT_IN_TAG_IDS.has(id)), excludedTags = (state3.excludedTagFilters ?? []).filter((id) => BUILT_IN_TAG_IDS.has(id)), changeDetectionEnabled = !!globalThis?.FEATURES?.changeDetection, includedStatuses = changeDetectionEnabled ? state3.includedStatusFilters ?? [] : [], excludedStatuses = changeDetectionEnabled ? state3.excludedStatusFilters ?? [] : [], storyCounts = {}, entries = state3.internal_index ? Object.values(state3.internal_index.entries) : [];
  59331. for (let tagId of /* @__PURE__ */ new Set([...includedTags, ...excludedTags])) {
  59332. let filterDef = BUILT_IN_FILTERS[tagId];
  59333. storyCounts[tagId] = entries.filter((entry) => filterDef(entry)).length;
  59334. }
  59335. if (includedStatuses.length > 0 || excludedStatuses.length > 0) {
  59336. let statusCounts = countStatusesByValue(fullStatusStore.getAll());
  59337. for (let statusValue of /* @__PURE__ */ new Set([...includedStatuses, ...excludedStatuses]))
  59338. statusCounts[statusValue] !== void 0 && (storyCounts[statusValue] = statusCounts[statusValue]);
  59339. }
  59340. provider.channel?.emit(SIDEBAR_FILTER_CHANGED, {
  59341. trigger,
  59342. changed,
  59343. activeTagFilters: { included: includedTags, excluded: excludedTags },
  59344. activeStatusFilters: { included: includedStatuses, excluded: excludedStatuses },
  59345. storyCounts
  59346. });
  59347. }, api = {
  59348. storyId: toId,
  59349. getData: (storyId, refId) => {
  59350. let result = api.resolveStory(storyId, refId);
  59351. if (result?.type === "story" || result?.type === "docs")
  59352. return result;
  59353. },
  59354. isPrepared: (storyId, refId) => {
  59355. let data = api.getData(storyId, refId);
  59356. return data ? data.type === "story" ? data.prepared : !0 : !1;
  59357. },
  59358. resolveStory: (storyId, refId) => {
  59359. let { refs, index: index4 } = store2.getState();
  59360. if (!(refId && !refs[refId]))
  59361. return refId ? refs?.[refId]?.index?.[storyId] ?? void 0 : index4 ? index4[storyId] : void 0;
  59362. },
  59363. getCurrentStoryData: () => {
  59364. let { storyId, refId } = store2.getState();
  59365. return api.getData(storyId, refId);
  59366. },
  59367. getIndex: () => {
  59368. let { internal_index } = store2.getState();
  59369. return internal_index;
  59370. },
  59371. getParameters: (storyIdOrCombo, parameterName) => {
  59372. let { storyId, refId } = typeof storyIdOrCombo == "string" ? { storyId: storyIdOrCombo, refId: void 0 } : storyIdOrCombo, data = api.getData(storyId, refId);
  59373. if (["story", "docs"].includes(data?.type)) {
  59374. let { parameters: parameters2 } = data;
  59375. if (parameters2)
  59376. return parameterName ? parameters2[parameterName] : parameters2;
  59377. }
  59378. return null;
  59379. },
  59380. getCurrentParameter: (parameterName) => {
  59381. let { storyId, refId } = store2.getState();
  59382. return api.getParameters({ storyId, refId }, parameterName) || void 0;
  59383. },
  59384. jumpToComponent: (direction) => {
  59385. let { filteredIndex, storyId, refs, refId } = store2.getState();
  59386. if (!api.getData(storyId, refId))
  59387. return;
  59388. let hash4 = refId ? refs[refId].filteredIndex || {} : filteredIndex;
  59389. if (!hash4)
  59390. return;
  59391. let result = api.findSiblingStoryId(storyId, hash4, direction, !0);
  59392. result && api.selectStory(result, void 0, { ref: refId });
  59393. },
  59394. jumpToStory: (direction) => {
  59395. let { filteredIndex, storyId, refs, refId } = store2.getState(), story = api.getData(storyId, refId);
  59396. if (!story)
  59397. return;
  59398. let hash4 = story.refId ? refs[story.refId].filteredIndex : filteredIndex;
  59399. if (!hash4)
  59400. return;
  59401. let result = api.findSiblingStoryId(storyId, hash4, direction, !1);
  59402. result && api.selectStory(result, void 0, { ref: refId });
  59403. },
  59404. selectFirstStory: () => {
  59405. let state3 = store2.getState();
  59406. if (hasActiveFilters(state3)) {
  59407. let { filteredIndex } = state3;
  59408. if (!filteredIndex)
  59409. return;
  59410. let firstStory2 = Object.keys(filteredIndex).find(
  59411. (id) => filteredIndex[id].type === "story"
  59412. );
  59413. firstStory2 && api.selectStory(firstStory2);
  59414. return;
  59415. }
  59416. let { index: index4 } = state3;
  59417. if (!index4)
  59418. return;
  59419. let firstStory = Object.keys(index4).find((id) => index4[id].type === "story");
  59420. if (firstStory) {
  59421. api.selectStory(firstStory);
  59422. return;
  59423. }
  59424. navigateWithQueryParams("/");
  59425. },
  59426. selectStory: (titleOrId = void 0, name = void 0, options = {}) => {
  59427. let { ref } = options, { storyId, index: index4, filteredIndex, refs, settings } = store2.getState(), gotoStory = (entry) => entry?.type === "docs" || entry?.type === "story" ? (store2.setState({ settings: { ...settings, lastTrackedStoryId: entry.id } }), navigateWithQueryParams(
  59428. `/${entry.type}/${entry.refId ? `${entry.refId}_${entry.id}` : entry.id}`
  59429. ), !0) : !1, kindSlug = storyId?.split("--", 2)[0], hash4 = ref ? refs[ref].index : index4, filteredHash = ref ? refs[ref].filteredIndex : filteredIndex;
  59430. if (!(!hash4 || !filteredHash))
  59431. if (name)
  59432. if (!titleOrId)
  59433. gotoStory(hash4[toId(kindSlug, name)]);
  59434. else {
  59435. let id = ref ? `${ref}_${toId(titleOrId, name)}` : toId(titleOrId, name);
  59436. if (hash4[id])
  59437. gotoStory(hash4[id]);
  59438. else {
  59439. let entry = hash4[sanitize(titleOrId)];
  59440. if (entry?.type === "component") {
  59441. let foundId = entry.children.find((childId) => hash4[childId].name === name);
  59442. gotoStory(foundId ? hash4[foundId] : void 0);
  59443. }
  59444. }
  59445. }
  59446. else {
  59447. let entry = titleOrId ? hash4[titleOrId] || hash4[sanitize(titleOrId)] : hash4[kindSlug];
  59448. if (!entry)
  59449. throw new Error(`Unknown id or title: '${titleOrId}'`);
  59450. gotoStory(entry) || gotoStory(api.findLeafEntry(filteredHash, entry.id));
  59451. }
  59452. },
  59453. findLeafEntry(index4, storyId) {
  59454. let entry = index4[storyId];
  59455. if (!entry)
  59456. return;
  59457. if (entry.type === "docs" || entry.type === "story")
  59458. return entry;
  59459. let childStoryId = entry.children.find((childId) => index4[childId]);
  59460. return childStoryId ? api.findLeafEntry(index4, childStoryId) : void 0;
  59461. },
  59462. findLeafStoryId(index4, storyId) {
  59463. return api.findLeafEntry(index4, storyId)?.id;
  59464. },
  59465. findAllLeafStoryIds(entryId) {
  59466. let { index: index4 } = store2.getState();
  59467. if (!index4)
  59468. return [];
  59469. let findChildEntriesRecursively = (currentEntryId, results = []) => {
  59470. let node2 = index4[currentEntryId];
  59471. return node2 && (node2.type === "story" && results.push(node2.id), "children" in node2 && node2.children?.forEach((childId) => findChildEntriesRecursively(childId, results))), results;
  59472. };
  59473. return findChildEntriesRecursively(entryId, []);
  59474. },
  59475. findSiblingStoryId(storyId, index4, direction, toSiblingGroup) {
  59476. if (toSiblingGroup) {
  59477. let lookupList2 = getComponentLookupList(index4), position3 = lookupList2.findIndex((i) => i.includes(storyId));
  59478. return position3 === lookupList2.length - 1 && direction > 0 || position3 === 0 && direction < 0 ? void 0 : lookupList2[position3 + direction] ? lookupList2[position3 + direction][0] : void 0;
  59479. }
  59480. let lookupList = getStoriesLookupList(index4), position2 = lookupList.indexOf(storyId);
  59481. if (!(position2 === lookupList.length - 1 && direction > 0) && !(position2 === 0 && direction < 0))
  59482. return lookupList[position2 + direction];
  59483. },
  59484. updateStoryArgs: (story, updatedArgs) => {
  59485. let { id: storyId, refId } = story;
  59486. provider.channel?.emit(UPDATE_STORY_ARGS, {
  59487. storyId,
  59488. updatedArgs,
  59489. options: { target: refId }
  59490. });
  59491. },
  59492. resetStoryArgs: (story, argNames) => {
  59493. let { id: storyId, refId } = story;
  59494. provider.channel?.emit(RESET_STORY_ARGS, {
  59495. storyId,
  59496. argNames,
  59497. options: { target: refId }
  59498. });
  59499. },
  59500. fetchIndex: async () => {
  59501. try {
  59502. let result = await fetch3(STORY_INDEX_PATH);
  59503. if (result.status !== 200)
  59504. throw new Error(await result.text());
  59505. let storyIndex = await result.json();
  59506. if (storyIndex.v < 3) {
  59507. logger.warn(`Skipping story index with version v${storyIndex.v}, awaiting SET_STORIES.`);
  59508. return;
  59509. }
  59510. await api.setIndex(storyIndex);
  59511. } catch (err) {
  59512. await store2.setState({ indexError: err });
  59513. }
  59514. },
  59515. // The story index we receive on SET_INDEX is "prepared" in that it has parameters
  59516. // The story index we receive on fetchStoryIndex is not, but all the prepared fields are optional
  59517. // so we can cast one to the other easily enough
  59518. setIndex: async (input2) => {
  59519. let { filteredIndex: oldFilteredHash, index: oldHash, filters } = store2.getState(), allStatuses = fullStatusStore.getAll(), newFilteredHash = transformStoryIndexToStoriesHash(input2, {
  59520. provider,
  59521. docsOptions,
  59522. filters,
  59523. allStatuses,
  59524. statusFilterKey: STATUS_FILTER
  59525. }), newHash = transformStoryIndexToStoriesHash(input2, {
  59526. provider,
  59527. docsOptions,
  59528. filters: {},
  59529. allStatuses
  59530. });
  59531. await store2.setState({
  59532. internal_index: input2,
  59533. filteredIndex: addPreparedStories(newFilteredHash, oldFilteredHash),
  59534. index: addPreparedStories(newHash, oldHash),
  59535. indexError: void 0
  59536. });
  59537. },
  59538. // FIXME: is there a bug where filtered stories get added back in on updateStory???
  59539. updateStory: async (storyId, update2, ref) => {
  59540. if (ref) {
  59541. let { id: refId, index: index4, filteredIndex } = ref;
  59542. index4 && index4[storyId] && (index4[storyId] = {
  59543. ...index4[storyId],
  59544. ...update2
  59545. }), filteredIndex && filteredIndex[storyId] && (filteredIndex[storyId] = {
  59546. ...filteredIndex[storyId],
  59547. ...update2
  59548. }), await fullAPI.updateRef(refId, { index: index4, filteredIndex });
  59549. } else {
  59550. let { index: index4, filteredIndex } = store2.getState();
  59551. index4 && index4[storyId] && (index4[storyId] = {
  59552. ...index4[storyId],
  59553. ...update2
  59554. }), filteredIndex && filteredIndex[storyId] && (filteredIndex[storyId] = {
  59555. ...filteredIndex[storyId],
  59556. ...update2
  59557. }), (index4 || filteredIndex) && await store2.setState({ index: index4, filteredIndex });
  59558. }
  59559. },
  59560. updateDocs: async (docsId, update2, ref) => {
  59561. if (ref) {
  59562. let { id: refId, index: index4, filteredIndex } = ref;
  59563. index4[docsId] = {
  59564. ...index4[docsId],
  59565. ...update2
  59566. }, filteredIndex[docsId] = {
  59567. ...filteredIndex[docsId],
  59568. ...update2
  59569. }, await fullAPI.updateRef(refId, { index: index4, filteredIndex });
  59570. } else {
  59571. let { index: index4, filteredIndex } = store2.getState();
  59572. index4 && (index4[docsId] = {
  59573. ...index4[docsId],
  59574. ...update2
  59575. }), filteredIndex && (filteredIndex[docsId] = {
  59576. ...filteredIndex[docsId],
  59577. ...update2
  59578. }), (index4 || filteredIndex) && await store2.setState({ index: index4, filteredIndex });
  59579. }
  59580. },
  59581. setPreviewInitialized: async (ref) => {
  59582. ref ? fullAPI.updateRef(ref.id, { previewInitialized: !0 }) : store2.setState({ previewInitialized: !0 });
  59583. },
  59584. experimental_setFilter: async (id, filterFunction) => {
  59585. await store2.setState({ filters: { ...store2.getState().filters, [id]: filterFunction } });
  59586. let { internal_index: index4 } = store2.getState();
  59587. if (!index4)
  59588. return;
  59589. await api.setIndex(index4);
  59590. let refs = await fullAPI.getRefs();
  59591. for (let [refId, { internal_index, ...ref }] of Object.entries(refs))
  59592. await fullAPI.setRef(refId, { ...ref, storyIndex: internal_index }, !0);
  59593. provider.channel?.emit(SET_FILTER, { id });
  59594. },
  59595. resetTagFilters: async () => {
  59596. await persistFilters((s3) => ({
  59597. includedTagFilters: s3.defaultIncludedTagFilters,
  59598. excludedTagFilters: s3.defaultExcludedTagFilters
  59599. })), await recomputeTagsFilter();
  59600. },
  59601. setAllTagFilters: async (included, excluded) => {
  59602. await persistFilters({ includedTagFilters: included, excludedTagFilters: excluded }), await recomputeTagsFilter();
  59603. },
  59604. addTagFilters: async (tags3, excluded) => {
  59605. await addFilters("tag", tags3, excluded), await recomputeTagsFilter(), tags3.length === 1 && BUILT_IN_TAG_IDS.has(tags3[0]) && emitFilterTelemetry("interaction", {
  59606. filterType: "tag",
  59607. filterId: tags3[0],
  59608. action: excluded ? "exclude" : "include"
  59609. });
  59610. },
  59611. removeTagFilters: async (tags3) => {
  59612. await removeFilters("tag", tags3), await recomputeTagsFilter(), tags3.length === 1 && BUILT_IN_TAG_IDS.has(tags3[0]) && emitFilterTelemetry("interaction", {
  59613. filterType: "tag",
  59614. filterId: tags3[0],
  59615. action: "remove"
  59616. });
  59617. },
  59618. resetStatusFilters: async () => {
  59619. await persistFilters({ includedStatusFilters: [], excludedStatusFilters: [] }), await recomputeStatusFilter();
  59620. },
  59621. setAllStatusFilters: async (included, excluded) => {
  59622. let prevState = store2.getState(), prevIncluded = new Set(prevState.includedStatusFilters ?? []), prevExcluded = new Set(prevState.excludedStatusFilters ?? []), nextIncluded = new Set(included), nextExcluded = new Set(excluded);
  59623. await persistFilters({ includedStatusFilters: included, excludedStatusFilters: excluded }), await recomputeStatusFilter();
  59624. let changedIds = /* @__PURE__ */ new Set([
  59625. ...prevIncluded,
  59626. ...prevExcluded,
  59627. ...nextIncluded,
  59628. ...nextExcluded
  59629. ]);
  59630. for (let id of changedIds) {
  59631. let wasIncluded = prevIncluded.has(id), wasExcluded = prevExcluded.has(id), isIncluded = nextIncluded.has(id), isExcluded = nextExcluded.has(id);
  59632. if (wasIncluded === isIncluded && wasExcluded === isExcluded)
  59633. continue;
  59634. let action2;
  59635. isIncluded ? action2 = "include" : isExcluded ? action2 = "exclude" : action2 = "remove", emitFilterTelemetry("interaction", {
  59636. filterType: "status",
  59637. filterId: id,
  59638. action: action2
  59639. });
  59640. }
  59641. },
  59642. addStatusFilters: async (statuses2, excluded) => {
  59643. await addFilters("status", statuses2, excluded), await recomputeStatusFilter(), statuses2.length === 1 && emitFilterTelemetry("interaction", {
  59644. filterType: "status",
  59645. filterId: statuses2[0],
  59646. action: excluded ? "exclude" : "include"
  59647. });
  59648. },
  59649. removeStatusFilters: async (statuses2) => {
  59650. await removeFilters("status", statuses2), await recomputeStatusFilter(), statuses2.length === 1 && emitFilterTelemetry("interaction", {
  59651. filterType: "status",
  59652. filterId: statuses2[0],
  59653. action: "remove"
  59654. });
  59655. }
  59656. }, recomputeTagsFilter = () => {
  59657. let { includedTagFilters, excludedTagFilters } = store2.getState();
  59658. return api.experimental_setFilter(
  59659. TAGS_FILTER,
  59660. computeTagsFilterFn(includedTagFilters, excludedTagFilters)
  59661. );
  59662. }, recomputeStatusFilter = () => {
  59663. let { includedStatusFilters, excludedStatusFilters } = store2.getState();
  59664. return api.experimental_setFilter(
  59665. STATUS_FILTER,
  59666. computeStatusFilterFn(includedStatusFilters ?? [], excludedStatusFilters ?? [])
  59667. );
  59668. };
  59669. provider.channel?.on(
  59670. STORY_SPECIFIED,
  59671. function({
  59672. storyId,
  59673. viewMode
  59674. }) {
  59675. let { sourceType } = getEventMetadata(this, fullAPI);
  59676. if (sourceType === "local") {
  59677. let state3 = store2.getState(), isCanvasRoute = state3.path === "/" || state3.viewMode === "story" || state3.viewMode === "docs", stateHasSelection = state3.viewMode && state3.storyId, stateSelectionDifferent = state3.viewMode !== viewMode || state3.storyId !== storyId, { type: type5 } = state3.index?.[state3.storyId] || {}, isStory2 = !(type5 === "root" || type5 === "component" || type5 === "group");
  59678. if (isCanvasRoute) {
  59679. if (hasActiveFilters(state3) && !stateHasSelection) {
  59680. let { filteredIndex } = state3;
  59681. if (!(filteredIndex && filteredIndex[storyId]?.type === "story")) {
  59682. let firstFiltered = filteredIndex ? Object.keys(filteredIndex).find((id) => {
  59683. let entry = filteredIndex[id];
  59684. return entry.type === "story" || entry.type === "docs";
  59685. }) : void 0;
  59686. firstFiltered && navigateWithQueryParams(`/${viewMode}/${firstFiltered}`);
  59687. return;
  59688. }
  59689. }
  59690. stateHasSelection && stateSelectionDifferent && isStory2 ? provider.channel?.emit(SET_CURRENT_STORY, {
  59691. storyId: state3.storyId,
  59692. viewMode: state3.viewMode
  59693. }) : stateSelectionDifferent && navigateWithQueryParams(`/${viewMode}/${storyId}`);
  59694. }
  59695. }
  59696. }
  59697. ), provider.channel?.on(CURRENT_STORY_WAS_SET, function() {
  59698. let { ref } = getEventMetadata(this, fullAPI);
  59699. api.setPreviewInitialized(ref);
  59700. }), provider.channel?.on(STORY_CHANGED, function() {
  59701. let { sourceType } = getEventMetadata(this, fullAPI);
  59702. if (sourceType === "local") {
  59703. let options = api.getCurrentParameter("options");
  59704. options && fullAPI.setOptions(removeRemovedOptions(options));
  59705. }
  59706. }), provider.channel?.on(
  59707. STORY_PREPARED,
  59708. function({ id, ...update2 }) {
  59709. let { ref, sourceType } = getEventMetadata(this, fullAPI);
  59710. if (api.updateStory(id, { ...update2, prepared: !0 }, ref), !ref && !store2.getState().hasCalledSetOptions) {
  59711. let { options } = update2.parameters;
  59712. fullAPI.setOptions(removeRemovedOptions(options)), store2.setState({ hasCalledSetOptions: !0 });
  59713. }
  59714. if (sourceType === "local") {
  59715. let { storyId, index: index4, refId } = store2.getState();
  59716. if (!index4)
  59717. return;
  59718. let toBePreloaded = Array.from(
  59719. /* @__PURE__ */ new Set([
  59720. api.findSiblingStoryId(storyId, index4, 1, !0),
  59721. api.findSiblingStoryId(storyId, index4, -1, !0)
  59722. ])
  59723. ).filter(Boolean);
  59724. provider.channel?.emit(PRELOAD_ENTRIES, {
  59725. ids: toBePreloaded,
  59726. options: { target: refId }
  59727. });
  59728. }
  59729. }
  59730. ), provider.channel?.on(
  59731. DOCS_PREPARED,
  59732. function({ id, ...update2 }) {
  59733. let { ref } = getEventMetadata(this, fullAPI);
  59734. api.updateStory(id, { ...update2, prepared: !0 }, ref);
  59735. }
  59736. ), provider.channel?.on(SET_INDEX, function(index4) {
  59737. let { ref } = getEventMetadata(this, fullAPI);
  59738. if (ref)
  59739. fullAPI.setRef(ref.id, { ...ref, storyIndex: index4 }, !0);
  59740. else {
  59741. api.setIndex(index4);
  59742. let options = api.getCurrentParameter("options");
  59743. fullAPI.setOptions(removeRemovedOptions(options));
  59744. }
  59745. }), provider.channel?.on(SET_STORIES, function(data) {
  59746. let { ref } = getEventMetadata(this, fullAPI), setStoriesData = data.v ? denormalizeStoryParameters(data) : data.stories;
  59747. if (ref)
  59748. fullAPI.setRef(ref.id, { ...ref, setStoriesData }, !0);
  59749. else
  59750. throw new Error("Cannot call SET_STORIES for local frame");
  59751. }), provider.channel?.on(
  59752. SELECT_STORY,
  59753. function({
  59754. kind,
  59755. title = kind,
  59756. story,
  59757. name = story,
  59758. storyId,
  59759. ...rest
  59760. }) {
  59761. let { ref } = getEventMetadata(this, fullAPI);
  59762. ref ? fullAPI.selectStory(storyId || title, name, { ...rest, ref: ref.id }) : fullAPI.selectStory(storyId || title, name, rest);
  59763. }
  59764. ), provider.channel?.on(
  59765. STORY_ARGS_UPDATED,
  59766. function({ storyId, args }) {
  59767. let { ref } = getEventMetadata(this, fullAPI);
  59768. api.updateStory(storyId, { args }, ref);
  59769. }
  59770. ), provider.channel?.on(CONFIG_ERROR, function(err) {
  59771. let { ref } = getEventMetadata(this, fullAPI);
  59772. api.setPreviewInitialized(ref);
  59773. }), provider.channel?.on(STORY_MISSING, function(err) {
  59774. let { ref } = getEventMetadata(this, fullAPI);
  59775. api.setPreviewInitialized(ref);
  59776. }), provider.channel?.on(SET_CONFIG, () => {
  59777. let configFilters2 = provider.getConfig()?.sidebar?.filters || {}, {
  59778. includedTagFilters,
  59779. excludedTagFilters,
  59780. includedStatusFilters,
  59781. excludedStatusFilters,
  59782. tagPresets: tagPresets2
  59783. } = store2.getState();
  59784. store2.setState({
  59785. filters: {
  59786. ...store2.getState().filters,
  59787. ...configFilters2,
  59788. [STATIC_FILTER]: computeStaticFilterFn(tagPresets2),
  59789. [TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters),
  59790. [STATUS_FILTER]: computeStatusFilterFn(includedStatusFilters, excludedStatusFilters)
  59791. }
  59792. });
  59793. }), fullStatusStore.onAllStatusChange(async () => {
  59794. recomputeStatusFilter();
  59795. let { internal_index: index4 } = store2.getState();
  59796. if (!index4)
  59797. return;
  59798. await api.setIndex(index4);
  59799. let refs = await fullAPI.getRefs();
  59800. Object.entries(refs).forEach(([refId, { internal_index, ...ref }]) => {
  59801. fullAPI.setRef(refId, { ...ref, storyIndex: internal_index }, !0);
  59802. });
  59803. });
  59804. let configFilters = provider.getConfig()?.sidebar?.filters || {}, tagPresets = scope.TAGS_OPTIONS || {}, defaultTags = getDefaultTagsFromPreset(tagPresets), { tags: tags2, statuses } = queryFromLocation(location4 ?? { search: "" }), parsedTags = parseTagsParam(tags2), hasTagsParam = tags2 !== void 0, initialIncluded = hasTagsParam ? parsedTags.included : defaultTags.included, initialExcluded = hasTagsParam ? parsedTags.excluded : defaultTags.excluded, parsedStatuses = parseStatusesParam(statuses), initialIncludedStatuses = parsedStatuses.included, initialExcludedStatuses = parsedStatuses.excluded, initialFilters = {
  59805. ...configFilters,
  59806. [STATIC_FILTER]: computeStaticFilterFn(tagPresets),
  59807. [TAGS_FILTER]: computeTagsFilterFn(initialIncluded, initialExcluded),
  59808. [STATUS_FILTER]: computeStatusFilterFn(initialIncludedStatuses, initialExcludedStatuses)
  59809. };
  59810. return {
  59811. api,
  59812. state: {
  59813. storyId: initialStoryId,
  59814. viewMode: initialViewMode,
  59815. hasCalledSetOptions: !1,
  59816. previewInitialized: !1,
  59817. filters: initialFilters,
  59818. tagPresets,
  59819. defaultIncludedTagFilters: defaultTags.included,
  59820. defaultExcludedTagFilters: defaultTags.excluded,
  59821. includedTagFilters: initialIncluded,
  59822. excludedTagFilters: initialExcluded,
  59823. includedStatusFilters: initialIncludedStatuses,
  59824. excludedStatusFilters: initialExcludedStatuses
  59825. },
  59826. init: async () => {
  59827. if (provider.channel?.on(STORY_INDEX_INVALIDATED, () => api.fetchIndex()), await api.fetchIndex(), urlFilterTelemetryEmitted)
  59828. return;
  59829. urlFilterTelemetryEmitted = !0;
  59830. let hasBuiltInTagFilters = initialIncluded.some((id) => BUILT_IN_TAG_IDS.has(id)) || initialExcluded.some((id) => BUILT_IN_TAG_IDS.has(id)), hasStatusFilters = !!globalThis?.FEATURES?.changeDetection && (initialIncludedStatuses.length > 0 || initialExcludedStatuses.length > 0);
  59831. (hasBuiltInTagFilters || hasStatusFilters) && emitFilterTelemetry("url");
  59832. }
  59833. };
  59834. };
  59835. // src/manager-api/modules/url.ts
  59836. var url_exports = {};
  59837. __export(url_exports, {
  59838. init: () => init13
  59839. });
  59840. init_dist();
  59841. var import_picoquery5 = __toESM(require_main(), 1);
  59842. var parseBoolean = (value) => {
  59843. if (value === "true" || value === "1")
  59844. return !0;
  59845. if (value === "false" || value === "0")
  59846. return !1;
  59847. }, parseSerializedParam = (param) => Object.fromEntries(
  59848. param.split(";").map((pair) => pair.split(":")).map(([key, value]) => [key, encodeURIComponent(value)]).filter(([key, value]) => key && value)
  59849. ), mergeSerializedParams = (params, extraParams) => {
  59850. let pairs = parseSerializedParam(params), extra = parseSerializedParam(extraParams);
  59851. return Object.entries({ ...pairs, ...extra }).map(([key, value]) => `${key}:${value}`).join(";");
  59852. }, prevParams, initialUrlSupport = ({
  59853. state: { location: location4, path, viewMode, storyId: storyIdFromUrl },
  59854. singleStory
  59855. }) => {
  59856. let {
  59857. full,
  59858. panel,
  59859. nav,
  59860. shortcuts,
  59861. addonPanel,
  59862. tabs,
  59863. path: queryPath,
  59864. ...otherParams
  59865. // the rest gets passed to the iframe
  59866. } = queryFromLocation(location4), navSize, bottomPanelHeight, rightPanelWidth;
  59867. parseBoolean(full) === !0 ? (navSize = 0, bottomPanelHeight = 0, rightPanelWidth = 0) : parseBoolean(full) === !1 && (navSize = DEFAULT_NAV_SIZE, bottomPanelHeight = DEFAULT_BOTTOM_PANEL_HEIGHT, rightPanelWidth = DEFAULT_RIGHT_PANEL_WIDTH), singleStory || (parseBoolean(nav) === !0 && (navSize = DEFAULT_NAV_SIZE), parseBoolean(nav) === !1 && (navSize = 0)), parseBoolean(panel) === !1 && (bottomPanelHeight = 0, rightPanelWidth = 0);
  59868. let layout = {
  59869. navSize,
  59870. bottomPanelHeight,
  59871. rightPanelWidth,
  59872. panelPosition: ["right", "bottom"].includes(panel) ? panel : void 0,
  59873. showTabs: parseBoolean(tabs)
  59874. }, ui = {
  59875. enableShortcuts: parseBoolean(shortcuts)
  59876. }, selectedPanel = addonPanel || void 0, storyId = storyIdFromUrl, customQueryParams = dequal(prevParams, otherParams) ? prevParams : otherParams;
  59877. return prevParams = customQueryParams, { viewMode, layout, ui, selectedPanel, location: location4, path, customQueryParams, storyId };
  59878. }, init13 = (moduleArgs) => {
  59879. let { store: store2, navigate, provider, fullAPI } = moduleArgs, navigateTo = (path, queryParams = {}, options = {}) => navigate(buildNavigationUrl(path, queryParams), options), api = {
  59880. getStoryHrefs(storyId, options = {}) {
  59881. let { id: currentStoryId, refId: currentRefId } = fullAPI.getCurrentStoryData() ?? {}, isCurrentStory = storyId === currentStoryId && options.refId === currentRefId, { customQueryParams, location: location4, refs } = store2.getState(), {
  59882. base,
  59883. inheritArgs = isCurrentStory,
  59884. inheritGlobals = !0,
  59885. queryParams = {},
  59886. refId,
  59887. viewMode = "story"
  59888. } = options;
  59889. if (refId && !refs[refId])
  59890. throw new Error(`Invalid refId: ${refId}`);
  59891. let pathname = location4.pathname || "/", originAddress = scope.window.location.origin + pathname, networkAddress = scope.STORYBOOK_NETWORK_ADDRESS ?? originAddress, managerBase = base === "origin" ? originAddress : base === "network" ? networkAddress : pathname, previewBase = refId ? refs[refId].url + "/iframe.html" : scope.PREVIEW_URL || `${managerBase.replace(/\/[^/]*\.html$/, "").replace(/\/?$/, "/")}iframe.html`, refParam = refId ? `&refId=${encodeURIComponent(refId)}` : "", { args = "", globals = "", ...otherParams } = queryParams, argsParam = inheritArgs ? mergeSerializedParams(customQueryParams?.args ?? "", args) : args, globalsParam = inheritGlobals ? mergeSerializedParams(customQueryParams?.globals ?? "", globals) : globals, customManagerParams = (0, import_picoquery5.stringify)(otherParams, {
  59892. nesting: !0,
  59893. nestingSyntax: "js"
  59894. }), customPreviewParams = (0, import_picoquery5.stringify)(omit(otherParams, ["id", "viewMode"]), {
  59895. nesting: !0,
  59896. nestingSyntax: "js"
  59897. });
  59898. return argsParam = argsParam && `&args=${argsParam}`, globalsParam = globalsParam && `&globals=${globalsParam}`, customManagerParams = customManagerParams && `&${customManagerParams}`, customPreviewParams = customPreviewParams && `&${customPreviewParams}`, {
  59899. managerHref: `${managerBase}?path=/${viewMode}/${refId ? `${refId}_` : ""}${storyId}${argsParam}${globalsParam}${customManagerParams}`,
  59900. previewHref: `${previewBase}?id=${storyId}&viewMode=${viewMode}${refParam}${argsParam}${refId ? "" : globalsParam}${customPreviewParams}`
  59901. };
  59902. },
  59903. getQueryParam(key) {
  59904. let { customQueryParams } = store2.getState();
  59905. return customQueryParams ? customQueryParams[key] : void 0;
  59906. },
  59907. getUrlState() {
  59908. let { location: location4, path, customQueryParams, storyId, url, viewMode } = store2.getState();
  59909. return {
  59910. path,
  59911. hash: location4?.hash ?? "",
  59912. queryParams: customQueryParams,
  59913. storyId,
  59914. url,
  59915. viewMode
  59916. };
  59917. },
  59918. setQueryParams(input2) {
  59919. let { customQueryParams } = store2.getState(), update2 = { ...customQueryParams };
  59920. for (let [key, value] of Object.entries(input2))
  59921. value == null ? delete update2[key] : update2[key] = value;
  59922. dequal(customQueryParams, update2) || (store2.setState({ customQueryParams: update2 }), provider.channel?.emit(UPDATE_QUERY_PARAMS, update2));
  59923. },
  59924. applyQueryParams(input2, options) {
  59925. let { path, hash: hash4 = "", queryParams } = api.getUrlState();
  59926. navigateTo(`${path}${hash4}`, { ...queryParams, ...input2 }, options), api.setQueryParams(input2);
  59927. },
  59928. navigateUrl(url, options) {
  59929. navigate(url, { plain: !0, ...options });
  59930. }
  59931. }, updateArgsParam = () => {
  59932. let { path, hash: hash4 = "", queryParams, viewMode } = api.getUrlState();
  59933. if (viewMode !== "story")
  59934. return;
  59935. let currentStory = fullAPI.getCurrentStoryData();
  59936. if (currentStory?.type !== "story")
  59937. return;
  59938. let { args, initialArgs } = currentStory, argsString = buildArgsParam(initialArgs, args);
  59939. navigateTo(`${path}${hash4}`, { ...queryParams, args: argsString || null }, { replace: !0 }), api.setQueryParams({ args: argsString || null });
  59940. };
  59941. provider.channel?.on(SET_CURRENT_STORY, () => updateArgsParam());
  59942. let handleOrId;
  59943. return provider.channel?.on(STORY_ARGS_UPDATED, () => {
  59944. "requestIdleCallback" in scope.window ? (handleOrId && scope.window.cancelIdleCallback(handleOrId), handleOrId = scope.window.requestIdleCallback(updateArgsParam, { timeout: 1e3 })) : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100));
  59945. }), provider.channel?.on(GLOBALS_UPDATED, ({ userGlobals, initialGlobals: initialGlobals5 }) => {
  59946. let { path, hash: hash4 = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals5, merge_default(initialGlobals5, userGlobals));
  59947. navigateTo(
  59948. `${path}${hash4}`,
  59949. { ...queryParams, globals: globalsString || null },
  59950. { replace: !0 }
  59951. ), api.setQueryParams({ globals: globalsString || null });
  59952. }), provider.channel?.on(NAVIGATE_URL, (url, options) => {
  59953. api.navigateUrl(url, options);
  59954. }), {
  59955. api,
  59956. state: initialUrlSupport(moduleArgs),
  59957. init: () => {
  59958. store2.registerPersistenceHandler("url", (_patch, serialize3) => {
  59959. if (serialize3) {
  59960. let params = serialize3(store2.getState());
  59961. api.applyQueryParams(params, { replace: !0 });
  59962. }
  59963. });
  59964. }
  59965. };
  59966. };
  59967. // src/manager-api/modules/versions.ts
  59968. var versions_exports = {};
  59969. __export(versions_exports, {
  59970. init: () => init14
  59971. });
  59972. init_dist();
  59973. var import_memoizerific9 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
  59974. // src/manager-api/version.ts
  59975. var version = "10.4.6";
  59976. // src/manager-api/modules/versions.ts
  59977. var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific9.default)(1)(() => {
  59978. try {
  59979. return { ...JSON.parse(VERSIONCHECK).data || {} };
  59980. } catch {
  59981. return {};
  59982. }
  59983. }), normalizeRendererName = (renderer) => renderer.includes("vue") ? "vue" : renderer, init14 = ({ store: store2 }) => {
  59984. let { dismissedVersionNotification } = store2.getState(), state3 = {
  59985. versions: {
  59986. current: {
  59987. version
  59988. },
  59989. ...getVersionCheckData()
  59990. },
  59991. dismissedVersionNotification
  59992. }, api = {
  59993. getCurrentVersion: () => {
  59994. let {
  59995. versions: { current }
  59996. } = store2.getState();
  59997. return current;
  59998. },
  59999. getLatestVersion: () => {
  60000. let {
  60001. versions: { latest, next: next2, current }
  60002. } = store2.getState();
  60003. return current && import_semver.default.prerelease(current.version) && next2 ? latest && import_semver.default.gt(latest.version, next2.version) ? latest : next2 : latest;
  60004. },
  60005. // TODO: Move this to it's own "info" module later
  60006. getDocsUrl: ({ asset, subpath = asset, versioned, renderer, ref = "ui" }) => {
  60007. let { versions } = store2.getState(), latestVersion = versions.latest?.version, currentVersion = versions.current?.version, activeVersion = currentVersion?.startsWith("0.0.0") && latestVersion || currentVersion, url = `https://storybook.js.org/${asset ? "docs-assets" : "docs"}/`;
  60008. if (asset && activeVersion)
  60009. url += `${import_semver.default.major(activeVersion)}.${import_semver.default.minor(activeVersion)}/`;
  60010. else if (versioned && activeVersion && latestVersion) {
  60011. let versionDiff = import_semver.default.diff(latestVersion, activeVersion);
  60012. versionDiff === "patch" || versionDiff === null || (url += `${import_semver.default.major(activeVersion)}.${import_semver.default.minor(activeVersion)}/`);
  60013. }
  60014. let [cleanedSubpath, hash4] = subpath?.split("#") || [];
  60015. if (cleanedSubpath && (url += asset ? cleanedSubpath : `${cleanedSubpath}/`), renderer && typeof scope.STORYBOOK_RENDERER < "u") {
  60016. let rendererName = scope.STORYBOOK_RENDERER;
  60017. rendererName && (url += `?renderer=${normalizeRendererName(rendererName)}`);
  60018. }
  60019. return ref && (url += `${url.includes("?") ? "&" : "?"}ref=${ref}`), hash4 && (url += `#${hash4}`), url;
  60020. },
  60021. versionUpdateAvailable: () => {
  60022. let latest = api.getLatestVersion(), current = api.getCurrentVersion();
  60023. if (latest) {
  60024. if (!latest.version || !current.version)
  60025. return !0;
  60026. let actualCurrent = !!import_semver.default.prerelease(current.version) ? `${import_semver.default.major(current.version)}.${import_semver.default.minor(current.version)}.${import_semver.default.patch(
  60027. current.version
  60028. )}` : current.version, diff2 = import_semver.default.diff(actualCurrent, latest.version);
  60029. return import_semver.default.gt(latest.version, actualCurrent) && diff2 !== "patch" && !diff2.includes("pre");
  60030. }
  60031. return !1;
  60032. }
  60033. };
  60034. return { init: async () => {
  60035. let { versions = {} } = store2.getState(), { latest, next: next2 } = getVersionCheckData();
  60036. await store2.setState({
  60037. versions: { ...versions, latest, next: next2 }
  60038. });
  60039. }, state: state3, api };
  60040. };
  60041. // src/manager-api/modules/whatsnew.tsx
  60042. var whatsnew_exports = {};
  60043. __export(whatsnew_exports, {
  60044. init: () => init15
  60045. });
  60046. var import_react22 = __toESM(require_react(), 1);
  60047. init_dist();
  60048. var WHATS_NEW_NOTIFICATION_ID = "whats-new", StorybookIcon2 = ({ color: color2 = "currentColor", size = 14 }) => import_react22.default.createElement(
  60049. "svg",
  60050. {
  60051. width: size,
  60052. height: size,
  60053. viewBox: "0 0 14 14",
  60054. fill: "none",
  60055. xmlns: "http://www.w3.org/2000/svg"
  60056. },
  60057. import_react22.default.createElement(
  60058. "path",
  60059. {
  60060. fillRule: "evenodd",
  60061. clipRule: "evenodd",
  60062. d: "M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",
  60063. fill: color2
  60064. }
  60065. )
  60066. ), init15 = ({ fullAPI, store: store2, provider }) => {
  60067. let state3 = {
  60068. whatsNewData: void 0
  60069. };
  60070. function setWhatsNewState(newState) {
  60071. store2.setState({ whatsNewData: newState }), state3.whatsNewData = newState;
  60072. }
  60073. let api = {
  60074. isWhatsNewUnread() {
  60075. return state3.whatsNewData?.status === "SUCCESS" && !state3.whatsNewData.postIsRead;
  60076. },
  60077. whatsNewHasBeenRead() {
  60078. state3.whatsNewData?.status === "SUCCESS" && (setWhatsNewCache({ lastReadPost: state3.whatsNewData.url }), setWhatsNewState({ ...state3.whatsNewData, postIsRead: !0 }), fullAPI.clearNotification(WHATS_NEW_NOTIFICATION_ID));
  60079. },
  60080. toggleWhatsNewNotifications() {
  60081. state3.whatsNewData?.status === "SUCCESS" && (setWhatsNewState({
  60082. ...state3.whatsNewData,
  60083. disableWhatsNewNotifications: !state3.whatsNewData.disableWhatsNewNotifications
  60084. }), provider.channel?.emit(TOGGLE_WHATS_NEW_NOTIFICATIONS, {
  60085. disableWhatsNewNotifications: state3.whatsNewData.disableWhatsNewNotifications
  60086. }));
  60087. }
  60088. };
  60089. function getLatestWhatsNewPost() {
  60090. return provider.channel?.emit(REQUEST_WHATS_NEW_DATA), new Promise(
  60091. (resolve) => provider.channel?.once(
  60092. RESULT_WHATS_NEW_DATA,
  60093. ({ data }) => resolve(data)
  60094. )
  60095. );
  60096. }
  60097. function setWhatsNewCache(cache) {
  60098. provider.channel?.emit(SET_WHATS_NEW_CACHE, cache);
  60099. }
  60100. return { init: async () => {
  60101. if (scope.CONFIG_TYPE !== "DEVELOPMENT")
  60102. return;
  60103. let whatsNewData = await getLatestWhatsNewPost();
  60104. setWhatsNewState(whatsNewData);
  60105. let urlState = fullAPI.getUrlState();
  60106. !(urlState?.path === "/onboarding" || urlState.queryParams?.onboarding === "true") && whatsNewData.status === "SUCCESS" && !whatsNewData.disableWhatsNewNotifications && whatsNewData.showNotification && fullAPI.addNotification({
  60107. id: WHATS_NEW_NOTIFICATION_ID,
  60108. link: "/settings/whats-new",
  60109. content: {
  60110. headline: whatsNewData.title,
  60111. subHeadline: "Learn what's new in Storybook"
  60112. },
  60113. icon: import_react22.default.createElement(StorybookIcon2, null),
  60114. onClear({ dismissed }) {
  60115. dismissed && setWhatsNewCache({ lastDismissedPost: whatsNewData.url });
  60116. }
  60117. });
  60118. }, state: state3, api };
  60119. };
  60120. // src/manager-api/store.ts
  60121. var import_store22 = __toESM(require_store2(), 1);
  60122. // src/manager-api/lib/store-setup.ts
  60123. var store_setup_default = (_) => {
  60124. _.fn("set", function(key, data) {
  60125. return _.set(
  60126. // @ts-expect-error('this' implicitly has type 'any')
  60127. this._area,
  60128. // @ts-expect-error('this' implicitly has type 'any')
  60129. this._in(key),
  60130. stringify(data, { maxDepth: 50 })
  60131. );
  60132. }), _.fn("get", function(key, alt) {
  60133. let value = _.get(this._area, this._in(key));
  60134. return value !== null ? parse(value) : alt || value;
  60135. });
  60136. };
  60137. // src/manager-api/store.ts
  60138. store_setup_default(import_store22.default._);
  60139. var STORAGE_KEY = "@storybook/manager/store";
  60140. function get3(storage) {
  60141. return storage.get(STORAGE_KEY) || {};
  60142. }
  60143. function set2(storage, value) {
  60144. return storage.set(STORAGE_KEY, value);
  60145. }
  60146. function update(storage, patch) {
  60147. let previous = get3(storage);
  60148. return set2(storage, { ...previous, ...patch });
  60149. }
  60150. var Store = class {
  60151. constructor({ allowPersistence, setState: setState2, getState: getState3 }) {
  60152. this.persistenceHandlers = /* @__PURE__ */ new Map();
  60153. this.upstreamPersistence = allowPersistence ?? !0, this.upstreamSetState = setState2, this.upstreamGetState = getState3;
  60154. }
  60155. registerPersistenceHandler(key, handler) {
  60156. this.persistenceHandlers.set(key, handler);
  60157. }
  60158. // The assumption is that this will be called once, to initialize the React state
  60159. // when the module is instantiated
  60160. getInitialState(base) {
  60161. for (let storage of [import_store22.default.local, import_store22.default.session]) {
  60162. let persisted = get3(storage);
  60163. if ("includedTagFilters" in persisted || "excludedTagFilters" in persisted) {
  60164. let { includedTagFilters: _i, excludedTagFilters: _e, ...rest } = persisted;
  60165. set2(storage, rest);
  60166. }
  60167. }
  60168. let local = get3(import_store22.default.local), session = get3(import_store22.default.session);
  60169. return { ...base, ...local, ...session };
  60170. }
  60171. getState() {
  60172. return this.upstreamGetState();
  60173. }
  60174. async setState(inputPatch, cbOrOptions, inputOptions) {
  60175. let callback, options;
  60176. typeof cbOrOptions == "function" ? (callback = cbOrOptions, options = inputOptions) : options = cbOrOptions;
  60177. let { persistence = "none" } = options || {}, patch = {}, delta = {};
  60178. typeof inputPatch == "function" ? patch = (state3) => (delta = inputPatch(state3), delta) : (patch = inputPatch, delta = patch);
  60179. let newState = await new Promise((resolve) => {
  60180. this.upstreamSetState(patch, () => {
  60181. resolve(this.getState());
  60182. });
  60183. });
  60184. if (persistence !== "none" && this.upstreamPersistence)
  60185. if (persistence === "url") {
  60186. let handler = this.persistenceHandlers.get("url");
  60187. handler && await handler(delta, options?.serialize);
  60188. } else {
  60189. let storage = persistence === "session" ? import_store22.default.session : import_store22.default.local;
  60190. await update(storage, delta);
  60191. }
  60192. return callback && callback(newState), newState;
  60193. }
  60194. };
  60195. // src/manager-api/lib/request-response.ts
  60196. var RequestResponseError = class extends Error {
  60197. constructor(message, payload) {
  60198. super(message);
  60199. this.payload = void 0;
  60200. this.payload = payload;
  60201. }
  60202. }, experimental_requestResponse = (channel, requestEvent, responseEvent, payload, timeout = 5e3) => {
  60203. let timeoutId;
  60204. return new Promise((resolve, reject) => {
  60205. let request = {
  60206. id: Math.random().toString(16).slice(2),
  60207. payload
  60208. }, responseHandler = (response) => {
  60209. response.id === request.id && (clearTimeout(timeoutId), channel.off(responseEvent, responseHandler), response.success ? resolve(response.payload) : reject(new RequestResponseError(response.error, response.payload)));
  60210. };
  60211. channel.emit(requestEvent, request), channel.on(responseEvent, responseHandler), timeoutId = setTimeout(() => {
  60212. channel.off(responseEvent, responseHandler), reject(new RequestResponseError("Timed out waiting for response"));
  60213. }, timeout);
  60214. });
  60215. };
  60216. // src/manager-api/root.tsx
  60217. var { ActiveTabs: ActiveTabs2 } = layout_exports;
  60218. var ManagerContext = createContext4({ api: void 0, state: initial_state_default({}) }), combineParameters2 = (...parameterSets) => noArrayMerge({}, ...parameterSets), ManagerProvider = class extends import_react23.Component {
  60219. constructor(props) {
  60220. super(props);
  60221. this.api = {};
  60222. this.initModules = () => {
  60223. this.modules.forEach((module2) => {
  60224. "init" in module2 && module2.init();
  60225. });
  60226. };
  60227. let {
  60228. location: location4,
  60229. path,
  60230. refId,
  60231. viewMode = props.docsOptions.docsMode ? "docs" : props.viewMode,
  60232. singleStory,
  60233. storyId,
  60234. docsOptions,
  60235. navigate
  60236. } = props, store2 = new Store({
  60237. getState: () => this.state,
  60238. setState: (stateChange, callback) => (this.setState(stateChange, () => callback(this.state)), this.state)
  60239. }), routeData = { location: location4, path, viewMode, singleStory, storyId, refId }, optionsData = { docsOptions };
  60240. this.state = store2.getInitialState(initial_state_default({ ...routeData, ...optionsData }));
  60241. let apiData = {
  60242. navigate,
  60243. store: store2,
  60244. provider: props.provider
  60245. };
  60246. this.modules = [
  60247. provider_exports,
  60248. channel_exports,
  60249. addons_exports,
  60250. layout_exports,
  60251. notifications_exports,
  60252. settings_exports,
  60253. shortcuts_exports,
  60254. stories_exports,
  60255. refs_exports,
  60256. globals_exports,
  60257. url_exports,
  60258. versions_exports,
  60259. whatsnew_exports,
  60260. open_in_editor_exports
  60261. ].map(
  60262. (m3) => m3.init({ ...routeData, ...optionsData, ...apiData, state: this.state, fullAPI: this.api })
  60263. );
  60264. let state3 = initial_state_default(this.state, ...this.modules.map((m3) => m3.state)), api = Object.assign(this.api, { navigate }, ...this.modules.map((m3) => m3.api));
  60265. this.state = state3, this.api = api;
  60266. }
  60267. static getDerivedStateFromProps(props, state3) {
  60268. return state3.path !== props.path ? {
  60269. ...state3,
  60270. location: props.location,
  60271. path: props.path,
  60272. refId: props.refId,
  60273. viewMode: props.viewMode,
  60274. storyId: props.storyId
  60275. } : null;
  60276. }
  60277. shouldComponentUpdate(nextProps, nextState) {
  60278. let prevProps = this.props, prevState = this.state;
  60279. return prevProps.path !== nextProps.path || !isEqual(prevState, nextState);
  60280. }
  60281. render() {
  60282. let { children } = this.props, value = {
  60283. state: this.state,
  60284. api: this.api
  60285. };
  60286. return import_react23.default.createElement(EffectOnMount, { effect: this.initModules }, import_react23.default.createElement(ManagerContext.Provider, { value }, import_react23.default.createElement(ManagerConsumer, null, children)));
  60287. }
  60288. };
  60289. ManagerProvider.displayName = "Manager";
  60290. var EffectOnMount = ({ children, effect: effect4 }) => (import_react23.default.useEffect(effect4, []), children), defaultFilter = (c) => c;
  60291. function ManagerConsumer({
  60292. // @ts-expect-error (Converted from ts-ignore)
  60293. filter = defaultFilter,
  60294. children
  60295. }) {
  60296. let managerContext = (0, import_react23.useContext)(ManagerContext), renderer = (0, import_react23.useRef)(children), filterer = (0, import_react23.useRef)(filter);
  60297. if (typeof renderer.current != "function")
  60298. return import_react23.default.createElement(import_react23.Fragment, null, renderer.current);
  60299. let comboData = filterer.current(managerContext), comboDataArray = (0, import_react23.useMemo)(() => [...Object.entries(comboData).reduce((acc, keyval) => acc.concat(keyval), [])], [managerContext.state]);
  60300. return (0, import_react23.useMemo)(() => {
  60301. let Child = renderer.current;
  60302. return import_react23.default.createElement(Child, { ...comboData });
  60303. }, comboDataArray);
  60304. }
  60305. function useStorybookState() {
  60306. let { state: state3 } = (0, import_react23.useContext)(ManagerContext);
  60307. return state3;
  60308. }
  60309. function useStorybookApi() {
  60310. let { api } = (0, import_react23.useContext)(ManagerContext);
  60311. return api;
  60312. }
  60313. function orDefault(fromStore, defaultState) {
  60314. return typeof fromStore > "u" ? defaultState : fromStore;
  60315. }
  60316. var useChannel2 = (eventMap3, deps = []) => {
  60317. let api = useStorybookApi();
  60318. return (0, import_react23.useEffect)(() => (Object.entries(eventMap3).forEach(([type5, listener]) => api.on(type5, listener)), () => {
  60319. Object.entries(eventMap3).forEach(([type5, listener]) => api.off(type5, listener));
  60320. }), deps), api.emit;
  60321. };
  60322. function useStoryPrepared(storyId) {
  60323. return useStorybookApi().isPrepared(storyId);
  60324. }
  60325. function useParameter2(parameterKey, defaultValue) {
  60326. let api = useStorybookApi(), [parameter, setParameter] = (0, import_react23.useState)(api.getCurrentParameter(parameterKey)), handleParameterChange = (0, import_react23.useCallback)(() => {
  60327. let newParameter = api.getCurrentParameter(parameterKey);
  60328. setParameter(newParameter);
  60329. }, [api, parameterKey]);
  60330. return useChannel2(
  60331. {
  60332. [STORY_PREPARED]: handleParameterChange,
  60333. [DOCS_PREPARED]: handleParameterChange
  60334. },
  60335. [handleParameterChange]
  60336. ), orDefault(parameter, defaultValue);
  60337. }
  60338. globalThis.STORYBOOK_ADDON_STATE = {};
  60339. var { STORYBOOK_ADDON_STATE } = globalThis;
  60340. function useSharedState(stateId, defaultState) {
  60341. let api = useStorybookApi(), existingState = api.getAddonState(stateId) || STORYBOOK_ADDON_STATE[stateId], state3 = orDefault(
  60342. existingState,
  60343. STORYBOOK_ADDON_STATE[stateId] ? STORYBOOK_ADDON_STATE[stateId] : defaultState
  60344. ), quicksync = !1;
  60345. state3 === defaultState && defaultState !== void 0 && (STORYBOOK_ADDON_STATE[stateId] = defaultState, quicksync = !0), (0, import_react23.useEffect)(() => {
  60346. quicksync && api.setAddonState(stateId, defaultState);
  60347. }, [quicksync]);
  60348. let setState2 = (0, import_react23.useCallback)(
  60349. async (s3, options) => {
  60350. await api.setAddonState(stateId, s3, options);
  60351. let result = api.getAddonState(stateId);
  60352. return STORYBOOK_ADDON_STATE[stateId] = result, result;
  60353. },
  60354. [api, stateId]
  60355. ), allListeners = (0, import_react23.useMemo)(() => {
  60356. let stateChangeHandlers = {
  60357. [`${SHARED_STATE_CHANGED}-client-${stateId}`]: setState2,
  60358. [`${SHARED_STATE_SET}-client-${stateId}`]: setState2
  60359. }, stateInitializationHandlers = {
  60360. [SET_STORIES]: async () => {
  60361. let currentState = api.getAddonState(stateId);
  60362. currentState ? (STORYBOOK_ADDON_STATE[stateId] = currentState, api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, currentState)) : STORYBOOK_ADDON_STATE[stateId] ? (await setState2(STORYBOOK_ADDON_STATE[stateId]), api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, STORYBOOK_ADDON_STATE[stateId])) : defaultState !== void 0 && (await setState2(defaultState), STORYBOOK_ADDON_STATE[stateId] = defaultState, api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, defaultState));
  60363. },
  60364. [STORY_CHANGED]: () => {
  60365. let currentState = api.getAddonState(stateId);
  60366. currentState !== void 0 && api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, currentState);
  60367. }
  60368. };
  60369. return {
  60370. ...stateChangeHandlers,
  60371. ...stateInitializationHandlers
  60372. };
  60373. }, [stateId]), emit = useChannel2(allListeners), stateSetter = (0, import_react23.useCallback)(
  60374. async (newStateOrMerger, options) => {
  60375. await setState2(newStateOrMerger, options);
  60376. let result = api.getAddonState(stateId);
  60377. emit(`${SHARED_STATE_CHANGED}-manager-${stateId}`, result);
  60378. },
  60379. [api, emit, setState2, stateId]
  60380. );
  60381. return [state3, stateSetter];
  60382. }
  60383. function useAddonState(addonId, defaultState) {
  60384. return useSharedState(addonId, defaultState);
  60385. }
  60386. function useArgs2() {
  60387. let { getCurrentStoryData, updateStoryArgs, resetStoryArgs } = useStorybookApi(), data = getCurrentStoryData(), args = data?.type === "story" ? data.args : {}, initialArgs = data?.type === "story" ? data.initialArgs : {}, updateArgs = (0, import_react23.useCallback)(
  60388. (newArgs) => updateStoryArgs(data, newArgs),
  60389. [data, updateStoryArgs]
  60390. ), resetArgs = (0, import_react23.useCallback)(
  60391. (argNames) => resetStoryArgs(data, argNames),
  60392. [data, resetStoryArgs]
  60393. );
  60394. return [args, updateArgs, resetArgs, initialArgs];
  60395. }
  60396. function useGlobals2() {
  60397. let api = useStorybookApi();
  60398. return [api.getGlobals(), api.updateGlobals, api.getStoryGlobals(), api.getUserGlobals()];
  60399. }
  60400. function useGlobalTypes() {
  60401. return useStorybookApi().getGlobalTypes();
  60402. }
  60403. function useCurrentStory() {
  60404. let { getCurrentStoryData } = useStorybookApi();
  60405. return getCurrentStoryData();
  60406. }
  60407. function useArgTypes() {
  60408. let current = useCurrentStory();
  60409. return current?.type === "story" && current.argTypes || {};
  60410. }
  60411. var typesX = Addon_TypesEnum;
  60412. // src/shared/universal-store/mock.ts
  60413. init_esm();
  60414. var MockUniversalStore = class _MockUniversalStore extends UniversalStore {
  60415. constructor(options, testUtils) {
  60416. UniversalStore.isInternalConstructing = !0, super(
  60417. { ...options, leader: !0 },
  60418. { channel: new Channel({}), environment: UniversalStore.Environment.MOCK }
  60419. ), UniversalStore.isInternalConstructing = !1, typeof testUtils?.fn == "function" && (this.testUtils = testUtils, this.getState = testUtils.fn(this.getState), this.setState = testUtils.fn(this.setState), this.subscribe = testUtils.fn(this.subscribe), this.onStateChange = testUtils.fn(this.onStateChange), this.send = testUtils.fn(this.send));
  60420. }
  60421. /** Create a mock universal store. This is just an alias for the constructor */
  60422. static create(options, testUtils) {
  60423. return new _MockUniversalStore(options, testUtils);
  60424. }
  60425. unsubscribeAll() {
  60426. if (!this.testUtils)
  60427. throw new Error(
  60428. dedent`Cannot call unsubscribeAll on a store that does not have testUtils.
  60429. Please provide testUtils as the second argument when creating the store.`
  60430. );
  60431. let callReturnedUnsubscribeFn = (result) => {
  60432. try {
  60433. result.value();
  60434. } catch {
  60435. }
  60436. };
  60437. this.subscribe.mock?.results.forEach(callReturnedUnsubscribeFn), this.onStateChange.mock?.results.forEach(callReturnedUnsubscribeFn);
  60438. }
  60439. };
  60440. // src/shared/test-provider-store/index.ts
  60441. var UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS = {
  60442. id: "storybook/test-provider",
  60443. leader: !0,
  60444. initialState: {}
  60445. };
  60446. function createTestProviderStore({
  60447. universalTestProviderStore: universalTestProviderStore2,
  60448. useUniversalStore: useUniversalStore2
  60449. }) {
  60450. let baseStore = {
  60451. settingsChanged: () => {
  60452. universalTestProviderStore2.untilReady().then(() => {
  60453. universalTestProviderStore2.send({ type: "settings-changed" });
  60454. });
  60455. },
  60456. onRunAll: (listener) => universalTestProviderStore2.subscribe("run-all", listener),
  60457. onClearAll: (listener) => universalTestProviderStore2.subscribe("clear-all", listener)
  60458. }, fullTestProviderStore2 = {
  60459. ...baseStore,
  60460. getFullState: universalTestProviderStore2.getState,
  60461. setFullState: universalTestProviderStore2.setState,
  60462. onSettingsChanged: (listener) => universalTestProviderStore2.subscribe("settings-changed", listener),
  60463. runAll: async () => {
  60464. await universalTestProviderStore2.untilReady(), universalTestProviderStore2.send({ type: "run-all" });
  60465. },
  60466. clearAll: async () => {
  60467. await universalTestProviderStore2.untilReady(), universalTestProviderStore2.send({ type: "clear-all" });
  60468. }
  60469. }, getTestProviderStoreById2 = (testProviderId) => {
  60470. let getStateForTestProvider = () => universalTestProviderStore2.getState()[testProviderId] ?? "test-provider-state:pending", setStateForTestProvider = (state3) => {
  60471. universalTestProviderStore2.untilReady().then(() => {
  60472. universalTestProviderStore2.setState((currentState) => ({
  60473. ...currentState,
  60474. [testProviderId]: state3
  60475. }));
  60476. });
  60477. };
  60478. return {
  60479. ...baseStore,
  60480. testProviderId,
  60481. getState: getStateForTestProvider,
  60482. setState: setStateForTestProvider,
  60483. runWithState: async (callback) => {
  60484. setStateForTestProvider("test-provider-state:running");
  60485. try {
  60486. await callback(), setStateForTestProvider("test-provider-state:succeeded");
  60487. } catch {
  60488. setStateForTestProvider("test-provider-state:crashed");
  60489. }
  60490. }
  60491. };
  60492. };
  60493. return useUniversalStore2 ? {
  60494. getTestProviderStoreById: getTestProviderStoreById2,
  60495. fullTestProviderStore: fullTestProviderStore2,
  60496. universalTestProviderStore: universalTestProviderStore2,
  60497. useTestProviderStore: (selector) => useUniversalStore2(universalTestProviderStore2, selector)[0]
  60498. } : {
  60499. getTestProviderStoreById: getTestProviderStoreById2,
  60500. fullTestProviderStore: fullTestProviderStore2,
  60501. universalTestProviderStore: universalTestProviderStore2
  60502. };
  60503. }
  60504. // src/manager-api/stores/test-provider.ts
  60505. var testProviderStore = createTestProviderStore({
  60506. universalTestProviderStore: UniversalStore.create({
  60507. ...UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS,
  60508. leader: globalThis.CONFIG_TYPE === "PRODUCTION"
  60509. }),
  60510. useUniversalStore
  60511. }), {
  60512. fullTestProviderStore,
  60513. getTestProviderStoreById,
  60514. useTestProviderStore,
  60515. universalTestProviderStore
  60516. } = testProviderStore;
  60517. // src/shared/checklist-store/checklistData.state.ts
  60518. var initialState = {
  60519. items: {
  60520. accessibilityTests: { status: "open" },
  60521. aiSetup: { status: "open" },
  60522. autodocs: { status: "open" },
  60523. ciTests: { status: "open" },
  60524. controls: { status: "open" },
  60525. coverage: { status: "open" },
  60526. guidedTour: { status: "open" },
  60527. installA11y: { status: "open" },
  60528. installChromatic: { status: "open" },
  60529. installDocs: { status: "open" },
  60530. installVitest: { status: "open" },
  60531. mdxDocs: { status: "open" },
  60532. moreComponents: { status: "open" },
  60533. moreStories: { status: "open" },
  60534. onboardingSurvey: { status: "open" },
  60535. organizeStories: { status: "open" },
  60536. renderComponent: { status: "open" },
  60537. runTests: { status: "open" },
  60538. publishStorybook: { status: "open" },
  60539. shareStorybook: { status: "open" },
  60540. viewports: { status: "open" },
  60541. visualTests: { status: "open" },
  60542. whatsNewStorybook10: { status: "open" },
  60543. writeInteractions: { status: "open" }
  60544. },
  60545. widget: {}
  60546. };
  60547. // src/shared/checklist-store/index.ts
  60548. var UNIVERSAL_CHECKLIST_STORE_OPTIONS = {
  60549. id: "storybook/checklist",
  60550. initialState
  60551. }, createChecklistStore = (universalChecklistStore2) => ({
  60552. getValue: (id) => universalChecklistStore2.getState().items[id] ?? { status: "open", mutedAt: void 0 },
  60553. accept: (id) => {
  60554. universalChecklistStore2.setState((state3) => ({
  60555. ...state3,
  60556. items: { ...state3.items, [id]: { ...state3.items[id], status: "accepted" } }
  60557. }));
  60558. },
  60559. done: (id) => {
  60560. universalChecklistStore2.setState((state3) => ({
  60561. ...state3,
  60562. items: { ...state3.items, [id]: { ...state3.items[id], status: "done" } }
  60563. }));
  60564. },
  60565. skip: (id) => {
  60566. universalChecklistStore2.setState((state3) => ({
  60567. ...state3,
  60568. items: { ...state3.items, [id]: { ...state3.items[id], status: "skipped" } }
  60569. }));
  60570. },
  60571. reset: (id) => {
  60572. universalChecklistStore2.setState((state3) => ({
  60573. ...state3,
  60574. items: { ...state3.items, [id]: { ...state3.items[id], status: "open" } }
  60575. }));
  60576. },
  60577. mute: (itemIds) => {
  60578. universalChecklistStore2.setState((state3) => ({
  60579. ...state3,
  60580. items: itemIds.reduce(
  60581. (acc, id) => ({ ...acc, [id]: { ...state3.items[id], mutedAt: Date.now() } }),
  60582. state3.items
  60583. )
  60584. }));
  60585. },
  60586. disable: (value) => {
  60587. universalChecklistStore2.setState((state3) => ({
  60588. ...state3,
  60589. widget: { ...state3.widget, disable: value },
  60590. items: Object.entries(state3.items).reduce(
  60591. (acc, [id, value2]) => ({ ...acc, [id]: { ...value2, mutedAt: void 0 } }),
  60592. state3.items
  60593. )
  60594. }));
  60595. }
  60596. });
  60597. // src/manager-api/stores/checklist.ts
  60598. var universalChecklistStore = UniversalStore.create({
  60599. ...UNIVERSAL_CHECKLIST_STORE_OPTIONS,
  60600. leader: globalThis.CONFIG_TYPE === "PRODUCTION"
  60601. }), checklistStore = createChecklistStore(universalChecklistStore);
  60602. // src/components/components/Button/Button.tsx
  60603. init_theming();
  60604. // src/components/components/Button/helpers/InteractiveTooltipWrapper.tsx
  60605. var import_react92 = __toESM(require_react(), 1);
  60606. // src/components/components/tooltip/TooltipNote.tsx
  60607. var import_react24 = __toESM(require_react(), 1);
  60608. init_theming();
  60609. var Note = styled.div(({ theme: theme3 }) => ({
  60610. padding: "2px 6px",
  60611. lineHeight: "16px",
  60612. fontSize: 10,
  60613. fontWeight: theme3.typography.weight.bold,
  60614. color: theme3.color.lightest,
  60615. boxShadow: "0 0 5px 0 rgba(0, 0, 0, 0.3)",
  60616. borderRadius: 4,
  60617. whiteSpace: "nowrap",
  60618. pointerEvents: "none",
  60619. zIndex: -1,
  60620. background: theme3.base === "light" ? "rgba(60, 60, 60, 0.9)" : "rgba(0, 0, 0, 0.95)"
  60621. })), TooltipNote = ({ note, ...props }) => import_react24.default.createElement(Note, { ...props }, note);
  60622. // src/components/components/tooltip/TooltipProvider.tsx
  60623. var import_react91 = __toESM(require_react(), 1);
  60624. init_client_logger();
  60625. // ../../node_modules/@react-aria/utils/dist/useLayoutEffect.mjs
  60626. var import_react25 = __toESM(require_react(), 1), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document < "u" ? import_react25.default.useLayoutEffect : () => {
  60627. };
  60628. // ../../node_modules/@react-aria/utils/dist/useValueEffect.mjs
  60629. var import_react26 = __toESM(require_react(), 1);
  60630. function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
  60631. let [value, setValue] = (0, import_react26.useState)(defaultValue), currValue = (0, import_react26.useRef)(value), effect4 = (0, import_react26.useRef)(null), nextRef = (0, import_react26.useRef)(() => {
  60632. if (!effect4.current) return;
  60633. let newValue = effect4.current.next();
  60634. if (newValue.done) {
  60635. effect4.current = null;
  60636. return;
  60637. }
  60638. currValue.current === newValue.value ? nextRef.current() : setValue(newValue.value);
  60639. });
  60640. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  60641. currValue.current = value, effect4.current && nextRef.current();
  60642. });
  60643. let queue = (0, import_react26.useCallback)((fn4) => {
  60644. effect4.current = fn4(currValue.current), nextRef.current();
  60645. }, [
  60646. nextRef
  60647. ]);
  60648. return [
  60649. value,
  60650. queue
  60651. ];
  60652. }
  60653. // ../../node_modules/@react-aria/utils/dist/useId.mjs
  60654. var import_react28 = __toESM(require_react(), 1);
  60655. // ../../node_modules/@react-aria/ssr/dist/SSRProvider.mjs
  60656. var import_react27 = __toESM(require_react(), 1), $b5e257d569688ac6$var$defaultContext = {
  60657. prefix: String(Math.round(Math.random() * 1e10)),
  60658. current: 0
  60659. }, $b5e257d569688ac6$var$SSRContext = import_react27.default.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = import_react27.default.createContext(!1);
  60660. var $b5e257d569688ac6$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
  60661. function $b5e257d569688ac6$var$useCounter(isDisabled3 = !1) {
  60662. let ctx = (0, import_react27.useContext)($b5e257d569688ac6$var$SSRContext), ref = (0, import_react27.useRef)(null);
  60663. if (ref.current === null && !isDisabled3) {
  60664. var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  60665. let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = import_react27.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 || (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
  60666. if (currentOwner) {
  60667. let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
  60668. prevComponentValue == null ? $b5e257d569688ac6$var$componentIds.set(currentOwner, {
  60669. id: ctx.current,
  60670. state: currentOwner.memoizedState
  60671. }) : currentOwner.memoizedState !== prevComponentValue.state && (ctx.current = prevComponentValue.id, $b5e257d569688ac6$var$componentIds.delete(currentOwner));
  60672. }
  60673. ref.current = ++ctx.current;
  60674. }
  60675. return ref.current;
  60676. }
  60677. function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
  60678. let ctx = (0, import_react27.useContext)($b5e257d569688ac6$var$SSRContext), counter = $b5e257d569688ac6$var$useCounter(!!defaultId), prefix4 = `react-aria${ctx.prefix}`;
  60679. return defaultId || `${prefix4}-${counter}`;
  60680. }
  60681. function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
  60682. let id = import_react27.default.useId(), [didSSR] = (0, import_react27.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), prefix4 = didSSR ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
  60683. return defaultId || `${prefix4}-${id}`;
  60684. }
  60685. var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react27.default.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
  60686. function $b5e257d569688ac6$var$getSnapshot() {
  60687. return !1;
  60688. }
  60689. function $b5e257d569688ac6$var$getServerSnapshot() {
  60690. return !0;
  60691. }
  60692. function $b5e257d569688ac6$var$subscribe(onStoreChange) {
  60693. return () => {
  60694. };
  60695. }
  60696. function $b5e257d569688ac6$export$535bd6ca7f90a273() {
  60697. return typeof import_react27.default.useSyncExternalStore == "function" ? import_react27.default.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react27.useContext)($b5e257d569688ac6$var$IsSSRContext);
  60698. }
  60699. // ../../node_modules/@react-aria/utils/dist/useId.mjs
  60700. var $bdb11010cef70236$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map(), $bdb11010cef70236$var$registry;
  60701. typeof FinalizationRegistry < "u" && ($bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
  60702. $bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
  60703. }));
  60704. function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
  60705. let [value, setValue] = (0, import_react28.useState)(defaultId), nextId = (0, import_react28.useRef)(null), res = $b5e257d569688ac6$export$619500959fc48b26(value), cleanupRef = (0, import_react28.useRef)(null);
  60706. if ($bdb11010cef70236$var$registry && $bdb11010cef70236$var$registry.register(cleanupRef, res), $bdb11010cef70236$var$canUseDOM) {
  60707. let cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
  60708. cacheIdRef && !cacheIdRef.includes(nextId) ? cacheIdRef.push(nextId) : $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
  60709. nextId
  60710. ]);
  60711. }
  60712. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  60713. let r2 = res;
  60714. return () => {
  60715. $bdb11010cef70236$var$registry && $bdb11010cef70236$var$registry.unregister(cleanupRef), $bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
  60716. };
  60717. }, [
  60718. res
  60719. ]), (0, import_react28.useEffect)(() => {
  60720. let newId = nextId.current;
  60721. return newId && setValue(newId), () => {
  60722. newId && (nextId.current = null);
  60723. };
  60724. }), res;
  60725. }
  60726. function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
  60727. if (idA === idB) return idA;
  60728. let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
  60729. if (setIdsA)
  60730. return setIdsA.forEach((ref) => ref.current = idB), idB;
  60731. let setIdsB = $bdb11010cef70236$export$d41a04c74483c6ef.get(idB);
  60732. return setIdsB ? (setIdsB.forEach((ref) => ref.current = idA), idA) : idB;
  60733. }
  60734. function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
  60735. let id = $bdb11010cef70236$export$f680877a34711e37(), [resolvedId, setResolvedId] = $1dbecbe27a04f9af$export$14d238f342723f25(id), updateId = (0, import_react28.useCallback)(() => {
  60736. setResolvedId(function* () {
  60737. yield id, yield document.getElementById(id) ? id : void 0;
  60738. });
  60739. }, [
  60740. id,
  60741. setResolvedId
  60742. ]);
  60743. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updateId, [
  60744. id,
  60745. updateId,
  60746. ...depArray
  60747. ]), resolvedId;
  60748. }
  60749. // ../../node_modules/@react-aria/utils/dist/chain.mjs
  60750. function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
  60751. return (...args) => {
  60752. for (let callback of callbacks) typeof callback == "function" && callback(...args);
  60753. };
  60754. }
  60755. // ../../node_modules/@react-aria/utils/dist/domHelpers.mjs
  60756. var $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
  60757. var _el_ownerDocument;
  60758. return (_el_ownerDocument = el?.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
  60759. }, $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => el && "window" in el && el.window === el ? el : $431fbd86ca7dc216$export$b204af158042fbac(el).defaultView || window;
  60760. function $431fbd86ca7dc216$var$isNode(value) {
  60761. return value !== null && typeof value == "object" && "nodeType" in value && typeof value.nodeType == "number";
  60762. }
  60763. function $431fbd86ca7dc216$export$af51f0f06c0f328a(node2) {
  60764. return $431fbd86ca7dc216$var$isNode(node2) && node2.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node2;
  60765. }
  60766. // ../../node_modules/@react-stately/flags/dist/import.mjs
  60767. var $f4e2df6bd15f8569$var$_shadowDOM = !1;
  60768. function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
  60769. return $f4e2df6bd15f8569$var$_shadowDOM;
  60770. }
  60771. // ../../node_modules/@react-aria/utils/dist/DOMFunctions.mjs
  60772. function $d4ee10de306f2510$export$4282f70798064fe0(node2, otherNode) {
  60773. if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node2 ? node2.contains(otherNode) : !1;
  60774. if (!node2 || !otherNode) return !1;
  60775. let currentNode = otherNode;
  60776. for (; currentNode !== null; ) {
  60777. if (currentNode === node2) return !0;
  60778. currentNode.tagName === "SLOT" && currentNode.assignedSlot ? currentNode = currentNode.assignedSlot.parentNode : $431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode) ? currentNode = currentNode.host : currentNode = currentNode.parentNode;
  60779. }
  60780. return !1;
  60781. }
  60782. var $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => {
  60783. var _activeElement_shadowRoot;
  60784. if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement;
  60785. let activeElement = doc.activeElement;
  60786. for (; activeElement && "shadowRoot" in activeElement && (!((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0) && _activeElement_shadowRoot.activeElement); ) activeElement = activeElement.shadowRoot.activeElement;
  60787. return activeElement;
  60788. };
  60789. function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
  60790. return $f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot && event.composedPath ? event.composedPath()[0] : event.target;
  60791. }
  60792. // ../../node_modules/@react-aria/utils/dist/ShadowTreeWalker.mjs
  60793. var $dfc540311bf7f109$export$63eb3ababa9c55c4 = class {
  60794. get currentNode() {
  60795. return this._currentNode;
  60796. }
  60797. set currentNode(node2) {
  60798. if (!$d4ee10de306f2510$export$4282f70798064fe0(this.root, node2)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
  60799. let walkers = [], curNode = node2, currentWalkerCurrentNode = node2;
  60800. for (this._currentNode = node2; curNode && curNode !== this.root; ) if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
  60801. let shadowRoot = curNode, walker2 = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
  60802. acceptNode: this._acceptNode
  60803. });
  60804. walkers.push(walker2), walker2.currentNode = currentWalkerCurrentNode, this._currentSetFor.add(walker2), curNode = currentWalkerCurrentNode = shadowRoot.host;
  60805. } else curNode = curNode.parentNode;
  60806. let walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
  60807. acceptNode: this._acceptNode
  60808. });
  60809. walkers.push(walker), walker.currentNode = currentWalkerCurrentNode, this._currentSetFor.add(walker), this._walkerStack = walkers;
  60810. }
  60811. get doc() {
  60812. return this._doc;
  60813. }
  60814. firstChild() {
  60815. let currentNode = this.currentNode, newNode = this.nextNode();
  60816. return $d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode) ? (newNode && (this.currentNode = newNode), newNode) : (this.currentNode = currentNode, null);
  60817. }
  60818. lastChild() {
  60819. let newNode = this._walkerStack[0].lastChild();
  60820. return newNode && (this.currentNode = newNode), newNode;
  60821. }
  60822. nextNode() {
  60823. let nextNode = this._walkerStack[0].nextNode();
  60824. if (nextNode) {
  60825. if (nextNode.shadowRoot) {
  60826. var _this_filter;
  60827. let nodeResult;
  60828. if (typeof this.filter == "function" ? nodeResult = this.filter(nextNode) : !((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode && (nodeResult = this.filter.acceptNode(nextNode)), nodeResult === NodeFilter.FILTER_ACCEPT)
  60829. return this.currentNode = nextNode, nextNode;
  60830. let newNode = this.nextNode();
  60831. return newNode && (this.currentNode = newNode), newNode;
  60832. }
  60833. return nextNode && (this.currentNode = nextNode), nextNode;
  60834. } else if (this._walkerStack.length > 1) {
  60835. this._walkerStack.shift();
  60836. let newNode = this.nextNode();
  60837. return newNode && (this.currentNode = newNode), newNode;
  60838. } else return null;
  60839. }
  60840. previousNode() {
  60841. let currentWalker = this._walkerStack[0];
  60842. if (currentWalker.currentNode === currentWalker.root) {
  60843. if (this._currentSetFor.has(currentWalker))
  60844. if (this._currentSetFor.delete(currentWalker), this._walkerStack.length > 1) {
  60845. this._walkerStack.shift();
  60846. let newNode = this.previousNode();
  60847. return newNode && (this.currentNode = newNode), newNode;
  60848. } else return null;
  60849. return null;
  60850. }
  60851. let previousNode = currentWalker.previousNode();
  60852. if (previousNode) {
  60853. if (previousNode.shadowRoot) {
  60854. var _this_filter;
  60855. let nodeResult;
  60856. if (typeof this.filter == "function" ? nodeResult = this.filter(previousNode) : !((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode && (nodeResult = this.filter.acceptNode(previousNode)), nodeResult === NodeFilter.FILTER_ACCEPT)
  60857. return previousNode && (this.currentNode = previousNode), previousNode;
  60858. let newNode = this.lastChild();
  60859. return newNode && (this.currentNode = newNode), newNode;
  60860. }
  60861. return previousNode && (this.currentNode = previousNode), previousNode;
  60862. } else if (this._walkerStack.length > 1) {
  60863. this._walkerStack.shift();
  60864. let newNode = this.previousNode();
  60865. return newNode && (this.currentNode = newNode), newNode;
  60866. } else return null;
  60867. }
  60868. /**
  60869. * @deprecated
  60870. */
  60871. nextSibling() {
  60872. return null;
  60873. }
  60874. /**
  60875. * @deprecated
  60876. */
  60877. previousSibling() {
  60878. return null;
  60879. }
  60880. /**
  60881. * @deprecated
  60882. */
  60883. parentNode() {
  60884. return null;
  60885. }
  60886. constructor(doc, root2, whatToShow, filter) {
  60887. this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (node2) => {
  60888. if (node2.nodeType === Node.ELEMENT_NODE) {
  60889. let shadowRoot2 = node2.shadowRoot;
  60890. if (shadowRoot2) {
  60891. let walker = this._doc.createTreeWalker(shadowRoot2, this.whatToShow, {
  60892. acceptNode: this._acceptNode
  60893. });
  60894. return this._walkerStack.unshift(walker), NodeFilter.FILTER_ACCEPT;
  60895. } else {
  60896. var _this_filter;
  60897. if (typeof this.filter == "function") return this.filter(node2);
  60898. if (!((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode) return this.filter.acceptNode(node2);
  60899. if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
  60900. }
  60901. }
  60902. return NodeFilter.FILTER_SKIP;
  60903. }, this._doc = doc, this.root = root2, this.filter = filter ?? null, this.whatToShow = whatToShow ?? NodeFilter.SHOW_ALL, this._currentNode = root2, this._walkerStack.unshift(doc.createTreeWalker(root2, whatToShow, this._acceptNode));
  60904. let shadowRoot = root2.shadowRoot;
  60905. if (shadowRoot) {
  60906. let walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
  60907. acceptNode: this._acceptNode
  60908. });
  60909. this._walkerStack.unshift(walker);
  60910. }
  60911. }
  60912. };
  60913. function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root2, whatToShow, filter) {
  60914. return $f4e2df6bd15f8569$export$98658e8c59125e6a() ? new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root2, whatToShow, filter) : doc.createTreeWalker(root2, whatToShow, filter);
  60915. }
  60916. // ../../node_modules/clsx/dist/clsx.mjs
  60917. function r(e) {
  60918. var t, f4, n = "";
  60919. if (typeof e == "string" || typeof e == "number") n += e;
  60920. else if (typeof e == "object") if (Array.isArray(e)) {
  60921. var o = e.length;
  60922. for (t = 0; t < o; t++) e[t] && (f4 = r(e[t])) && (n && (n += " "), n += f4);
  60923. } else for (f4 in e) e[f4] && (n && (n += " "), n += f4);
  60924. return n;
  60925. }
  60926. function clsx() {
  60927. for (var e, t, f4 = 0, n = "", o = arguments.length; f4 < o; f4++) (e = arguments[f4]) && (t = r(e)) && (n && (n += " "), n += t);
  60928. return n;
  60929. }
  60930. var clsx_default = clsx;
  60931. // ../../node_modules/@react-aria/utils/dist/mergeProps.mjs
  60932. function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
  60933. let result = {
  60934. ...args[0]
  60935. };
  60936. for (let i = 1; i < args.length; i++) {
  60937. let props = args[i];
  60938. for (let key in props) {
  60939. let a3 = result[key], b = props[key];
  60940. typeof a3 == "function" && typeof b == "function" && // This is a lot faster than a regex.
  60941. key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */
  60942. 65 && key.charCodeAt(2) <= /* 'Z' */
  60943. 90 ? result[key] = $ff5963eb1fccf552$export$e08e3b67e392101e(a3, b) : (key === "className" || key === "UNSAFE_className") && typeof a3 == "string" && typeof b == "string" ? result[key] = clsx_default(a3, b) : key === "id" && a3 && b ? result.id = $bdb11010cef70236$export$cd8c9cb68f842629(a3, b) : result[key] = b !== void 0 ? b : a3;
  60944. }
  60945. }
  60946. return result;
  60947. }
  60948. // ../../node_modules/@react-aria/utils/dist/mergeRefs.mjs
  60949. function $5dc95899b306f630$export$c9058316764c140e(...refs) {
  60950. return refs.length === 1 && refs[0] ? refs[0] : (value) => {
  60951. let hasCleanup = !1, cleanups = refs.map((ref) => {
  60952. let cleanup = $5dc95899b306f630$var$setRef(ref, value);
  60953. return hasCleanup || (hasCleanup = typeof cleanup == "function"), cleanup;
  60954. });
  60955. if (hasCleanup) return () => {
  60956. cleanups.forEach((cleanup, i) => {
  60957. typeof cleanup == "function" ? cleanup() : $5dc95899b306f630$var$setRef(refs[i], null);
  60958. });
  60959. };
  60960. };
  60961. }
  60962. function $5dc95899b306f630$var$setRef(ref, value) {
  60963. if (typeof ref == "function") return ref(value);
  60964. ref != null && (ref.current = value);
  60965. }
  60966. // ../../node_modules/@react-aria/utils/dist/filterDOMProps.mjs
  60967. var $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
  60968. "id"
  60969. ]), $65484d02dcb7eb3e$var$labelablePropNames = /* @__PURE__ */ new Set([
  60970. "aria-label",
  60971. "aria-labelledby",
  60972. "aria-describedby",
  60973. "aria-details"
  60974. ]), $65484d02dcb7eb3e$var$linkPropNames = /* @__PURE__ */ new Set([
  60975. "href",
  60976. "hrefLang",
  60977. "target",
  60978. "rel",
  60979. "download",
  60980. "ping",
  60981. "referrerPolicy"
  60982. ]), $65484d02dcb7eb3e$var$globalAttrs = /* @__PURE__ */ new Set([
  60983. "dir",
  60984. "lang",
  60985. "hidden",
  60986. "inert",
  60987. "translate"
  60988. ]), $65484d02dcb7eb3e$var$globalEvents = /* @__PURE__ */ new Set([
  60989. "onClick",
  60990. "onAuxClick",
  60991. "onContextMenu",
  60992. "onDoubleClick",
  60993. "onMouseDown",
  60994. "onMouseEnter",
  60995. "onMouseLeave",
  60996. "onMouseMove",
  60997. "onMouseOut",
  60998. "onMouseOver",
  60999. "onMouseUp",
  61000. "onTouchCancel",
  61001. "onTouchEnd",
  61002. "onTouchMove",
  61003. "onTouchStart",
  61004. "onPointerDown",
  61005. "onPointerMove",
  61006. "onPointerUp",
  61007. "onPointerCancel",
  61008. "onPointerEnter",
  61009. "onPointerLeave",
  61010. "onPointerOver",
  61011. "onPointerOut",
  61012. "onGotPointerCapture",
  61013. "onLostPointerCapture",
  61014. "onScroll",
  61015. "onWheel",
  61016. "onAnimationStart",
  61017. "onAnimationEnd",
  61018. "onAnimationIteration",
  61019. "onTransitionCancel",
  61020. "onTransitionEnd",
  61021. "onTransitionRun",
  61022. "onTransitionStart"
  61023. ]), $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
  61024. function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
  61025. let { labelable, isLink: isLink2, global: global2, events: events2 = global2, propNames } = opts, filteredProps = {};
  61026. for (let prop in props) Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink2 && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events2 && ($65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7))) || propNames?.has(prop) || $65484d02dcb7eb3e$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
  61027. return filteredProps;
  61028. }
  61029. // ../../node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs
  61030. function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
  61031. if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
  61032. preventScroll: !0
  61033. });
  61034. else {
  61035. let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
  61036. element.focus(), $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
  61037. }
  61038. }
  61039. var $7215afc6de606d6b$var$supportsPreventScrollCached = null;
  61040. function $7215afc6de606d6b$var$supportsPreventScroll() {
  61041. if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
  61042. $7215afc6de606d6b$var$supportsPreventScrollCached = !1;
  61043. try {
  61044. document.createElement("div").focus({
  61045. get preventScroll() {
  61046. return $7215afc6de606d6b$var$supportsPreventScrollCached = !0, !0;
  61047. }
  61048. });
  61049. } catch {
  61050. }
  61051. }
  61052. return $7215afc6de606d6b$var$supportsPreventScrollCached;
  61053. }
  61054. function $7215afc6de606d6b$var$getScrollableElements(element) {
  61055. let parent = element.parentNode, scrollableElements = [], rootScrollingElement = document.scrollingElement || document.documentElement;
  61056. for (; parent instanceof HTMLElement && parent !== rootScrollingElement; )
  61057. (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) && scrollableElements.push({
  61058. element: parent,
  61059. scrollTop: parent.scrollTop,
  61060. scrollLeft: parent.scrollLeft
  61061. }), parent = parent.parentNode;
  61062. return rootScrollingElement instanceof HTMLElement && scrollableElements.push({
  61063. element: rootScrollingElement,
  61064. scrollTop: rootScrollingElement.scrollTop,
  61065. scrollLeft: rootScrollingElement.scrollLeft
  61066. }), scrollableElements;
  61067. }
  61068. function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
  61069. for (let { element, scrollTop, scrollLeft } of scrollableElements)
  61070. element.scrollTop = scrollTop, element.scrollLeft = scrollLeft;
  61071. }
  61072. // ../../node_modules/@react-aria/utils/dist/platform.mjs
  61073. function $c87311424ea30a05$var$testUserAgent(re2) {
  61074. var _window_navigator_userAgentData;
  61075. if (typeof window > "u" || window.navigator == null) return !1;
  61076. let brands = (_window_navigator_userAgentData = window.navigator.userAgentData) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands;
  61077. return Array.isArray(brands) && brands.some((brand) => re2.test(brand.brand)) || re2.test(window.navigator.userAgent);
  61078. }
  61079. function $c87311424ea30a05$var$testPlatform(re2) {
  61080. var _window_navigator_userAgentData;
  61081. return typeof window < "u" && window.navigator != null ? re2.test(((_window_navigator_userAgentData = window.navigator.userAgentData) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : !1;
  61082. }
  61083. function $c87311424ea30a05$var$cached(fn4) {
  61084. let res = null;
  61085. return () => (res == null && (res = fn4()), res);
  61086. }
  61087. var $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
  61088. return $c87311424ea30a05$var$testPlatform(/^Mac/i);
  61089. }), $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
  61090. return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
  61091. }), $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
  61092. return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
  61093. $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
  61094. }), $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
  61095. return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
  61096. }), $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
  61097. return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
  61098. }), $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
  61099. return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
  61100. }), $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
  61101. return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
  61102. }), $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
  61103. return $c87311424ea30a05$var$testUserAgent(/Android/i);
  61104. }), $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
  61105. return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
  61106. });
  61107. // ../../node_modules/@react-aria/utils/dist/openLink.mjs
  61108. var import_react29 = __toESM(require_react(), 1), $ea8dcbcb9ea1b556$var$RouterContext = (0, import_react29.createContext)({
  61109. isNative: !0,
  61110. open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
  61111. useHref: (href) => href
  61112. });
  61113. function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
  61114. return (0, import_react29.useContext)($ea8dcbcb9ea1b556$var$RouterContext);
  61115. }
  61116. function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
  61117. let target = link.getAttribute("target");
  61118. return (!target || target === "_self") && link.origin === location.origin && !link.hasAttribute("download") && !modifiers.metaKey && // open in new tab (mac)
  61119. !modifiers.ctrlKey && // open in new tab (windows)
  61120. !modifiers.altKey && // download
  61121. !modifiers.shiftKey;
  61122. }
  61123. function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = !0) {
  61124. var _window_event_type, _window_event;
  61125. let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
  61126. $c87311424ea30a05$export$b7d78993b74f766d() && (!((_window_event = window.event) === null || _window_event === void 0 || (_window_event_type = _window_event.type) === null || _window_event_type === void 0) && _window_event_type.startsWith("key")) && target.target === "_blank" && ($c87311424ea30a05$export$9ac100e40613ea10() ? metaKey = !0 : ctrlKey = !0);
  61127. let event = $c87311424ea30a05$export$78551043582a6a98() && $c87311424ea30a05$export$9ac100e40613ea10() && !$c87311424ea30a05$export$7bef049ce92e4224() ? new KeyboardEvent("keydown", {
  61128. keyIdentifier: "Enter",
  61129. metaKey,
  61130. ctrlKey,
  61131. altKey,
  61132. shiftKey
  61133. }) : new MouseEvent("click", {
  61134. metaKey,
  61135. ctrlKey,
  61136. altKey,
  61137. shiftKey,
  61138. detail: 1,
  61139. bubbles: !0,
  61140. cancelable: !0
  61141. });
  61142. $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening, $7215afc6de606d6b$export$de79e2c695e052f3(target), target.dispatchEvent(event), $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = !1;
  61143. }
  61144. $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = !1;
  61145. function $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {
  61146. if (target instanceof HTMLAnchorElement) open(target);
  61147. else if (target.hasAttribute("data-href")) {
  61148. let link = document.createElement("a");
  61149. link.href = target.getAttribute("data-href"), target.hasAttribute("data-target") && (link.target = target.getAttribute("data-target")), target.hasAttribute("data-rel") && (link.rel = target.getAttribute("data-rel")), target.hasAttribute("data-download") && (link.download = target.getAttribute("data-download")), target.hasAttribute("data-ping") && (link.ping = target.getAttribute("data-ping")), target.hasAttribute("data-referrer-policy") && (link.referrerPolicy = target.getAttribute("data-referrer-policy")), target.appendChild(link), open(link), target.removeChild(link);
  61150. }
  61151. }
  61152. function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
  61153. $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link) => $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers));
  61154. }
  61155. function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
  61156. let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
  61157. var _props_href;
  61158. let href = router.useHref((_props_href = props?.href) !== null && _props_href !== void 0 ? _props_href : "");
  61159. return {
  61160. href: props?.href ? href : void 0,
  61161. target: props?.target,
  61162. rel: props?.rel,
  61163. download: props?.download,
  61164. ping: props?.ping,
  61165. referrerPolicy: props?.referrerPolicy
  61166. };
  61167. }
  61168. function $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, href, routerOptions) {
  61169. !router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
  61170. !e.isDefaultPrevented() && $ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && href && (e.preventDefault(), router.open(e.currentTarget, e, href, routerOptions));
  61171. }
  61172. // ../../node_modules/@react-aria/utils/dist/runAfterTransition.mjs
  61173. var $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map(), $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
  61174. function $bbed8b41f857bcc0$var$setupGlobalEvents() {
  61175. if (typeof window > "u") return;
  61176. function isTransitionEvent(event) {
  61177. return "propertyName" in event;
  61178. }
  61179. let onTransitionStart = (e) => {
  61180. if (!isTransitionEvent(e) || !e.target) return;
  61181. let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
  61182. transitions || (transitions = /* @__PURE__ */ new Set(), $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions), e.target.addEventListener("transitioncancel", onTransitionEnd, {
  61183. once: !0
  61184. })), transitions.add(e.propertyName);
  61185. }, onTransitionEnd = (e) => {
  61186. if (!isTransitionEvent(e) || !e.target) return;
  61187. let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
  61188. if (properties && (properties.delete(e.propertyName), properties.size === 0 && (e.target.removeEventListener("transitioncancel", onTransitionEnd), $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target)), $bbed8b41f857bcc0$var$transitionsByElement.size === 0)) {
  61189. for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks) cb();
  61190. $bbed8b41f857bcc0$var$transitionCallbacks.clear();
  61191. }
  61192. };
  61193. document.body.addEventListener("transitionrun", onTransitionStart), document.body.addEventListener("transitionend", onTransitionEnd);
  61194. }
  61195. typeof document < "u" && (document.readyState !== "loading" ? $bbed8b41f857bcc0$var$setupGlobalEvents() : document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents));
  61196. function $bbed8b41f857bcc0$var$cleanupDetachedElements() {
  61197. for (let [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)
  61198. "isConnected" in eventTarget && !eventTarget.isConnected && $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);
  61199. }
  61200. function $bbed8b41f857bcc0$export$24490316f764c430(fn4) {
  61201. requestAnimationFrame(() => {
  61202. $bbed8b41f857bcc0$var$cleanupDetachedElements(), $bbed8b41f857bcc0$var$transitionsByElement.size === 0 ? fn4() : $bbed8b41f857bcc0$var$transitionCallbacks.add(fn4);
  61203. });
  61204. }
  61205. // ../../node_modules/@react-aria/utils/dist/useDrag1D.mjs
  61206. var import_react30 = __toESM(require_react(), 1);
  61207. // ../../node_modules/@react-aria/utils/dist/useGlobalListeners.mjs
  61208. var import_react31 = __toESM(require_react(), 1);
  61209. function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
  61210. let globalListeners = (0, import_react31.useRef)(/* @__PURE__ */ new Map()), addGlobalListener = (0, import_react31.useCallback)((eventTarget, type5, listener, options) => {
  61211. let fn4 = options?.once ? (...args) => {
  61212. globalListeners.current.delete(listener), listener(...args);
  61213. } : listener;
  61214. globalListeners.current.set(listener, {
  61215. type: type5,
  61216. eventTarget,
  61217. fn: fn4,
  61218. options
  61219. }), eventTarget.addEventListener(type5, fn4, options);
  61220. }, []), removeGlobalListener = (0, import_react31.useCallback)((eventTarget, type5, listener, options) => {
  61221. var _globalListeners_current_get;
  61222. let fn4 = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
  61223. eventTarget.removeEventListener(type5, fn4, options), globalListeners.current.delete(listener);
  61224. }, []), removeAllGlobalListeners = (0, import_react31.useCallback)(() => {
  61225. globalListeners.current.forEach((value, key) => {
  61226. removeGlobalListener(value.eventTarget, value.type, key, value.options);
  61227. });
  61228. }, [
  61229. removeGlobalListener
  61230. ]);
  61231. return (0, import_react31.useEffect)(() => removeAllGlobalListeners, [
  61232. removeAllGlobalListeners
  61233. ]), {
  61234. addGlobalListener,
  61235. removeGlobalListener,
  61236. removeAllGlobalListeners
  61237. };
  61238. }
  61239. // ../../node_modules/@react-aria/utils/dist/useLabels.mjs
  61240. function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
  61241. let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
  61242. return id = $bdb11010cef70236$export$f680877a34711e37(id), labelledBy && label ? labelledBy = [
  61243. .../* @__PURE__ */ new Set([
  61244. id,
  61245. ...labelledBy.trim().split(/\s+/)
  61246. ])
  61247. ].join(" ") : labelledBy && (labelledBy = labelledBy.trim().split(/\s+/).join(" ")), !label && !labelledBy && defaultLabel && (label = defaultLabel), {
  61248. id,
  61249. "aria-label": label,
  61250. "aria-labelledby": labelledBy
  61251. };
  61252. }
  61253. // ../../node_modules/@react-aria/utils/dist/useObjectRef.mjs
  61254. var import_react32 = __toESM(require_react(), 1);
  61255. function $df56164dff5785e2$export$4338b53315abf666(ref) {
  61256. let objRef = (0, import_react32.useRef)(null), cleanupRef = (0, import_react32.useRef)(void 0), refEffect = (0, import_react32.useCallback)((instance) => {
  61257. if (typeof ref == "function") {
  61258. let refCallback = ref, refCleanup = refCallback(instance);
  61259. return () => {
  61260. typeof refCleanup == "function" ? refCleanup() : refCallback(null);
  61261. };
  61262. } else if (ref)
  61263. return ref.current = instance, () => {
  61264. ref.current = null;
  61265. };
  61266. }, [
  61267. ref
  61268. ]);
  61269. return (0, import_react32.useMemo)(() => ({
  61270. get current() {
  61271. return objRef.current;
  61272. },
  61273. set current(value) {
  61274. objRef.current = value, cleanupRef.current && (cleanupRef.current(), cleanupRef.current = void 0), value != null && (cleanupRef.current = refEffect(value));
  61275. }
  61276. }), [
  61277. refEffect
  61278. ]);
  61279. }
  61280. // ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
  61281. var import_react33 = __toESM(require_react(), 1), $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = import_react33.default.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
  61282. function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn4) {
  61283. let ref = (0, import_react33.useRef)(null);
  61284. return $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
  61285. ref.current = fn4;
  61286. }, [
  61287. fn4
  61288. ]), (0, import_react33.useCallback)((...args) => {
  61289. let f4 = ref.current;
  61290. return f4?.(...args);
  61291. }, []);
  61292. }
  61293. // ../../node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
  61294. var import_react34 = __toESM(require_react(), 1);
  61295. // ../../node_modules/@react-aria/utils/dist/useUpdateLayoutEffect.mjs
  61296. var import_react35 = __toESM(require_react(), 1);
  61297. function $ca9b37712f007381$export$72ef708ab07251f1(effect4, dependencies) {
  61298. let isInitialMount = (0, import_react35.useRef)(!0), lastDeps = (0, import_react35.useRef)(null);
  61299. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (isInitialMount.current = !0, () => {
  61300. isInitialMount.current = !1;
  61301. }), []), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61302. isInitialMount.current ? isInitialMount.current = !1 : (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) && effect4(), lastDeps.current = dependencies;
  61303. }, dependencies);
  61304. }
  61305. // ../../node_modules/@react-aria/utils/dist/useResizeObserver.mjs
  61306. var import_react36 = __toESM(require_react(), 1);
  61307. function $9daab02d461809db$var$hasResizeObserver() {
  61308. return typeof window.ResizeObserver < "u";
  61309. }
  61310. function $9daab02d461809db$export$683480f191c0e3ea(options) {
  61311. let { ref, box, onResize } = options, onResizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onResize);
  61312. (0, import_react36.useEffect)(() => {
  61313. let element = ref?.current;
  61314. if (element)
  61315. if ($9daab02d461809db$var$hasResizeObserver()) {
  61316. let resizeObserverInstance = new window.ResizeObserver((entries) => {
  61317. entries.length && onResizeEvent();
  61318. });
  61319. return resizeObserverInstance.observe(element, {
  61320. box
  61321. }), () => {
  61322. element && resizeObserverInstance.unobserve(element);
  61323. };
  61324. } else
  61325. return window.addEventListener("resize", onResizeEvent, !1), () => {
  61326. window.removeEventListener("resize", onResizeEvent, !1);
  61327. };
  61328. }, [
  61329. ref,
  61330. box
  61331. ]);
  61332. }
  61333. // ../../node_modules/@react-aria/utils/dist/useSyncRef.mjs
  61334. function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {
  61335. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61336. if (context && context.ref && ref)
  61337. return context.ref.current = ref.current, () => {
  61338. context.ref && (context.ref.current = null);
  61339. };
  61340. });
  61341. }
  61342. // ../../node_modules/@react-aria/utils/dist/isScrollable.mjs
  61343. function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node2, checkForOverflow) {
  61344. if (!node2) return !1;
  61345. let style = window.getComputedStyle(node2), isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
  61346. return isScrollable && checkForOverflow && (isScrollable = node2.scrollHeight !== node2.clientHeight || node2.scrollWidth !== node2.clientWidth), isScrollable;
  61347. }
  61348. // ../../node_modules/@react-aria/utils/dist/getScrollParent.mjs
  61349. function $62d8ded9296f3872$export$cfa2225e87938781(node2, checkForOverflow) {
  61350. let scrollableNode = node2;
  61351. for ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow) && (scrollableNode = scrollableNode.parentElement); scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow); ) scrollableNode = scrollableNode.parentElement;
  61352. return scrollableNode || document.scrollingElement || document.documentElement;
  61353. }
  61354. // ../../node_modules/@react-aria/utils/dist/getScrollParents.mjs
  61355. function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node2, checkForOverflow) {
  61356. let scrollParents = [];
  61357. for (; node2 && node2 !== document.documentElement; )
  61358. $cc38e7bd3fc7b213$export$2bb74740c4e19def(node2, checkForOverflow) && scrollParents.push(node2), node2 = node2.parentElement;
  61359. return scrollParents;
  61360. }
  61361. // ../../node_modules/@react-aria/utils/dist/keyboard.mjs
  61362. function $21f1aa98acb08317$export$16792effe837dba3(e) {
  61363. return $c87311424ea30a05$export$9ac100e40613ea10() ? e.metaKey : e.ctrlKey;
  61364. }
  61365. var $21f1aa98acb08317$var$nonTextInputTypes = /* @__PURE__ */ new Set([
  61366. "checkbox",
  61367. "radio",
  61368. "range",
  61369. "color",
  61370. "file",
  61371. "image",
  61372. "button",
  61373. "submit",
  61374. "reset"
  61375. ]);
  61376. function $21f1aa98acb08317$export$c57958e35f31ed73(target) {
  61377. return target instanceof HTMLInputElement && !$21f1aa98acb08317$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
  61378. }
  61379. // ../../node_modules/@react-aria/utils/dist/useViewportSize.mjs
  61380. var import_react37 = __toESM(require_react(), 1);
  61381. var $5df64b3807dc15ee$var$visualViewport = typeof document < "u" && window.visualViewport;
  61382. // ../../node_modules/@react-aria/utils/dist/useDescription.mjs
  61383. var import_react38 = __toESM(require_react(), 1), $ef06256079686ba0$var$descriptionId = 0, $ef06256079686ba0$var$descriptionNodes = /* @__PURE__ */ new Map();
  61384. function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
  61385. let [id, setId] = (0, import_react38.useState)();
  61386. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61387. if (!description) return;
  61388. let desc = $ef06256079686ba0$var$descriptionNodes.get(description);
  61389. if (desc)
  61390. setId(desc.element.id);
  61391. else {
  61392. let id2 = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;
  61393. setId(id2);
  61394. let node2 = document.createElement("div");
  61395. node2.id = id2, node2.style.display = "none", node2.textContent = description, document.body.appendChild(node2), desc = {
  61396. refCount: 0,
  61397. element: node2
  61398. }, $ef06256079686ba0$var$descriptionNodes.set(description, desc);
  61399. }
  61400. return desc.refCount++, () => {
  61401. desc && --desc.refCount === 0 && (desc.element.remove(), $ef06256079686ba0$var$descriptionNodes.delete(description));
  61402. };
  61403. }, [
  61404. description
  61405. ]), {
  61406. "aria-describedby": description ? id : void 0
  61407. };
  61408. }
  61409. // ../../node_modules/@react-aria/utils/dist/useEvent.mjs
  61410. var import_react39 = __toESM(require_react(), 1);
  61411. function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
  61412. let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler), isDisabled3 = handler == null;
  61413. (0, import_react39.useEffect)(() => {
  61414. if (isDisabled3 || !ref.current) return;
  61415. let element = ref.current;
  61416. return element.addEventListener(event, handleEvent, options), () => {
  61417. element.removeEventListener(event, handleEvent, options);
  61418. };
  61419. }, [
  61420. ref,
  61421. event,
  61422. options,
  61423. isDisabled3
  61424. ]);
  61425. }
  61426. // ../../node_modules/@react-aria/utils/dist/scrollIntoView.mjs
  61427. function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
  61428. let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left"), offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView), borderAdjustedX = x + parseInt(borderLeftWidth, 10), borderAdjustedY = y + parseInt(borderTopWidth, 10), maxX = borderAdjustedX + scrollView.clientWidth, maxY = borderAdjustedY + scrollView.clientHeight, scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0, scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0, scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0, scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;
  61429. offsetX <= x + scrollPaddingLeftNumber ? x = offsetX - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber : offsetX + width > maxX - scrollPaddingRightNumber && (x += offsetX + width - maxX + scrollPaddingRightNumber), offsetY <= borderAdjustedY + scrollPaddingTopNumber ? y = offsetY - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber : offsetY + height > maxY - scrollPaddingBottomNumber && (y += offsetY + height - maxY + scrollPaddingBottomNumber), scrollView.scrollLeft = x, scrollView.scrollTop = y;
  61430. }
  61431. function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
  61432. let prop = axis === "left" ? "offsetLeft" : "offsetTop", sum = 0;
  61433. for (; child.offsetParent && (sum += child[prop], child.offsetParent !== ancestor); ) {
  61434. if (child.offsetParent.contains(ancestor)) {
  61435. sum -= ancestor[prop];
  61436. break;
  61437. }
  61438. child = child.offsetParent;
  61439. }
  61440. return sum;
  61441. }
  61442. function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
  61443. if (targetElement && document.contains(targetElement)) {
  61444. let root2 = document.scrollingElement || document.documentElement, isScrollPrevented = window.getComputedStyle(root2).overflow === "hidden";
  61445. if (isScrollPrevented) {
  61446. let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
  61447. isScrollPrevented || scrollParents.push(root2);
  61448. for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
  61449. } else {
  61450. var _targetElement_scrollIntoView;
  61451. let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
  61452. targetElement == null || (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 || _targetElement_scrollIntoView.call(targetElement, {
  61453. block: "nearest"
  61454. });
  61455. let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
  61456. if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
  61457. var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
  61458. opts == null || (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 || (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 || _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
  61459. block: "center",
  61460. inline: "center"
  61461. }), (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 || _targetElement_scrollIntoView1.call(targetElement, {
  61462. block: "nearest"
  61463. });
  61464. }
  61465. }
  61466. }
  61467. }
  61468. // ../../node_modules/@react-aria/utils/dist/isVirtualEvent.mjs
  61469. function $6a7db85432448f7f$export$60278871457622de(event) {
  61470. return event.pointerType === "" && event.isTrusted ? !0 : $c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType ? event.type === "click" && event.buttons === 1 : event.detail === 0 && !event.pointerType;
  61471. }
  61472. function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
  61473. return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
  61474. }
  61475. // ../../node_modules/@react-aria/utils/dist/useDeepMemo.mjs
  61476. var import_react40 = __toESM(require_react(), 1);
  61477. // ../../node_modules/@react-aria/utils/dist/useFormReset.mjs
  61478. var import_react41 = __toESM(require_react(), 1);
  61479. // ../../node_modules/@react-aria/utils/dist/useLoadMore.mjs
  61480. var import_react42 = __toESM(require_react(), 1);
  61481. // ../../node_modules/@react-aria/utils/dist/useLoadMoreSentinel.mjs
  61482. var import_react43 = __toESM(require_react(), 1);
  61483. // ../../node_modules/@react-aria/utils/dist/inertValue.mjs
  61484. var import_react44 = __toESM(require_react(), 1);
  61485. function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
  61486. let pieces = import_react44.version.split(".");
  61487. return parseInt(pieces[0], 10) >= 19 ? value : value ? "true" : void 0;
  61488. }
  61489. // ../../node_modules/@react-aria/utils/dist/constants.mjs
  61490. var $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus", $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
  61491. // ../../node_modules/@react-aria/utils/dist/animation.mjs
  61492. var import_react_dom = __toESM(require_react_dom(), 1), import_react45 = __toESM(require_react(), 1);
  61493. function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = !0) {
  61494. let [isEntering, setEntering] = (0, import_react45.useState)(!0), isAnimationReady = isEntering && isReady;
  61495. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61496. if (isAnimationReady && ref.current && "getAnimations" in ref.current)
  61497. for (let animation2 of ref.current.getAnimations()) animation2 instanceof CSSTransition && animation2.cancel();
  61498. }, [
  61499. ref,
  61500. isAnimationReady
  61501. ]), $d3f049242431219c$var$useAnimation(ref, isAnimationReady, (0, import_react45.useCallback)(() => setEntering(!1), [])), isAnimationReady;
  61502. }
  61503. function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {
  61504. let [exitState, setExitState] = (0, import_react45.useState)(isOpen ? "open" : "closed");
  61505. switch (exitState) {
  61506. case "open":
  61507. isOpen || setExitState("exiting");
  61508. break;
  61509. case "closed":
  61510. case "exiting":
  61511. isOpen && setExitState("open");
  61512. break;
  61513. }
  61514. let isExiting = exitState === "exiting";
  61515. return $d3f049242431219c$var$useAnimation(ref, isExiting, (0, import_react45.useCallback)(() => {
  61516. setExitState((state3) => state3 === "exiting" ? "closed" : state3);
  61517. }, [])), isExiting;
  61518. }
  61519. function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
  61520. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61521. if (isActive && ref.current) {
  61522. if (!("getAnimations" in ref.current)) {
  61523. onEnd();
  61524. return;
  61525. }
  61526. let animations = ref.current.getAnimations();
  61527. if (animations.length === 0) {
  61528. onEnd();
  61529. return;
  61530. }
  61531. let canceled = !1;
  61532. return Promise.all(animations.map((a3) => a3.finished)).then(() => {
  61533. canceled || (0, import_react_dom.flushSync)(() => {
  61534. onEnd();
  61535. });
  61536. }).catch(() => {
  61537. }), () => {
  61538. canceled = !0;
  61539. };
  61540. }
  61541. }, [
  61542. ref,
  61543. isActive,
  61544. onEnd
  61545. ]);
  61546. }
  61547. // ../../node_modules/@react-aria/utils/dist/isElementVisible.mjs
  61548. var $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element < "u" && "checkVisibility" in Element.prototype;
  61549. function $7d2416ea0959daaa$var$isStyleVisible(element) {
  61550. let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
  61551. if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return !1;
  61552. let { display: display2, visibility } = element.style, isVisible2 = display2 !== "none" && visibility !== "hidden" && visibility !== "collapse";
  61553. if (isVisible2) {
  61554. let { getComputedStyle: getComputedStyle3 } = element.ownerDocument.defaultView, { display: computedDisplay, visibility: computedVisibility } = getComputedStyle3(element);
  61555. isVisible2 = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
  61556. }
  61557. return isVisible2;
  61558. }
  61559. function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {
  61560. return !element.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
  61561. !element.hasAttribute("data-react-aria-prevent-focus") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : !0);
  61562. }
  61563. function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {
  61564. return $7d2416ea0959daaa$var$supportsCheckVisibility ? element.checkVisibility({
  61565. visibilityProperty: !0
  61566. }) && !element.closest("[data-react-aria-prevent-focus]") : element.nodeName !== "#comment" && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));
  61567. }
  61568. // ../../node_modules/@react-aria/utils/dist/isFocusable.mjs
  61569. var $b4b717babfbb907b$var$focusableElements = [
  61570. "input:not([disabled]):not([type=hidden])",
  61571. "select:not([disabled])",
  61572. "textarea:not([disabled])",
  61573. "button:not([disabled])",
  61574. "a[href]",
  61575. "area[href]",
  61576. "summary",
  61577. "iframe",
  61578. "object",
  61579. "embed",
  61580. "audio[controls]",
  61581. "video[controls]",
  61582. '[contenteditable]:not([contenteditable^="false"])',
  61583. "permission"
  61584. ], $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
  61585. $b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
  61586. var $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
  61587. function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
  61588. return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element);
  61589. }
  61590. function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
  61591. return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element);
  61592. }
  61593. function $b4b717babfbb907b$var$isInert(element) {
  61594. let node2 = element;
  61595. for (; node2 != null; ) {
  61596. if (node2 instanceof node2.ownerDocument.defaultView.HTMLElement && node2.inert) return !0;
  61597. node2 = node2.parentElement;
  61598. }
  61599. return !1;
  61600. }
  61601. // ../../node_modules/@react-stately/utils/dist/useControlledState.mjs
  61602. var import_react46 = __toESM(require_react(), 1), $458b0a5536c1a7cf$var$_React_useInsertionEffect, $458b0a5536c1a7cf$var$useEarlyEffect = typeof document < "u" ? ($458b0a5536c1a7cf$var$_React_useInsertionEffect = import_react46.default.useInsertionEffect) !== null && $458b0a5536c1a7cf$var$_React_useInsertionEffect !== void 0 ? $458b0a5536c1a7cf$var$_React_useInsertionEffect : import_react46.default.useLayoutEffect : () => {
  61603. };
  61604. function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
  61605. let [stateValue, setStateValue] = (0, import_react46.useState)(value || defaultValue), valueRef = (0, import_react46.useRef)(stateValue), isControlledRef = (0, import_react46.useRef)(value !== void 0), isControlled = value !== void 0;
  61606. (0, import_react46.useEffect)(() => {
  61607. let wasControlled = isControlledRef.current;
  61608. isControlledRef.current = isControlled;
  61609. }, [
  61610. isControlled
  61611. ]);
  61612. let currentValue = isControlled ? value : stateValue;
  61613. $458b0a5536c1a7cf$var$useEarlyEffect(() => {
  61614. valueRef.current = currentValue;
  61615. });
  61616. let [, forceUpdate] = (0, import_react46.useReducer)(() => ({}), {}), setValue = (0, import_react46.useCallback)((value2, ...args) => {
  61617. let newValue = typeof value2 == "function" ? value2(valueRef.current) : value2;
  61618. Object.is(valueRef.current, newValue) || (valueRef.current = newValue, setStateValue(newValue), forceUpdate(), onChange?.(newValue, ...args));
  61619. }, [
  61620. onChange
  61621. ]);
  61622. return [
  61623. currentValue,
  61624. setValue
  61625. ];
  61626. }
  61627. // ../../node_modules/@react-stately/utils/dist/number.mjs
  61628. function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min2 = -1 / 0, max2 = 1 / 0) {
  61629. return Math.min(Math.max(value, min2), max2);
  61630. }
  61631. // ../../node_modules/@react-aria/interactions/dist/utils.mjs
  61632. var import_react47 = __toESM(require_react(), 1);
  61633. function $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent) {
  61634. let event = nativeEvent;
  61635. return event.nativeEvent = nativeEvent, event.isDefaultPrevented = () => event.defaultPrevented, event.isPropagationStopped = () => event.cancelBubble, event.persist = () => {
  61636. }, event;
  61637. }
  61638. function $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target) {
  61639. Object.defineProperty(event, "target", {
  61640. value: target
  61641. }), Object.defineProperty(event, "currentTarget", {
  61642. value: target
  61643. });
  61644. }
  61645. function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
  61646. let stateRef = (0, import_react47.useRef)({
  61647. isFocused: !1,
  61648. observer: null
  61649. });
  61650. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61651. let state3 = stateRef.current;
  61652. return () => {
  61653. state3.observer && (state3.observer.disconnect(), state3.observer = null);
  61654. };
  61655. }, []);
  61656. let dispatchBlur = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61657. onBlur?.(e);
  61658. });
  61659. return (0, import_react47.useCallback)((e) => {
  61660. if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
  61661. stateRef.current.isFocused = !0;
  61662. let target = e.target, onBlurHandler = (e2) => {
  61663. if (stateRef.current.isFocused = !1, target.disabled) {
  61664. let event = $8a9cb279dc87e130$export$525bc4921d56d4a(e2);
  61665. dispatchBlur(event);
  61666. }
  61667. stateRef.current.observer && (stateRef.current.observer.disconnect(), stateRef.current.observer = null);
  61668. };
  61669. target.addEventListener("focusout", onBlurHandler, {
  61670. once: !0
  61671. }), stateRef.current.observer = new MutationObserver(() => {
  61672. if (stateRef.current.isFocused && target.disabled) {
  61673. var _stateRef_current_observer;
  61674. (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 || _stateRef_current_observer.disconnect();
  61675. let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
  61676. target.dispatchEvent(new FocusEvent("blur", {
  61677. relatedTarget: relatedTargetEl
  61678. })), target.dispatchEvent(new FocusEvent("focusout", {
  61679. bubbles: !0,
  61680. relatedTarget: relatedTargetEl
  61681. }));
  61682. }
  61683. }), stateRef.current.observer.observe(target, {
  61684. attributes: !0,
  61685. attributeFilter: [
  61686. "disabled"
  61687. ]
  61688. });
  61689. }
  61690. }, [
  61691. dispatchBlur
  61692. ]);
  61693. }
  61694. var $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !1;
  61695. function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
  61696. for (; target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target); ) target = target.parentElement;
  61697. let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target), activeElement = window2.document.activeElement;
  61698. if (!activeElement || activeElement === target) return;
  61699. $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !0;
  61700. let isRefocusing = !1, onBlur = (e) => {
  61701. (e.target === activeElement || isRefocusing) && e.stopImmediatePropagation();
  61702. }, onFocusOut = (e) => {
  61703. (e.target === activeElement || isRefocusing) && (e.stopImmediatePropagation(), !target && !isRefocusing && (isRefocusing = !0, $7215afc6de606d6b$export$de79e2c695e052f3(activeElement), cleanup()));
  61704. }, onFocus = (e) => {
  61705. (e.target === target || isRefocusing) && e.stopImmediatePropagation();
  61706. }, onFocusIn = (e) => {
  61707. (e.target === target || isRefocusing) && (e.stopImmediatePropagation(), isRefocusing || (isRefocusing = !0, $7215afc6de606d6b$export$de79e2c695e052f3(activeElement), cleanup()));
  61708. };
  61709. window2.addEventListener("blur", onBlur, !0), window2.addEventListener("focusout", onFocusOut, !0), window2.addEventListener("focusin", onFocusIn, !0), window2.addEventListener("focus", onFocus, !0);
  61710. let cleanup = () => {
  61711. cancelAnimationFrame(raf), window2.removeEventListener("blur", onBlur, !0), window2.removeEventListener("focusout", onFocusOut, !0), window2.removeEventListener("focusin", onFocusIn, !0), window2.removeEventListener("focus", onFocus, !0), $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !1, isRefocusing = !1;
  61712. }, raf = requestAnimationFrame(cleanup);
  61713. return cleanup;
  61714. }
  61715. // ../../node_modules/@react-aria/interactions/dist/textSelection.mjs
  61716. var $14c0b72509d70225$var$state = "default", $14c0b72509d70225$var$savedUserSelect = "", $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
  61717. function $14c0b72509d70225$export$16a4697467175487(target) {
  61718. if ($c87311424ea30a05$export$fedb369cb70207f1()) {
  61719. if ($14c0b72509d70225$var$state === "default") {
  61720. let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target);
  61721. $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect, documentObject.documentElement.style.webkitUserSelect = "none";
  61722. }
  61723. $14c0b72509d70225$var$state = "disabled";
  61724. } else if (target instanceof HTMLElement || target instanceof SVGElement) {
  61725. let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
  61726. $14c0b72509d70225$var$modifiedElementMap.set(target, target.style[property]), target.style[property] = "none";
  61727. }
  61728. }
  61729. function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
  61730. if ($c87311424ea30a05$export$fedb369cb70207f1()) {
  61731. if ($14c0b72509d70225$var$state !== "disabled") return;
  61732. $14c0b72509d70225$var$state = "restoring", setTimeout(() => {
  61733. $bbed8b41f857bcc0$export$24490316f764c430(() => {
  61734. if ($14c0b72509d70225$var$state === "restoring") {
  61735. let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target);
  61736. documentObject.documentElement.style.webkitUserSelect === "none" && (documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || ""), $14c0b72509d70225$var$savedUserSelect = "", $14c0b72509d70225$var$state = "default";
  61737. }
  61738. });
  61739. }, 300);
  61740. } else if ((target instanceof HTMLElement || target instanceof SVGElement) && target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
  61741. let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target), property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
  61742. target.style[property] === "none" && (target.style[property] = targetOldUserSelect), target.getAttribute("style") === "" && target.removeAttribute("style"), $14c0b72509d70225$var$modifiedElementMap.delete(target);
  61743. }
  61744. }
  61745. // ../../node_modules/@react-aria/interactions/dist/context.mjs
  61746. var import_react48 = __toESM(require_react(), 1), $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = import_react48.default.createContext({
  61747. register: () => {
  61748. }
  61749. });
  61750. $ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
  61751. // ../../node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js
  61752. function _class_apply_descriptor_get(receiver, descriptor) {
  61753. return descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
  61754. }
  61755. // ../../node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js
  61756. function _class_extract_field_descriptor(receiver, privateMap, action2) {
  61757. if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action2 + " private field on non-instance");
  61758. return privateMap.get(receiver);
  61759. }
  61760. // ../../node_modules/@swc/helpers/esm/_class_private_field_get.js
  61761. function _class_private_field_get(receiver, privateMap) {
  61762. var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
  61763. return _class_apply_descriptor_get(receiver, descriptor);
  61764. }
  61765. // ../../node_modules/@swc/helpers/esm/_check_private_redeclaration.js
  61766. function _check_private_redeclaration(obj, privateCollection) {
  61767. if (privateCollection.has(obj))
  61768. throw new TypeError("Cannot initialize the same private elements twice on an object");
  61769. }
  61770. // ../../node_modules/@swc/helpers/esm/_class_private_field_init.js
  61771. function _class_private_field_init(obj, privateMap, value) {
  61772. _check_private_redeclaration(obj, privateMap), privateMap.set(obj, value);
  61773. }
  61774. // ../../node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js
  61775. function _class_apply_descriptor_set(receiver, descriptor, value) {
  61776. if (descriptor.set) descriptor.set.call(receiver, value);
  61777. else {
  61778. if (!descriptor.writable)
  61779. throw new TypeError("attempted to set read only private field");
  61780. descriptor.value = value;
  61781. }
  61782. }
  61783. // ../../node_modules/@swc/helpers/esm/_class_private_field_set.js
  61784. function _class_private_field_set(receiver, privateMap, value) {
  61785. var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
  61786. return _class_apply_descriptor_set(receiver, descriptor, value), value;
  61787. }
  61788. // ../../node_modules/@react-aria/interactions/dist/usePress.mjs
  61789. var import_react_dom2 = __toESM(require_react_dom(), 1), import_react49 = __toESM(require_react(), 1);
  61790. function $f6c31cce2adf654f$var$usePressResponderContext(props) {
  61791. let context = (0, import_react49.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
  61792. if (context) {
  61793. let { register, ...contextProps } = context;
  61794. props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props), register();
  61795. }
  61796. return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, props.ref), props;
  61797. }
  61798. var $f6c31cce2adf654f$var$_shouldStopPropagation = /* @__PURE__ */ new WeakMap(), $f6c31cce2adf654f$var$PressEvent = class {
  61799. continuePropagation() {
  61800. _class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, !1);
  61801. }
  61802. get shouldStopPropagation() {
  61803. return _class_private_field_get(this, $f6c31cce2adf654f$var$_shouldStopPropagation);
  61804. }
  61805. constructor(type5, pointerType, originalEvent, state3) {
  61806. _class_private_field_init(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {
  61807. writable: !0,
  61808. value: void 0
  61809. }), _class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, !0);
  61810. var _state_target;
  61811. let currentTarget = (_state_target = state3?.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget, rect = currentTarget?.getBoundingClientRect(), x, y = 0, clientX, clientY = null;
  61812. originalEvent.clientX != null && originalEvent.clientY != null && (clientX = originalEvent.clientX, clientY = originalEvent.clientY), rect && (clientX != null && clientY != null ? (x = clientX - rect.left, y = clientY - rect.top) : (x = rect.width / 2, y = rect.height / 2)), this.type = type5, this.pointerType = pointerType, this.target = originalEvent.currentTarget, this.shiftKey = originalEvent.shiftKey, this.metaKey = originalEvent.metaKey, this.ctrlKey = originalEvent.ctrlKey, this.altKey = originalEvent.altKey, this.x = x, this.y = y;
  61813. }
  61814. }, $f6c31cce2adf654f$var$LINK_CLICKED = /* @__PURE__ */ Symbol("linkClicked"), $f6c31cce2adf654f$var$STYLE_ID = "react-aria-pressable-style", $f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE = "data-react-aria-pressable";
  61815. function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
  61816. let { onPress, onPressChange, onPressStart, onPressEnd, onPressUp, onClick, isDisabled: isDisabled3, isPressed: isPressedProp, preventFocusOnPress, shouldCancelOnPointerExit, allowTextSelectionOnPress, ref: domRef, ...domProps } = $f6c31cce2adf654f$var$usePressResponderContext(props), [isPressed, setPressed] = (0, import_react49.useState)(!1), ref = (0, import_react49.useRef)({
  61817. isPressed: !1,
  61818. ignoreEmulatedMouseEvents: !1,
  61819. didFirePressStart: !1,
  61820. isTriggeringEvent: !1,
  61821. activePointerId: null,
  61822. target: null,
  61823. isOverTarget: !1,
  61824. pointerType: null,
  61825. disposables: []
  61826. }), { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), triggerPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
  61827. let state3 = ref.current;
  61828. if (isDisabled3 || state3.didFirePressStart) return !1;
  61829. let shouldStopPropagation = !0;
  61830. if (state3.isTriggeringEvent = !0, onPressStart) {
  61831. let event = new $f6c31cce2adf654f$var$PressEvent("pressstart", pointerType, originalEvent);
  61832. onPressStart(event), shouldStopPropagation = event.shouldStopPropagation;
  61833. }
  61834. return onPressChange && onPressChange(!0), state3.isTriggeringEvent = !1, state3.didFirePressStart = !0, setPressed(!0), shouldStopPropagation;
  61835. }), triggerPressEnd = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType, wasPressed = !0) => {
  61836. let state3 = ref.current;
  61837. if (!state3.didFirePressStart) return !1;
  61838. state3.didFirePressStart = !1, state3.isTriggeringEvent = !0;
  61839. let shouldStopPropagation = !0;
  61840. if (onPressEnd) {
  61841. let event = new $f6c31cce2adf654f$var$PressEvent("pressend", pointerType, originalEvent);
  61842. onPressEnd(event), shouldStopPropagation = event.shouldStopPropagation;
  61843. }
  61844. if (onPressChange && onPressChange(!1), setPressed(!1), onPress && wasPressed && !isDisabled3) {
  61845. let event = new $f6c31cce2adf654f$var$PressEvent("press", pointerType, originalEvent);
  61846. onPress(event), shouldStopPropagation && (shouldStopPropagation = event.shouldStopPropagation);
  61847. }
  61848. return state3.isTriggeringEvent = !1, shouldStopPropagation;
  61849. }), triggerPressUp = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
  61850. let state3 = ref.current;
  61851. if (isDisabled3) return !1;
  61852. if (onPressUp) {
  61853. state3.isTriggeringEvent = !0;
  61854. let event = new $f6c31cce2adf654f$var$PressEvent("pressup", pointerType, originalEvent);
  61855. return onPressUp(event), state3.isTriggeringEvent = !1, event.shouldStopPropagation;
  61856. }
  61857. return !0;
  61858. }), cancel = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61859. let state3 = ref.current;
  61860. if (state3.isPressed && state3.target) {
  61861. state3.didFirePressStart && state3.pointerType != null && triggerPressEnd($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType, !1), state3.isPressed = !1, state3.isOverTarget = !1, state3.activePointerId = null, state3.pointerType = null, removeAllGlobalListeners(), allowTextSelectionOnPress || $14c0b72509d70225$export$b0d6fa1ab32e3295(state3.target);
  61862. for (let dispose of state3.disposables) dispose();
  61863. state3.disposables = [];
  61864. }
  61865. }), cancelOnPointerExit = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61866. shouldCancelOnPointerExit && cancel(e);
  61867. }), triggerClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61868. isDisabled3 || onClick?.(e);
  61869. }), triggerSyntheticClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e, target) => {
  61870. if (!isDisabled3 && onClick) {
  61871. let event = new MouseEvent("click", e);
  61872. $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target), onClick($8a9cb279dc87e130$export$525bc4921d56d4a(event));
  61873. }
  61874. }), pressProps = (0, import_react49.useMemo)(() => {
  61875. let state3 = ref.current, pressProps2 = {
  61876. onKeyDown(e) {
  61877. if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) {
  61878. var _state_metaKeyEvents;
  61879. $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent), e.key) && e.preventDefault();
  61880. let shouldStopPropagation = !0;
  61881. if (!state3.isPressed && !e.repeat) {
  61882. state3.target = e.currentTarget, state3.isPressed = !0, state3.pointerType = "keyboard", shouldStopPropagation = triggerPressStart(e, "keyboard");
  61883. let originalTarget = e.currentTarget, pressUp = (e2) => {
  61884. $f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && $d4ee10de306f2510$export$4282f70798064fe0(originalTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e2)) && state3.target && triggerPressUp($f6c31cce2adf654f$var$createEvent(state3.target, e2), "keyboard");
  61885. };
  61886. addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", $ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), !0);
  61887. }
  61888. shouldStopPropagation && e.stopPropagation(), e.metaKey && $c87311424ea30a05$export$9ac100e40613ea10() && ((_state_metaKeyEvents = state3.metaKeyEvents) === null || _state_metaKeyEvents === void 0 || _state_metaKeyEvents.set(e.key, e.nativeEvent));
  61889. } else e.key === "Meta" && (state3.metaKeyEvents = /* @__PURE__ */ new Map());
  61890. },
  61891. onClick(e) {
  61892. if (!(e && !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) && e && e.button === 0 && !state3.isTriggeringEvent && !$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) {
  61893. let shouldStopPropagation = !0;
  61894. if (isDisabled3 && e.preventDefault(), !state3.ignoreEmulatedMouseEvents && !state3.isPressed && (state3.pointerType === "virtual" || $6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
  61895. let stopPressStart = triggerPressStart(e, "virtual"), stopPressUp = triggerPressUp(e, "virtual"), stopPressEnd = triggerPressEnd(e, "virtual");
  61896. triggerClick(e), shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
  61897. } else if (state3.isPressed && state3.pointerType !== "keyboard") {
  61898. let pointerType = state3.pointerType || e.nativeEvent.pointerType || "virtual", stopPressUp = triggerPressUp($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType), stopPressEnd = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, !0);
  61899. shouldStopPropagation = stopPressUp && stopPressEnd, state3.isOverTarget = !1, triggerClick(e), cancel(e);
  61900. }
  61901. state3.ignoreEmulatedMouseEvents = !1, shouldStopPropagation && e.stopPropagation();
  61902. }
  61903. }
  61904. }, onKeyUp = (e) => {
  61905. var _state_metaKeyEvents;
  61906. if (state3.isPressed && state3.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state3.target)) {
  61907. var _state_metaKeyEvents1;
  61908. $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e), e.key) && e.preventDefault();
  61909. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e), wasPressed = $d4ee10de306f2510$export$4282f70798064fe0(state3.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e));
  61910. triggerPressEnd($f6c31cce2adf654f$var$createEvent(state3.target, e), "keyboard", wasPressed), wasPressed && triggerSyntheticClick(e, state3.target), removeAllGlobalListeners(), e.key !== "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(state3.target) && $d4ee10de306f2510$export$4282f70798064fe0(state3.target, target) && !e[$f6c31cce2adf654f$var$LINK_CLICKED] && (e[$f6c31cce2adf654f$var$LINK_CLICKED] = !0, $ea8dcbcb9ea1b556$export$95185d699e05d4d7(state3.target, e, !1)), state3.isPressed = !1, (_state_metaKeyEvents1 = state3.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 || _state_metaKeyEvents1.delete(e.key);
  61911. } else if (e.key === "Meta" && (!((_state_metaKeyEvents = state3.metaKeyEvents) === null || _state_metaKeyEvents === void 0) && _state_metaKeyEvents.size)) {
  61912. var _state_target;
  61913. let events2 = state3.metaKeyEvents;
  61914. state3.metaKeyEvents = void 0;
  61915. for (let event of events2.values()) (_state_target = state3.target) === null || _state_target === void 0 || _state_target.dispatchEvent(new KeyboardEvent("keyup", event));
  61916. }
  61917. };
  61918. if (typeof PointerEvent < "u") {
  61919. pressProps2.onPointerDown = (e) => {
  61920. if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
  61921. if ($6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
  61922. state3.pointerType = "virtual";
  61923. return;
  61924. }
  61925. state3.pointerType = e.pointerType;
  61926. let shouldStopPropagation = !0;
  61927. if (!state3.isPressed) {
  61928. state3.isPressed = !0, state3.isOverTarget = !0, state3.activePointerId = e.pointerId, state3.target = e.currentTarget, allowTextSelectionOnPress || $14c0b72509d70225$export$16a4697467175487(state3.target), shouldStopPropagation = triggerPressStart(e, state3.pointerType);
  61929. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent);
  61930. "releasePointerCapture" in target && target.releasePointerCapture(e.pointerId), addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, !1), addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, !1);
  61931. }
  61932. shouldStopPropagation && e.stopPropagation();
  61933. }, pressProps2.onMouseDown = (e) => {
  61934. if ($d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) && e.button === 0) {
  61935. if (preventFocusOnPress) {
  61936. let dispose = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target);
  61937. dispose && state3.disposables.push(dispose);
  61938. }
  61939. e.stopPropagation();
  61940. }
  61941. }, pressProps2.onPointerUp = (e) => {
  61942. !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state3.pointerType === "virtual" || e.button === 0 && !state3.isPressed && triggerPressUp(e, state3.pointerType || e.pointerType);
  61943. }, pressProps2.onPointerEnter = (e) => {
  61944. e.pointerId === state3.activePointerId && state3.target && !state3.isOverTarget && state3.pointerType != null && (state3.isOverTarget = !0, triggerPressStart($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType));
  61945. }, pressProps2.onPointerLeave = (e) => {
  61946. e.pointerId === state3.activePointerId && state3.target && state3.isOverTarget && state3.pointerType != null && (state3.isOverTarget = !1, triggerPressEnd($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType, !1), cancelOnPointerExit(e));
  61947. };
  61948. let onPointerUp = (e) => {
  61949. if (e.pointerId === state3.activePointerId && state3.isPressed && e.button === 0 && state3.target) {
  61950. if ($d4ee10de306f2510$export$4282f70798064fe0(state3.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) && state3.pointerType != null) {
  61951. let clicked = !1, timeout = setTimeout(() => {
  61952. state3.isPressed && state3.target instanceof HTMLElement && (clicked ? cancel(e) : ($7215afc6de606d6b$export$de79e2c695e052f3(state3.target), state3.target.click()));
  61953. }, 80);
  61954. addGlobalListener(e.currentTarget, "click", () => clicked = !0, !0), state3.disposables.push(() => clearTimeout(timeout));
  61955. } else cancel(e);
  61956. state3.isOverTarget = !1;
  61957. }
  61958. }, onPointerCancel = (e) => {
  61959. cancel(e);
  61960. };
  61961. pressProps2.onDragStart = (e) => {
  61962. $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) && cancel(e);
  61963. };
  61964. }
  61965. return pressProps2;
  61966. }, [
  61967. addGlobalListener,
  61968. isDisabled3,
  61969. preventFocusOnPress,
  61970. removeAllGlobalListeners,
  61971. allowTextSelectionOnPress,
  61972. cancel,
  61973. cancelOnPointerExit,
  61974. triggerPressEnd,
  61975. triggerPressStart,
  61976. triggerPressUp,
  61977. triggerClick,
  61978. triggerSyntheticClick
  61979. ]);
  61980. return (0, import_react49.useEffect)(() => {
  61981. if (!domRef) return;
  61982. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(domRef.current);
  61983. if (!ownerDocument || !ownerDocument.head || ownerDocument.getElementById($f6c31cce2adf654f$var$STYLE_ID)) return;
  61984. let style = ownerDocument.createElement("style");
  61985. style.id = $f6c31cce2adf654f$var$STYLE_ID, style.textContent = `
  61986. @layer {
  61987. [${$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE}] {
  61988. touch-action: pan-x pan-y pinch-zoom;
  61989. }
  61990. }
  61991. `.trim(), ownerDocument.head.prepend(style);
  61992. }, [
  61993. domRef
  61994. ]), (0, import_react49.useEffect)(() => {
  61995. let state3 = ref.current;
  61996. return () => {
  61997. var _state_target;
  61998. allowTextSelectionOnPress || $14c0b72509d70225$export$b0d6fa1ab32e3295((_state_target = state3.target) !== null && _state_target !== void 0 ? _state_target : void 0);
  61999. for (let dispose of state3.disposables) dispose();
  62000. state3.disposables = [];
  62001. };
  62002. }, [
  62003. allowTextSelectionOnPress
  62004. ]), {
  62005. isPressed: isPressedProp || isPressed,
  62006. pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps, {
  62007. [$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE]: !0
  62008. })
  62009. };
  62010. }
  62011. function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
  62012. return target.tagName === "A" && target.hasAttribute("href");
  62013. }
  62014. function $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {
  62015. let { key, code } = event, element = currentTarget, role = element.getAttribute("role");
  62016. return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key
  62017. !((role === "link" || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== "Enter");
  62018. }
  62019. function $f6c31cce2adf654f$var$createEvent(target, e) {
  62020. let clientX = e.clientX, clientY = e.clientY;
  62021. return {
  62022. currentTarget: target,
  62023. shiftKey: e.shiftKey,
  62024. ctrlKey: e.ctrlKey,
  62025. metaKey: e.metaKey,
  62026. altKey: e.altKey,
  62027. clientX,
  62028. clientY
  62029. };
  62030. }
  62031. function $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) {
  62032. return target instanceof HTMLInputElement ? !1 : target instanceof HTMLButtonElement ? target.type !== "submit" && target.type !== "reset" : !$f6c31cce2adf654f$var$isHTMLAnchorLink(target);
  62033. }
  62034. function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) {
  62035. return target instanceof HTMLInputElement ? !$f6c31cce2adf654f$var$isValidInputKey(target, key) : $f6c31cce2adf654f$var$shouldPreventDefaultUp(target);
  62036. }
  62037. var $f6c31cce2adf654f$var$nonTextInputTypes = /* @__PURE__ */ new Set([
  62038. "checkbox",
  62039. "radio",
  62040. "range",
  62041. "color",
  62042. "file",
  62043. "image",
  62044. "button",
  62045. "submit",
  62046. "reset"
  62047. ]);
  62048. function $f6c31cce2adf654f$var$isValidInputKey(target, key) {
  62049. return target.type === "checkbox" || target.type === "radio" ? key === " " : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type);
  62050. }
  62051. // ../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs
  62052. var import_react50 = __toESM(require_react(), 1);
  62053. var $507fabe10e71c6fb$var$currentModality = null, $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set(), $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map(), $507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !1, $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
  62054. Tab: !0,
  62055. Escape: !0
  62056. };
  62057. function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
  62058. for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
  62059. }
  62060. function $507fabe10e71c6fb$var$isValidKey(e) {
  62061. return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
  62062. }
  62063. function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
  62064. $507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$isValidKey(e) && ($507fabe10e71c6fb$var$currentModality = "keyboard", $507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e));
  62065. }
  62066. function $507fabe10e71c6fb$var$handlePointerEvent(e) {
  62067. $507fabe10e71c6fb$var$currentModality = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e));
  62068. }
  62069. function $507fabe10e71c6fb$var$handleClickEvent(e) {
  62070. $6a7db85432448f7f$export$60278871457622de(e) && ($507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$currentModality = "virtual");
  62071. }
  62072. function $507fabe10e71c6fb$var$handleFocusEvent(e) {
  62073. e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted || (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently && ($507fabe10e71c6fb$var$currentModality = "virtual", $507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e)), $507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !1);
  62074. }
  62075. function $507fabe10e71c6fb$var$handleWindowBlur() {
  62076. $8a9cb279dc87e130$export$fda7da73ab5d4c48 || ($507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !0);
  62077. }
  62078. function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
  62079. if (typeof window > "u" || typeof document > "u" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
  62080. let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element), documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element), focus = windowObject.HTMLElement.prototype.focus;
  62081. windowObject.HTMLElement.prototype.focus = function() {
  62082. $507fabe10e71c6fb$var$hasEventBeforeFocus = !0, focus.apply(this, arguments);
  62083. }, documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, !0), windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, !0), windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, !1), typeof PointerEvent < "u" && (documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, !0)), windowObject.addEventListener("beforeunload", () => {
  62084. $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
  62085. }, {
  62086. once: !0
  62087. }), $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
  62088. focus
  62089. });
  62090. }
  62091. var $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
  62092. let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element), documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
  62093. loadListener && documentObject.removeEventListener("DOMContentLoaded", loadListener), $507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject) && (windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus, documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, !0), windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, !0), windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, !1), typeof PointerEvent < "u" && (documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, !0)), $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject));
  62094. };
  62095. function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
  62096. let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element), loadListener;
  62097. return documentObject.readyState !== "loading" ? $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) : (loadListener = () => {
  62098. $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
  62099. }, documentObject.addEventListener("DOMContentLoaded", loadListener)), () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
  62100. }
  62101. typeof document < "u" && $507fabe10e71c6fb$export$2f1888112f558a7d();
  62102. function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
  62103. return $507fabe10e71c6fb$var$currentModality !== "pointer";
  62104. }
  62105. function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
  62106. return $507fabe10e71c6fb$var$currentModality;
  62107. }
  62108. function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
  62109. $507fabe10e71c6fb$var$setupGlobalFocusEvents();
  62110. let [modality, setModality] = (0, import_react50.useState)($507fabe10e71c6fb$var$currentModality);
  62111. return (0, import_react50.useEffect)(() => {
  62112. let handler = () => {
  62113. setModality($507fabe10e71c6fb$var$currentModality);
  62114. };
  62115. return $507fabe10e71c6fb$var$changeHandlers.add(handler), () => {
  62116. $507fabe10e71c6fb$var$changeHandlers.delete(handler);
  62117. };
  62118. }, []), $b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
  62119. }
  62120. var $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
  62121. "checkbox",
  62122. "radio",
  62123. "range",
  62124. "color",
  62125. "file",
  62126. "image",
  62127. "button",
  62128. "submit",
  62129. "reset"
  62130. ]);
  62131. function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
  62132. let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e?.target), IHTMLInputElement = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).HTMLInputElement : HTMLInputElement, IHTMLTextAreaElement = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).HTMLTextAreaElement : HTMLTextAreaElement, IHTMLElement = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).HTMLElement : HTMLElement, IKeyboardEvent = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).KeyboardEvent : KeyboardEvent;
  62133. return isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable, !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
  62134. }
  62135. function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn4, deps, opts) {
  62136. $507fabe10e71c6fb$var$setupGlobalFocusEvents(), (0, import_react50.useEffect)(() => {
  62137. let handler = (modality, e) => {
  62138. $507fabe10e71c6fb$var$isKeyboardFocusEvent(!!opts?.isTextInput, modality, e) && fn4($507fabe10e71c6fb$export$b9b3dfddab17db27());
  62139. };
  62140. return $507fabe10e71c6fb$var$changeHandlers.add(handler), () => {
  62141. $507fabe10e71c6fb$var$changeHandlers.delete(handler);
  62142. };
  62143. }, deps);
  62144. }
  62145. // ../../node_modules/@react-aria/interactions/dist/focusSafely.mjs
  62146. function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
  62147. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  62148. if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
  62149. let lastFocusedElement = activeElement;
  62150. $bbed8b41f857bcc0$export$24490316f764c430(() => {
  62151. $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected && $7215afc6de606d6b$export$de79e2c695e052f3(element);
  62152. });
  62153. } else $7215afc6de606d6b$export$de79e2c695e052f3(element);
  62154. }
  62155. // ../../node_modules/@react-aria/interactions/dist/useFocus.mjs
  62156. var import_react51 = __toESM(require_react(), 1);
  62157. function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
  62158. let { isDisabled: isDisabled3, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props, onBlur = (0, import_react51.useCallback)((e) => {
  62159. if (e.target === e.currentTarget)
  62160. return onBlurProp && onBlurProp(e), onFocusChange && onFocusChange(!1), !0;
  62161. }, [
  62162. onBlurProp,
  62163. onFocusChange
  62164. ]), onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur), onFocus = (0, import_react51.useCallback)((e) => {
  62165. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target), activeElement = ownerDocument ? $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : $d4ee10de306f2510$export$cd4e5573fbe2b576();
  62166. e.target === e.currentTarget && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent) && (onFocusProp && onFocusProp(e), onFocusChange && onFocusChange(!0), onSyntheticFocus(e));
  62167. }, [
  62168. onFocusChange,
  62169. onFocusProp,
  62170. onSyntheticFocus
  62171. ]);
  62172. return {
  62173. focusProps: {
  62174. onFocus: !isDisabled3 && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
  62175. onBlur: !isDisabled3 && (onBlurProp || onFocusChange) ? onBlur : void 0
  62176. }
  62177. };
  62178. }
  62179. // ../../node_modules/@react-aria/interactions/dist/createEventHandler.mjs
  62180. function $93925083ecbb358c$export$48d1ea6320830260(handler) {
  62181. if (!handler) return;
  62182. let shouldStopPropagation = !0;
  62183. return (e) => {
  62184. let event = {
  62185. ...e,
  62186. preventDefault() {
  62187. e.preventDefault();
  62188. },
  62189. isDefaultPrevented() {
  62190. return e.isDefaultPrevented();
  62191. },
  62192. stopPropagation() {
  62193. shouldStopPropagation = !0;
  62194. },
  62195. continuePropagation() {
  62196. shouldStopPropagation = !1;
  62197. },
  62198. isPropagationStopped() {
  62199. return shouldStopPropagation;
  62200. }
  62201. };
  62202. handler(event), shouldStopPropagation && e.stopPropagation();
  62203. };
  62204. }
  62205. // ../../node_modules/@react-aria/interactions/dist/useKeyboard.mjs
  62206. function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
  62207. return {
  62208. keyboardProps: props.isDisabled ? {} : {
  62209. onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
  62210. onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
  62211. }
  62212. };
  62213. }
  62214. // ../../node_modules/@react-aria/interactions/dist/useFocusable.mjs
  62215. var import_react52 = __toESM(require_react(), 1), $f645667febf57a63$export$f9762fab77588ecb = import_react52.default.createContext(null);
  62216. function $f645667febf57a63$var$useFocusableContext(ref) {
  62217. let context = (0, import_react52.useContext)($f645667febf57a63$export$f9762fab77588ecb) || {};
  62218. $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref);
  62219. let { ref: _, ...otherProps } = context;
  62220. return otherProps;
  62221. }
  62222. var $f645667febf57a63$export$13f3202a3e5ddd5 = import_react52.default.forwardRef(function(props, ref) {
  62223. let { children, ...otherProps } = props, objRef = $df56164dff5785e2$export$4338b53315abf666(ref), context = {
  62224. ...otherProps,
  62225. ref: objRef
  62226. };
  62227. return import_react52.default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
  62228. value: context
  62229. }, children);
  62230. });
  62231. function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
  62232. let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props), { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props), interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps), domProps = $f645667febf57a63$var$useFocusableContext(domRef), interactionProps = props.isDisabled ? {} : domProps, autoFocusRef = (0, import_react52.useRef)(props.autoFocus);
  62233. (0, import_react52.useEffect)(() => {
  62234. autoFocusRef.current && domRef.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current), autoFocusRef.current = !1;
  62235. }, [
  62236. domRef
  62237. ]);
  62238. let tabIndex = props.excludeFromTabOrder ? -1 : 0;
  62239. return props.isDisabled && (tabIndex = void 0), {
  62240. focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928({
  62241. ...interactions,
  62242. tabIndex
  62243. }, interactionProps)
  62244. };
  62245. }
  62246. var $f645667febf57a63$export$35a3bebf7ef2d934 = (0, import_react52.forwardRef)(({ children, ...props }, ref) => {
  62247. ref = $df56164dff5785e2$export$4338b53315abf666(ref);
  62248. let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref), child = import_react52.default.Children.only(children);
  62249. (0, import_react52.useEffect)(() => {
  62250. }, [
  62251. ref,
  62252. props.isDisabled
  62253. ]);
  62254. let childRef = parseInt(import_react52.default.version, 10) < 19 ? child.ref : child.props.ref;
  62255. return import_react52.default.cloneElement(child, {
  62256. ...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, child.props),
  62257. // @ts-ignore
  62258. ref: $5dc95899b306f630$export$c9058316764c140e(childRef, ref)
  62259. });
  62260. });
  62261. // ../../node_modules/@react-aria/interactions/dist/Pressable.mjs
  62262. var import_react53 = __toESM(require_react(), 1), $3b117e43dc0ca95d$export$27c701ed9e449e99 = import_react53.default.forwardRef(({ children, ...props }, ref) => {
  62263. ref = $df56164dff5785e2$export$4338b53315abf666(ref);
  62264. let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
  62265. ...props,
  62266. ref
  62267. }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref), child = import_react53.default.Children.only(children);
  62268. (0, import_react53.useEffect)(() => {
  62269. }, [
  62270. ref,
  62271. props.isDisabled
  62272. ]);
  62273. let childRef = parseInt(import_react53.default.version, 10) < 19 ? child.ref : child.props.ref;
  62274. return import_react53.default.cloneElement(child, {
  62275. ...$3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, focusableProps, child.props),
  62276. // @ts-ignore
  62277. ref: $5dc95899b306f630$export$c9058316764c140e(childRef, ref)
  62278. });
  62279. });
  62280. // ../../node_modules/@react-aria/interactions/dist/PressResponder.mjs
  62281. var import_react54 = __toESM(require_react(), 1), $f1ab8c75478c6f73$export$3351871ee4b288b8 = import_react54.default.forwardRef(({ children, ...props }, ref) => {
  62282. let isRegistered = (0, import_react54.useRef)(!1), prevContext = (0, import_react54.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
  62283. ref = $df56164dff5785e2$export$4338b53315abf666(ref || prevContext?.ref);
  62284. let context = $3ef42575df84b30b$export$9d1611c77c2fe928(prevContext || {}, {
  62285. ...props,
  62286. ref,
  62287. register() {
  62288. isRegistered.current = !0, prevContext && prevContext.register();
  62289. }
  62290. });
  62291. return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(prevContext, ref), (0, import_react54.useEffect)(() => {
  62292. isRegistered.current || (isRegistered.current = !0);
  62293. }, []), import_react54.default.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, {
  62294. value: context
  62295. }, children);
  62296. });
  62297. function $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children }) {
  62298. let context = (0, import_react54.useMemo)(() => ({
  62299. register: () => {
  62300. }
  62301. }), []);
  62302. return import_react54.default.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, {
  62303. value: context
  62304. }, children);
  62305. }
  62306. // ../../node_modules/@react-aria/interactions/dist/useFocusWithin.mjs
  62307. var import_react55 = __toESM(require_react(), 1);
  62308. function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
  62309. let { isDisabled: isDisabled3, onBlurWithin, onFocusWithin, onFocusWithinChange } = props, state3 = (0, import_react55.useRef)({
  62310. isFocusWithin: !1
  62311. }), { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), onBlur = (0, import_react55.useCallback)((e) => {
  62312. e.currentTarget.contains(e.target) && state3.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (state3.current.isFocusWithin = !1, removeAllGlobalListeners(), onBlurWithin && onBlurWithin(e), onFocusWithinChange && onFocusWithinChange(!1));
  62313. }, [
  62314. onBlurWithin,
  62315. onFocusWithinChange,
  62316. state3,
  62317. removeAllGlobalListeners
  62318. ]), onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur), onFocus = (0, import_react55.useCallback)((e) => {
  62319. if (!e.currentTarget.contains(e.target)) return;
  62320. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  62321. if (!state3.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
  62322. onFocusWithin && onFocusWithin(e), onFocusWithinChange && onFocusWithinChange(!0), state3.current.isFocusWithin = !0, onSyntheticFocus(e);
  62323. let currentTarget = e.currentTarget;
  62324. addGlobalListener(ownerDocument, "focus", (e2) => {
  62325. if (state3.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) {
  62326. let nativeEvent = new ownerDocument.defaultView.FocusEvent("blur", {
  62327. relatedTarget: e2.target
  62328. });
  62329. $8a9cb279dc87e130$export$c2b7abe5d61ec696(nativeEvent, currentTarget);
  62330. let event = $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent);
  62331. onBlur(event);
  62332. }
  62333. }, {
  62334. capture: !0
  62335. });
  62336. }
  62337. }, [
  62338. onFocusWithin,
  62339. onFocusWithinChange,
  62340. onSyntheticFocus,
  62341. addGlobalListener,
  62342. onBlur
  62343. ]);
  62344. return isDisabled3 ? {
  62345. focusWithinProps: {
  62346. // These cannot be null, that would conflict in mergeProps
  62347. onFocus: void 0,
  62348. onBlur: void 0
  62349. }
  62350. } : {
  62351. focusWithinProps: {
  62352. onFocus,
  62353. onBlur
  62354. }
  62355. };
  62356. }
  62357. // ../../node_modules/@react-aria/interactions/dist/useHover.mjs
  62358. var import_react56 = __toESM(require_react(), 1), $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !1, $6179b936705e76d3$var$hoverCount = 0;
  62359. function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
  62360. $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !0, setTimeout(() => {
  62361. $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !1;
  62362. }, 50);
  62363. }
  62364. function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
  62365. e.pointerType === "touch" && $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();
  62366. }
  62367. function $6179b936705e76d3$var$setupGlobalTouchEvents() {
  62368. if (!(typeof document > "u"))
  62369. return $6179b936705e76d3$var$hoverCount === 0 && typeof PointerEvent < "u" && document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent), $6179b936705e76d3$var$hoverCount++, () => {
  62370. $6179b936705e76d3$var$hoverCount--, !($6179b936705e76d3$var$hoverCount > 0) && typeof PointerEvent < "u" && document.removeEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
  62371. };
  62372. }
  62373. function $6179b936705e76d3$export$ae780daf29e6d456(props) {
  62374. let { onHoverStart, onHoverChange, onHoverEnd, isDisabled: isDisabled3 } = props, [isHovered, setHovered] = (0, import_react56.useState)(!1), state3 = (0, import_react56.useRef)({
  62375. isHovered: !1,
  62376. ignoreEmulatedMouseEvents: !1,
  62377. pointerType: "",
  62378. target: null
  62379. }).current;
  62380. (0, import_react56.useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []);
  62381. let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), { hoverProps, triggerHoverEnd } = (0, import_react56.useMemo)(() => {
  62382. let triggerHoverStart = (event, pointerType) => {
  62383. if (state3.pointerType = pointerType, isDisabled3 || pointerType === "touch" || state3.isHovered || !event.currentTarget.contains(event.target)) return;
  62384. state3.isHovered = !0;
  62385. let target = event.currentTarget;
  62386. state3.target = target, addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(event.target), "pointerover", (e) => {
  62387. state3.isHovered && state3.target && !$d4ee10de306f2510$export$4282f70798064fe0(state3.target, e.target) && triggerHoverEnd2(e, e.pointerType);
  62388. }, {
  62389. capture: !0
  62390. }), onHoverStart && onHoverStart({
  62391. type: "hoverstart",
  62392. target,
  62393. pointerType
  62394. }), onHoverChange && onHoverChange(!0), setHovered(!0);
  62395. }, triggerHoverEnd2 = (event, pointerType) => {
  62396. let target = state3.target;
  62397. state3.pointerType = "", state3.target = null, !(pointerType === "touch" || !state3.isHovered || !target) && (state3.isHovered = !1, removeAllGlobalListeners(), onHoverEnd && onHoverEnd({
  62398. type: "hoverend",
  62399. target,
  62400. pointerType
  62401. }), onHoverChange && onHoverChange(!1), setHovered(!1));
  62402. }, hoverProps2 = {};
  62403. return typeof PointerEvent < "u" && (hoverProps2.onPointerEnter = (e) => {
  62404. $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === "mouse" || triggerHoverStart(e, e.pointerType);
  62405. }, hoverProps2.onPointerLeave = (e) => {
  62406. !isDisabled3 && e.currentTarget.contains(e.target) && triggerHoverEnd2(e, e.pointerType);
  62407. }), {
  62408. hoverProps: hoverProps2,
  62409. triggerHoverEnd: triggerHoverEnd2
  62410. };
  62411. }, [
  62412. onHoverStart,
  62413. onHoverChange,
  62414. onHoverEnd,
  62415. isDisabled3,
  62416. state3,
  62417. addGlobalListener,
  62418. removeAllGlobalListeners
  62419. ]);
  62420. return (0, import_react56.useEffect)(() => {
  62421. isDisabled3 && triggerHoverEnd({
  62422. currentTarget: state3.target
  62423. }, state3.pointerType);
  62424. }, [
  62425. isDisabled3
  62426. ]), {
  62427. hoverProps,
  62428. isHovered
  62429. };
  62430. }
  62431. // ../../node_modules/@react-aria/interactions/dist/useInteractOutside.mjs
  62432. var import_react57 = __toESM(require_react(), 1);
  62433. function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
  62434. let { ref, onInteractOutside, isDisabled: isDisabled3, onInteractOutsideStart } = props, stateRef = (0, import_react57.useRef)({
  62435. isPointerDown: !1,
  62436. ignoreEmulatedMouseEvents: !1
  62437. }), onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  62438. onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref) && (onInteractOutsideStart && onInteractOutsideStart(e), stateRef.current.isPointerDown = !0);
  62439. }), triggerInteractOutside = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  62440. onInteractOutside && onInteractOutside(e);
  62441. });
  62442. (0, import_react57.useEffect)(() => {
  62443. let state3 = stateRef.current;
  62444. if (isDisabled3) return;
  62445. let element = ref.current, documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
  62446. if (typeof PointerEvent < "u") {
  62447. let onClick = (e) => {
  62448. state3.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref) && triggerInteractOutside(e), state3.isPointerDown = !1;
  62449. };
  62450. return documentObject.addEventListener("pointerdown", onPointerDown, !0), documentObject.addEventListener("click", onClick, !0), () => {
  62451. documentObject.removeEventListener("pointerdown", onPointerDown, !0), documentObject.removeEventListener("click", onClick, !0);
  62452. };
  62453. }
  62454. }, [
  62455. ref,
  62456. isDisabled3,
  62457. onPointerDown,
  62458. triggerInteractOutside
  62459. ]);
  62460. }
  62461. function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
  62462. if (event.button > 0) return !1;
  62463. if (event.target) {
  62464. let ownerDocument = event.target.ownerDocument;
  62465. if (!ownerDocument || !ownerDocument.documentElement.contains(event.target) || event.target.closest("[data-react-aria-top-layer]")) return !1;
  62466. }
  62467. return ref.current ? !event.composedPath().includes(ref.current) : !1;
  62468. }
  62469. // ../../node_modules/@react-aria/interactions/dist/useMove.mjs
  62470. var import_react58 = __toESM(require_react(), 1);
  62471. // ../../node_modules/@react-aria/interactions/dist/useScrollWheel.mjs
  62472. var import_react59 = __toESM(require_react(), 1);
  62473. // ../../node_modules/@react-aria/interactions/dist/useLongPress.mjs
  62474. var import_react60 = __toESM(require_react(), 1), $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
  62475. function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
  62476. let { isDisabled: isDisabled3, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props, timeRef = (0, import_react60.useRef)(void 0), { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
  62477. isDisabled: isDisabled3,
  62478. onPressStart(e) {
  62479. if (e.continuePropagation(), (e.pointerType === "mouse" || e.pointerType === "touch") && (onLongPressStart && onLongPressStart({
  62480. ...e,
  62481. type: "longpressstart"
  62482. }), timeRef.current = setTimeout(() => {
  62483. e.target.dispatchEvent(new PointerEvent("pointercancel", {
  62484. bubbles: !0
  62485. })), $431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target && $7215afc6de606d6b$export$de79e2c695e052f3(e.target), onLongPress && onLongPress({
  62486. ...e,
  62487. type: "longpress"
  62488. }), timeRef.current = void 0;
  62489. }, threshold), e.pointerType === "touch")) {
  62490. let onContextMenu = (e2) => {
  62491. e2.preventDefault();
  62492. };
  62493. addGlobalListener(e.target, "contextmenu", onContextMenu, {
  62494. once: !0
  62495. }), addGlobalListener(window, "pointerup", () => {
  62496. setTimeout(() => {
  62497. removeGlobalListener(e.target, "contextmenu", onContextMenu);
  62498. }, 30);
  62499. }, {
  62500. once: !0
  62501. });
  62502. }
  62503. },
  62504. onPressEnd(e) {
  62505. timeRef.current && clearTimeout(timeRef.current), onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch") && onLongPressEnd({
  62506. ...e,
  62507. type: "longpressend"
  62508. });
  62509. }
  62510. }), descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled3 ? accessibilityDescription : void 0);
  62511. return {
  62512. longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
  62513. };
  62514. }
  62515. // ../../node_modules/react-aria-components/dist/utils.mjs
  62516. var import_react61 = __toESM(require_react(), 1), $64fa3d84918910a7$export$c62b8e45d58ddad9 = /* @__PURE__ */ Symbol("default");
  62517. function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
  62518. for (let [Context, value] of values)
  62519. children = import_react61.default.createElement(Context.Provider, {
  62520. value
  62521. }, children);
  62522. return children;
  62523. }
  62524. function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
  62525. let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values } = props;
  62526. return (0, import_react61.useMemo)(() => {
  62527. let computedClassName, computedStyle, computedChildren;
  62528. return typeof className == "function" ? computedClassName = className({
  62529. ...values,
  62530. defaultClassName
  62531. }) : computedClassName = className, typeof style == "function" ? computedStyle = style({
  62532. ...values,
  62533. defaultStyle: defaultStyle || {}
  62534. }) : computedStyle = style, typeof children == "function" ? computedChildren = children({
  62535. ...values,
  62536. defaultChildren
  62537. }) : children == null ? computedChildren = defaultChildren : computedChildren = children, {
  62538. className: computedClassName ?? defaultClassName,
  62539. style: computedStyle || defaultStyle ? {
  62540. ...defaultStyle,
  62541. ...computedStyle
  62542. } : void 0,
  62543. children: computedChildren ?? defaultChildren,
  62544. "data-rac": ""
  62545. };
  62546. }, [
  62547. className,
  62548. style,
  62549. children,
  62550. defaultClassName,
  62551. defaultChildren,
  62552. defaultStyle,
  62553. values
  62554. ]);
  62555. }
  62556. function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
  62557. let ctx = (0, import_react61.useContext)(context);
  62558. if (slot === null)
  62559. return null;
  62560. if (ctx && typeof ctx == "object" && "slots" in ctx && ctx.slots) {
  62561. let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
  62562. if (!ctx.slots[slotKey]) {
  62563. let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p3) => `"${p3}"`)), errorMessage = slot ? `Invalid slot "${slot}".` : "A slot prop is required.";
  62564. throw new Error(`${errorMessage} Valid slot names are ${availableSlots}.`);
  62565. }
  62566. return ctx.slots[slotKey];
  62567. }
  62568. return ctx;
  62569. }
  62570. function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
  62571. let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context, props.slot) || {}, { ref: contextRef, ...contextProps } = ctx, mergedRef = $df56164dff5785e2$export$4338b53315abf666((0, import_react61.useMemo)(() => $5dc95899b306f630$export$c9058316764c140e(ref, contextRef), [
  62572. ref,
  62573. contextRef
  62574. ])), mergedProps = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
  62575. return "style" in contextProps && contextProps.style && "style" in props && props.style && (typeof contextProps.style == "function" || typeof props.style == "function" ? mergedProps.style = (renderProps) => {
  62576. let contextStyle = typeof contextProps.style == "function" ? contextProps.style(renderProps) : contextProps.style, defaultStyle = {
  62577. ...renderProps.defaultStyle,
  62578. ...contextStyle
  62579. }, style = typeof props.style == "function" ? props.style({
  62580. ...renderProps,
  62581. defaultStyle
  62582. }) : props.style;
  62583. return {
  62584. ...defaultStyle,
  62585. ...style
  62586. };
  62587. } : mergedProps.style = {
  62588. ...contextProps.style,
  62589. ...props.style
  62590. }), [
  62591. mergedProps,
  62592. mergedRef
  62593. ];
  62594. }
  62595. function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(initialState2 = !0) {
  62596. let [hasSlot, setHasSlot] = (0, import_react61.useState)(initialState2), hasRun = (0, import_react61.useRef)(!1), ref = (0, import_react61.useCallback)((el) => {
  62597. hasRun.current = !0, setHasSlot(!!el);
  62598. }, []);
  62599. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  62600. hasRun.current || setHasSlot(!1);
  62601. }, []), [
  62602. ref,
  62603. hasSlot
  62604. ];
  62605. }
  62606. // ../../node_modules/react-aria-components/dist/OverlayArrow.mjs
  62607. var import_react62 = __toESM(require_react(), 1), $44f671af83e7d9e0$export$2de4954e8ae13b9f = (0, import_react62.createContext)({
  62608. placement: "bottom"
  62609. }), $44f671af83e7d9e0$export$746d02f47f4d381 = (0, import_react62.forwardRef)(function(props, ref) {
  62610. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $44f671af83e7d9e0$export$2de4954e8ae13b9f);
  62611. let placement = props.placement, style = {
  62612. position: "absolute",
  62613. transform: placement === "top" || placement === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
  62614. };
  62615. placement != null && (style[placement] = "100%");
  62616. let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  62617. ...props,
  62618. defaultClassName: "react-aria-OverlayArrow",
  62619. values: {
  62620. placement
  62621. }
  62622. });
  62623. renderProps.style && Object.keys(renderProps.style).forEach((key) => renderProps.style[key] === void 0 && delete renderProps.style[key]);
  62624. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
  62625. return import_react62.default.createElement("div", {
  62626. ...DOMProps,
  62627. ...renderProps,
  62628. style: {
  62629. ...style,
  62630. ...renderProps.style
  62631. },
  62632. ref,
  62633. "data-placement": placement
  62634. });
  62635. });
  62636. // ../../node_modules/@react-aria/tooltip/dist/useTooltip.mjs
  62637. function $326e436e94273fe1$export$1c4b08e0eca38426(props, state3) {
  62638. let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  62639. labelable: !0
  62640. }), { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
  62641. onHoverStart: () => state3?.open(!0),
  62642. onHoverEnd: () => state3?.close()
  62643. });
  62644. return {
  62645. tooltipProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, hoverProps, {
  62646. role: "tooltip"
  62647. })
  62648. };
  62649. }
  62650. // ../../node_modules/@react-aria/tooltip/dist/useTooltipTrigger.mjs
  62651. var import_react63 = __toESM(require_react(), 1);
  62652. function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state3, ref) {
  62653. let { isDisabled: isDisabled3, trigger } = props, tooltipId = $bdb11010cef70236$export$f680877a34711e37(), isHovered = (0, import_react63.useRef)(!1), isFocused = (0, import_react63.useRef)(!1), handleShow = () => {
  62654. (isHovered.current || isFocused.current) && state3.open(isFocused.current);
  62655. }, handleHide = (immediate) => {
  62656. !isHovered.current && !isFocused.current && state3.close(immediate);
  62657. };
  62658. (0, import_react63.useEffect)(() => {
  62659. let onKeyDown = (e) => {
  62660. ref && ref.current && e.key === "Escape" && (e.stopPropagation(), state3.close(!0));
  62661. };
  62662. if (state3.isOpen)
  62663. return document.addEventListener("keydown", onKeyDown, !0), () => {
  62664. document.removeEventListener("keydown", onKeyDown, !0);
  62665. };
  62666. }, [
  62667. ref,
  62668. state3
  62669. ]);
  62670. let onHoverStart = () => {
  62671. trigger !== "focus" && ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" ? isHovered.current = !0 : isHovered.current = !1, handleShow());
  62672. }, onHoverEnd = () => {
  62673. trigger !== "focus" && (isFocused.current = !1, isHovered.current = !1, handleHide());
  62674. }, onPressStart = () => {
  62675. isFocused.current = !1, isHovered.current = !1, handleHide(!0);
  62676. }, onFocus = () => {
  62677. $507fabe10e71c6fb$export$b9b3dfddab17db27() && (isFocused.current = !0, handleShow());
  62678. }, onBlur = () => {
  62679. isFocused.current = !1, isHovered.current = !1, handleHide(!0);
  62680. }, { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
  62681. isDisabled: isDisabled3,
  62682. onHoverStart,
  62683. onHoverEnd
  62684. }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
  62685. isDisabled: isDisabled3,
  62686. onFocus,
  62687. onBlur
  62688. }, ref);
  62689. return {
  62690. triggerProps: {
  62691. "aria-describedby": state3.isOpen ? tooltipId : void 0,
  62692. ...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, hoverProps, {
  62693. onPointerDown: onPressStart,
  62694. onKeyDown: onPressStart
  62695. }),
  62696. tabIndex: void 0
  62697. },
  62698. tooltipProps: {
  62699. id: tooltipId
  62700. }
  62701. };
  62702. }
  62703. // ../../node_modules/@react-aria/overlays/dist/calculatePosition.mjs
  62704. var $edcf132a9284368a$var$AXIS = {
  62705. top: "top",
  62706. bottom: "top",
  62707. left: "left",
  62708. right: "left"
  62709. }, $edcf132a9284368a$var$FLIPPED_DIRECTION = {
  62710. top: "bottom",
  62711. bottom: "top",
  62712. left: "right",
  62713. right: "left"
  62714. }, $edcf132a9284368a$var$CROSS_AXIS = {
  62715. top: "left",
  62716. left: "top"
  62717. }, $edcf132a9284368a$var$AXIS_SIZE = {
  62718. top: "height",
  62719. left: "width"
  62720. }, $edcf132a9284368a$var$TOTAL_SIZE = {
  62721. width: "totalWidth",
  62722. height: "totalHeight"
  62723. }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$visualViewport = typeof document < "u" ? window.visualViewport : null;
  62724. function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
  62725. let width = 0, height = 0, totalWidth = 0, totalHeight = 0, top2 = 0, left2 = 0, scroll = {};
  62726. var _visualViewport_scale;
  62727. let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport?.scale) !== null && _visualViewport_scale !== void 0 ? _visualViewport_scale : 1) > 1;
  62728. if (containerNode.tagName === "BODY") {
  62729. let documentElement = document.documentElement;
  62730. totalWidth = documentElement.clientWidth, totalHeight = documentElement.clientHeight;
  62731. var _visualViewport_width;
  62732. width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport?.width) !== null && _visualViewport_width !== void 0 ? _visualViewport_width : totalWidth;
  62733. var _visualViewport_height;
  62734. height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport?.height) !== null && _visualViewport_height !== void 0 ? _visualViewport_height : totalHeight, scroll.top = documentElement.scrollTop || containerNode.scrollTop, scroll.left = documentElement.scrollLeft || containerNode.scrollLeft, $edcf132a9284368a$var$visualViewport && (top2 = $edcf132a9284368a$var$visualViewport.offsetTop, left2 = $edcf132a9284368a$var$visualViewport.offsetLeft);
  62735. } else
  62736. ({ width, height, top: top2, left: left2 } = $edcf132a9284368a$var$getOffset(containerNode, !1)), scroll.top = containerNode.scrollTop, scroll.left = containerNode.scrollLeft, totalWidth = width, totalHeight = height;
  62737. if ($c87311424ea30a05$export$78551043582a6a98() && (containerNode.tagName === "BODY" || containerNode.tagName === "HTML") && isPinchZoomedIn) {
  62738. scroll.top = 0, scroll.left = 0;
  62739. var _visualViewport_pageTop;
  62740. top2 = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport?.pageTop) !== null && _visualViewport_pageTop !== void 0 ? _visualViewport_pageTop : 0;
  62741. var _visualViewport_pageLeft;
  62742. left2 = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport?.pageLeft) !== null && _visualViewport_pageLeft !== void 0 ? _visualViewport_pageLeft : 0;
  62743. }
  62744. return {
  62745. width,
  62746. height,
  62747. totalWidth,
  62748. totalHeight,
  62749. scroll,
  62750. top: top2,
  62751. left: left2
  62752. };
  62753. }
  62754. function $edcf132a9284368a$var$getScroll(node2) {
  62755. return {
  62756. top: node2.scrollTop,
  62757. left: node2.scrollLeft,
  62758. width: node2.scrollWidth,
  62759. height: node2.scrollHeight
  62760. };
  62761. }
  62762. function $edcf132a9284368a$var$getDelta(axis, offset3, size, boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary) {
  62763. var _containerDimensions_scroll_axis;
  62764. let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== void 0 ? _containerDimensions_scroll_axis : 0, boundarySize = boundaryDimensions[$edcf132a9284368a$var$AXIS_SIZE[axis]], boundaryStartEdge = boundaryDimensions.scroll[$edcf132a9284368a$var$AXIS[axis]] + padding, boundaryEndEdge = boundarySize + boundaryDimensions.scroll[$edcf132a9284368a$var$AXIS[axis]] - padding, startEdgeOffset = offset3 - containerScroll + containerOffsetWithBoundary[axis] - boundaryDimensions[$edcf132a9284368a$var$AXIS[axis]], endEdgeOffset = offset3 - containerScroll + size + containerOffsetWithBoundary[axis] - boundaryDimensions[$edcf132a9284368a$var$AXIS[axis]];
  62765. return startEdgeOffset < boundaryStartEdge ? boundaryStartEdge - startEdgeOffset : endEdgeOffset > boundaryEndEdge ? Math.max(boundaryEndEdge - endEdgeOffset, boundaryStartEdge - startEdgeOffset) : 0;
  62766. }
  62767. function $edcf132a9284368a$var$getMargins(node2) {
  62768. let style = window.getComputedStyle(node2);
  62769. return {
  62770. top: parseInt(style.marginTop, 10) || 0,
  62771. bottom: parseInt(style.marginBottom, 10) || 0,
  62772. left: parseInt(style.marginLeft, 10) || 0,
  62773. right: parseInt(style.marginRight, 10) || 0
  62774. };
  62775. }
  62776. function $edcf132a9284368a$var$parsePlacement(input2) {
  62777. if ($edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2]) return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2];
  62778. let [placement, crossPlacement] = input2.split(" "), axis = $edcf132a9284368a$var$AXIS[placement] || "right", crossAxis = $edcf132a9284368a$var$CROSS_AXIS[axis];
  62779. $edcf132a9284368a$var$AXIS[crossPlacement] || (crossPlacement = "center");
  62780. let size = $edcf132a9284368a$var$AXIS_SIZE[axis], crossSize = $edcf132a9284368a$var$AXIS_SIZE[crossAxis];
  62781. return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2] = {
  62782. placement,
  62783. crossPlacement,
  62784. axis,
  62785. crossAxis,
  62786. size,
  62787. crossSize
  62788. }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2];
  62789. }
  62790. function $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset) {
  62791. let { placement, crossPlacement, axis, crossAxis, size, crossSize } = placementInfo, position2 = {};
  62792. var _childOffset_crossAxis;
  62793. position2[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== void 0 ? _childOffset_crossAxis : 0;
  62794. var _childOffset_crossSize, _overlaySize_crossSize, _childOffset_crossSize1, _overlaySize_crossSize1;
  62795. crossPlacement === "center" ? position2[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== void 0 ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== void 0 ? _overlaySize_crossSize : 0)) / 2 : crossPlacement !== crossAxis && (position2[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== void 0 ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== void 0 ? _overlaySize_crossSize1 : 0)), position2[crossAxis] += crossOffset;
  62796. let minPosition = childOffset[crossAxis] - overlaySize[crossSize] + arrowSize + arrowBoundaryOffset, maxPosition = childOffset[crossAxis] + childOffset[crossSize] - arrowSize - arrowBoundaryOffset;
  62797. if (position2[crossAxis] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(position2[crossAxis], minPosition, maxPosition), placement === axis) {
  62798. let containerHeight = isContainerPositioned ? containerOffsetWithBoundary[size] : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE[size]];
  62799. position2[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] = Math.floor(containerHeight - childOffset[axis] + offset3);
  62800. } else position2[axis] = Math.floor(childOffset[axis] + childOffset[size] + offset3);
  62801. return position2;
  62802. }
  62803. function $edcf132a9284368a$var$getMaxHeight(position2, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlayHeight, heightGrowthDirection) {
  62804. let containerHeight = isContainerPositioned ? containerOffsetWithBoundary.height : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE.height];
  62805. var _position_bottom;
  62806. let overlayTop = position2.top != null ? containerOffsetWithBoundary.top + position2.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position2.bottom) !== null && _position_bottom !== void 0 ? _position_bottom : 0) - overlayHeight);
  62807. var _boundaryDimensions_scroll_top, _margins_top, _margins_bottom, _boundaryDimensions_scroll_top1, _margins_top1, _margins_bottom1;
  62808. let maxHeight = heightGrowthDirection !== "top" ? (
  62809. // We want the distance between the top of the overlay to the bottom of the boundary
  62810. Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== void 0 ? _boundaryDimensions_scroll_top : 0) - overlayTop - (((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0) + padding))
  62811. ) : Math.max(0, overlayTop + overlayHeight - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== void 0 ? _boundaryDimensions_scroll_top1 : 0)) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== void 0 ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== void 0 ? _margins_bottom1 : 0) + padding));
  62812. return Math.min(boundaryDimensions.height - padding * 2, maxHeight);
  62813. }
  62814. function $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding, placementInfo) {
  62815. let { placement, axis, size } = placementInfo;
  62816. var _boundaryDimensions_scroll_axis, _margins_axis;
  62817. if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== void 0 ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== void 0 ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
  62818. var _margins_axis1;
  62819. return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== void 0 ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
  62820. }
  62821. function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset, overlaySize, scrollSize, margins, padding, flip2, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset3, crossOffset, isContainerPositioned, userSetMaxHeight, arrowSize, arrowBoundaryOffset) {
  62822. let placementInfo = $edcf132a9284368a$var$parsePlacement(placementInput), { size, crossAxis, crossSize, placement, crossPlacement } = placementInfo, position2 = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset), normalizedOffset = offset3, space = $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset3, placementInfo);
  62823. if (flip2 && scrollSize[size] > space) {
  62824. let flippedPlacementInfo = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[placement]} ${crossPlacement}`), flippedPosition = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, flippedPlacementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset);
  62825. $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset3, flippedPlacementInfo) > space && (placementInfo = flippedPlacementInfo, position2 = flippedPosition, normalizedOffset = offset3);
  62826. }
  62827. let heightGrowthDirection = "bottom";
  62828. placementInfo.axis === "top" ? placementInfo.placement === "top" ? heightGrowthDirection = "top" : placementInfo.placement === "bottom" && (heightGrowthDirection = "bottom") : placementInfo.crossAxis === "top" && (placementInfo.crossPlacement === "top" ? heightGrowthDirection = "bottom" : placementInfo.crossPlacement === "bottom" && (heightGrowthDirection = "top"));
  62829. let delta = $edcf132a9284368a$var$getDelta(crossAxis, position2[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary);
  62830. position2[crossAxis] += delta;
  62831. let maxHeight = $edcf132a9284368a$var$getMaxHeight(position2, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlaySize.height, heightGrowthDirection);
  62832. userSetMaxHeight && userSetMaxHeight < maxHeight && (maxHeight = userSetMaxHeight), overlaySize.height = Math.min(overlaySize.height, maxHeight), position2 = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, normalizedOffset, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset), delta = $edcf132a9284368a$var$getDelta(crossAxis, position2[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary), position2[crossAxis] += delta;
  62833. let arrowPosition = {}, origin = childOffset[crossAxis] - position2[crossAxis] - margins[$edcf132a9284368a$var$AXIS[crossAxis]], preferredArrowPosition = origin + 0.5 * childOffset[crossSize], arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset;
  62834. var _margins_left, _margins_right, _margins_top, _margins_bottom;
  62835. let overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === "left" ? ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0), arrowMaxPosition = overlaySize[crossSize] - overlayMargin - arrowSize / 2 - arrowBoundaryOffset, arrowOverlappingChildMinEdge = childOffset[crossAxis] + arrowSize / 2 - (position2[crossAxis] + margins[$edcf132a9284368a$var$AXIS[crossAxis]]), arrowOverlappingChildMaxEdge = childOffset[crossAxis] + childOffset[crossSize] - arrowSize / 2 - (position2[crossAxis] + margins[$edcf132a9284368a$var$AXIS[crossAxis]]), arrowPositionOverlappingChild = $9446cca9a3875146$export$7d15b64cf5a3a4c4(preferredArrowPosition, arrowOverlappingChildMinEdge, arrowOverlappingChildMaxEdge);
  62836. arrowPosition[crossAxis] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(arrowPositionOverlappingChild, arrowMinPosition, arrowMaxPosition), { placement, crossPlacement } = placementInfo, arrowSize ? origin = arrowPosition[crossAxis] : crossPlacement === "right" ? origin += childOffset[crossSize] : crossPlacement === "center" && (origin += childOffset[crossSize] / 2);
  62837. let crossOrigin = placement === "left" || placement === "top" ? overlaySize[size] : 0, triggerAnchorPoint = {
  62838. x: placement === "top" || placement === "bottom" ? origin : crossOrigin,
  62839. y: placement === "left" || placement === "right" ? origin : crossOrigin
  62840. };
  62841. return {
  62842. position: position2,
  62843. maxHeight,
  62844. arrowOffsetLeft: arrowPosition.left,
  62845. arrowOffsetTop: arrowPosition.top,
  62846. placement,
  62847. triggerAnchorPoint
  62848. };
  62849. }
  62850. function $edcf132a9284368a$export$b3ceb0cbf1056d98(opts) {
  62851. let { placement, targetNode, overlayNode, scrollNode, padding, shouldFlip, boundaryElement, offset: offset3, crossOffset, maxHeight, arrowSize = 0, arrowBoundaryOffset = 0 } = opts, container = overlayNode instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(overlayNode) : document.documentElement, isViewportContainer = container === document.documentElement, containerPositionStyle = window.getComputedStyle(container).position, isContainerPositioned = !!containerPositionStyle && containerPositionStyle !== "static", childOffset = isViewportContainer ? $edcf132a9284368a$var$getOffset(targetNode, !1) : $edcf132a9284368a$var$getPosition(targetNode, container, !1);
  62852. if (!isViewportContainer) {
  62853. let { marginTop, marginLeft } = window.getComputedStyle(targetNode);
  62854. childOffset.top += parseInt(marginTop, 10) || 0, childOffset.left += parseInt(marginLeft, 10) || 0;
  62855. }
  62856. let overlaySize = $edcf132a9284368a$var$getOffset(overlayNode, !0), margins = $edcf132a9284368a$var$getMargins(overlayNode);
  62857. var _margins_left, _margins_right;
  62858. overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0);
  62859. var _margins_top, _margins_bottom;
  62860. overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);
  62861. let scrollSize = $edcf132a9284368a$var$getScroll(scrollNode), boundaryDimensions = $edcf132a9284368a$var$getContainerDimensions(boundaryElement), containerDimensions = $edcf132a9284368a$var$getContainerDimensions(container), containerOffsetWithBoundary = boundaryElement.tagName === "BODY" ? $edcf132a9284368a$var$getOffset(container, !1) : $edcf132a9284368a$var$getPosition(container, boundaryElement, !1);
  62862. return container.tagName === "HTML" && boundaryElement.tagName === "BODY" && (containerDimensions.scroll.top = 0, containerDimensions.scroll.left = 0), $edcf132a9284368a$export$6839422d1f33cee9(placement, childOffset, overlaySize, scrollSize, margins, padding, shouldFlip, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset3, crossOffset, isContainerPositioned, maxHeight, arrowSize, arrowBoundaryOffset);
  62863. }
  62864. function $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale) {
  62865. let { top: top2, left: left2, width, height } = node2.getBoundingClientRect();
  62866. return ignoreScale && node2 instanceof node2.ownerDocument.defaultView.HTMLElement && (width = node2.offsetWidth, height = node2.offsetHeight), {
  62867. top: top2,
  62868. left: left2,
  62869. width,
  62870. height
  62871. };
  62872. }
  62873. function $edcf132a9284368a$var$getOffset(node2, ignoreScale) {
  62874. let { top: top2, left: left2, width, height } = $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale), { scrollTop, scrollLeft, clientTop, clientLeft } = document.documentElement;
  62875. return {
  62876. top: top2 + scrollTop - clientTop,
  62877. left: left2 + scrollLeft - clientLeft,
  62878. width,
  62879. height
  62880. };
  62881. }
  62882. function $edcf132a9284368a$var$getPosition(node2, parent, ignoreScale) {
  62883. let style = window.getComputedStyle(node2), offset3;
  62884. if (style.position === "fixed") offset3 = $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale);
  62885. else {
  62886. offset3 = $edcf132a9284368a$var$getOffset(node2, ignoreScale);
  62887. let parentOffset = $edcf132a9284368a$var$getOffset(parent, ignoreScale), parentStyle = window.getComputedStyle(parent);
  62888. parentOffset.top += (parseInt(parentStyle.borderTopWidth, 10) || 0) - parent.scrollTop, parentOffset.left += (parseInt(parentStyle.borderLeftWidth, 10) || 0) - parent.scrollLeft, offset3.top -= parentOffset.top, offset3.left -= parentOffset.left;
  62889. }
  62890. return offset3.top -= parseInt(style.marginTop, 10) || 0, offset3.left -= parseInt(style.marginLeft, 10) || 0, offset3;
  62891. }
  62892. function $edcf132a9284368a$var$getContainingBlock(node2) {
  62893. let offsetParent = node2.offsetParent;
  62894. if (offsetParent && offsetParent === document.body && window.getComputedStyle(offsetParent).position === "static" && !$edcf132a9284368a$var$isContainingBlock(offsetParent) && (offsetParent = document.documentElement), offsetParent == null)
  62895. for (offsetParent = node2.parentElement; offsetParent && !$edcf132a9284368a$var$isContainingBlock(offsetParent); ) offsetParent = offsetParent.parentElement;
  62896. return offsetParent || document.documentElement;
  62897. }
  62898. function $edcf132a9284368a$var$isContainingBlock(node2) {
  62899. let style = window.getComputedStyle(node2);
  62900. return style.transform !== "none" || /transform|perspective/.test(style.willChange) || style.filter !== "none" || style.contain === "paint" || "backdropFilter" in style && style.backdropFilter !== "none" || "WebkitBackdropFilter" in style && style.WebkitBackdropFilter !== "none";
  62901. }
  62902. // ../../node_modules/@react-aria/overlays/dist/useCloseOnScroll.mjs
  62903. var import_react64 = __toESM(require_react(), 1), $dd149f63282afbbf$export$f6211563215e3b37 = /* @__PURE__ */ new WeakMap();
  62904. function $dd149f63282afbbf$export$18fc8428861184da(opts) {
  62905. let { triggerRef, isOpen, onClose } = opts;
  62906. (0, import_react64.useEffect)(() => {
  62907. if (!isOpen || onClose === null) return;
  62908. let onScroll = (e) => {
  62909. let target = e.target;
  62910. if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current) || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
  62911. let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);
  62912. onCloseHandler && onCloseHandler();
  62913. };
  62914. return window.addEventListener("scroll", onScroll, !0), () => {
  62915. window.removeEventListener("scroll", onScroll, !0);
  62916. };
  62917. }, [
  62918. isOpen,
  62919. onClose,
  62920. triggerRef
  62921. ]);
  62922. }
  62923. // ../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs
  62924. var import_react73 = __toESM(require_react(), 1);
  62925. // ../../node_modules/@react-aria/i18n/dist/utils.mjs
  62926. var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
  62927. "Arab",
  62928. "Syrc",
  62929. "Samr",
  62930. "Mand",
  62931. "Thaa",
  62932. "Mend",
  62933. "Nkoo",
  62934. "Adlm",
  62935. "Rohg",
  62936. "Hebr"
  62937. ]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([
  62938. "ae",
  62939. "ar",
  62940. "arc",
  62941. "bcc",
  62942. "bqi",
  62943. "ckb",
  62944. "dv",
  62945. "fa",
  62946. "glk",
  62947. "he",
  62948. "ku",
  62949. "mzn",
  62950. "nqo",
  62951. "pnb",
  62952. "ps",
  62953. "sd",
  62954. "ug",
  62955. "ur",
  62956. "yi"
  62957. ]);
  62958. function $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {
  62959. if (Intl.Locale) {
  62960. let locale = new Intl.Locale(localeString).maximize(), textInfo = typeof locale.getTextInfo == "function" ? locale.getTextInfo() : locale.textInfo;
  62961. if (textInfo) return textInfo.direction === "rtl";
  62962. if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);
  62963. }
  62964. let lang = localeString.split("-")[0];
  62965. return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
  62966. }
  62967. // ../../node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs
  62968. var import_react65 = __toESM(require_react(), 1);
  62969. var $1e5a04cdaf7d1af8$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
  62970. function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
  62971. let locale = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
  62972. try {
  62973. Intl.DateTimeFormat.supportedLocalesOf([
  62974. locale
  62975. ]);
  62976. } catch {
  62977. locale = "en-US";
  62978. }
  62979. return {
  62980. locale,
  62981. direction: $148a7a147e38ea7f$export$702d680b21cbd764(locale) ? "rtl" : "ltr"
  62982. };
  62983. }
  62984. var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
  62985. function $1e5a04cdaf7d1af8$var$updateLocale() {
  62986. $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
  62987. for (let listener of $1e5a04cdaf7d1af8$var$listeners) listener($1e5a04cdaf7d1af8$var$currentLocale);
  62988. }
  62989. function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
  62990. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), [defaultLocale, setDefaultLocale] = (0, import_react65.useState)($1e5a04cdaf7d1af8$var$currentLocale);
  62991. return (0, import_react65.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale), () => {
  62992. $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
  62993. }), []), isSSR ? {
  62994. locale: "en-US",
  62995. direction: "ltr"
  62996. } : defaultLocale;
  62997. }
  62998. // ../../node_modules/@react-aria/i18n/dist/context.mjs
  62999. var import_react66 = __toESM(require_react(), 1), $18f2051aff69b9bf$var$I18nContext = import_react66.default.createContext(null);
  63000. function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
  63001. let defaultLocale = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
  63002. return (0, import_react66.useContext)($18f2051aff69b9bf$var$I18nContext) || defaultLocale;
  63003. }
  63004. // ../../node_modules/tslib/tslib.es6.mjs
  63005. var extendStatics = function(d, b) {
  63006. return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
  63007. d2.__proto__ = b2;
  63008. } || function(d2, b2) {
  63009. for (var p3 in b2) Object.prototype.hasOwnProperty.call(b2, p3) && (d2[p3] = b2[p3]);
  63010. }, extendStatics(d, b);
  63011. };
  63012. function __extends(d, b) {
  63013. if (typeof b != "function" && b !== null)
  63014. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  63015. extendStatics(d, b);
  63016. function __() {
  63017. this.constructor = d;
  63018. }
  63019. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  63020. }
  63021. var __assign = function() {
  63022. return __assign = Object.assign || function(t) {
  63023. for (var s3, i = 1, n = arguments.length; i < n; i++) {
  63024. s3 = arguments[i];
  63025. for (var p3 in s3) Object.prototype.hasOwnProperty.call(s3, p3) && (t[p3] = s3[p3]);
  63026. }
  63027. return t;
  63028. }, __assign.apply(this, arguments);
  63029. };
  63030. function __rest(s3, e) {
  63031. var t = {};
  63032. for (var p3 in s3) Object.prototype.hasOwnProperty.call(s3, p3) && e.indexOf(p3) < 0 && (t[p3] = s3[p3]);
  63033. if (s3 != null && typeof Object.getOwnPropertySymbols == "function")
  63034. for (var i = 0, p3 = Object.getOwnPropertySymbols(s3); i < p3.length; i++)
  63035. e.indexOf(p3[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i]) && (t[p3[i]] = s3[p3[i]]);
  63036. return t;
  63037. }
  63038. function __spreadArray(to, from2, pack) {
  63039. if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++)
  63040. (ar || !(i in from2)) && (ar || (ar = Array.prototype.slice.call(from2, 0, i)), ar[i] = from2[i]);
  63041. return to.concat(ar || Array.prototype.slice.call(from2));
  63042. }
  63043. // ../../node_modules/@formatjs/fast-memoize/lib/index.js
  63044. function memoize12(fn4, options) {
  63045. var cache = options && options.cache ? options.cache : cacheDefault, serializer = options && options.serializer ? options.serializer : serializerDefault, strategy = options && options.strategy ? options.strategy : strategyDefault;
  63046. return strategy(fn4, {
  63047. cache,
  63048. serializer
  63049. });
  63050. }
  63051. function isPrimitive4(value) {
  63052. return value == null || typeof value == "number" || typeof value == "boolean";
  63053. }
  63054. function monadic(fn4, cache, serializer, arg) {
  63055. var cacheKey = isPrimitive4(arg) ? arg : serializer(arg), computedValue = cache.get(cacheKey);
  63056. return typeof computedValue > "u" && (computedValue = fn4.call(this, arg), cache.set(cacheKey, computedValue)), computedValue;
  63057. }
  63058. function variadic(fn4, cache, serializer) {
  63059. var args = Array.prototype.slice.call(arguments, 3), cacheKey = serializer(args), computedValue = cache.get(cacheKey);
  63060. return typeof computedValue > "u" && (computedValue = fn4.apply(this, args), cache.set(cacheKey, computedValue)), computedValue;
  63061. }
  63062. function assemble(fn4, context, strategy, cache, serialize3) {
  63063. return strategy.bind(context, fn4, cache, serialize3);
  63064. }
  63065. function strategyDefault(fn4, options) {
  63066. var strategy = fn4.length === 1 ? monadic : variadic;
  63067. return assemble(fn4, this, strategy, options.cache.create(), options.serializer);
  63068. }
  63069. function strategyVariadic(fn4, options) {
  63070. return assemble(fn4, this, variadic, options.cache.create(), options.serializer);
  63071. }
  63072. function strategyMonadic(fn4, options) {
  63073. return assemble(fn4, this, monadic, options.cache.create(), options.serializer);
  63074. }
  63075. var serializerDefault = function() {
  63076. return JSON.stringify(arguments);
  63077. }, ObjectWithoutPrototypeCache = (
  63078. /** @class */
  63079. (function() {
  63080. function ObjectWithoutPrototypeCache2() {
  63081. this.cache = /* @__PURE__ */ Object.create(null);
  63082. }
  63083. return ObjectWithoutPrototypeCache2.prototype.get = function(key) {
  63084. return this.cache[key];
  63085. }, ObjectWithoutPrototypeCache2.prototype.set = function(key, value) {
  63086. this.cache[key] = value;
  63087. }, ObjectWithoutPrototypeCache2;
  63088. })()
  63089. ), cacheDefault = {
  63090. create: function() {
  63091. return new ObjectWithoutPrototypeCache();
  63092. }
  63093. }, strategies = {
  63094. variadic: strategyVariadic,
  63095. monadic: strategyMonadic
  63096. };
  63097. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/error.js
  63098. var ErrorKind;
  63099. (function(ErrorKind2) {
  63100. ErrorKind2[ErrorKind2.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", ErrorKind2[ErrorKind2.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", ErrorKind2[ErrorKind2.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", ErrorKind2[ErrorKind2.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", ErrorKind2[ErrorKind2.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", ErrorKind2[ErrorKind2.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", ErrorKind2[ErrorKind2.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", ErrorKind2[ErrorKind2.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", ErrorKind2[ErrorKind2.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", ErrorKind2[ErrorKind2.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", ErrorKind2[ErrorKind2.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", ErrorKind2[ErrorKind2.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", ErrorKind2[ErrorKind2.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", ErrorKind2[ErrorKind2.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", ErrorKind2[ErrorKind2.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", ErrorKind2[ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", ErrorKind2[ErrorKind2.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", ErrorKind2[ErrorKind2.INVALID_TAG = 23] = "INVALID_TAG", ErrorKind2[ErrorKind2.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", ErrorKind2[ErrorKind2.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", ErrorKind2[ErrorKind2.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
  63101. })(ErrorKind || (ErrorKind = {}));
  63102. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/types.js
  63103. var TYPE;
  63104. (function(TYPE2) {
  63105. TYPE2[TYPE2.literal = 0] = "literal", TYPE2[TYPE2.argument = 1] = "argument", TYPE2[TYPE2.number = 2] = "number", TYPE2[TYPE2.date = 3] = "date", TYPE2[TYPE2.time = 4] = "time", TYPE2[TYPE2.select = 5] = "select", TYPE2[TYPE2.plural = 6] = "plural", TYPE2[TYPE2.pound = 7] = "pound", TYPE2[TYPE2.tag = 8] = "tag";
  63106. })(TYPE || (TYPE = {}));
  63107. var SKELETON_TYPE;
  63108. (function(SKELETON_TYPE2) {
  63109. SKELETON_TYPE2[SKELETON_TYPE2.number = 0] = "number", SKELETON_TYPE2[SKELETON_TYPE2.dateTime = 1] = "dateTime";
  63110. })(SKELETON_TYPE || (SKELETON_TYPE = {}));
  63111. function isLiteralElement(el) {
  63112. return el.type === TYPE.literal;
  63113. }
  63114. function isArgumentElement(el) {
  63115. return el.type === TYPE.argument;
  63116. }
  63117. function isNumberElement(el) {
  63118. return el.type === TYPE.number;
  63119. }
  63120. function isDateElement(el) {
  63121. return el.type === TYPE.date;
  63122. }
  63123. function isTimeElement(el) {
  63124. return el.type === TYPE.time;
  63125. }
  63126. function isSelectElement(el) {
  63127. return el.type === TYPE.select;
  63128. }
  63129. function isPluralElement(el) {
  63130. return el.type === TYPE.plural;
  63131. }
  63132. function isPoundElement(el) {
  63133. return el.type === TYPE.pound;
  63134. }
  63135. function isTagElement(el) {
  63136. return el.type === TYPE.tag;
  63137. }
  63138. function isNumberSkeleton(el) {
  63139. return !!(el && typeof el == "object" && el.type === SKELETON_TYPE.number);
  63140. }
  63141. function isDateTimeSkeleton(el) {
  63142. return !!(el && typeof el == "object" && el.type === SKELETON_TYPE.dateTime);
  63143. }
  63144. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
  63145. var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
  63146. // ../../node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
  63147. var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
  63148. function parseDateTimeSkeleton(skeleton) {
  63149. var result = {};
  63150. return skeleton.replace(DATE_TIME_REGEX, function(match3) {
  63151. var len = match3.length;
  63152. switch (match3[0]) {
  63153. // Era
  63154. case "G":
  63155. result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
  63156. break;
  63157. // Year
  63158. case "y":
  63159. result.year = len === 2 ? "2-digit" : "numeric";
  63160. break;
  63161. case "Y":
  63162. case "u":
  63163. case "U":
  63164. case "r":
  63165. throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
  63166. // Quarter
  63167. case "q":
  63168. case "Q":
  63169. throw new RangeError("`q/Q` (quarter) patterns are not supported");
  63170. // Month
  63171. case "M":
  63172. case "L":
  63173. result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1];
  63174. break;
  63175. // Week
  63176. case "w":
  63177. case "W":
  63178. throw new RangeError("`w/W` (week) patterns are not supported");
  63179. case "d":
  63180. result.day = ["numeric", "2-digit"][len - 1];
  63181. break;
  63182. case "D":
  63183. case "F":
  63184. case "g":
  63185. throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
  63186. // Weekday
  63187. case "E":
  63188. result.weekday = len === 4 ? "long" : len === 5 ? "narrow" : "short";
  63189. break;
  63190. case "e":
  63191. if (len < 4)
  63192. throw new RangeError("`e..eee` (weekday) patterns are not supported");
  63193. result.weekday = ["short", "long", "narrow", "short"][len - 4];
  63194. break;
  63195. case "c":
  63196. if (len < 4)
  63197. throw new RangeError("`c..ccc` (weekday) patterns are not supported");
  63198. result.weekday = ["short", "long", "narrow", "short"][len - 4];
  63199. break;
  63200. // Period
  63201. case "a":
  63202. result.hour12 = !0;
  63203. break;
  63204. case "b":
  63205. // am, pm, noon, midnight
  63206. case "B":
  63207. throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
  63208. // Hour
  63209. case "h":
  63210. result.hourCycle = "h12", result.hour = ["numeric", "2-digit"][len - 1];
  63211. break;
  63212. case "H":
  63213. result.hourCycle = "h23", result.hour = ["numeric", "2-digit"][len - 1];
  63214. break;
  63215. case "K":
  63216. result.hourCycle = "h11", result.hour = ["numeric", "2-digit"][len - 1];
  63217. break;
  63218. case "k":
  63219. result.hourCycle = "h24", result.hour = ["numeric", "2-digit"][len - 1];
  63220. break;
  63221. case "j":
  63222. case "J":
  63223. case "C":
  63224. throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
  63225. // Minute
  63226. case "m":
  63227. result.minute = ["numeric", "2-digit"][len - 1];
  63228. break;
  63229. // Second
  63230. case "s":
  63231. result.second = ["numeric", "2-digit"][len - 1];
  63232. break;
  63233. case "S":
  63234. case "A":
  63235. throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
  63236. // Zone
  63237. case "z":
  63238. result.timeZoneName = len < 4 ? "short" : "long";
  63239. break;
  63240. case "Z":
  63241. // 1..3, 4, 5: The ISO8601 varios formats
  63242. case "O":
  63243. // 1, 4: milliseconds in day short, long
  63244. case "v":
  63245. // 1, 4: generic non-location format
  63246. case "V":
  63247. // 1, 2, 3, 4: time zone ID or city
  63248. case "X":
  63249. // 1, 2, 3, 4: The ISO8601 varios formats
  63250. case "x":
  63251. throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
  63252. }
  63253. return "";
  63254. }), result;
  63255. }
  63256. // ../../node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
  63257. var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
  63258. // ../../node_modules/@formatjs/icu-skeleton-parser/lib/number.js
  63259. function parseNumberSkeletonFromString(skeleton) {
  63260. if (skeleton.length === 0)
  63261. throw new Error("Number skeleton cannot be empty");
  63262. for (var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x) {
  63263. return x.length > 0;
  63264. }), tokens2 = [], _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
  63265. var stringToken = stringTokens_1[_i], stemAndOptions = stringToken.split("/");
  63266. if (stemAndOptions.length === 0)
  63267. throw new Error("Invalid number skeleton");
  63268. for (var stem = stemAndOptions[0], options = stemAndOptions.slice(1), _a4 = 0, options_1 = options; _a4 < options_1.length; _a4++) {
  63269. var option = options_1[_a4];
  63270. if (option.length === 0)
  63271. throw new Error("Invalid number skeleton");
  63272. }
  63273. tokens2.push({ stem, options });
  63274. }
  63275. return tokens2;
  63276. }
  63277. function icuUnitToEcma(unit) {
  63278. return unit.replace(/^(.*?)-/, "");
  63279. }
  63280. var FRACTION_PRECISION_REGEX = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?[rs]?$/g, INTEGER_WIDTH_REGEX = /(\*)(0+)|(#+)(0+)|(0+)/g, CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;
  63281. function parseSignificantPrecision(str2) {
  63282. var result = {};
  63283. return str2[str2.length - 1] === "r" ? result.roundingPriority = "morePrecision" : str2[str2.length - 1] === "s" && (result.roundingPriority = "lessPrecision"), str2.replace(SIGNIFICANT_PRECISION_REGEX, function(_, g1, g2) {
  63284. return typeof g2 != "string" ? (result.minimumSignificantDigits = g1.length, result.maximumSignificantDigits = g1.length) : g2 === "+" ? result.minimumSignificantDigits = g1.length : g1[0] === "#" ? result.maximumSignificantDigits = g1.length : (result.minimumSignificantDigits = g1.length, result.maximumSignificantDigits = g1.length + (typeof g2 == "string" ? g2.length : 0)), "";
  63285. }), result;
  63286. }
  63287. function parseSign(str2) {
  63288. switch (str2) {
  63289. case "sign-auto":
  63290. return {
  63291. signDisplay: "auto"
  63292. };
  63293. case "sign-accounting":
  63294. case "()":
  63295. return {
  63296. currencySign: "accounting"
  63297. };
  63298. case "sign-always":
  63299. case "+!":
  63300. return {
  63301. signDisplay: "always"
  63302. };
  63303. case "sign-accounting-always":
  63304. case "()!":
  63305. return {
  63306. signDisplay: "always",
  63307. currencySign: "accounting"
  63308. };
  63309. case "sign-except-zero":
  63310. case "+?":
  63311. return {
  63312. signDisplay: "exceptZero"
  63313. };
  63314. case "sign-accounting-except-zero":
  63315. case "()?":
  63316. return {
  63317. signDisplay: "exceptZero",
  63318. currencySign: "accounting"
  63319. };
  63320. case "sign-never":
  63321. case "+_":
  63322. return {
  63323. signDisplay: "never"
  63324. };
  63325. }
  63326. }
  63327. function parseConciseScientificAndEngineeringStem(stem) {
  63328. var result;
  63329. if (stem[0] === "E" && stem[1] === "E" ? (result = {
  63330. notation: "engineering"
  63331. }, stem = stem.slice(2)) : stem[0] === "E" && (result = {
  63332. notation: "scientific"
  63333. }, stem = stem.slice(1)), result) {
  63334. var signDisplay = stem.slice(0, 2);
  63335. if (signDisplay === "+!" ? (result.signDisplay = "always", stem = stem.slice(2)) : signDisplay === "+?" && (result.signDisplay = "exceptZero", stem = stem.slice(2)), !CONCISE_INTEGER_WIDTH_REGEX.test(stem))
  63336. throw new Error("Malformed concise eng/scientific notation");
  63337. result.minimumIntegerDigits = stem.length;
  63338. }
  63339. return result;
  63340. }
  63341. function parseNotationOptions(opt) {
  63342. var result = {}, signOpts = parseSign(opt);
  63343. return signOpts || result;
  63344. }
  63345. function parseNumberSkeleton(tokens2) {
  63346. for (var result = {}, _i = 0, tokens_1 = tokens2; _i < tokens_1.length; _i++) {
  63347. var token2 = tokens_1[_i];
  63348. switch (token2.stem) {
  63349. case "percent":
  63350. case "%":
  63351. result.style = "percent";
  63352. continue;
  63353. case "%x100":
  63354. result.style = "percent", result.scale = 100;
  63355. continue;
  63356. case "currency":
  63357. result.style = "currency", result.currency = token2.options[0];
  63358. continue;
  63359. case "group-off":
  63360. case ",_":
  63361. result.useGrouping = !1;
  63362. continue;
  63363. case "precision-integer":
  63364. case ".":
  63365. result.maximumFractionDigits = 0;
  63366. continue;
  63367. case "measure-unit":
  63368. case "unit":
  63369. result.style = "unit", result.unit = icuUnitToEcma(token2.options[0]);
  63370. continue;
  63371. case "compact-short":
  63372. case "K":
  63373. result.notation = "compact", result.compactDisplay = "short";
  63374. continue;
  63375. case "compact-long":
  63376. case "KK":
  63377. result.notation = "compact", result.compactDisplay = "long";
  63378. continue;
  63379. case "scientific":
  63380. result = __assign(__assign(__assign({}, result), { notation: "scientific" }), token2.options.reduce(function(all, opt2) {
  63381. return __assign(__assign({}, all), parseNotationOptions(opt2));
  63382. }, {}));
  63383. continue;
  63384. case "engineering":
  63385. result = __assign(__assign(__assign({}, result), { notation: "engineering" }), token2.options.reduce(function(all, opt2) {
  63386. return __assign(__assign({}, all), parseNotationOptions(opt2));
  63387. }, {}));
  63388. continue;
  63389. case "notation-simple":
  63390. result.notation = "standard";
  63391. continue;
  63392. // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
  63393. case "unit-width-narrow":
  63394. result.currencyDisplay = "narrowSymbol", result.unitDisplay = "narrow";
  63395. continue;
  63396. case "unit-width-short":
  63397. result.currencyDisplay = "code", result.unitDisplay = "short";
  63398. continue;
  63399. case "unit-width-full-name":
  63400. result.currencyDisplay = "name", result.unitDisplay = "long";
  63401. continue;
  63402. case "unit-width-iso-code":
  63403. result.currencyDisplay = "symbol";
  63404. continue;
  63405. case "scale":
  63406. result.scale = parseFloat(token2.options[0]);
  63407. continue;
  63408. case "rounding-mode-floor":
  63409. result.roundingMode = "floor";
  63410. continue;
  63411. case "rounding-mode-ceiling":
  63412. result.roundingMode = "ceil";
  63413. continue;
  63414. case "rounding-mode-down":
  63415. result.roundingMode = "trunc";
  63416. continue;
  63417. case "rounding-mode-up":
  63418. result.roundingMode = "expand";
  63419. continue;
  63420. case "rounding-mode-half-even":
  63421. result.roundingMode = "halfEven";
  63422. continue;
  63423. case "rounding-mode-half-down":
  63424. result.roundingMode = "halfTrunc";
  63425. continue;
  63426. case "rounding-mode-half-up":
  63427. result.roundingMode = "halfExpand";
  63428. continue;
  63429. // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
  63430. case "integer-width":
  63431. if (token2.options.length > 1)
  63432. throw new RangeError("integer-width stems only accept a single optional option");
  63433. token2.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) {
  63434. if (g1)
  63435. result.minimumIntegerDigits = g2.length;
  63436. else {
  63437. if (g3 && g4)
  63438. throw new Error("We currently do not support maximum integer digits");
  63439. if (g5)
  63440. throw new Error("We currently do not support exact integer digits");
  63441. }
  63442. return "";
  63443. });
  63444. continue;
  63445. }
  63446. if (CONCISE_INTEGER_WIDTH_REGEX.test(token2.stem)) {
  63447. result.minimumIntegerDigits = token2.stem.length;
  63448. continue;
  63449. }
  63450. if (FRACTION_PRECISION_REGEX.test(token2.stem)) {
  63451. if (token2.options.length > 1)
  63452. throw new RangeError("Fraction-precision stems only accept a single optional option");
  63453. token2.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) {
  63454. return g2 === "*" ? result.minimumFractionDigits = g1.length : g3 && g3[0] === "#" ? result.maximumFractionDigits = g3.length : g4 && g5 ? (result.minimumFractionDigits = g4.length, result.maximumFractionDigits = g4.length + g5.length) : (result.minimumFractionDigits = g1.length, result.maximumFractionDigits = g1.length), "";
  63455. });
  63456. var opt = token2.options[0];
  63457. opt === "w" ? result = __assign(__assign({}, result), { trailingZeroDisplay: "stripIfInteger" }) : opt && (result = __assign(__assign({}, result), parseSignificantPrecision(opt)));
  63458. continue;
  63459. }
  63460. if (SIGNIFICANT_PRECISION_REGEX.test(token2.stem)) {
  63461. result = __assign(__assign({}, result), parseSignificantPrecision(token2.stem));
  63462. continue;
  63463. }
  63464. var signOpts = parseSign(token2.stem);
  63465. signOpts && (result = __assign(__assign({}, result), signOpts));
  63466. var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token2.stem);
  63467. conciseScientificAndEngineeringOpts && (result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts));
  63468. }
  63469. return result;
  63470. }
  63471. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
  63472. var timeData = {
  63473. "001": [
  63474. "H",
  63475. "h"
  63476. ],
  63477. 419: [
  63478. "h",
  63479. "H",
  63480. "hB",
  63481. "hb"
  63482. ],
  63483. AC: [
  63484. "H",
  63485. "h",
  63486. "hb",
  63487. "hB"
  63488. ],
  63489. AD: [
  63490. "H",
  63491. "hB"
  63492. ],
  63493. AE: [
  63494. "h",
  63495. "hB",
  63496. "hb",
  63497. "H"
  63498. ],
  63499. AF: [
  63500. "H",
  63501. "hb",
  63502. "hB",
  63503. "h"
  63504. ],
  63505. AG: [
  63506. "h",
  63507. "hb",
  63508. "H",
  63509. "hB"
  63510. ],
  63511. AI: [
  63512. "H",
  63513. "h",
  63514. "hb",
  63515. "hB"
  63516. ],
  63517. AL: [
  63518. "h",
  63519. "H",
  63520. "hB"
  63521. ],
  63522. AM: [
  63523. "H",
  63524. "hB"
  63525. ],
  63526. AO: [
  63527. "H",
  63528. "hB"
  63529. ],
  63530. AR: [
  63531. "h",
  63532. "H",
  63533. "hB",
  63534. "hb"
  63535. ],
  63536. AS: [
  63537. "h",
  63538. "H"
  63539. ],
  63540. AT: [
  63541. "H",
  63542. "hB"
  63543. ],
  63544. AU: [
  63545. "h",
  63546. "hb",
  63547. "H",
  63548. "hB"
  63549. ],
  63550. AW: [
  63551. "H",
  63552. "hB"
  63553. ],
  63554. AX: [
  63555. "H"
  63556. ],
  63557. AZ: [
  63558. "H",
  63559. "hB",
  63560. "h"
  63561. ],
  63562. BA: [
  63563. "H",
  63564. "hB",
  63565. "h"
  63566. ],
  63567. BB: [
  63568. "h",
  63569. "hb",
  63570. "H",
  63571. "hB"
  63572. ],
  63573. BD: [
  63574. "h",
  63575. "hB",
  63576. "H"
  63577. ],
  63578. BE: [
  63579. "H",
  63580. "hB"
  63581. ],
  63582. BF: [
  63583. "H",
  63584. "hB"
  63585. ],
  63586. BG: [
  63587. "H",
  63588. "hB",
  63589. "h"
  63590. ],
  63591. BH: [
  63592. "h",
  63593. "hB",
  63594. "hb",
  63595. "H"
  63596. ],
  63597. BI: [
  63598. "H",
  63599. "h"
  63600. ],
  63601. BJ: [
  63602. "H",
  63603. "hB"
  63604. ],
  63605. BL: [
  63606. "H",
  63607. "hB"
  63608. ],
  63609. BM: [
  63610. "h",
  63611. "hb",
  63612. "H",
  63613. "hB"
  63614. ],
  63615. BN: [
  63616. "hb",
  63617. "hB",
  63618. "h",
  63619. "H"
  63620. ],
  63621. BO: [
  63622. "h",
  63623. "H",
  63624. "hB",
  63625. "hb"
  63626. ],
  63627. BQ: [
  63628. "H"
  63629. ],
  63630. BR: [
  63631. "H",
  63632. "hB"
  63633. ],
  63634. BS: [
  63635. "h",
  63636. "hb",
  63637. "H",
  63638. "hB"
  63639. ],
  63640. BT: [
  63641. "h",
  63642. "H"
  63643. ],
  63644. BW: [
  63645. "H",
  63646. "h",
  63647. "hb",
  63648. "hB"
  63649. ],
  63650. BY: [
  63651. "H",
  63652. "h"
  63653. ],
  63654. BZ: [
  63655. "H",
  63656. "h",
  63657. "hb",
  63658. "hB"
  63659. ],
  63660. CA: [
  63661. "h",
  63662. "hb",
  63663. "H",
  63664. "hB"
  63665. ],
  63666. CC: [
  63667. "H",
  63668. "h",
  63669. "hb",
  63670. "hB"
  63671. ],
  63672. CD: [
  63673. "hB",
  63674. "H"
  63675. ],
  63676. CF: [
  63677. "H",
  63678. "h",
  63679. "hB"
  63680. ],
  63681. CG: [
  63682. "H",
  63683. "hB"
  63684. ],
  63685. CH: [
  63686. "H",
  63687. "hB",
  63688. "h"
  63689. ],
  63690. CI: [
  63691. "H",
  63692. "hB"
  63693. ],
  63694. CK: [
  63695. "H",
  63696. "h",
  63697. "hb",
  63698. "hB"
  63699. ],
  63700. CL: [
  63701. "h",
  63702. "H",
  63703. "hB",
  63704. "hb"
  63705. ],
  63706. CM: [
  63707. "H",
  63708. "h",
  63709. "hB"
  63710. ],
  63711. CN: [
  63712. "H",
  63713. "hB",
  63714. "hb",
  63715. "h"
  63716. ],
  63717. CO: [
  63718. "h",
  63719. "H",
  63720. "hB",
  63721. "hb"
  63722. ],
  63723. CP: [
  63724. "H"
  63725. ],
  63726. CR: [
  63727. "h",
  63728. "H",
  63729. "hB",
  63730. "hb"
  63731. ],
  63732. CU: [
  63733. "h",
  63734. "H",
  63735. "hB",
  63736. "hb"
  63737. ],
  63738. CV: [
  63739. "H",
  63740. "hB"
  63741. ],
  63742. CW: [
  63743. "H",
  63744. "hB"
  63745. ],
  63746. CX: [
  63747. "H",
  63748. "h",
  63749. "hb",
  63750. "hB"
  63751. ],
  63752. CY: [
  63753. "h",
  63754. "H",
  63755. "hb",
  63756. "hB"
  63757. ],
  63758. CZ: [
  63759. "H"
  63760. ],
  63761. DE: [
  63762. "H",
  63763. "hB"
  63764. ],
  63765. DG: [
  63766. "H",
  63767. "h",
  63768. "hb",
  63769. "hB"
  63770. ],
  63771. DJ: [
  63772. "h",
  63773. "H"
  63774. ],
  63775. DK: [
  63776. "H"
  63777. ],
  63778. DM: [
  63779. "h",
  63780. "hb",
  63781. "H",
  63782. "hB"
  63783. ],
  63784. DO: [
  63785. "h",
  63786. "H",
  63787. "hB",
  63788. "hb"
  63789. ],
  63790. DZ: [
  63791. "h",
  63792. "hB",
  63793. "hb",
  63794. "H"
  63795. ],
  63796. EA: [
  63797. "H",
  63798. "h",
  63799. "hB",
  63800. "hb"
  63801. ],
  63802. EC: [
  63803. "h",
  63804. "H",
  63805. "hB",
  63806. "hb"
  63807. ],
  63808. EE: [
  63809. "H",
  63810. "hB"
  63811. ],
  63812. EG: [
  63813. "h",
  63814. "hB",
  63815. "hb",
  63816. "H"
  63817. ],
  63818. EH: [
  63819. "h",
  63820. "hB",
  63821. "hb",
  63822. "H"
  63823. ],
  63824. ER: [
  63825. "h",
  63826. "H"
  63827. ],
  63828. ES: [
  63829. "H",
  63830. "hB",
  63831. "h",
  63832. "hb"
  63833. ],
  63834. ET: [
  63835. "hB",
  63836. "hb",
  63837. "h",
  63838. "H"
  63839. ],
  63840. FI: [
  63841. "H"
  63842. ],
  63843. FJ: [
  63844. "h",
  63845. "hb",
  63846. "H",
  63847. "hB"
  63848. ],
  63849. FK: [
  63850. "H",
  63851. "h",
  63852. "hb",
  63853. "hB"
  63854. ],
  63855. FM: [
  63856. "h",
  63857. "hb",
  63858. "H",
  63859. "hB"
  63860. ],
  63861. FO: [
  63862. "H",
  63863. "h"
  63864. ],
  63865. FR: [
  63866. "H",
  63867. "hB"
  63868. ],
  63869. GA: [
  63870. "H",
  63871. "hB"
  63872. ],
  63873. GB: [
  63874. "H",
  63875. "h",
  63876. "hb",
  63877. "hB"
  63878. ],
  63879. GD: [
  63880. "h",
  63881. "hb",
  63882. "H",
  63883. "hB"
  63884. ],
  63885. GE: [
  63886. "H",
  63887. "hB",
  63888. "h"
  63889. ],
  63890. GF: [
  63891. "H",
  63892. "hB"
  63893. ],
  63894. GG: [
  63895. "H",
  63896. "h",
  63897. "hb",
  63898. "hB"
  63899. ],
  63900. GH: [
  63901. "h",
  63902. "H"
  63903. ],
  63904. GI: [
  63905. "H",
  63906. "h",
  63907. "hb",
  63908. "hB"
  63909. ],
  63910. GL: [
  63911. "H",
  63912. "h"
  63913. ],
  63914. GM: [
  63915. "h",
  63916. "hb",
  63917. "H",
  63918. "hB"
  63919. ],
  63920. GN: [
  63921. "H",
  63922. "hB"
  63923. ],
  63924. GP: [
  63925. "H",
  63926. "hB"
  63927. ],
  63928. GQ: [
  63929. "H",
  63930. "hB",
  63931. "h",
  63932. "hb"
  63933. ],
  63934. GR: [
  63935. "h",
  63936. "H",
  63937. "hb",
  63938. "hB"
  63939. ],
  63940. GT: [
  63941. "h",
  63942. "H",
  63943. "hB",
  63944. "hb"
  63945. ],
  63946. GU: [
  63947. "h",
  63948. "hb",
  63949. "H",
  63950. "hB"
  63951. ],
  63952. GW: [
  63953. "H",
  63954. "hB"
  63955. ],
  63956. GY: [
  63957. "h",
  63958. "hb",
  63959. "H",
  63960. "hB"
  63961. ],
  63962. HK: [
  63963. "h",
  63964. "hB",
  63965. "hb",
  63966. "H"
  63967. ],
  63968. HN: [
  63969. "h",
  63970. "H",
  63971. "hB",
  63972. "hb"
  63973. ],
  63974. HR: [
  63975. "H",
  63976. "hB"
  63977. ],
  63978. HU: [
  63979. "H",
  63980. "h"
  63981. ],
  63982. IC: [
  63983. "H",
  63984. "h",
  63985. "hB",
  63986. "hb"
  63987. ],
  63988. ID: [
  63989. "H"
  63990. ],
  63991. IE: [
  63992. "H",
  63993. "h",
  63994. "hb",
  63995. "hB"
  63996. ],
  63997. IL: [
  63998. "H",
  63999. "hB"
  64000. ],
  64001. IM: [
  64002. "H",
  64003. "h",
  64004. "hb",
  64005. "hB"
  64006. ],
  64007. IN: [
  64008. "h",
  64009. "H"
  64010. ],
  64011. IO: [
  64012. "H",
  64013. "h",
  64014. "hb",
  64015. "hB"
  64016. ],
  64017. IQ: [
  64018. "h",
  64019. "hB",
  64020. "hb",
  64021. "H"
  64022. ],
  64023. IR: [
  64024. "hB",
  64025. "H"
  64026. ],
  64027. IS: [
  64028. "H"
  64029. ],
  64030. IT: [
  64031. "H",
  64032. "hB"
  64033. ],
  64034. JE: [
  64035. "H",
  64036. "h",
  64037. "hb",
  64038. "hB"
  64039. ],
  64040. JM: [
  64041. "h",
  64042. "hb",
  64043. "H",
  64044. "hB"
  64045. ],
  64046. JO: [
  64047. "h",
  64048. "hB",
  64049. "hb",
  64050. "H"
  64051. ],
  64052. JP: [
  64053. "H",
  64054. "K",
  64055. "h"
  64056. ],
  64057. KE: [
  64058. "hB",
  64059. "hb",
  64060. "H",
  64061. "h"
  64062. ],
  64063. KG: [
  64064. "H",
  64065. "h",
  64066. "hB",
  64067. "hb"
  64068. ],
  64069. KH: [
  64070. "hB",
  64071. "h",
  64072. "H",
  64073. "hb"
  64074. ],
  64075. KI: [
  64076. "h",
  64077. "hb",
  64078. "H",
  64079. "hB"
  64080. ],
  64081. KM: [
  64082. "H",
  64083. "h",
  64084. "hB",
  64085. "hb"
  64086. ],
  64087. KN: [
  64088. "h",
  64089. "hb",
  64090. "H",
  64091. "hB"
  64092. ],
  64093. KP: [
  64094. "h",
  64095. "H",
  64096. "hB",
  64097. "hb"
  64098. ],
  64099. KR: [
  64100. "h",
  64101. "H",
  64102. "hB",
  64103. "hb"
  64104. ],
  64105. KW: [
  64106. "h",
  64107. "hB",
  64108. "hb",
  64109. "H"
  64110. ],
  64111. KY: [
  64112. "h",
  64113. "hb",
  64114. "H",
  64115. "hB"
  64116. ],
  64117. KZ: [
  64118. "H",
  64119. "hB"
  64120. ],
  64121. LA: [
  64122. "H",
  64123. "hb",
  64124. "hB",
  64125. "h"
  64126. ],
  64127. LB: [
  64128. "h",
  64129. "hB",
  64130. "hb",
  64131. "H"
  64132. ],
  64133. LC: [
  64134. "h",
  64135. "hb",
  64136. "H",
  64137. "hB"
  64138. ],
  64139. LI: [
  64140. "H",
  64141. "hB",
  64142. "h"
  64143. ],
  64144. LK: [
  64145. "H",
  64146. "h",
  64147. "hB",
  64148. "hb"
  64149. ],
  64150. LR: [
  64151. "h",
  64152. "hb",
  64153. "H",
  64154. "hB"
  64155. ],
  64156. LS: [
  64157. "h",
  64158. "H"
  64159. ],
  64160. LT: [
  64161. "H",
  64162. "h",
  64163. "hb",
  64164. "hB"
  64165. ],
  64166. LU: [
  64167. "H",
  64168. "h",
  64169. "hB"
  64170. ],
  64171. LV: [
  64172. "H",
  64173. "hB",
  64174. "hb",
  64175. "h"
  64176. ],
  64177. LY: [
  64178. "h",
  64179. "hB",
  64180. "hb",
  64181. "H"
  64182. ],
  64183. MA: [
  64184. "H",
  64185. "h",
  64186. "hB",
  64187. "hb"
  64188. ],
  64189. MC: [
  64190. "H",
  64191. "hB"
  64192. ],
  64193. MD: [
  64194. "H",
  64195. "hB"
  64196. ],
  64197. ME: [
  64198. "H",
  64199. "hB",
  64200. "h"
  64201. ],
  64202. MF: [
  64203. "H",
  64204. "hB"
  64205. ],
  64206. MG: [
  64207. "H",
  64208. "h"
  64209. ],
  64210. MH: [
  64211. "h",
  64212. "hb",
  64213. "H",
  64214. "hB"
  64215. ],
  64216. MK: [
  64217. "H",
  64218. "h",
  64219. "hb",
  64220. "hB"
  64221. ],
  64222. ML: [
  64223. "H"
  64224. ],
  64225. MM: [
  64226. "hB",
  64227. "hb",
  64228. "H",
  64229. "h"
  64230. ],
  64231. MN: [
  64232. "H",
  64233. "h",
  64234. "hb",
  64235. "hB"
  64236. ],
  64237. MO: [
  64238. "h",
  64239. "hB",
  64240. "hb",
  64241. "H"
  64242. ],
  64243. MP: [
  64244. "h",
  64245. "hb",
  64246. "H",
  64247. "hB"
  64248. ],
  64249. MQ: [
  64250. "H",
  64251. "hB"
  64252. ],
  64253. MR: [
  64254. "h",
  64255. "hB",
  64256. "hb",
  64257. "H"
  64258. ],
  64259. MS: [
  64260. "H",
  64261. "h",
  64262. "hb",
  64263. "hB"
  64264. ],
  64265. MT: [
  64266. "H",
  64267. "h"
  64268. ],
  64269. MU: [
  64270. "H",
  64271. "h"
  64272. ],
  64273. MV: [
  64274. "H",
  64275. "h"
  64276. ],
  64277. MW: [
  64278. "h",
  64279. "hb",
  64280. "H",
  64281. "hB"
  64282. ],
  64283. MX: [
  64284. "h",
  64285. "H",
  64286. "hB",
  64287. "hb"
  64288. ],
  64289. MY: [
  64290. "hb",
  64291. "hB",
  64292. "h",
  64293. "H"
  64294. ],
  64295. MZ: [
  64296. "H",
  64297. "hB"
  64298. ],
  64299. NA: [
  64300. "h",
  64301. "H",
  64302. "hB",
  64303. "hb"
  64304. ],
  64305. NC: [
  64306. "H",
  64307. "hB"
  64308. ],
  64309. NE: [
  64310. "H"
  64311. ],
  64312. NF: [
  64313. "H",
  64314. "h",
  64315. "hb",
  64316. "hB"
  64317. ],
  64318. NG: [
  64319. "H",
  64320. "h",
  64321. "hb",
  64322. "hB"
  64323. ],
  64324. NI: [
  64325. "h",
  64326. "H",
  64327. "hB",
  64328. "hb"
  64329. ],
  64330. NL: [
  64331. "H",
  64332. "hB"
  64333. ],
  64334. NO: [
  64335. "H",
  64336. "h"
  64337. ],
  64338. NP: [
  64339. "H",
  64340. "h",
  64341. "hB"
  64342. ],
  64343. NR: [
  64344. "H",
  64345. "h",
  64346. "hb",
  64347. "hB"
  64348. ],
  64349. NU: [
  64350. "H",
  64351. "h",
  64352. "hb",
  64353. "hB"
  64354. ],
  64355. NZ: [
  64356. "h",
  64357. "hb",
  64358. "H",
  64359. "hB"
  64360. ],
  64361. OM: [
  64362. "h",
  64363. "hB",
  64364. "hb",
  64365. "H"
  64366. ],
  64367. PA: [
  64368. "h",
  64369. "H",
  64370. "hB",
  64371. "hb"
  64372. ],
  64373. PE: [
  64374. "h",
  64375. "H",
  64376. "hB",
  64377. "hb"
  64378. ],
  64379. PF: [
  64380. "H",
  64381. "h",
  64382. "hB"
  64383. ],
  64384. PG: [
  64385. "h",
  64386. "H"
  64387. ],
  64388. PH: [
  64389. "h",
  64390. "hB",
  64391. "hb",
  64392. "H"
  64393. ],
  64394. PK: [
  64395. "h",
  64396. "hB",
  64397. "H"
  64398. ],
  64399. PL: [
  64400. "H",
  64401. "h"
  64402. ],
  64403. PM: [
  64404. "H",
  64405. "hB"
  64406. ],
  64407. PN: [
  64408. "H",
  64409. "h",
  64410. "hb",
  64411. "hB"
  64412. ],
  64413. PR: [
  64414. "h",
  64415. "H",
  64416. "hB",
  64417. "hb"
  64418. ],
  64419. PS: [
  64420. "h",
  64421. "hB",
  64422. "hb",
  64423. "H"
  64424. ],
  64425. PT: [
  64426. "H",
  64427. "hB"
  64428. ],
  64429. PW: [
  64430. "h",
  64431. "H"
  64432. ],
  64433. PY: [
  64434. "h",
  64435. "H",
  64436. "hB",
  64437. "hb"
  64438. ],
  64439. QA: [
  64440. "h",
  64441. "hB",
  64442. "hb",
  64443. "H"
  64444. ],
  64445. RE: [
  64446. "H",
  64447. "hB"
  64448. ],
  64449. RO: [
  64450. "H",
  64451. "hB"
  64452. ],
  64453. RS: [
  64454. "H",
  64455. "hB",
  64456. "h"
  64457. ],
  64458. RU: [
  64459. "H"
  64460. ],
  64461. RW: [
  64462. "H",
  64463. "h"
  64464. ],
  64465. SA: [
  64466. "h",
  64467. "hB",
  64468. "hb",
  64469. "H"
  64470. ],
  64471. SB: [
  64472. "h",
  64473. "hb",
  64474. "H",
  64475. "hB"
  64476. ],
  64477. SC: [
  64478. "H",
  64479. "h",
  64480. "hB"
  64481. ],
  64482. SD: [
  64483. "h",
  64484. "hB",
  64485. "hb",
  64486. "H"
  64487. ],
  64488. SE: [
  64489. "H"
  64490. ],
  64491. SG: [
  64492. "h",
  64493. "hb",
  64494. "H",
  64495. "hB"
  64496. ],
  64497. SH: [
  64498. "H",
  64499. "h",
  64500. "hb",
  64501. "hB"
  64502. ],
  64503. SI: [
  64504. "H",
  64505. "hB"
  64506. ],
  64507. SJ: [
  64508. "H"
  64509. ],
  64510. SK: [
  64511. "H"
  64512. ],
  64513. SL: [
  64514. "h",
  64515. "hb",
  64516. "H",
  64517. "hB"
  64518. ],
  64519. SM: [
  64520. "H",
  64521. "h",
  64522. "hB"
  64523. ],
  64524. SN: [
  64525. "H",
  64526. "h",
  64527. "hB"
  64528. ],
  64529. SO: [
  64530. "h",
  64531. "H"
  64532. ],
  64533. SR: [
  64534. "H",
  64535. "hB"
  64536. ],
  64537. SS: [
  64538. "h",
  64539. "hb",
  64540. "H",
  64541. "hB"
  64542. ],
  64543. ST: [
  64544. "H",
  64545. "hB"
  64546. ],
  64547. SV: [
  64548. "h",
  64549. "H",
  64550. "hB",
  64551. "hb"
  64552. ],
  64553. SX: [
  64554. "H",
  64555. "h",
  64556. "hb",
  64557. "hB"
  64558. ],
  64559. SY: [
  64560. "h",
  64561. "hB",
  64562. "hb",
  64563. "H"
  64564. ],
  64565. SZ: [
  64566. "h",
  64567. "hb",
  64568. "H",
  64569. "hB"
  64570. ],
  64571. TA: [
  64572. "H",
  64573. "h",
  64574. "hb",
  64575. "hB"
  64576. ],
  64577. TC: [
  64578. "h",
  64579. "hb",
  64580. "H",
  64581. "hB"
  64582. ],
  64583. TD: [
  64584. "h",
  64585. "H",
  64586. "hB"
  64587. ],
  64588. TF: [
  64589. "H",
  64590. "h",
  64591. "hB"
  64592. ],
  64593. TG: [
  64594. "H",
  64595. "hB"
  64596. ],
  64597. TH: [
  64598. "H",
  64599. "h"
  64600. ],
  64601. TJ: [
  64602. "H",
  64603. "h"
  64604. ],
  64605. TL: [
  64606. "H",
  64607. "hB",
  64608. "hb",
  64609. "h"
  64610. ],
  64611. TM: [
  64612. "H",
  64613. "h"
  64614. ],
  64615. TN: [
  64616. "h",
  64617. "hB",
  64618. "hb",
  64619. "H"
  64620. ],
  64621. TO: [
  64622. "h",
  64623. "H"
  64624. ],
  64625. TR: [
  64626. "H",
  64627. "hB"
  64628. ],
  64629. TT: [
  64630. "h",
  64631. "hb",
  64632. "H",
  64633. "hB"
  64634. ],
  64635. TW: [
  64636. "hB",
  64637. "hb",
  64638. "h",
  64639. "H"
  64640. ],
  64641. TZ: [
  64642. "hB",
  64643. "hb",
  64644. "H",
  64645. "h"
  64646. ],
  64647. UA: [
  64648. "H",
  64649. "hB",
  64650. "h"
  64651. ],
  64652. UG: [
  64653. "hB",
  64654. "hb",
  64655. "H",
  64656. "h"
  64657. ],
  64658. UM: [
  64659. "h",
  64660. "hb",
  64661. "H",
  64662. "hB"
  64663. ],
  64664. US: [
  64665. "h",
  64666. "hb",
  64667. "H",
  64668. "hB"
  64669. ],
  64670. UY: [
  64671. "h",
  64672. "H",
  64673. "hB",
  64674. "hb"
  64675. ],
  64676. UZ: [
  64677. "H",
  64678. "hB",
  64679. "h"
  64680. ],
  64681. VA: [
  64682. "H",
  64683. "h",
  64684. "hB"
  64685. ],
  64686. VC: [
  64687. "h",
  64688. "hb",
  64689. "H",
  64690. "hB"
  64691. ],
  64692. VE: [
  64693. "h",
  64694. "H",
  64695. "hB",
  64696. "hb"
  64697. ],
  64698. VG: [
  64699. "h",
  64700. "hb",
  64701. "H",
  64702. "hB"
  64703. ],
  64704. VI: [
  64705. "h",
  64706. "hb",
  64707. "H",
  64708. "hB"
  64709. ],
  64710. VN: [
  64711. "H",
  64712. "h"
  64713. ],
  64714. VU: [
  64715. "h",
  64716. "H"
  64717. ],
  64718. WF: [
  64719. "H",
  64720. "hB"
  64721. ],
  64722. WS: [
  64723. "h",
  64724. "H"
  64725. ],
  64726. XK: [
  64727. "H",
  64728. "hB",
  64729. "h"
  64730. ],
  64731. YE: [
  64732. "h",
  64733. "hB",
  64734. "hb",
  64735. "H"
  64736. ],
  64737. YT: [
  64738. "H",
  64739. "hB"
  64740. ],
  64741. ZA: [
  64742. "H",
  64743. "h",
  64744. "hb",
  64745. "hB"
  64746. ],
  64747. ZM: [
  64748. "h",
  64749. "hb",
  64750. "H",
  64751. "hB"
  64752. ],
  64753. ZW: [
  64754. "H",
  64755. "h"
  64756. ],
  64757. "af-ZA": [
  64758. "H",
  64759. "h",
  64760. "hB",
  64761. "hb"
  64762. ],
  64763. "ar-001": [
  64764. "h",
  64765. "hB",
  64766. "hb",
  64767. "H"
  64768. ],
  64769. "ca-ES": [
  64770. "H",
  64771. "h",
  64772. "hB"
  64773. ],
  64774. "en-001": [
  64775. "h",
  64776. "hb",
  64777. "H",
  64778. "hB"
  64779. ],
  64780. "en-HK": [
  64781. "h",
  64782. "hb",
  64783. "H",
  64784. "hB"
  64785. ],
  64786. "en-IL": [
  64787. "H",
  64788. "h",
  64789. "hb",
  64790. "hB"
  64791. ],
  64792. "en-MY": [
  64793. "h",
  64794. "hb",
  64795. "H",
  64796. "hB"
  64797. ],
  64798. "es-BR": [
  64799. "H",
  64800. "h",
  64801. "hB",
  64802. "hb"
  64803. ],
  64804. "es-ES": [
  64805. "H",
  64806. "h",
  64807. "hB",
  64808. "hb"
  64809. ],
  64810. "es-GQ": [
  64811. "H",
  64812. "h",
  64813. "hB",
  64814. "hb"
  64815. ],
  64816. "fr-CA": [
  64817. "H",
  64818. "h",
  64819. "hB"
  64820. ],
  64821. "gl-ES": [
  64822. "H",
  64823. "h",
  64824. "hB"
  64825. ],
  64826. "gu-IN": [
  64827. "hB",
  64828. "hb",
  64829. "h",
  64830. "H"
  64831. ],
  64832. "hi-IN": [
  64833. "hB",
  64834. "h",
  64835. "H"
  64836. ],
  64837. "it-CH": [
  64838. "H",
  64839. "h",
  64840. "hB"
  64841. ],
  64842. "it-IT": [
  64843. "H",
  64844. "h",
  64845. "hB"
  64846. ],
  64847. "kn-IN": [
  64848. "hB",
  64849. "h",
  64850. "H"
  64851. ],
  64852. "ml-IN": [
  64853. "hB",
  64854. "h",
  64855. "H"
  64856. ],
  64857. "mr-IN": [
  64858. "hB",
  64859. "hb",
  64860. "h",
  64861. "H"
  64862. ],
  64863. "pa-IN": [
  64864. "hB",
  64865. "hb",
  64866. "h",
  64867. "H"
  64868. ],
  64869. "ta-IN": [
  64870. "hB",
  64871. "h",
  64872. "hb",
  64873. "H"
  64874. ],
  64875. "te-IN": [
  64876. "hB",
  64877. "h",
  64878. "H"
  64879. ],
  64880. "zu-ZA": [
  64881. "H",
  64882. "hB",
  64883. "hb",
  64884. "h"
  64885. ]
  64886. };
  64887. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
  64888. function getBestPattern(skeleton, locale) {
  64889. for (var skeletonCopy = "", patternPos = 0; patternPos < skeleton.length; patternPos++) {
  64890. var patternChar = skeleton.charAt(patternPos);
  64891. if (patternChar === "j") {
  64892. for (var extraLength = 0; patternPos + 1 < skeleton.length && skeleton.charAt(patternPos + 1) === patternChar; )
  64893. extraLength++, patternPos++;
  64894. var hourLen = 1 + (extraLength & 1), dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1), dayPeriodChar = "a", hourChar = getDefaultHourSymbolFromLocale(locale);
  64895. for ((hourChar == "H" || hourChar == "k") && (dayPeriodLen = 0); dayPeriodLen-- > 0; )
  64896. skeletonCopy += dayPeriodChar;
  64897. for (; hourLen-- > 0; )
  64898. skeletonCopy = hourChar + skeletonCopy;
  64899. } else patternChar === "J" ? skeletonCopy += "H" : skeletonCopy += patternChar;
  64900. }
  64901. return skeletonCopy;
  64902. }
  64903. function getDefaultHourSymbolFromLocale(locale) {
  64904. var hourCycle = locale.hourCycle;
  64905. if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet
  64906. locale.hourCycles && // @ts-ignore
  64907. locale.hourCycles.length && (hourCycle = locale.hourCycles[0]), hourCycle)
  64908. switch (hourCycle) {
  64909. case "h24":
  64910. return "k";
  64911. case "h23":
  64912. return "H";
  64913. case "h12":
  64914. return "h";
  64915. case "h11":
  64916. return "K";
  64917. default:
  64918. throw new Error("Invalid hourCycle");
  64919. }
  64920. var languageTag = locale.language, regionTag;
  64921. languageTag !== "root" && (regionTag = locale.maximize().region);
  64922. var hourCycles = timeData[regionTag || ""] || timeData[languageTag || ""] || timeData["".concat(languageTag, "-001")] || timeData["001"];
  64923. return hourCycles[0];
  64924. }
  64925. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
  64926. var _a3, SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*")), SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
  64927. function createLocation2(start2, end2) {
  64928. return { start: start2, end: end2 };
  64929. }
  64930. var hasNativeStartsWith = !!String.prototype.startsWith && "_a".startsWith("a", 1), hasNativeFromCodePoint = !!String.fromCodePoint, hasNativeFromEntries = !!Object.fromEntries, hasNativeCodePointAt = !!String.prototype.codePointAt, hasTrimStart = !!String.prototype.trimStart, hasTrimEnd = !!String.prototype.trimEnd, hasNativeIsSafeInteger = !!Number.isSafeInteger, isSafeInteger = hasNativeIsSafeInteger ? Number.isSafeInteger : function(n) {
  64931. return typeof n == "number" && isFinite(n) && Math.floor(n) === n && Math.abs(n) <= 9007199254740991;
  64932. }, REGEX_SUPPORTS_U_AND_Y = !0;
  64933. try {
  64934. re = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu"), REGEX_SUPPORTS_U_AND_Y = ((_a3 = re.exec("a")) === null || _a3 === void 0 ? void 0 : _a3[0]) === "a";
  64935. } catch {
  64936. REGEX_SUPPORTS_U_AND_Y = !1;
  64937. }
  64938. var re, startsWith = hasNativeStartsWith ? (
  64939. // Native
  64940. function(s3, search, position2) {
  64941. return s3.startsWith(search, position2);
  64942. }
  64943. ) : (
  64944. // For IE11
  64945. function(s3, search, position2) {
  64946. return s3.slice(position2, position2 + search.length) === search;
  64947. }
  64948. ), fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
  64949. // IE11
  64950. function() {
  64951. for (var codePoints = [], _i = 0; _i < arguments.length; _i++)
  64952. codePoints[_i] = arguments[_i];
  64953. for (var elements = "", length2 = codePoints.length, i = 0, code; length2 > i; ) {
  64954. if (code = codePoints[i++], code > 1114111)
  64955. throw RangeError(code + " is not a valid code point");
  64956. elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
  64957. }
  64958. return elements;
  64959. }
  64960. ), fromEntries = (
  64961. // native
  64962. hasNativeFromEntries ? Object.fromEntries : (
  64963. // Ponyfill
  64964. function(entries) {
  64965. for (var obj = {}, _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
  64966. var _a4 = entries_1[_i], k = _a4[0], v = _a4[1];
  64967. obj[k] = v;
  64968. }
  64969. return obj;
  64970. }
  64971. )
  64972. ), codePointAt = hasNativeCodePointAt ? (
  64973. // Native
  64974. function(s3, index4) {
  64975. return s3.codePointAt(index4);
  64976. }
  64977. ) : (
  64978. // IE 11
  64979. function(s3, index4) {
  64980. var size = s3.length;
  64981. if (!(index4 < 0 || index4 >= size)) {
  64982. var first = s3.charCodeAt(index4), second;
  64983. return first < 55296 || first > 56319 || index4 + 1 === size || (second = s3.charCodeAt(index4 + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
  64984. }
  64985. }
  64986. ), trimStart = hasTrimStart ? (
  64987. // Native
  64988. function(s3) {
  64989. return s3.trimStart();
  64990. }
  64991. ) : (
  64992. // Ponyfill
  64993. function(s3) {
  64994. return s3.replace(SPACE_SEPARATOR_START_REGEX, "");
  64995. }
  64996. ), trimEnd = hasTrimEnd ? (
  64997. // Native
  64998. function(s3) {
  64999. return s3.trimEnd();
  65000. }
  65001. ) : (
  65002. // Ponyfill
  65003. function(s3) {
  65004. return s3.replace(SPACE_SEPARATOR_END_REGEX, "");
  65005. }
  65006. );
  65007. function RE(s3, flag3) {
  65008. return new RegExp(s3, flag3);
  65009. }
  65010. var matchIdentifierAtIndex;
  65011. REGEX_SUPPORTS_U_AND_Y ? (IDENTIFIER_PREFIX_RE_1 = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu"), matchIdentifierAtIndex = function(s3, index4) {
  65012. var _a4;
  65013. IDENTIFIER_PREFIX_RE_1.lastIndex = index4;
  65014. var match3 = IDENTIFIER_PREFIX_RE_1.exec(s3);
  65015. return (_a4 = match3[1]) !== null && _a4 !== void 0 ? _a4 : "";
  65016. }) : matchIdentifierAtIndex = function(s3, index4) {
  65017. for (var match3 = []; ; ) {
  65018. var c = codePointAt(s3, index4);
  65019. if (c === void 0 || _isWhiteSpace(c) || _isPatternSyntax(c))
  65020. break;
  65021. match3.push(c), index4 += c >= 65536 ? 2 : 1;
  65022. }
  65023. return fromCodePoint.apply(void 0, match3);
  65024. };
  65025. var IDENTIFIER_PREFIX_RE_1, Parser = (
  65026. /** @class */
  65027. (function() {
  65028. function Parser2(message, options) {
  65029. options === void 0 && (options = {}), this.message = message, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!options.ignoreTag, this.locale = options.locale, this.requiresOtherClause = !!options.requiresOtherClause, this.shouldParseSkeletons = !!options.shouldParseSkeletons;
  65030. }
  65031. return Parser2.prototype.parse = function() {
  65032. if (this.offset() !== 0)
  65033. throw Error("parser can only be used once");
  65034. return this.parseMessage(0, "", !1);
  65035. }, Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
  65036. for (var elements = []; !this.isEOF(); ) {
  65037. var char2 = this.char();
  65038. if (char2 === 123) {
  65039. var result = this.parseArgument(nestingLevel, expectingCloseTag);
  65040. if (result.err)
  65041. return result;
  65042. elements.push(result.val);
  65043. } else {
  65044. if (char2 === 125 && nestingLevel > 0)
  65045. break;
  65046. if (char2 === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
  65047. var position2 = this.clonePosition();
  65048. this.bump(), elements.push({
  65049. type: TYPE.pound,
  65050. location: createLocation2(position2, this.clonePosition())
  65051. });
  65052. } else if (char2 === 60 && !this.ignoreTag && this.peek() === 47) {
  65053. if (expectingCloseTag)
  65054. break;
  65055. return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation2(this.clonePosition(), this.clonePosition()));
  65056. } else if (char2 === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
  65057. var result = this.parseTag(nestingLevel, parentArgType);
  65058. if (result.err)
  65059. return result;
  65060. elements.push(result.val);
  65061. } else {
  65062. var result = this.parseLiteral(nestingLevel, parentArgType);
  65063. if (result.err)
  65064. return result;
  65065. elements.push(result.val);
  65066. }
  65067. }
  65068. }
  65069. return { val: elements, err: null };
  65070. }, Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
  65071. var startPosition = this.clonePosition();
  65072. this.bump();
  65073. var tagName = this.parseTagName();
  65074. if (this.bumpSpace(), this.bumpIf("/>"))
  65075. return {
  65076. val: {
  65077. type: TYPE.literal,
  65078. value: "<".concat(tagName, "/>"),
  65079. location: createLocation2(startPosition, this.clonePosition())
  65080. },
  65081. err: null
  65082. };
  65083. if (this.bumpIf(">")) {
  65084. var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, !0);
  65085. if (childrenResult.err)
  65086. return childrenResult;
  65087. var children = childrenResult.val, endTagStartPosition = this.clonePosition();
  65088. if (this.bumpIf("</")) {
  65089. if (this.isEOF() || !_isAlpha(this.char()))
  65090. return this.error(ErrorKind.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition()));
  65091. var closingTagNameStartPosition = this.clonePosition(), closingTagName = this.parseTagName();
  65092. return tagName !== closingTagName ? this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation2(closingTagNameStartPosition, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
  65093. val: {
  65094. type: TYPE.tag,
  65095. value: tagName,
  65096. children,
  65097. location: createLocation2(startPosition, this.clonePosition())
  65098. },
  65099. err: null
  65100. } : this.error(ErrorKind.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition())));
  65101. } else
  65102. return this.error(ErrorKind.UNCLOSED_TAG, createLocation2(startPosition, this.clonePosition()));
  65103. } else
  65104. return this.error(ErrorKind.INVALID_TAG, createLocation2(startPosition, this.clonePosition()));
  65105. }, Parser2.prototype.parseTagName = function() {
  65106. var startOffset = this.offset();
  65107. for (this.bump(); !this.isEOF() && _isPotentialElementNameChar(this.char()); )
  65108. this.bump();
  65109. return this.message.slice(startOffset, this.offset());
  65110. }, Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
  65111. for (var start2 = this.clonePosition(), value = ""; ; ) {
  65112. var parseQuoteResult = this.tryParseQuote(parentArgType);
  65113. if (parseQuoteResult) {
  65114. value += parseQuoteResult;
  65115. continue;
  65116. }
  65117. var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
  65118. if (parseUnquotedResult) {
  65119. value += parseUnquotedResult;
  65120. continue;
  65121. }
  65122. var parseLeftAngleResult = this.tryParseLeftAngleBracket();
  65123. if (parseLeftAngleResult) {
  65124. value += parseLeftAngleResult;
  65125. continue;
  65126. }
  65127. break;
  65128. }
  65129. var location4 = createLocation2(start2, this.clonePosition());
  65130. return {
  65131. val: { type: TYPE.literal, value, location: location4 },
  65132. err: null
  65133. };
  65134. }, Parser2.prototype.tryParseLeftAngleBracket = function() {
  65135. return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
  65136. !_isAlphaOrSlash(this.peek() || 0)) ? (this.bump(), "<") : null;
  65137. }, Parser2.prototype.tryParseQuote = function(parentArgType) {
  65138. if (this.isEOF() || this.char() !== 39)
  65139. return null;
  65140. switch (this.peek()) {
  65141. case 39:
  65142. return this.bump(), this.bump(), "'";
  65143. // '{', '<', '>', '}'
  65144. case 123:
  65145. case 60:
  65146. case 62:
  65147. case 125:
  65148. break;
  65149. case 35:
  65150. if (parentArgType === "plural" || parentArgType === "selectordinal")
  65151. break;
  65152. return null;
  65153. default:
  65154. return null;
  65155. }
  65156. this.bump();
  65157. var codePoints = [this.char()];
  65158. for (this.bump(); !this.isEOF(); ) {
  65159. var ch = this.char();
  65160. if (ch === 39)
  65161. if (this.peek() === 39)
  65162. codePoints.push(39), this.bump();
  65163. else {
  65164. this.bump();
  65165. break;
  65166. }
  65167. else
  65168. codePoints.push(ch);
  65169. this.bump();
  65170. }
  65171. return fromCodePoint.apply(void 0, codePoints);
  65172. }, Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
  65173. if (this.isEOF())
  65174. return null;
  65175. var ch = this.char();
  65176. return ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0 ? null : (this.bump(), fromCodePoint(ch));
  65177. }, Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
  65178. var openingBracePosition = this.clonePosition();
  65179. if (this.bump(), this.bumpSpace(), this.isEOF())
  65180. return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
  65181. if (this.char() === 125)
  65182. return this.bump(), this.error(ErrorKind.EMPTY_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
  65183. var value = this.parseIdentifierIfPossible().value;
  65184. if (!value)
  65185. return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
  65186. if (this.bumpSpace(), this.isEOF())
  65187. return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
  65188. switch (this.char()) {
  65189. // Simple argument: `{name}`
  65190. case 125:
  65191. return this.bump(), {
  65192. val: {
  65193. type: TYPE.argument,
  65194. // value does not include the opening and closing braces.
  65195. value,
  65196. location: createLocation2(openingBracePosition, this.clonePosition())
  65197. },
  65198. err: null
  65199. };
  65200. // Argument with options: `{name, format, ...}`
  65201. case 44:
  65202. return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())) : this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
  65203. default:
  65204. return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
  65205. }
  65206. }, Parser2.prototype.parseIdentifierIfPossible = function() {
  65207. var startingPosition = this.clonePosition(), startOffset = this.offset(), value = matchIdentifierAtIndex(this.message, startOffset), endOffset = startOffset + value.length;
  65208. this.bumpTo(endOffset);
  65209. var endPosition = this.clonePosition(), location4 = createLocation2(startingPosition, endPosition);
  65210. return { value, location: location4 };
  65211. }, Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
  65212. var _a4, typeStartPosition = this.clonePosition(), argType = this.parseIdentifierIfPossible().value, typeEndPosition = this.clonePosition();
  65213. switch (argType) {
  65214. case "":
  65215. return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition));
  65216. case "number":
  65217. case "date":
  65218. case "time": {
  65219. this.bumpSpace();
  65220. var styleAndLocation = null;
  65221. if (this.bumpIf(",")) {
  65222. this.bumpSpace();
  65223. var styleStartPosition = this.clonePosition(), result = this.parseSimpleArgStyleIfPossible();
  65224. if (result.err)
  65225. return result;
  65226. var style = trimEnd(result.val);
  65227. if (style.length === 0)
  65228. return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation2(this.clonePosition(), this.clonePosition()));
  65229. var styleLocation = createLocation2(styleStartPosition, this.clonePosition());
  65230. styleAndLocation = { style, styleLocation };
  65231. }
  65232. var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
  65233. if (argCloseResult.err)
  65234. return argCloseResult;
  65235. var location_1 = createLocation2(openingBracePosition, this.clonePosition());
  65236. if (styleAndLocation && startsWith(styleAndLocation?.style, "::", 0)) {
  65237. var skeleton = trimStart(styleAndLocation.style.slice(2));
  65238. if (argType === "number") {
  65239. var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
  65240. return result.err ? result : {
  65241. val: { type: TYPE.number, value, location: location_1, style: result.val },
  65242. err: null
  65243. };
  65244. } else {
  65245. if (skeleton.length === 0)
  65246. return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
  65247. var dateTimePattern = skeleton;
  65248. this.locale && (dateTimePattern = getBestPattern(skeleton, this.locale));
  65249. var style = {
  65250. type: SKELETON_TYPE.dateTime,
  65251. pattern: dateTimePattern,
  65252. location: styleAndLocation.styleLocation,
  65253. parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {}
  65254. }, type5 = argType === "date" ? TYPE.date : TYPE.time;
  65255. return {
  65256. val: { type: type5, value, location: location_1, style },
  65257. err: null
  65258. };
  65259. }
  65260. }
  65261. return {
  65262. val: {
  65263. type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
  65264. value,
  65265. location: location_1,
  65266. style: (_a4 = styleAndLocation?.style) !== null && _a4 !== void 0 ? _a4 : null
  65267. },
  65268. err: null
  65269. };
  65270. }
  65271. case "plural":
  65272. case "selectordinal":
  65273. case "select": {
  65274. var typeEndPosition_1 = this.clonePosition();
  65275. if (this.bumpSpace(), !this.bumpIf(","))
  65276. return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation2(typeEndPosition_1, __assign({}, typeEndPosition_1)));
  65277. this.bumpSpace();
  65278. var identifierAndLocation = this.parseIdentifierIfPossible(), pluralOffset = 0;
  65279. if (argType !== "select" && identifierAndLocation.value === "offset") {
  65280. if (!this.bumpIf(":"))
  65281. return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation2(this.clonePosition(), this.clonePosition()));
  65282. this.bumpSpace();
  65283. var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
  65284. if (result.err)
  65285. return result;
  65286. this.bumpSpace(), identifierAndLocation = this.parseIdentifierIfPossible(), pluralOffset = result.val;
  65287. }
  65288. var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
  65289. if (optionsResult.err)
  65290. return optionsResult;
  65291. var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
  65292. if (argCloseResult.err)
  65293. return argCloseResult;
  65294. var location_2 = createLocation2(openingBracePosition, this.clonePosition());
  65295. return argType === "select" ? {
  65296. val: {
  65297. type: TYPE.select,
  65298. value,
  65299. options: fromEntries(optionsResult.val),
  65300. location: location_2
  65301. },
  65302. err: null
  65303. } : {
  65304. val: {
  65305. type: TYPE.plural,
  65306. value,
  65307. options: fromEntries(optionsResult.val),
  65308. offset: pluralOffset,
  65309. pluralType: argType === "plural" ? "cardinal" : "ordinal",
  65310. location: location_2
  65311. },
  65312. err: null
  65313. };
  65314. }
  65315. default:
  65316. return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition));
  65317. }
  65318. }, Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
  65319. return this.isEOF() || this.char() !== 125 ? this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())) : (this.bump(), { val: !0, err: null });
  65320. }, Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
  65321. for (var nestedBraces = 0, startPosition = this.clonePosition(); !this.isEOF(); ) {
  65322. var ch = this.char();
  65323. switch (ch) {
  65324. case 39: {
  65325. this.bump();
  65326. var apostrophePosition = this.clonePosition();
  65327. if (!this.bumpUntil("'"))
  65328. return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation2(apostrophePosition, this.clonePosition()));
  65329. this.bump();
  65330. break;
  65331. }
  65332. case 123: {
  65333. nestedBraces += 1, this.bump();
  65334. break;
  65335. }
  65336. case 125: {
  65337. if (nestedBraces > 0)
  65338. nestedBraces -= 1;
  65339. else
  65340. return {
  65341. val: this.message.slice(startPosition.offset, this.offset()),
  65342. err: null
  65343. };
  65344. break;
  65345. }
  65346. default:
  65347. this.bump();
  65348. break;
  65349. }
  65350. }
  65351. return {
  65352. val: this.message.slice(startPosition.offset, this.offset()),
  65353. err: null
  65354. };
  65355. }, Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location4) {
  65356. var tokens2 = [];
  65357. try {
  65358. tokens2 = parseNumberSkeletonFromString(skeleton);
  65359. } catch {
  65360. return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location4);
  65361. }
  65362. return {
  65363. val: {
  65364. type: SKELETON_TYPE.number,
  65365. tokens: tokens2,
  65366. location: location4,
  65367. parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens2) : {}
  65368. },
  65369. err: null
  65370. };
  65371. }, Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
  65372. for (var _a4, hasOtherClause = !1, options = [], parsedSelectors = /* @__PURE__ */ new Set(), selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location; ; ) {
  65373. if (selector.length === 0) {
  65374. var startPosition = this.clonePosition();
  65375. if (parentArgType !== "select" && this.bumpIf("=")) {
  65376. var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
  65377. if (result.err)
  65378. return result;
  65379. selectorLocation = createLocation2(startPosition, this.clonePosition()), selector = this.message.slice(startPosition.offset, this.offset());
  65380. } else
  65381. break;
  65382. }
  65383. if (parsedSelectors.has(selector))
  65384. return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
  65385. selector === "other" && (hasOtherClause = !0), this.bumpSpace();
  65386. var openingBracePosition = this.clonePosition();
  65387. if (!this.bumpIf("{"))
  65388. return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation2(this.clonePosition(), this.clonePosition()));
  65389. var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
  65390. if (fragmentResult.err)
  65391. return fragmentResult;
  65392. var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
  65393. if (argCloseResult.err)
  65394. return argCloseResult;
  65395. options.push([
  65396. selector,
  65397. {
  65398. value: fragmentResult.val,
  65399. location: createLocation2(openingBracePosition, this.clonePosition())
  65400. }
  65401. ]), parsedSelectors.add(selector), this.bumpSpace(), _a4 = this.parseIdentifierIfPossible(), selector = _a4.value, selectorLocation = _a4.location;
  65402. }
  65403. return options.length === 0 ? this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation2(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !hasOtherClause ? this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation2(this.clonePosition(), this.clonePosition())) : { val: options, err: null };
  65404. }, Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
  65405. var sign = 1, startingPosition = this.clonePosition();
  65406. this.bumpIf("+") || this.bumpIf("-") && (sign = -1);
  65407. for (var hasDigits = !1, decimal = 0; !this.isEOF(); ) {
  65408. var ch = this.char();
  65409. if (ch >= 48 && ch <= 57)
  65410. hasDigits = !0, decimal = decimal * 10 + (ch - 48), this.bump();
  65411. else
  65412. break;
  65413. }
  65414. var location4 = createLocation2(startingPosition, this.clonePosition());
  65415. return hasDigits ? (decimal *= sign, isSafeInteger(decimal) ? { val: decimal, err: null } : this.error(invalidNumberError, location4)) : this.error(expectNumberError, location4);
  65416. }, Parser2.prototype.offset = function() {
  65417. return this.position.offset;
  65418. }, Parser2.prototype.isEOF = function() {
  65419. return this.offset() === this.message.length;
  65420. }, Parser2.prototype.clonePosition = function() {
  65421. return {
  65422. offset: this.position.offset,
  65423. line: this.position.line,
  65424. column: this.position.column
  65425. };
  65426. }, Parser2.prototype.char = function() {
  65427. var offset3 = this.position.offset;
  65428. if (offset3 >= this.message.length)
  65429. throw Error("out of bound");
  65430. var code = codePointAt(this.message, offset3);
  65431. if (code === void 0)
  65432. throw Error("Offset ".concat(offset3, " is at invalid UTF-16 code unit boundary"));
  65433. return code;
  65434. }, Parser2.prototype.error = function(kind, location4) {
  65435. return {
  65436. val: null,
  65437. err: {
  65438. kind,
  65439. message: this.message,
  65440. location: location4
  65441. }
  65442. };
  65443. }, Parser2.prototype.bump = function() {
  65444. if (!this.isEOF()) {
  65445. var code = this.char();
  65446. code === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += code < 65536 ? 1 : 2);
  65447. }
  65448. }, Parser2.prototype.bumpIf = function(prefix4) {
  65449. if (startsWith(this.message, prefix4, this.offset())) {
  65450. for (var i = 0; i < prefix4.length; i++)
  65451. this.bump();
  65452. return !0;
  65453. }
  65454. return !1;
  65455. }, Parser2.prototype.bumpUntil = function(pattern) {
  65456. var currentOffset = this.offset(), index4 = this.message.indexOf(pattern, currentOffset);
  65457. return index4 >= 0 ? (this.bumpTo(index4), !0) : (this.bumpTo(this.message.length), !1);
  65458. }, Parser2.prototype.bumpTo = function(targetOffset) {
  65459. if (this.offset() > targetOffset)
  65460. throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
  65461. for (targetOffset = Math.min(targetOffset, this.message.length); ; ) {
  65462. var offset3 = this.offset();
  65463. if (offset3 === targetOffset)
  65464. break;
  65465. if (offset3 > targetOffset)
  65466. throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
  65467. if (this.bump(), this.isEOF())
  65468. break;
  65469. }
  65470. }, Parser2.prototype.bumpSpace = function() {
  65471. for (; !this.isEOF() && _isWhiteSpace(this.char()); )
  65472. this.bump();
  65473. }, Parser2.prototype.peek = function() {
  65474. if (this.isEOF())
  65475. return null;
  65476. var code = this.char(), offset3 = this.offset(), nextCode = this.message.charCodeAt(offset3 + (code >= 65536 ? 2 : 1));
  65477. return nextCode ?? null;
  65478. }, Parser2;
  65479. })()
  65480. );
  65481. function _isAlpha(codepoint) {
  65482. return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
  65483. }
  65484. function _isAlphaOrSlash(codepoint) {
  65485. return _isAlpha(codepoint) || codepoint === 47;
  65486. }
  65487. function _isPotentialElementNameChar(c) {
  65488. return c === 45 || c === 46 || c >= 48 && c <= 57 || c === 95 || c >= 97 && c <= 122 || c >= 65 && c <= 90 || c == 183 || c >= 192 && c <= 214 || c >= 216 && c <= 246 || c >= 248 && c <= 893 || c >= 895 && c <= 8191 || c >= 8204 && c <= 8205 || c >= 8255 && c <= 8256 || c >= 8304 && c <= 8591 || c >= 11264 && c <= 12271 || c >= 12289 && c <= 55295 || c >= 63744 && c <= 64975 || c >= 65008 && c <= 65533 || c >= 65536 && c <= 983039;
  65489. }
  65490. function _isWhiteSpace(c) {
  65491. return c >= 9 && c <= 13 || c === 32 || c === 133 || c >= 8206 && c <= 8207 || c === 8232 || c === 8233;
  65492. }
  65493. function _isPatternSyntax(c) {
  65494. return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
  65495. }
  65496. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/index.js
  65497. function pruneLocation(els) {
  65498. els.forEach(function(el) {
  65499. if (delete el.location, isSelectElement(el) || isPluralElement(el))
  65500. for (var k in el.options)
  65501. delete el.options[k].location, pruneLocation(el.options[k].value);
  65502. else isNumberElement(el) && isNumberSkeleton(el.style) || (isDateElement(el) || isTimeElement(el)) && isDateTimeSkeleton(el.style) ? delete el.style.location : isTagElement(el) && pruneLocation(el.children);
  65503. });
  65504. }
  65505. function parse8(message, opts) {
  65506. opts === void 0 && (opts = {}), opts = __assign({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, opts);
  65507. var result = new Parser(message, opts).parse();
  65508. if (result.err) {
  65509. var error = SyntaxError(ErrorKind[result.err.kind]);
  65510. throw error.location = result.err.location, error.originalMessage = result.err.message, error;
  65511. }
  65512. return opts?.captureLocation || pruneLocation(result.val), result.val;
  65513. }
  65514. // ../../node_modules/intl-messageformat/lib/src/error.js
  65515. var ErrorCode;
  65516. (function(ErrorCode2) {
  65517. ErrorCode2.MISSING_VALUE = "MISSING_VALUE", ErrorCode2.INVALID_VALUE = "INVALID_VALUE", ErrorCode2.MISSING_INTL_API = "MISSING_INTL_API";
  65518. })(ErrorCode || (ErrorCode = {}));
  65519. var FormatError = (
  65520. /** @class */
  65521. (function(_super) {
  65522. __extends(FormatError2, _super);
  65523. function FormatError2(msg, code, originalMessage) {
  65524. var _this = _super.call(this, msg) || this;
  65525. return _this.code = code, _this.originalMessage = originalMessage, _this;
  65526. }
  65527. return FormatError2.prototype.toString = function() {
  65528. return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
  65529. }, FormatError2;
  65530. })(Error)
  65531. );
  65532. var InvalidValueError = (
  65533. /** @class */
  65534. (function(_super) {
  65535. __extends(InvalidValueError2, _super);
  65536. function InvalidValueError2(variableId, value, options, originalMessage) {
  65537. return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
  65538. }
  65539. return InvalidValueError2;
  65540. })(FormatError)
  65541. );
  65542. var InvalidValueTypeError = (
  65543. /** @class */
  65544. (function(_super) {
  65545. __extends(InvalidValueTypeError2, _super);
  65546. function InvalidValueTypeError2(value, type5, originalMessage) {
  65547. return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type5), ErrorCode.INVALID_VALUE, originalMessage) || this;
  65548. }
  65549. return InvalidValueTypeError2;
  65550. })(FormatError)
  65551. );
  65552. var MissingValueError = (
  65553. /** @class */
  65554. (function(_super) {
  65555. __extends(MissingValueError2, _super);
  65556. function MissingValueError2(variableId, originalMessage) {
  65557. return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
  65558. }
  65559. return MissingValueError2;
  65560. })(FormatError)
  65561. );
  65562. // ../../node_modules/intl-messageformat/lib/src/formatters.js
  65563. var PART_TYPE;
  65564. (function(PART_TYPE2) {
  65565. PART_TYPE2[PART_TYPE2.literal = 0] = "literal", PART_TYPE2[PART_TYPE2.object = 1] = "object";
  65566. })(PART_TYPE || (PART_TYPE = {}));
  65567. function mergeLiteral(parts) {
  65568. return parts.length < 2 ? parts : parts.reduce(function(all, part) {
  65569. var lastPart = all[all.length - 1];
  65570. return !lastPart || lastPart.type !== PART_TYPE.literal || part.type !== PART_TYPE.literal ? all.push(part) : lastPart.value += part.value, all;
  65571. }, []);
  65572. }
  65573. function isFormatXMLElementFn(el) {
  65574. return typeof el == "function";
  65575. }
  65576. function formatToParts(els, locales, formatters, formats, values, currentPluralValue, originalMessage) {
  65577. if (els.length === 1 && isLiteralElement(els[0]))
  65578. return [
  65579. {
  65580. type: PART_TYPE.literal,
  65581. value: els[0].value
  65582. }
  65583. ];
  65584. for (var result = [], _i = 0, els_1 = els; _i < els_1.length; _i++) {
  65585. var el = els_1[_i];
  65586. if (isLiteralElement(el)) {
  65587. result.push({
  65588. type: PART_TYPE.literal,
  65589. value: el.value
  65590. });
  65591. continue;
  65592. }
  65593. if (isPoundElement(el)) {
  65594. typeof currentPluralValue == "number" && result.push({
  65595. type: PART_TYPE.literal,
  65596. value: formatters.getNumberFormat(locales).format(currentPluralValue)
  65597. });
  65598. continue;
  65599. }
  65600. var varName = el.value;
  65601. if (!(values && varName in values))
  65602. throw new MissingValueError(varName, originalMessage);
  65603. var value = values[varName];
  65604. if (isArgumentElement(el)) {
  65605. (!value || typeof value == "string" || typeof value == "number") && (value = typeof value == "string" || typeof value == "number" ? String(value) : ""), result.push({
  65606. type: typeof value == "string" ? PART_TYPE.literal : PART_TYPE.object,
  65607. value
  65608. });
  65609. continue;
  65610. }
  65611. if (isDateElement(el)) {
  65612. var style = typeof el.style == "string" ? formats.date[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : void 0;
  65613. result.push({
  65614. type: PART_TYPE.literal,
  65615. value: formatters.getDateTimeFormat(locales, style).format(value)
  65616. });
  65617. continue;
  65618. }
  65619. if (isTimeElement(el)) {
  65620. var style = typeof el.style == "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium;
  65621. result.push({
  65622. type: PART_TYPE.literal,
  65623. value: formatters.getDateTimeFormat(locales, style).format(value)
  65624. });
  65625. continue;
  65626. }
  65627. if (isNumberElement(el)) {
  65628. var style = typeof el.style == "string" ? formats.number[el.style] : isNumberSkeleton(el.style) ? el.style.parsedOptions : void 0;
  65629. style && style.scale && (value = value * (style.scale || 1)), result.push({
  65630. type: PART_TYPE.literal,
  65631. value: formatters.getNumberFormat(locales, style).format(value)
  65632. });
  65633. continue;
  65634. }
  65635. if (isTagElement(el)) {
  65636. var children = el.children, value_1 = el.value, formatFn = values[value_1];
  65637. if (!isFormatXMLElementFn(formatFn))
  65638. throw new InvalidValueTypeError(value_1, "function", originalMessage);
  65639. var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue), chunks = formatFn(parts.map(function(p3) {
  65640. return p3.value;
  65641. }));
  65642. Array.isArray(chunks) || (chunks = [chunks]), result.push.apply(result, chunks.map(function(c) {
  65643. return {
  65644. type: typeof c == "string" ? PART_TYPE.literal : PART_TYPE.object,
  65645. value: c
  65646. };
  65647. }));
  65648. }
  65649. if (isSelectElement(el)) {
  65650. var opt = el.options[value] || el.options.other;
  65651. if (!opt)
  65652. throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
  65653. result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values));
  65654. continue;
  65655. }
  65656. if (isPluralElement(el)) {
  65657. var opt = el.options["=".concat(value)];
  65658. if (!opt) {
  65659. if (!Intl.PluralRules)
  65660. throw new FormatError(`Intl.PluralRules is not available in this environment.
  65661. Try polyfilling it using "@formatjs/intl-pluralrules"
  65662. `, ErrorCode.MISSING_INTL_API, originalMessage);
  65663. var rule = formatters.getPluralRules(locales, { type: el.pluralType }).select(value - (el.offset || 0));
  65664. opt = el.options[rule] || el.options.other;
  65665. }
  65666. if (!opt)
  65667. throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
  65668. result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values, value - (el.offset || 0)));
  65669. continue;
  65670. }
  65671. }
  65672. return mergeLiteral(result);
  65673. }
  65674. // ../../node_modules/intl-messageformat/lib/src/core.js
  65675. function mergeConfig(c1, c2) {
  65676. return c2 ? __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k) {
  65677. return all[k] = __assign(__assign({}, c1[k]), c2[k] || {}), all;
  65678. }, {})) : c1;
  65679. }
  65680. function mergeConfigs(defaultConfig2, configs) {
  65681. return configs ? Object.keys(defaultConfig2).reduce(function(all, k) {
  65682. return all[k] = mergeConfig(defaultConfig2[k], configs[k]), all;
  65683. }, __assign({}, defaultConfig2)) : defaultConfig2;
  65684. }
  65685. function createFastMemoizeCache(store2) {
  65686. return {
  65687. create: function() {
  65688. return {
  65689. get: function(key) {
  65690. return store2[key];
  65691. },
  65692. set: function(key, value) {
  65693. store2[key] = value;
  65694. }
  65695. };
  65696. }
  65697. };
  65698. }
  65699. function createDefaultFormatters(cache) {
  65700. return cache === void 0 && (cache = {
  65701. number: {},
  65702. dateTime: {},
  65703. pluralRules: {}
  65704. }), {
  65705. getNumberFormat: memoize12(function() {
  65706. for (var _a4, args = [], _i = 0; _i < arguments.length; _i++)
  65707. args[_i] = arguments[_i];
  65708. return new ((_a4 = Intl.NumberFormat).bind.apply(_a4, __spreadArray([void 0], args, !1)))();
  65709. }, {
  65710. cache: createFastMemoizeCache(cache.number),
  65711. strategy: strategies.variadic
  65712. }),
  65713. getDateTimeFormat: memoize12(function() {
  65714. for (var _a4, args = [], _i = 0; _i < arguments.length; _i++)
  65715. args[_i] = arguments[_i];
  65716. return new ((_a4 = Intl.DateTimeFormat).bind.apply(_a4, __spreadArray([void 0], args, !1)))();
  65717. }, {
  65718. cache: createFastMemoizeCache(cache.dateTime),
  65719. strategy: strategies.variadic
  65720. }),
  65721. getPluralRules: memoize12(function() {
  65722. for (var _a4, args = [], _i = 0; _i < arguments.length; _i++)
  65723. args[_i] = arguments[_i];
  65724. return new ((_a4 = Intl.PluralRules).bind.apply(_a4, __spreadArray([void 0], args, !1)))();
  65725. }, {
  65726. cache: createFastMemoizeCache(cache.pluralRules),
  65727. strategy: strategies.variadic
  65728. })
  65729. };
  65730. }
  65731. var IntlMessageFormat = (
  65732. /** @class */
  65733. (function() {
  65734. function IntlMessageFormat2(message, locales, overrideFormats, opts) {
  65735. locales === void 0 && (locales = IntlMessageFormat2.defaultLocale);
  65736. var _this = this;
  65737. if (this.formatterCache = {
  65738. number: {},
  65739. dateTime: {},
  65740. pluralRules: {}
  65741. }, this.format = function(values) {
  65742. var parts = _this.formatToParts(values);
  65743. if (parts.length === 1)
  65744. return parts[0].value;
  65745. var result = parts.reduce(function(all, part) {
  65746. return !all.length || part.type !== PART_TYPE.literal || typeof all[all.length - 1] != "string" ? all.push(part.value) : all[all.length - 1] += part.value, all;
  65747. }, []);
  65748. return result.length <= 1 ? result[0] || "" : result;
  65749. }, this.formatToParts = function(values) {
  65750. return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
  65751. }, this.resolvedOptions = function() {
  65752. var _a5;
  65753. return {
  65754. locale: ((_a5 = _this.resolvedLocale) === null || _a5 === void 0 ? void 0 : _a5.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
  65755. };
  65756. }, this.getAst = function() {
  65757. return _this.ast;
  65758. }, this.locales = locales, this.resolvedLocale = IntlMessageFormat2.resolveLocale(locales), typeof message == "string") {
  65759. if (this.message = message, !IntlMessageFormat2.__parse)
  65760. throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
  65761. var _a4 = opts || {}, formatters = _a4.formatters, parseOpts = __rest(_a4, ["formatters"]);
  65762. this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
  65763. } else
  65764. this.ast = message;
  65765. if (!Array.isArray(this.ast))
  65766. throw new TypeError("A message must be provided as a String or AST.");
  65767. this.formats = mergeConfigs(IntlMessageFormat2.formats, overrideFormats), this.formatters = opts && opts.formatters || createDefaultFormatters(this.formatterCache);
  65768. }
  65769. return Object.defineProperty(IntlMessageFormat2, "defaultLocale", {
  65770. get: function() {
  65771. return IntlMessageFormat2.memoizedDefaultLocale || (IntlMessageFormat2.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), IntlMessageFormat2.memoizedDefaultLocale;
  65772. },
  65773. enumerable: !1,
  65774. configurable: !0
  65775. }), IntlMessageFormat2.memoizedDefaultLocale = null, IntlMessageFormat2.resolveLocale = function(locales) {
  65776. if (!(typeof Intl.Locale > "u")) {
  65777. var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales);
  65778. return supportedLocales.length > 0 ? new Intl.Locale(supportedLocales[0]) : new Intl.Locale(typeof locales == "string" ? locales : locales[0]);
  65779. }
  65780. }, IntlMessageFormat2.__parse = parse8, IntlMessageFormat2.formats = {
  65781. number: {
  65782. integer: {
  65783. maximumFractionDigits: 0
  65784. },
  65785. currency: {
  65786. style: "currency"
  65787. },
  65788. percent: {
  65789. style: "percent"
  65790. }
  65791. },
  65792. date: {
  65793. short: {
  65794. month: "numeric",
  65795. day: "numeric",
  65796. year: "2-digit"
  65797. },
  65798. medium: {
  65799. month: "short",
  65800. day: "numeric",
  65801. year: "numeric"
  65802. },
  65803. long: {
  65804. month: "long",
  65805. day: "numeric",
  65806. year: "numeric"
  65807. },
  65808. full: {
  65809. weekday: "long",
  65810. month: "long",
  65811. day: "numeric",
  65812. year: "numeric"
  65813. }
  65814. },
  65815. time: {
  65816. short: {
  65817. hour: "numeric",
  65818. minute: "numeric"
  65819. },
  65820. medium: {
  65821. hour: "numeric",
  65822. minute: "numeric",
  65823. second: "numeric"
  65824. },
  65825. long: {
  65826. hour: "numeric",
  65827. minute: "numeric",
  65828. second: "numeric",
  65829. timeZoneName: "short"
  65830. },
  65831. full: {
  65832. hour: "numeric",
  65833. minute: "numeric",
  65834. second: "numeric",
  65835. timeZoneName: "short"
  65836. }
  65837. }
  65838. }, IntlMessageFormat2;
  65839. })()
  65840. );
  65841. // ../../node_modules/@react-aria/i18n/dist/useMessageFormatter.mjs
  65842. var import_react67 = __toESM(require_react(), 1);
  65843. // ../../node_modules/@internationalized/string/dist/LocalizedStringDictionary.mjs
  65844. var $5b160d28a433310d$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale"), $5b160d28a433310d$var$stringsSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.strings"), $5b160d28a433310d$var$cachedGlobalStrings, $5b160d28a433310d$export$c17fa47878dc55b6 = class _$5b160d28a433310d$export$c17fa47878dc55b6 {
  65845. /** Returns a localized string for the given key and locale. */
  65846. getStringForLocale(key, locale) {
  65847. let string = this.getStringsForLocale(locale)[key];
  65848. if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`);
  65849. return string;
  65850. }
  65851. /** Returns all localized strings for the given locale. */
  65852. getStringsForLocale(locale) {
  65853. let strings = this.strings[locale];
  65854. return strings || (strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale), this.strings[locale] = strings), strings;
  65855. }
  65856. static getGlobalDictionaryForPackage(packageName) {
  65857. if (typeof window > "u") return null;
  65858. let locale = window[$5b160d28a433310d$var$localeSymbol];
  65859. if ($5b160d28a433310d$var$cachedGlobalStrings === void 0) {
  65860. let globalStrings = window[$5b160d28a433310d$var$stringsSymbol];
  65861. if (!globalStrings) return null;
  65862. $5b160d28a433310d$var$cachedGlobalStrings = {};
  65863. for (let pkg in globalStrings) $5b160d28a433310d$var$cachedGlobalStrings[pkg] = new _$5b160d28a433310d$export$c17fa47878dc55b6({
  65864. [locale]: globalStrings[pkg]
  65865. }, locale);
  65866. }
  65867. let dictionary = $5b160d28a433310d$var$cachedGlobalStrings?.[packageName];
  65868. if (!dictionary) throw new Error(`Strings for package "${packageName}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
  65869. return dictionary;
  65870. }
  65871. constructor(messages, defaultLocale = "en-US") {
  65872. this.strings = Object.fromEntries(Object.entries(messages).filter(([, v]) => v)), this.defaultLocale = defaultLocale;
  65873. }
  65874. };
  65875. function $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = "en-US") {
  65876. if (strings[locale]) return strings[locale];
  65877. let language = $5b160d28a433310d$var$getLanguage(locale);
  65878. if (strings[language]) return strings[language];
  65879. for (let key in strings)
  65880. if (key.startsWith(language + "-")) return strings[key];
  65881. return strings[defaultLocale];
  65882. }
  65883. function $5b160d28a433310d$var$getLanguage(locale) {
  65884. return Intl.Locale ? new Intl.Locale(locale).language : locale.split("-")[0];
  65885. }
  65886. // ../../node_modules/@internationalized/string/dist/LocalizedStringFormatter.mjs
  65887. var $6db58dc88e78b024$var$pluralRulesCache = /* @__PURE__ */ new Map(), $6db58dc88e78b024$var$numberFormatCache = /* @__PURE__ */ new Map(), $6db58dc88e78b024$export$2f817fcdc4b89ae0 = class {
  65888. /** Formats a localized string for the given key with the provided variables. */
  65889. format(key, variables) {
  65890. let message = this.strings.getStringForLocale(key, this.locale);
  65891. return typeof message == "function" ? message(variables, this) : message;
  65892. }
  65893. plural(count, options, type5 = "cardinal") {
  65894. let opt = options["=" + count];
  65895. if (opt) return typeof opt == "function" ? opt() : opt;
  65896. let key = this.locale + ":" + type5, pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key);
  65897. pluralRules || (pluralRules = new Intl.PluralRules(this.locale, {
  65898. type: type5
  65899. }), $6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules));
  65900. let selected = pluralRules.select(count);
  65901. return opt = options[selected] || options.other, typeof opt == "function" ? opt() : opt;
  65902. }
  65903. number(value) {
  65904. let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale);
  65905. return numberFormat || (numberFormat = new Intl.NumberFormat(this.locale), $6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat)), numberFormat.format(value);
  65906. }
  65907. select(options, value) {
  65908. let opt = options[value] || options.other;
  65909. return typeof opt == "function" ? opt() : opt;
  65910. }
  65911. constructor(locale, strings) {
  65912. this.locale = locale, this.strings = strings;
  65913. }
  65914. };
  65915. // ../../node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.mjs
  65916. var import_react68 = __toESM(require_react(), 1), $fca6afa0e843324b$var$cache = /* @__PURE__ */ new WeakMap();
  65917. function $fca6afa0e843324b$var$getCachedDictionary(strings) {
  65918. let dictionary = $fca6afa0e843324b$var$cache.get(strings);
  65919. return dictionary || (dictionary = new $5b160d28a433310d$export$c17fa47878dc55b6(strings), $fca6afa0e843324b$var$cache.set(strings, dictionary)), dictionary;
  65920. }
  65921. function $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName) {
  65922. return packageName && $5b160d28a433310d$export$c17fa47878dc55b6.getGlobalDictionaryForPackage(packageName) || $fca6afa0e843324b$var$getCachedDictionary(strings);
  65923. }
  65924. function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings, packageName) {
  65925. let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), dictionary = $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName);
  65926. return (0, import_react68.useMemo)(() => new $6db58dc88e78b024$export$2f817fcdc4b89ae0(locale, dictionary), [
  65927. locale,
  65928. dictionary
  65929. ]);
  65930. }
  65931. // ../../node_modules/@react-aria/i18n/dist/useListFormatter.mjs
  65932. var import_react69 = __toESM(require_react(), 1);
  65933. // ../../node_modules/@internationalized/date/dist/string.mjs
  65934. var $fae977aafc393c5c$var$requiredDurationTimeGroups = [
  65935. "hours",
  65936. "minutes",
  65937. "seconds"
  65938. ], $fae977aafc393c5c$var$requiredDurationGroups = [
  65939. "years",
  65940. "months",
  65941. "weeks",
  65942. "days",
  65943. ...$fae977aafc393c5c$var$requiredDurationTimeGroups
  65944. ];
  65945. // ../../node_modules/@internationalized/date/dist/HebrewCalendar.mjs
  65946. var $7c5f6fbf42389787$var$HOUR_PARTS = 1080, $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS, $7c5f6fbf42389787$var$MONTH_DAYS = 29, $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793, $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;
  65947. // ../../node_modules/@react-aria/i18n/dist/useDateFormatter.mjs
  65948. var import_react70 = __toESM(require_react(), 1);
  65949. // ../../node_modules/@internationalized/number/dist/NumberFormatter.mjs
  65950. var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = !1;
  65951. try {
  65952. $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", {
  65953. signDisplay: "exceptZero"
  65954. }).resolvedOptions().signDisplay === "exceptZero";
  65955. } catch {
  65956. }
  65957. var $488c6ddbf4ef74c2$var$supportsUnit = !1;
  65958. try {
  65959. $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
  65960. style: "unit",
  65961. unit: "degree"
  65962. }).resolvedOptions().style === "unit";
  65963. } catch {
  65964. }
  65965. var $488c6ddbf4ef74c2$var$UNITS = {
  65966. degree: {
  65967. narrow: {
  65968. default: "\xB0",
  65969. "ja-JP": " \u5EA6",
  65970. "zh-TW": "\u5EA6",
  65971. "sl-SI": " \xB0"
  65972. }
  65973. }
  65974. }, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
  65975. /** Formats a number value as a string, according to the locale and options provided to the constructor. */
  65976. format(value) {
  65977. let res = "";
  65978. if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null ? res = $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value) : res = this.numberFormatter.format(value), this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
  65979. var _UNITS_unit;
  65980. let { unit, unitDisplay = "short", locale } = this.resolvedOptions();
  65981. if (!unit) return res;
  65982. let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay];
  65983. res += values[locale] || values.default;
  65984. }
  65985. return res;
  65986. }
  65987. /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
  65988. formatToParts(value) {
  65989. return this.numberFormatter.formatToParts(value);
  65990. }
  65991. /** Formats a number range as a string. */
  65992. formatRange(start2, end2) {
  65993. if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(start2, end2);
  65994. if (end2 < start2) throw new RangeError("End date must be >= start date");
  65995. return `${this.format(start2)} \u2013 ${this.format(end2)}`;
  65996. }
  65997. /** Formats a number range as an array of parts. */
  65998. formatRangeToParts(start2, end2) {
  65999. if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(start2, end2);
  66000. if (end2 < start2) throw new RangeError("End date must be >= start date");
  66001. let startParts = this.numberFormatter.formatToParts(start2), endParts = this.numberFormatter.formatToParts(end2);
  66002. return [
  66003. ...startParts.map((p3) => ({
  66004. ...p3,
  66005. source: "startRange"
  66006. })),
  66007. {
  66008. type: "literal",
  66009. value: " \u2013 ",
  66010. source: "shared"
  66011. },
  66012. ...endParts.map((p3) => ({
  66013. ...p3,
  66014. source: "endRange"
  66015. }))
  66016. ];
  66017. }
  66018. /** Returns the resolved formatting options based on the values passed to the constructor. */
  66019. resolvedOptions() {
  66020. let options = this.numberFormatter.resolvedOptions();
  66021. return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (options = {
  66022. ...options,
  66023. signDisplay: this.options.signDisplay
  66024. }), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (options = {
  66025. ...options,
  66026. style: "unit",
  66027. unit: this.options.unit,
  66028. unitDisplay: this.options.unitDisplay
  66029. }), options;
  66030. }
  66031. constructor(locale, options = {}) {
  66032. this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options), this.options = options;
  66033. }
  66034. };
  66035. function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) {
  66036. let { numberingSystem } = options;
  66037. if (numberingSystem && locale.includes("-nu-") && (locale.includes("-u-") || (locale += "-u-"), locale += `-nu-${numberingSystem}`), options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
  66038. var _UNITS_unit;
  66039. let { unit, unitDisplay = "short" } = options;
  66040. if (!unit) throw new Error('unit option must be provided with style: "unit"');
  66041. if (!(!((_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0) && _UNITS_unit[unitDisplay])) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);
  66042. options = {
  66043. ...options,
  66044. style: "decimal"
  66045. };
  66046. }
  66047. let cacheKey = locale + (options ? Object.entries(options).sort((a3, b) => a3[0] < b[0] ? -1 : 1).join() : "");
  66048. if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey);
  66049. let numberFormatter = new Intl.NumberFormat(locale, options);
  66050. return $488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter), numberFormatter;
  66051. }
  66052. function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
  66053. if (signDisplay === "auto") return numberFormat.format(num);
  66054. if (signDisplay === "never") return numberFormat.format(Math.abs(num));
  66055. {
  66056. let needsPositiveSign = !1;
  66057. if (signDisplay === "always" ? needsPositiveSign = num > 0 || Object.is(num, 0) : signDisplay === "exceptZero" && (Object.is(num, -0) || Object.is(num, 0) ? num = Math.abs(num) : needsPositiveSign = num > 0), needsPositiveSign) {
  66058. let negative = numberFormat.format(-num), noSign = numberFormat.format(num), minus = negative.replace(noSign, "").replace(/\u200e|\u061C/, "");
  66059. return [
  66060. ...minus
  66061. ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), negative.replace(noSign, "!!!").replace(minus, "+").replace("!!!", noSign);
  66062. } else return numberFormat.format(num);
  66063. }
  66064. }
  66065. // ../../node_modules/@internationalized/number/dist/NumberParser.mjs
  66066. var $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
  66067. // ../../node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
  66068. var import_react71 = __toESM(require_react(), 1);
  66069. function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
  66070. let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
  66071. return (0, import_react71.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, options), [
  66072. locale,
  66073. options
  66074. ]);
  66075. }
  66076. // ../../node_modules/@react-aria/i18n/dist/useCollator.mjs
  66077. var $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
  66078. function $325a3faab7a68acd$export$a16aca283550c30d(options) {
  66079. let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), cacheKey = locale + (options ? Object.entries(options).sort((a3, b) => a3[0] < b[0] ? -1 : 1).join() : "");
  66080. if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);
  66081. let formatter2 = new Intl.Collator(locale, options);
  66082. return $325a3faab7a68acd$var$cache.set(cacheKey, formatter2), formatter2;
  66083. }
  66084. // ../../node_modules/@react-aria/i18n/dist/useFilter.mjs
  66085. var import_react72 = __toESM(require_react(), 1);
  66086. // ../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs
  66087. var $2a41e45df1593e64$var$visualViewport = typeof document < "u" ? window.visualViewport : null;
  66088. function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
  66089. let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { arrowSize, targetRef, overlayRef, arrowRef, scrollRef = overlayRef, placement = "bottom", containerPadding = 12, shouldFlip = !0, boundaryElement = typeof document < "u" ? document.body : null, offset: offset3 = 0, crossOffset = 0, shouldUpdatePosition = !0, isOpen = !0, onClose, maxHeight, arrowBoundaryOffset = 0 } = props, [position2, setPosition] = (0, import_react73.useState)(null), deps = [
  66090. shouldUpdatePosition,
  66091. placement,
  66092. overlayRef.current,
  66093. targetRef.current,
  66094. arrowRef?.current,
  66095. scrollRef.current,
  66096. containerPadding,
  66097. shouldFlip,
  66098. boundaryElement,
  66099. offset3,
  66100. crossOffset,
  66101. isOpen,
  66102. direction,
  66103. maxHeight,
  66104. arrowBoundaryOffset,
  66105. arrowSize
  66106. ], lastScale = (0, import_react73.useRef)($2a41e45df1593e64$var$visualViewport?.scale);
  66107. (0, import_react73.useEffect)(() => {
  66108. isOpen && (lastScale.current = $2a41e45df1593e64$var$visualViewport?.scale);
  66109. }, [
  66110. isOpen
  66111. ]);
  66112. let updatePosition = (0, import_react73.useCallback)(() => {
  66113. if (shouldUpdatePosition === !1 || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement || $2a41e45df1593e64$var$visualViewport?.scale !== lastScale.current) return;
  66114. let anchor = null;
  66115. if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {
  66116. var _document_activeElement;
  66117. let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect(), scrollRect = scrollRef.current.getBoundingClientRect();
  66118. var _anchorRect_top;
  66119. if (anchor = {
  66120. type: "top",
  66121. offset: ((_anchorRect_top = anchorRect?.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top
  66122. }, anchor.offset > scrollRect.height / 2) {
  66123. anchor.type = "bottom";
  66124. var _anchorRect_bottom;
  66125. anchor.offset = ((_anchorRect_bottom = anchorRect?.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;
  66126. }
  66127. }
  66128. let overlay = overlayRef.current;
  66129. if (!maxHeight && overlayRef.current) {
  66130. var _window_visualViewport;
  66131. overlay.style.top = "0px", overlay.style.bottom = "";
  66132. var _window_visualViewport_height;
  66133. overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + "px";
  66134. }
  66135. let position3 = $edcf132a9284368a$export$b3ceb0cbf1056d98({
  66136. placement: $2a41e45df1593e64$var$translateRTL(placement, direction),
  66137. overlayNode: overlayRef.current,
  66138. targetNode: targetRef.current,
  66139. scrollNode: scrollRef.current || overlayRef.current,
  66140. padding: containerPadding,
  66141. shouldFlip,
  66142. boundaryElement,
  66143. offset: offset3,
  66144. crossOffset,
  66145. maxHeight,
  66146. arrowSize: arrowSize ?? (arrowRef?.current ? $edcf132a9284368a$export$4b834cebd9e5cebe(arrowRef.current, !0).width : 0),
  66147. arrowBoundaryOffset
  66148. });
  66149. if (position3.position) {
  66150. if (overlay.style.top = "", overlay.style.bottom = "", overlay.style.left = "", overlay.style.right = "", Object.keys(position3.position).forEach((key) => overlay.style[key] = position3.position[key] + "px"), overlay.style.maxHeight = position3.maxHeight != null ? position3.maxHeight + "px" : "", anchor && document.activeElement && scrollRef.current) {
  66151. let anchorRect = document.activeElement.getBoundingClientRect(), scrollRect = scrollRef.current.getBoundingClientRect(), newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];
  66152. scrollRef.current.scrollTop += newOffset - anchor.offset;
  66153. }
  66154. setPosition(position3);
  66155. }
  66156. }, deps);
  66157. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updatePosition, deps), $2a41e45df1593e64$var$useResize(updatePosition), $9daab02d461809db$export$683480f191c0e3ea({
  66158. ref: overlayRef,
  66159. onResize: updatePosition
  66160. }), $9daab02d461809db$export$683480f191c0e3ea({
  66161. ref: targetRef,
  66162. onResize: updatePosition
  66163. });
  66164. let isResizing = (0, import_react73.useRef)(!1);
  66165. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66166. let timeout, onResize = () => {
  66167. isResizing.current = !0, clearTimeout(timeout), timeout = setTimeout(() => {
  66168. isResizing.current = !1;
  66169. }, 500), updatePosition();
  66170. }, onScroll = () => {
  66171. isResizing.current && onResize();
  66172. };
  66173. return $2a41e45df1593e64$var$visualViewport?.addEventListener("resize", onResize), $2a41e45df1593e64$var$visualViewport?.addEventListener("scroll", onScroll), () => {
  66174. $2a41e45df1593e64$var$visualViewport?.removeEventListener("resize", onResize), $2a41e45df1593e64$var$visualViewport?.removeEventListener("scroll", onScroll);
  66175. };
  66176. }, [
  66177. updatePosition
  66178. ]);
  66179. let close = (0, import_react73.useCallback)(() => {
  66180. isResizing.current || onClose?.();
  66181. }, [
  66182. onClose,
  66183. isResizing
  66184. ]);
  66185. $dd149f63282afbbf$export$18fc8428861184da({
  66186. triggerRef: targetRef,
  66187. isOpen,
  66188. onClose: onClose && close
  66189. });
  66190. var _position_maxHeight, _position_placement, _position_triggerAnchorPoint;
  66191. return {
  66192. overlayProps: {
  66193. style: {
  66194. position: position2 ? "absolute" : "fixed",
  66195. top: position2 ? void 0 : 0,
  66196. left: position2 ? void 0 : 0,
  66197. zIndex: 1e5,
  66198. ...position2?.position,
  66199. maxHeight: (_position_maxHeight = position2?.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : "100vh"
  66200. }
  66201. },
  66202. placement: (_position_placement = position2?.placement) !== null && _position_placement !== void 0 ? _position_placement : null,
  66203. triggerAnchorPoint: (_position_triggerAnchorPoint = position2?.triggerAnchorPoint) !== null && _position_triggerAnchorPoint !== void 0 ? _position_triggerAnchorPoint : null,
  66204. arrowProps: {
  66205. "aria-hidden": "true",
  66206. role: "presentation",
  66207. style: {
  66208. left: position2?.arrowOffsetLeft,
  66209. top: position2?.arrowOffsetTop
  66210. }
  66211. },
  66212. updatePosition
  66213. };
  66214. }
  66215. function $2a41e45df1593e64$var$useResize(onResize) {
  66216. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (window.addEventListener("resize", onResize, !1), () => {
  66217. window.removeEventListener("resize", onResize, !1);
  66218. }), [
  66219. onResize
  66220. ]);
  66221. }
  66222. function $2a41e45df1593e64$var$translateRTL(position2, direction) {
  66223. return direction === "rtl" ? position2.replace("start", "right").replace("end", "left") : position2.replace("start", "left").replace("end", "right");
  66224. }
  66225. // ../../node_modules/@react-aria/focus/dist/FocusScope.mjs
  66226. var import_react74 = __toESM(require_react(), 1), $9bf71ea28793e738$var$FocusContext = import_react74.default.createContext(null), $9bf71ea28793e738$var$RESTORE_FOCUS_EVENT = "react-aria-focus-scope-restore", $9bf71ea28793e738$var$activeScope = null;
  66227. function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
  66228. let { children, contain, restoreFocus, autoFocus } = props, startRef = (0, import_react74.useRef)(null), endRef = (0, import_react74.useRef)(null), scopeRef = (0, import_react74.useRef)([]), { parentNode } = (0, import_react74.useContext)($9bf71ea28793e738$var$FocusContext) || {}, node2 = (0, import_react74.useMemo)(() => new $9bf71ea28793e738$var$TreeNode({
  66229. scopeRef
  66230. }), [
  66231. scopeRef
  66232. ]);
  66233. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66234. let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root;
  66235. if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) {
  66236. let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
  66237. activeNode && (parent = activeNode);
  66238. }
  66239. parent.addChild(node2), $9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node2);
  66240. }, [
  66241. node2,
  66242. parentNode
  66243. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66244. let node3 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66245. node3 && (node3.contain = !!contain);
  66246. }, [
  66247. contain
  66248. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66249. var _startRef_current;
  66250. let node3 = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling, nodes = [], stopPropagation = (e) => e.stopPropagation();
  66251. for (; node3 && node3 !== endRef.current; )
  66252. nodes.push(node3), node3.addEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation), node3 = node3.nextSibling;
  66253. return scopeRef.current = nodes, () => {
  66254. for (let node4 of nodes) node4.removeEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);
  66255. };
  66256. }, [
  66257. children
  66258. ]), $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain), $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain), $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain), $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus), (0, import_react74.useEffect)(() => {
  66259. let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)), scope2 = null;
  66260. if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
  66261. for (let node3 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) node3.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node3.scopeRef.current) && (scope2 = node3);
  66262. scope2 === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef) && ($9bf71ea28793e738$var$activeScope = scope2.scopeRef);
  66263. }
  66264. }, [
  66265. scopeRef
  66266. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => {
  66267. var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode, _focusScopeTree_getTreeNode_parent_scopeRef;
  66268. let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 || (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
  66269. (scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope)) && ($9bf71ea28793e738$var$activeScope = parentScope), $9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
  66270. }, [
  66271. scopeRef
  66272. ]);
  66273. let focusManager = (0, import_react74.useMemo)(() => $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []), value = (0, import_react74.useMemo)(() => ({
  66274. focusManager,
  66275. parentNode: node2
  66276. }), [
  66277. node2,
  66278. focusManager
  66279. ]);
  66280. return import_react74.default.createElement($9bf71ea28793e738$var$FocusContext.Provider, {
  66281. value
  66282. }, import_react74.default.createElement("span", {
  66283. "data-focus-scope-start": !0,
  66284. hidden: !0,
  66285. ref: startRef
  66286. }), children, import_react74.default.createElement("span", {
  66287. "data-focus-scope-end": !0,
  66288. hidden: !0,
  66289. ref: endRef
  66290. }));
  66291. }
  66292. function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
  66293. return {
  66294. focusNext(opts = {}) {
  66295. let scope2 = scopeRef.current, { from: from2, tabbable, wrap: wrap2, accept } = opts;
  66296. var _scope_;
  66297. let node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope2[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0)), sentinel = scope2[0].previousElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66298. tabbable,
  66299. accept
  66300. }, scope2);
  66301. walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node2, scope2) ? node2 : sentinel;
  66302. let nextNode = walker.nextNode();
  66303. return !nextNode && wrap2 && (walker.currentNode = sentinel, nextNode = walker.nextNode()), nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66304. },
  66305. focusPrevious(opts = {}) {
  66306. let scope2 = scopeRef.current, { from: from2, tabbable, wrap: wrap2, accept } = opts;
  66307. var _scope_;
  66308. let node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope2[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0)), sentinel = scope2[scope2.length - 1].nextElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66309. tabbable,
  66310. accept
  66311. }, scope2);
  66312. walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node2, scope2) ? node2 : sentinel;
  66313. let previousNode = walker.previousNode();
  66314. return !previousNode && wrap2 && (walker.currentNode = sentinel, previousNode = walker.previousNode()), previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode;
  66315. },
  66316. focusFirst(opts = {}) {
  66317. let scope2 = scopeRef.current, { tabbable, accept } = opts, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66318. tabbable,
  66319. accept
  66320. }, scope2);
  66321. walker.currentNode = scope2[0].previousElementSibling;
  66322. let nextNode = walker.nextNode();
  66323. return nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66324. },
  66325. focusLast(opts = {}) {
  66326. let scope2 = scopeRef.current, { tabbable, accept } = opts, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66327. tabbable,
  66328. accept
  66329. }, scope2);
  66330. walker.currentNode = scope2[scope2.length - 1].nextElementSibling;
  66331. let previousNode = walker.previousNode();
  66332. return previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode;
  66333. }
  66334. };
  66335. }
  66336. function $9bf71ea28793e738$var$getScopeRoot(scope2) {
  66337. return scope2[0].parentElement;
  66338. }
  66339. function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {
  66340. let scope2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
  66341. for (; scope2 && scope2.scopeRef !== scopeRef; ) {
  66342. if (scope2.contain) return !1;
  66343. scope2 = scope2.parent;
  66344. }
  66345. return !0;
  66346. }
  66347. function $9bf71ea28793e738$var$isTabbableRadio(element) {
  66348. if (element.checked) return !0;
  66349. let radios = [];
  66350. if (!element.form) radios = [
  66351. ...$431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)
  66352. ].filter((radio) => !radio.form);
  66353. else {
  66354. var _element_form_elements, _element_form;
  66355. let radioList = (_element_form = element.form) === null || _element_form === void 0 || (_element_form_elements = _element_form.elements) === null || _element_form_elements === void 0 ? void 0 : _element_form_elements.namedItem(element.name);
  66356. radios = [
  66357. ...radioList ?? []
  66358. ];
  66359. }
  66360. return radios ? !radios.some((radio) => radio.checked) : !1;
  66361. }
  66362. function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
  66363. let focusedNode = (0, import_react74.useRef)(void 0), raf = (0, import_react74.useRef)(void 0);
  66364. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66365. let scope2 = scopeRef.current;
  66366. if (!contain) {
  66367. raf.current && (cancelAnimationFrame(raf.current), raf.current = void 0);
  66368. return;
  66369. }
  66370. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0), onKeyDown = (e) => {
  66371. if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
  66372. let focusedElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scope3 = scopeRef.current;
  66373. if (!scope3 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope3)) return;
  66374. let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope3), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66375. tabbable: !0
  66376. }, scope3);
  66377. if (!focusedElement) return;
  66378. walker.currentNode = focusedElement;
  66379. let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
  66380. nextElement || (walker.currentNode = e.shiftKey ? scope3[scope3.length - 1].nextElementSibling : scope3[0].previousElementSibling, nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode()), e.preventDefault(), nextElement && $9bf71ea28793e738$var$focusElement(nextElement, !0);
  66381. }, onFocus = (e) => {
  66382. (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef.current) ? ($9bf71ea28793e738$var$activeScope = scopeRef, focusedNode.current = $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) : $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope($d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef) ? focusedNode.current ? focusedNode.current.focus() : $9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current && $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current) : $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && (focusedNode.current = $d4ee10de306f2510$export$e58f029f0fbfdb29(e));
  66383. }, onBlur = (e) => {
  66384. raf.current && cancelAnimationFrame(raf.current), raf.current = requestAnimationFrame(() => {
  66385. let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9(), shouldSkipFocusRestore = (modality === "virtual" || modality === null) && $c87311424ea30a05$export$a11b0059900ceec8() && $c87311424ea30a05$export$6446a186d09e379e(), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  66386. if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) {
  66387. $9bf71ea28793e738$var$activeScope = scopeRef;
  66388. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
  66389. if (target && target.isConnected) {
  66390. var _focusedNode_current;
  66391. focusedNode.current = target, (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 || _focusedNode_current.focus();
  66392. } else $9bf71ea28793e738$var$activeScope.current && $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
  66393. }
  66394. });
  66395. };
  66396. return ownerDocument.addEventListener("keydown", onKeyDown, !1), ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), scope2?.forEach((element) => element.addEventListener("focusout", onBlur, !1)), () => {
  66397. ownerDocument.removeEventListener("keydown", onKeyDown, !1), ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1)), scope2?.forEach((element) => element.removeEventListener("focusout", onBlur, !1));
  66398. };
  66399. }, [
  66400. scopeRef,
  66401. contain
  66402. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => {
  66403. raf.current && cancelAnimationFrame(raf.current);
  66404. }, [
  66405. raf
  66406. ]);
  66407. }
  66408. function $9bf71ea28793e738$var$isElementInAnyScope(element) {
  66409. return $9bf71ea28793e738$var$isElementInChildScope(element);
  66410. }
  66411. function $9bf71ea28793e738$var$isElementInScope(element, scope2) {
  66412. return !element || !scope2 ? !1 : scope2.some((node2) => node2.contains(element));
  66413. }
  66414. function $9bf71ea28793e738$var$isElementInChildScope(element, scope2 = null) {
  66415. if (element instanceof Element && element.closest("[data-react-aria-top-layer]")) return !0;
  66416. for (let { scopeRef: s3 } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope2)))
  66417. if (s3 && $9bf71ea28793e738$var$isElementInScope(element, s3.current)) return !0;
  66418. return !1;
  66419. }
  66420. function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
  66421. return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope);
  66422. }
  66423. function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope2) {
  66424. var _focusScopeTree_getTreeNode;
  66425. let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope2)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
  66426. for (; parent; ) {
  66427. if (parent.scopeRef === ancestor) return !0;
  66428. parent = parent.parent;
  66429. }
  66430. return !1;
  66431. }
  66432. function $9bf71ea28793e738$var$focusElement(element, scroll = !1) {
  66433. if (element != null && !scroll) try {
  66434. $3ad3f6e1647bc98d$export$80f3e147d781571c(element);
  66435. } catch {
  66436. }
  66437. else if (element != null) try {
  66438. element.focus();
  66439. } catch {
  66440. }
  66441. }
  66442. function $9bf71ea28793e738$var$getFirstInScope(scope2, tabbable = !0) {
  66443. let sentinel = scope2[0].previousElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66444. tabbable
  66445. }, scope2);
  66446. walker.currentNode = sentinel;
  66447. let nextNode = walker.nextNode();
  66448. return tabbable && !nextNode && (scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66449. tabbable: !1
  66450. }, scope2), walker.currentNode = sentinel, nextNode = walker.nextNode()), nextNode;
  66451. }
  66452. function $9bf71ea28793e738$var$focusFirstInScope(scope2, tabbable = !0) {
  66453. $9bf71ea28793e738$var$focusElement($9bf71ea28793e738$var$getFirstInScope(scope2, tabbable));
  66454. }
  66455. function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
  66456. let autoFocusRef = import_react74.default.useRef(autoFocus);
  66457. (0, import_react74.useEffect)(() => {
  66458. if (autoFocusRef.current) {
  66459. $9bf71ea28793e738$var$activeScope = scopeRef;
  66460. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
  66461. !$9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current && $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
  66462. }
  66463. autoFocusRef.current = !1;
  66464. }, [
  66465. scopeRef
  66466. ]);
  66467. }
  66468. function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) {
  66469. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66470. if (restore || contain) return;
  66471. let scope2 = scopeRef.current, ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0), onFocus = (e) => {
  66472. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
  66473. $9bf71ea28793e738$var$isElementInScope(target, scopeRef.current) ? $9bf71ea28793e738$var$activeScope = scopeRef : $9bf71ea28793e738$var$isElementInAnyScope(target) || ($9bf71ea28793e738$var$activeScope = null);
  66474. };
  66475. return ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), () => {
  66476. ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1));
  66477. };
  66478. }, [
  66479. scopeRef,
  66480. restore,
  66481. contain
  66482. ]);
  66483. }
  66484. function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
  66485. let scope2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
  66486. for (; scope2 && scope2.scopeRef !== scopeRef; ) {
  66487. if (scope2.nodeToRestore) return !1;
  66488. scope2 = scope2.parent;
  66489. }
  66490. return scope2?.scopeRef === scopeRef;
  66491. }
  66492. function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
  66493. let nodeToRestoreRef = (0, import_react74.useRef)(typeof document < "u" ? $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null);
  66494. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66495. let scope2 = scopeRef.current, ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0);
  66496. if (!restoreFocus || contain) return;
  66497. let onFocus = () => {
  66498. (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current) && ($9bf71ea28793e738$var$activeScope = scopeRef);
  66499. };
  66500. return ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), () => {
  66501. ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1));
  66502. };
  66503. }, [
  66504. scopeRef,
  66505. contain
  66506. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66507. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
  66508. if (!restoreFocus) return;
  66509. let onKeyDown = (e) => {
  66510. if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
  66511. let focusedElement = ownerDocument.activeElement;
  66512. if (!$9bf71ea28793e738$var$isElementInChildScope(focusedElement, scopeRef) || !$9bf71ea28793e738$var$shouldRestoreFocus(scopeRef)) return;
  66513. let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66514. if (!treeNode) return;
  66515. let nodeToRestore = treeNode.nodeToRestore, walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ownerDocument.body, {
  66516. tabbable: !0
  66517. });
  66518. walker.currentNode = focusedElement;
  66519. let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
  66520. if ((!nodeToRestore || !nodeToRestore.isConnected || nodeToRestore === ownerDocument.body) && (nodeToRestore = void 0, treeNode.nodeToRestore = void 0), (!nextElement || !$9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef)) && nodeToRestore) {
  66521. walker.currentNode = nodeToRestore;
  66522. do
  66523. nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
  66524. while ($9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef));
  66525. e.preventDefault(), e.stopPropagation(), nextElement ? $9bf71ea28793e738$var$focusElement(nextElement, !0) : $9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore) ? $9bf71ea28793e738$var$focusElement(nodeToRestore, !0) : focusedElement.blur();
  66526. }
  66527. };
  66528. return contain || ownerDocument.addEventListener("keydown", onKeyDown, !0), () => {
  66529. contain || ownerDocument.removeEventListener("keydown", onKeyDown, !0);
  66530. };
  66531. }, [
  66532. scopeRef,
  66533. restoreFocus,
  66534. contain
  66535. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66536. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
  66537. if (!restoreFocus) return;
  66538. let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66539. if (treeNode) {
  66540. var _nodeToRestoreRef_current;
  66541. return treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : void 0, () => {
  66542. let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66543. if (!treeNode2) return;
  66544. let nodeToRestore = treeNode2.nodeToRestore, activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  66545. if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
  66546. let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
  66547. requestAnimationFrame(() => {
  66548. if (ownerDocument.activeElement === ownerDocument.body) {
  66549. let treeNode3 = clonedTree.getTreeNode(scopeRef);
  66550. for (; treeNode3; ) {
  66551. if (treeNode3.nodeToRestore && treeNode3.nodeToRestore.isConnected) {
  66552. $9bf71ea28793e738$var$restoreFocusToElement(treeNode3.nodeToRestore);
  66553. return;
  66554. }
  66555. treeNode3 = treeNode3.parent;
  66556. }
  66557. for (treeNode3 = clonedTree.getTreeNode(scopeRef); treeNode3; ) {
  66558. if (treeNode3.scopeRef && treeNode3.scopeRef.current && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode3.scopeRef)) {
  66559. let node2 = $9bf71ea28793e738$var$getFirstInScope(treeNode3.scopeRef.current, !0);
  66560. $9bf71ea28793e738$var$restoreFocusToElement(node2);
  66561. return;
  66562. }
  66563. treeNode3 = treeNode3.parent;
  66564. }
  66565. }
  66566. });
  66567. }
  66568. };
  66569. }
  66570. }, [
  66571. scopeRef,
  66572. restoreFocus
  66573. ]);
  66574. }
  66575. function $9bf71ea28793e738$var$restoreFocusToElement(node2) {
  66576. node2.dispatchEvent(new CustomEvent($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, {
  66577. bubbles: !0,
  66578. cancelable: !0
  66579. })) && $9bf71ea28793e738$var$focusElement(node2);
  66580. }
  66581. function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, opts, scope2) {
  66582. let filter = opts?.tabbable ? $b4b717babfbb907b$export$bebd5a1431fec25d : $b4b717babfbb907b$export$4c063cf1350e6fed, rootElement = root2?.nodeType === Node.ELEMENT_NODE ? root2 : null, doc = $431fbd86ca7dc216$export$b204af158042fbac(rootElement), walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root2 || doc, NodeFilter.SHOW_ELEMENT, {
  66583. acceptNode(node2) {
  66584. var _opts_from;
  66585. return !(opts == null || (_opts_from = opts.from) === null || _opts_from === void 0) && _opts_from.contains(node2) || opts?.tabbable && node2.tagName === "INPUT" && node2.getAttribute("type") === "radio" && (!$9bf71ea28793e738$var$isTabbableRadio(node2) || walker.currentNode.tagName === "INPUT" && walker.currentNode.type === "radio" && walker.currentNode.name === node2.name) ? NodeFilter.FILTER_REJECT : filter(node2) && (!scope2 || $9bf71ea28793e738$var$isElementInScope(node2, scope2)) && (!opts?.accept || opts.accept(node2)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
  66586. }
  66587. });
  66588. return opts?.from && (walker.currentNode = opts.from), walker;
  66589. }
  66590. function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions2 = {}) {
  66591. return {
  66592. focusNext(opts = {}) {
  66593. let root2 = ref.current;
  66594. if (!root2) return null;
  66595. let { from: from2, tabbable = defaultOptions2.tabbable, wrap: wrap2 = defaultOptions2.wrap, accept = defaultOptions2.accept } = opts, node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(root2)), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66596. tabbable,
  66597. accept
  66598. });
  66599. root2.contains(node2) && (walker.currentNode = node2);
  66600. let nextNode = walker.nextNode();
  66601. return !nextNode && wrap2 && (walker.currentNode = root2, nextNode = walker.nextNode()), nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66602. },
  66603. focusPrevious(opts = defaultOptions2) {
  66604. let root2 = ref.current;
  66605. if (!root2) return null;
  66606. let { from: from2, tabbable = defaultOptions2.tabbable, wrap: wrap2 = defaultOptions2.wrap, accept = defaultOptions2.accept } = opts, node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(root2)), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66607. tabbable,
  66608. accept
  66609. });
  66610. if (root2.contains(node2)) walker.currentNode = node2;
  66611. else {
  66612. let next2 = $9bf71ea28793e738$var$last(walker);
  66613. return next2 && $9bf71ea28793e738$var$focusElement(next2, !0), next2 ?? null;
  66614. }
  66615. let previousNode = walker.previousNode();
  66616. if (!previousNode && wrap2) {
  66617. walker.currentNode = root2;
  66618. let lastNode = $9bf71ea28793e738$var$last(walker);
  66619. if (!lastNode)
  66620. return null;
  66621. previousNode = lastNode;
  66622. }
  66623. return previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode ?? null;
  66624. },
  66625. focusFirst(opts = defaultOptions2) {
  66626. let root2 = ref.current;
  66627. if (!root2) return null;
  66628. let { tabbable = defaultOptions2.tabbable, accept = defaultOptions2.accept } = opts, nextNode = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66629. tabbable,
  66630. accept
  66631. }).nextNode();
  66632. return nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66633. },
  66634. focusLast(opts = defaultOptions2) {
  66635. let root2 = ref.current;
  66636. if (!root2) return null;
  66637. let { tabbable = defaultOptions2.tabbable, accept = defaultOptions2.accept } = opts, walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66638. tabbable,
  66639. accept
  66640. }), next2 = $9bf71ea28793e738$var$last(walker);
  66641. return next2 && $9bf71ea28793e738$var$focusElement(next2, !0), next2 ?? null;
  66642. }
  66643. };
  66644. }
  66645. function $9bf71ea28793e738$var$last(walker) {
  66646. let next2, last2;
  66647. do
  66648. last2 = walker.lastChild(), last2 && (next2 = last2);
  66649. while (last2);
  66650. return next2;
  66651. }
  66652. var $9bf71ea28793e738$var$Tree = class _$9bf71ea28793e738$var$Tree {
  66653. get size() {
  66654. return this.fastMap.size;
  66655. }
  66656. getTreeNode(data) {
  66657. return this.fastMap.get(data);
  66658. }
  66659. addTreeNode(scopeRef, parent, nodeToRestore) {
  66660. let parentNode = this.fastMap.get(parent ?? null);
  66661. if (!parentNode) return;
  66662. let node2 = new $9bf71ea28793e738$var$TreeNode({
  66663. scopeRef
  66664. });
  66665. parentNode.addChild(node2), node2.parent = parentNode, this.fastMap.set(scopeRef, node2), nodeToRestore && (node2.nodeToRestore = nodeToRestore);
  66666. }
  66667. addNode(node2) {
  66668. this.fastMap.set(node2.scopeRef, node2);
  66669. }
  66670. removeTreeNode(scopeRef) {
  66671. if (scopeRef === null) return;
  66672. let node2 = this.fastMap.get(scopeRef);
  66673. if (!node2) return;
  66674. let parentNode = node2.parent;
  66675. for (let current of this.traverse()) current !== node2 && node2.nodeToRestore && current.nodeToRestore && node2.scopeRef && node2.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node2.scopeRef.current) && (current.nodeToRestore = node2.nodeToRestore);
  66676. let children = node2.children;
  66677. parentNode && (parentNode.removeChild(node2), children.size > 0 && children.forEach((child) => parentNode && parentNode.addChild(child))), this.fastMap.delete(node2.scopeRef);
  66678. }
  66679. // Pre Order Depth First
  66680. *traverse(node2 = this.root) {
  66681. if (node2.scopeRef != null && (yield node2), node2.children.size > 0) for (let child of node2.children) yield* this.traverse(child);
  66682. }
  66683. clone() {
  66684. var _node_parent;
  66685. let newTree = new _$9bf71ea28793e738$var$Tree();
  66686. var _node_parent_scopeRef;
  66687. for (let node2 of this.traverse()) newTree.addTreeNode(node2.scopeRef, (_node_parent_scopeRef = (_node_parent = node2.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node2.nodeToRestore);
  66688. return newTree;
  66689. }
  66690. constructor() {
  66691. this.fastMap = /* @__PURE__ */ new Map(), this.root = new $9bf71ea28793e738$var$TreeNode({
  66692. scopeRef: null
  66693. }), this.fastMap.set(null, this.root);
  66694. }
  66695. }, $9bf71ea28793e738$var$TreeNode = class {
  66696. addChild(node2) {
  66697. this.children.add(node2), node2.parent = this;
  66698. }
  66699. removeChild(node2) {
  66700. this.children.delete(node2), node2.parent = void 0;
  66701. }
  66702. constructor(props) {
  66703. this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = props.scopeRef;
  66704. }
  66705. }, $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree();
  66706. // ../../node_modules/@react-aria/focus/dist/useFocusRing.mjs
  66707. var import_react75 = __toESM(require_react(), 1);
  66708. function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
  66709. let { autoFocus = !1, isTextInput, within: within3 } = props, state3 = (0, import_react75.useRef)({
  66710. isFocused: !1,
  66711. isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27()
  66712. }), [isFocused, setFocused] = (0, import_react75.useState)(!1), [isFocusVisibleState, setFocusVisible] = (0, import_react75.useState)(() => state3.current.isFocused && state3.current.isFocusVisible), updateState2 = (0, import_react75.useCallback)(() => setFocusVisible(state3.current.isFocused && state3.current.isFocusVisible), []), onFocusChange = (0, import_react75.useCallback)((isFocused2) => {
  66713. state3.current.isFocused = isFocused2, setFocused(isFocused2), updateState2();
  66714. }, [
  66715. updateState2
  66716. ]);
  66717. $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
  66718. state3.current.isFocusVisible = isFocusVisible, updateState2();
  66719. }, [], {
  66720. isTextInput
  66721. });
  66722. let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
  66723. isDisabled: within3,
  66724. onFocusChange
  66725. }), { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
  66726. isDisabled: !within3,
  66727. onFocusWithinChange: onFocusChange
  66728. });
  66729. return {
  66730. isFocused,
  66731. isFocusVisible: isFocusVisibleState,
  66732. focusProps: within3 ? focusWithinProps : focusProps
  66733. };
  66734. }
  66735. // ../../node_modules/@react-aria/focus/dist/FocusRing.mjs
  66736. var import_react76 = __toESM(require_react(), 1);
  66737. // ../../node_modules/@react-aria/focus/dist/useHasTabbableChild.mjs
  66738. var import_react77 = __toESM(require_react(), 1);
  66739. function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
  66740. let isDisabled3 = options?.isDisabled, [hasTabbableChild, setHasTabbableChild] = (0, import_react77.useState)(!1);
  66741. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66742. if (ref?.current && !isDisabled3) {
  66743. let update2 = () => {
  66744. if (ref.current) {
  66745. let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, {
  66746. tabbable: !0
  66747. });
  66748. setHasTabbableChild(!!walker.nextNode());
  66749. }
  66750. };
  66751. update2();
  66752. let observer = new MutationObserver(update2);
  66753. return observer.observe(ref.current, {
  66754. subtree: !0,
  66755. childList: !0,
  66756. attributes: !0,
  66757. attributeFilter: [
  66758. "tabIndex",
  66759. "disabled"
  66760. ]
  66761. }), () => {
  66762. observer.disconnect();
  66763. };
  66764. }
  66765. }), isDisabled3 ? !1 : hasTabbableChild;
  66766. }
  66767. // ../../node_modules/@react-aria/focus/dist/virtualFocus.mjs
  66768. function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
  66769. let from2 = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to));
  66770. from2 !== to && (from2 && $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from2, to), to && $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from2));
  66771. }
  66772. function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from2, to) {
  66773. from2.dispatchEvent(new FocusEvent("blur", {
  66774. relatedTarget: to
  66775. })), from2.dispatchEvent(new FocusEvent("focusout", {
  66776. bubbles: !0,
  66777. relatedTarget: to
  66778. }));
  66779. }
  66780. function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from2) {
  66781. to.dispatchEvent(new FocusEvent("focus", {
  66782. relatedTarget: from2
  66783. })), to.dispatchEvent(new FocusEvent("focusin", {
  66784. bubbles: !0,
  66785. relatedTarget: from2
  66786. }));
  66787. }
  66788. function $55f9b1ae81f22853$export$759df0d867455a91(document13) {
  66789. let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document13), activeDescendant = activeElement?.getAttribute("aria-activedescendant");
  66790. return activeDescendant && document13.getElementById(activeDescendant) || activeElement;
  66791. }
  66792. // ../../node_modules/@react-aria/overlays/dist/useOverlay.mjs
  66793. var import_react78 = __toESM(require_react(), 1);
  66794. var $a11501f3d1d39e6c$var$visibleOverlays = [];
  66795. function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
  66796. let { onClose, shouldCloseOnBlur, isOpen, isDismissable = !1, isKeyboardDismissDisabled = !1, shouldCloseOnInteractOutside } = props;
  66797. (0, import_react78.useEffect)(() => {
  66798. if (isOpen && !$a11501f3d1d39e6c$var$visibleOverlays.includes(ref))
  66799. return $a11501f3d1d39e6c$var$visibleOverlays.push(ref), () => {
  66800. let index4 = $a11501f3d1d39e6c$var$visibleOverlays.indexOf(ref);
  66801. index4 >= 0 && $a11501f3d1d39e6c$var$visibleOverlays.splice(index4, 1);
  66802. };
  66803. }, [
  66804. isOpen,
  66805. ref
  66806. ]);
  66807. let onHide = () => {
  66808. $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose && onClose();
  66809. }, onInteractOutsideStart = (e) => {
  66810. (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) && $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && (e.stopPropagation(), e.preventDefault());
  66811. }, onInteractOutside = (e) => {
  66812. (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) && ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && (e.stopPropagation(), e.preventDefault()), onHide());
  66813. }, onKeyDown = (e) => {
  66814. e.key === "Escape" && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), onHide());
  66815. };
  66816. $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
  66817. ref,
  66818. onInteractOutside: isDismissable && isOpen ? onInteractOutside : void 0,
  66819. onInteractOutsideStart
  66820. });
  66821. let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
  66822. isDisabled: !shouldCloseOnBlur,
  66823. onBlurWithin: (e) => {
  66824. !e.relatedTarget || $9bf71ea28793e738$export$1258395f99bf9cbf(e.relatedTarget) || (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) && onClose?.();
  66825. }
  66826. }), onPointerDownUnderlay = (e) => {
  66827. e.target === e.currentTarget && e.preventDefault();
  66828. };
  66829. return {
  66830. overlayProps: {
  66831. onKeyDown,
  66832. ...focusWithinProps
  66833. },
  66834. underlayProps: {
  66835. onPointerDown: onPointerDownUnderlay
  66836. }
  66837. };
  66838. }
  66839. // ../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs
  66840. var import_react79 = __toESM(require_react(), 1);
  66841. function $628037886ba31236$export$f9d5c8beee7d008d(props, state3, ref) {
  66842. let { type: type5 } = props, { isOpen } = state3;
  66843. (0, import_react79.useEffect)(() => {
  66844. ref && ref.current && $dd149f63282afbbf$export$f6211563215e3b37.set(ref.current, state3.close);
  66845. });
  66846. let ariaHasPopup;
  66847. type5 === "menu" ? ariaHasPopup = !0 : type5 === "listbox" && (ariaHasPopup = "listbox");
  66848. let overlayId = $bdb11010cef70236$export$f680877a34711e37();
  66849. return {
  66850. triggerProps: {
  66851. "aria-haspopup": ariaHasPopup,
  66852. "aria-expanded": isOpen,
  66853. "aria-controls": isOpen ? overlayId : void 0,
  66854. onPress: state3.toggle
  66855. },
  66856. overlayProps: {
  66857. id: overlayId
  66858. }
  66859. };
  66860. }
  66861. // ../../node_modules/@react-aria/overlays/dist/usePreventScroll.mjs
  66862. var $49c51c25361d4cd2$var$visualViewport = typeof document < "u" && window.visualViewport, $49c51c25361d4cd2$var$preventScrollCount = 0, $49c51c25361d4cd2$var$restore;
  66863. function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
  66864. let { isDisabled: isDisabled3 } = options;
  66865. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66866. if (!isDisabled3)
  66867. return $49c51c25361d4cd2$var$preventScrollCount++, $49c51c25361d4cd2$var$preventScrollCount === 1 && ($c87311424ea30a05$export$fedb369cb70207f1() ? $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollMobileSafari() : $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollStandard()), () => {
  66868. $49c51c25361d4cd2$var$preventScrollCount--, $49c51c25361d4cd2$var$preventScrollCount === 0 && $49c51c25361d4cd2$var$restore();
  66869. };
  66870. }, [
  66871. isDisabled3
  66872. ]);
  66873. }
  66874. function $49c51c25361d4cd2$var$preventScrollStandard() {
  66875. let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
  66876. return $ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
  66877. ("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
  66878. }
  66879. function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
  66880. let scrollable, allowTouchMove = !1, onTouchStart = (e) => {
  66881. let target = e.target;
  66882. scrollable = $cc38e7bd3fc7b213$export$2bb74740c4e19def(target) ? target : $62d8ded9296f3872$export$cfa2225e87938781(target, !0), allowTouchMove = !1;
  66883. let selection = target.ownerDocument.defaultView.getSelection();
  66884. selection && !selection.isCollapsed && selection.containsNode(target, !0) && (allowTouchMove = !0), "selectionStart" in target && "selectionEnd" in target && target.selectionStart < target.selectionEnd && target.ownerDocument.activeElement === target && (allowTouchMove = !0);
  66885. }, style = document.createElement("style");
  66886. style.textContent = `
  66887. @layer {
  66888. * {
  66889. overscroll-behavior: contain;
  66890. }
  66891. }`.trim(), document.head.prepend(style);
  66892. let onTouchMove = (e) => {
  66893. if (!(e.touches.length === 2 || allowTouchMove)) {
  66894. if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {
  66895. e.preventDefault();
  66896. return;
  66897. }
  66898. scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth && e.preventDefault();
  66899. }
  66900. }, onBlur = (e) => {
  66901. let target = e.target, relatedTarget = e.relatedTarget;
  66902. if (relatedTarget && $21f1aa98acb08317$export$c57958e35f31ed73(relatedTarget))
  66903. relatedTarget.focus({
  66904. preventScroll: !0
  66905. }), $49c51c25361d4cd2$var$scrollIntoViewWhenReady(relatedTarget, $21f1aa98acb08317$export$c57958e35f31ed73(target));
  66906. else if (!relatedTarget) {
  66907. var _target_parentElement;
  66908. let focusable = (_target_parentElement = target.parentElement) === null || _target_parentElement === void 0 ? void 0 : _target_parentElement.closest("[tabindex]");
  66909. focusable?.focus({
  66910. preventScroll: !0
  66911. });
  66912. }
  66913. }, focus = HTMLElement.prototype.focus;
  66914. HTMLElement.prototype.focus = function(opts) {
  66915. let wasKeyboardVisible = document.activeElement != null && $21f1aa98acb08317$export$c57958e35f31ed73(document.activeElement);
  66916. focus.call(this, {
  66917. ...opts,
  66918. preventScroll: !0
  66919. }), (!opts || !opts.preventScroll) && $49c51c25361d4cd2$var$scrollIntoViewWhenReady(this, wasKeyboardVisible);
  66920. };
  66921. let removeEvents = $ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$addEvent(document, "touchstart", onTouchStart, {
  66922. passive: !1,
  66923. capture: !0
  66924. }), $49c51c25361d4cd2$var$addEvent(document, "touchmove", onTouchMove, {
  66925. passive: !1,
  66926. capture: !0
  66927. }), $49c51c25361d4cd2$var$addEvent(document, "blur", onBlur, !0));
  66928. return () => {
  66929. removeEvents(), style.remove(), HTMLElement.prototype.focus = focus;
  66930. };
  66931. }
  66932. function $49c51c25361d4cd2$var$setStyle(element, style, value) {
  66933. let cur = element.style[style];
  66934. return element.style[style] = value, () => {
  66935. element.style[style] = cur;
  66936. };
  66937. }
  66938. function $49c51c25361d4cd2$var$addEvent(target, event, handler, options) {
  66939. return target.addEventListener(event, handler, options), () => {
  66940. target.removeEventListener(event, handler, options);
  66941. };
  66942. }
  66943. function $49c51c25361d4cd2$var$scrollIntoViewWhenReady(target, wasKeyboardVisible) {
  66944. wasKeyboardVisible || !$49c51c25361d4cd2$var$visualViewport ? $49c51c25361d4cd2$var$scrollIntoView(target) : $49c51c25361d4cd2$var$visualViewport.addEventListener("resize", () => $49c51c25361d4cd2$var$scrollIntoView(target), {
  66945. once: !0
  66946. });
  66947. }
  66948. function $49c51c25361d4cd2$var$scrollIntoView(target) {
  66949. let root2 = document.scrollingElement || document.documentElement, nextTarget = target;
  66950. for (; nextTarget && nextTarget !== root2; ) {
  66951. let scrollable = $62d8ded9296f3872$export$cfa2225e87938781(nextTarget);
  66952. if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== nextTarget) {
  66953. let scrollableRect = scrollable.getBoundingClientRect(), targetRect = nextTarget.getBoundingClientRect();
  66954. if (targetRect.top < scrollableRect.top || targetRect.bottom > scrollableRect.top + nextTarget.clientHeight) {
  66955. let bottom2 = scrollableRect.bottom;
  66956. $49c51c25361d4cd2$var$visualViewport && (bottom2 = Math.min(bottom2, $49c51c25361d4cd2$var$visualViewport.offsetTop + $49c51c25361d4cd2$var$visualViewport.height));
  66957. let adjustment = targetRect.top - scrollableRect.top - ((bottom2 - scrollableRect.top) / 2 - targetRect.height / 2);
  66958. scrollable.scrollTo({
  66959. // Clamp to the valid range to prevent over-scrolling.
  66960. top: Math.max(0, Math.min(scrollable.scrollHeight - scrollable.clientHeight, scrollable.scrollTop + adjustment)),
  66961. behavior: "smooth"
  66962. });
  66963. }
  66964. }
  66965. nextTarget = scrollable.parentElement;
  66966. }
  66967. }
  66968. // ../../node_modules/@react-aria/overlays/dist/PortalProvider.mjs
  66969. var import_react80 = __toESM(require_react(), 1), $96b38030c423d352$export$60d741e20e0aa309 = (0, import_react80.createContext)({});
  66970. function $96b38030c423d352$export$78efe591171d7d45(props) {
  66971. let { getContainer } = props, { getContainer: ctxGetContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
  66972. return import_react80.default.createElement($96b38030c423d352$export$60d741e20e0aa309.Provider, {
  66973. value: {
  66974. getContainer: getContainer === null ? void 0 : getContainer ?? ctxGetContainer
  66975. }
  66976. }, props.children);
  66977. }
  66978. function $96b38030c423d352$export$9fc1347d4195ccb3() {
  66979. var _useContext;
  66980. return (_useContext = (0, import_react80.useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== void 0 ? _useContext : {};
  66981. }
  66982. // ../../node_modules/@react-aria/overlays/dist/useModal.mjs
  66983. var import_react81 = __toESM(require_react(), 1), import_react_dom3 = __toESM(require_react_dom(), 1);
  66984. var $f57aed4a881a3485$var$Context = import_react81.default.createContext(null);
  66985. function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
  66986. let { children } = props, parent = (0, import_react81.useContext)($f57aed4a881a3485$var$Context), [modalCount, setModalCount] = (0, import_react81.useState)(0), context = (0, import_react81.useMemo)(() => ({
  66987. parent,
  66988. modalCount,
  66989. addModal() {
  66990. setModalCount((count) => count + 1), parent && parent.addModal();
  66991. },
  66992. removeModal() {
  66993. setModalCount((count) => count - 1), parent && parent.removeModal();
  66994. }
  66995. }), [
  66996. parent,
  66997. modalCount
  66998. ]);
  66999. return import_react81.default.createElement($f57aed4a881a3485$var$Context.Provider, {
  67000. value: context
  67001. }, children);
  67002. }
  67003. function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {
  67004. let context = (0, import_react81.useContext)($f57aed4a881a3485$var$Context);
  67005. return {
  67006. modalProviderProps: {
  67007. "aria-hidden": context && context.modalCount > 0 ? !0 : void 0
  67008. }
  67009. };
  67010. }
  67011. function $f57aed4a881a3485$var$OverlayContainerDOM(props) {
  67012. let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();
  67013. return import_react81.default.createElement("div", {
  67014. "data-overlay-container": !0,
  67015. ...props,
  67016. ...modalProviderProps
  67017. });
  67018. }
  67019. function $f57aed4a881a3485$export$bf688221f59024e5(props) {
  67020. return import_react81.default.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, import_react81.default.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));
  67021. }
  67022. function $f57aed4a881a3485$export$b47c3594eab58386(props) {
  67023. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer = isSSR ? null : document.body, ...rest } = props, { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
  67024. if (!props.portalContainer && getContainer && (portalContainer = getContainer()), import_react81.default.useEffect(() => {
  67025. if (portalContainer?.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
  67026. }, [
  67027. portalContainer
  67028. ]), !portalContainer) return null;
  67029. let contents = import_react81.default.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);
  67030. return import_react_dom3.default.createPortal(contents, portalContainer);
  67031. }
  67032. // ../../node_modules/@react-aria/overlays/dist/ar-AE.mjs
  67033. var $773d5888b972f1cf$exports = {};
  67034. $773d5888b972f1cf$exports = {
  67035. dismiss: "\u062A\u062C\u0627\u0647\u0644"
  67036. };
  67037. // ../../node_modules/@react-aria/overlays/dist/bg-BG.mjs
  67038. var $d11f19852b941573$exports = {};
  67039. $d11f19852b941573$exports = {
  67040. dismiss: "\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"
  67041. };
  67042. // ../../node_modules/@react-aria/overlays/dist/cs-CZ.mjs
  67043. var $b983974c2ee1efb3$exports = {};
  67044. $b983974c2ee1efb3$exports = {
  67045. dismiss: "Odstranit"
  67046. };
  67047. // ../../node_modules/@react-aria/overlays/dist/da-DK.mjs
  67048. var $5809cc9d4e92de73$exports = {};
  67049. $5809cc9d4e92de73$exports = {
  67050. dismiss: "Luk"
  67051. };
  67052. // ../../node_modules/@react-aria/overlays/dist/de-DE.mjs
  67053. var $c68c2e4fc74398d1$exports = {};
  67054. $c68c2e4fc74398d1$exports = {
  67055. dismiss: "Schlie\xDFen"
  67056. };
  67057. // ../../node_modules/@react-aria/overlays/dist/el-GR.mjs
  67058. var $0898b4c153db2b77$exports = {};
  67059. $0898b4c153db2b77$exports = {
  67060. dismiss: "\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"
  67061. };
  67062. // ../../node_modules/@react-aria/overlays/dist/en-US.mjs
  67063. var $6d74810286a15183$exports = {};
  67064. $6d74810286a15183$exports = {
  67065. dismiss: "Dismiss"
  67066. };
  67067. // ../../node_modules/@react-aria/overlays/dist/es-ES.mjs
  67068. var $309d73dc65f78055$exports = {};
  67069. $309d73dc65f78055$exports = {
  67070. dismiss: "Descartar"
  67071. };
  67072. // ../../node_modules/@react-aria/overlays/dist/et-EE.mjs
  67073. var $44ad94f7205cf593$exports = {};
  67074. $44ad94f7205cf593$exports = {
  67075. dismiss: "L\xF5peta"
  67076. };
  67077. // ../../node_modules/@react-aria/overlays/dist/fi-FI.mjs
  67078. var $7c28f5687f0779a9$exports = {};
  67079. $7c28f5687f0779a9$exports = {
  67080. dismiss: "Hylk\xE4\xE4"
  67081. };
  67082. // ../../node_modules/@react-aria/overlays/dist/fr-FR.mjs
  67083. var $e6d75df4b68bd73a$exports = {};
  67084. $e6d75df4b68bd73a$exports = {
  67085. dismiss: "Rejeter"
  67086. };
  67087. // ../../node_modules/@react-aria/overlays/dist/he-IL.mjs
  67088. var $87505c9dab186d0f$exports = {};
  67089. $87505c9dab186d0f$exports = {
  67090. dismiss: "\u05D4\u05EA\u05E2\u05DC\u05DD"
  67091. };
  67092. // ../../node_modules/@react-aria/overlays/dist/hr-HR.mjs
  67093. var $553439c3ffb3e492$exports = {};
  67094. $553439c3ffb3e492$exports = {
  67095. dismiss: "Odbaci"
  67096. };
  67097. // ../../node_modules/@react-aria/overlays/dist/hu-HU.mjs
  67098. var $74cf411061b983a2$exports = {};
  67099. $74cf411061b983a2$exports = {
  67100. dismiss: "Elutas\xEDt\xE1s"
  67101. };
  67102. // ../../node_modules/@react-aria/overlays/dist/it-IT.mjs
  67103. var $e933f298574dc435$exports = {};
  67104. $e933f298574dc435$exports = {
  67105. dismiss: "Ignora"
  67106. };
  67107. // ../../node_modules/@react-aria/overlays/dist/ja-JP.mjs
  67108. var $ac91fc9fe02f71f6$exports = {};
  67109. $ac91fc9fe02f71f6$exports = {
  67110. dismiss: "\u9589\u3058\u308B"
  67111. };
  67112. // ../../node_modules/@react-aria/overlays/dist/ko-KR.mjs
  67113. var $52b96f86422025af$exports = {};
  67114. $52b96f86422025af$exports = {
  67115. dismiss: "\uBB34\uC2DC"
  67116. };
  67117. // ../../node_modules/@react-aria/overlays/dist/lt-LT.mjs
  67118. var $c0d724c3e51dafa6$exports = {};
  67119. $c0d724c3e51dafa6$exports = {
  67120. dismiss: "Atmesti"
  67121. };
  67122. // ../../node_modules/@react-aria/overlays/dist/lv-LV.mjs
  67123. var $c92899672a3fe72e$exports = {};
  67124. $c92899672a3fe72e$exports = {
  67125. dismiss: "Ner\u0101d\u012Bt"
  67126. };
  67127. // ../../node_modules/@react-aria/overlays/dist/nb-NO.mjs
  67128. var $9f576b39d8e7a9d6$exports = {};
  67129. $9f576b39d8e7a9d6$exports = {
  67130. dismiss: "Lukk"
  67131. };
  67132. // ../../node_modules/@react-aria/overlays/dist/nl-NL.mjs
  67133. var $9d025808aeec81a7$exports = {};
  67134. $9d025808aeec81a7$exports = {
  67135. dismiss: "Negeren"
  67136. };
  67137. // ../../node_modules/@react-aria/overlays/dist/pl-PL.mjs
  67138. var $fce709921e2c0fa6$exports = {};
  67139. $fce709921e2c0fa6$exports = {
  67140. dismiss: "Zignoruj"
  67141. };
  67142. // ../../node_modules/@react-aria/overlays/dist/pt-BR.mjs
  67143. var $2599cf0c4ab37f59$exports = {};
  67144. $2599cf0c4ab37f59$exports = {
  67145. dismiss: "Descartar"
  67146. };
  67147. // ../../node_modules/@react-aria/overlays/dist/pt-PT.mjs
  67148. var $3c220ae7ef8a35fd$exports = {};
  67149. $3c220ae7ef8a35fd$exports = {
  67150. dismiss: "Dispensar"
  67151. };
  67152. // ../../node_modules/@react-aria/overlays/dist/ro-RO.mjs
  67153. var $93562b5094072f54$exports = {};
  67154. $93562b5094072f54$exports = {
  67155. dismiss: "Revocare"
  67156. };
  67157. // ../../node_modules/@react-aria/overlays/dist/ru-RU.mjs
  67158. var $cd9e2abd0d06c7b4$exports = {};
  67159. $cd9e2abd0d06c7b4$exports = {
  67160. dismiss: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"
  67161. };
  67162. // ../../node_modules/@react-aria/overlays/dist/sk-SK.mjs
  67163. var $45375701f409adf1$exports = {};
  67164. $45375701f409adf1$exports = {
  67165. dismiss: "Zru\u0161i\u0165"
  67166. };
  67167. // ../../node_modules/@react-aria/overlays/dist/sl-SI.mjs
  67168. var $27fab53a576de9dd$exports = {};
  67169. $27fab53a576de9dd$exports = {
  67170. dismiss: "Opusti"
  67171. };
  67172. // ../../node_modules/@react-aria/overlays/dist/sr-SP.mjs
  67173. var $4438748d9952e7c7$exports = {};
  67174. $4438748d9952e7c7$exports = {
  67175. dismiss: "Odbaci"
  67176. };
  67177. // ../../node_modules/@react-aria/overlays/dist/sv-SE.mjs
  67178. var $0936d7347ef4da4c$exports = {};
  67179. $0936d7347ef4da4c$exports = {
  67180. dismiss: "Avvisa"
  67181. };
  67182. // ../../node_modules/@react-aria/overlays/dist/tr-TR.mjs
  67183. var $29700c92185d38f8$exports = {};
  67184. $29700c92185d38f8$exports = {
  67185. dismiss: "Kapat"
  67186. };
  67187. // ../../node_modules/@react-aria/overlays/dist/uk-UA.mjs
  67188. var $662ccaf2be4c25b3$exports = {};
  67189. $662ccaf2be4c25b3$exports = {
  67190. dismiss: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"
  67191. };
  67192. // ../../node_modules/@react-aria/overlays/dist/zh-CN.mjs
  67193. var $d80a27deda7cdb3c$exports = {};
  67194. $d80a27deda7cdb3c$exports = {
  67195. dismiss: "\u53D6\u6D88"
  67196. };
  67197. // ../../node_modules/@react-aria/overlays/dist/zh-TW.mjs
  67198. var $2b2734393847c884$exports = {};
  67199. $2b2734393847c884$exports = {
  67200. dismiss: "\u95DC\u9589"
  67201. };
  67202. // ../../node_modules/@react-aria/overlays/dist/intlStrings.mjs
  67203. var $a2f21f5f14f60553$exports = {};
  67204. $a2f21f5f14f60553$exports = {
  67205. "ar-AE": $773d5888b972f1cf$exports,
  67206. "bg-BG": $d11f19852b941573$exports,
  67207. "cs-CZ": $b983974c2ee1efb3$exports,
  67208. "da-DK": $5809cc9d4e92de73$exports,
  67209. "de-DE": $c68c2e4fc74398d1$exports,
  67210. "el-GR": $0898b4c153db2b77$exports,
  67211. "en-US": $6d74810286a15183$exports,
  67212. "es-ES": $309d73dc65f78055$exports,
  67213. "et-EE": $44ad94f7205cf593$exports,
  67214. "fi-FI": $7c28f5687f0779a9$exports,
  67215. "fr-FR": $e6d75df4b68bd73a$exports,
  67216. "he-IL": $87505c9dab186d0f$exports,
  67217. "hr-HR": $553439c3ffb3e492$exports,
  67218. "hu-HU": $74cf411061b983a2$exports,
  67219. "it-IT": $e933f298574dc435$exports,
  67220. "ja-JP": $ac91fc9fe02f71f6$exports,
  67221. "ko-KR": $52b96f86422025af$exports,
  67222. "lt-LT": $c0d724c3e51dafa6$exports,
  67223. "lv-LV": $c92899672a3fe72e$exports,
  67224. "nb-NO": $9f576b39d8e7a9d6$exports,
  67225. "nl-NL": $9d025808aeec81a7$exports,
  67226. "pl-PL": $fce709921e2c0fa6$exports,
  67227. "pt-BR": $2599cf0c4ab37f59$exports,
  67228. "pt-PT": $3c220ae7ef8a35fd$exports,
  67229. "ro-RO": $93562b5094072f54$exports,
  67230. "ru-RU": $cd9e2abd0d06c7b4$exports,
  67231. "sk-SK": $45375701f409adf1$exports,
  67232. "sl-SI": $27fab53a576de9dd$exports,
  67233. "sr-SP": $4438748d9952e7c7$exports,
  67234. "sv-SE": $0936d7347ef4da4c$exports,
  67235. "tr-TR": $29700c92185d38f8$exports,
  67236. "uk-UA": $662ccaf2be4c25b3$exports,
  67237. "zh-CN": $d80a27deda7cdb3c$exports,
  67238. "zh-TW": $2b2734393847c884$exports
  67239. };
  67240. // ../../node_modules/@react-aria/overlays/dist/DismissButton.mjs
  67241. var import_react83 = __toESM(require_react(), 1);
  67242. // ../../node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs
  67243. var import_react82 = __toESM(require_react(), 1);
  67244. var $5c3e21d68f1c4674$var$styles = {
  67245. border: 0,
  67246. clip: "rect(0 0 0 0)",
  67247. clipPath: "inset(50%)",
  67248. height: "1px",
  67249. margin: "-1px",
  67250. overflow: "hidden",
  67251. padding: 0,
  67252. position: "absolute",
  67253. width: "1px",
  67254. whiteSpace: "nowrap"
  67255. };
  67256. function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
  67257. let { style, isFocusable: isFocusable2 } = props, [isFocused, setFocused] = (0, import_react82.useState)(!1), { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
  67258. isDisabled: !isFocusable2,
  67259. onFocusWithinChange: (val) => setFocused(val)
  67260. }), combinedStyles = (0, import_react82.useMemo)(() => isFocused ? style : style ? {
  67261. ...$5c3e21d68f1c4674$var$styles,
  67262. ...style
  67263. } : $5c3e21d68f1c4674$var$styles, [
  67264. isFocused
  67265. ]);
  67266. return {
  67267. visuallyHiddenProps: {
  67268. ...focusWithinProps,
  67269. style: combinedStyles
  67270. }
  67271. };
  67272. }
  67273. function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
  67274. let { children, elementType: Element2 = "div", isFocusable: isFocusable2, style, ...otherProps } = props, { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
  67275. return import_react82.default.createElement(Element2, $3ef42575df84b30b$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
  67276. }
  67277. // ../../node_modules/@react-aria/overlays/dist/DismissButton.mjs
  67278. function $parcel$interopDefault(a3) {
  67279. return a3 && a3.__esModule ? a3.default : a3;
  67280. }
  67281. function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
  67282. let { onDismiss, ...otherProps } = props, stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($a2f21f5f14f60553$exports), "@react-aria/overlays"), labels = $313b98861ee5dd6c$export$d6875122194c7b44(otherProps, stringFormatter.format("dismiss")), onClick = () => {
  67283. onDismiss && onDismiss();
  67284. };
  67285. return import_react83.default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, import_react83.default.createElement("button", {
  67286. ...labels,
  67287. tabIndex: -1,
  67288. onClick,
  67289. style: {
  67290. width: 1,
  67291. height: 1
  67292. }
  67293. }));
  67294. }
  67295. // ../../node_modules/@react-aria/overlays/dist/ariaHideOutside.mjs
  67296. var $5e3802645cc19319$var$supportsInert = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, $5e3802645cc19319$var$refCountMap = /* @__PURE__ */ new WeakMap(), $5e3802645cc19319$var$observerStack = [];
  67297. function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
  67298. let windowObj = $431fbd86ca7dc216$export$f21a1ffae260145a(targets?.[0]), opts = options instanceof windowObj.Element ? {
  67299. root: options
  67300. } : options;
  67301. var _opts_root;
  67302. let root2 = (_opts_root = opts?.root) !== null && _opts_root !== void 0 ? _opts_root : document.body, shouldUseInert = opts?.shouldUseInert && $5e3802645cc19319$var$supportsInert, visibleNodes = new Set(targets), hiddenNodes = /* @__PURE__ */ new Set(), getHidden = (element) => shouldUseInert && element instanceof windowObj.HTMLElement ? element.inert : element.getAttribute("aria-hidden") === "true", setHidden = (element, hidden) => {
  67303. shouldUseInert && element instanceof windowObj.HTMLElement ? element.inert = hidden : hidden ? element.setAttribute("aria-hidden", "true") : (element.removeAttribute("aria-hidden"), element instanceof windowObj.HTMLElement && (element.inert = !1));
  67304. }, walk = (root3) => {
  67305. for (let element of root3.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) visibleNodes.add(element);
  67306. let acceptNode = (node2) => {
  67307. if (hiddenNodes.has(node2) || visibleNodes.has(node2) || node2.parentElement && hiddenNodes.has(node2.parentElement) && node2.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
  67308. for (let target of visibleNodes)
  67309. if (node2.contains(target)) return NodeFilter.FILTER_SKIP;
  67310. return NodeFilter.FILTER_ACCEPT;
  67311. }, walker = document.createTreeWalker(root3, NodeFilter.SHOW_ELEMENT, {
  67312. acceptNode
  67313. }), acceptRoot = acceptNode(root3);
  67314. if (acceptRoot === NodeFilter.FILTER_ACCEPT && hide2(root3), acceptRoot !== NodeFilter.FILTER_REJECT) {
  67315. let node2 = walker.nextNode();
  67316. for (; node2 != null; )
  67317. hide2(node2), node2 = walker.nextNode();
  67318. }
  67319. }, hide2 = (node2) => {
  67320. var _refCountMap_get;
  67321. let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node2)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;
  67322. getHidden(node2) && refCount === 0 || (refCount === 0 && setHidden(node2, !0), hiddenNodes.add(node2), $5e3802645cc19319$var$refCountMap.set(node2, refCount + 1));
  67323. };
  67324. $5e3802645cc19319$var$observerStack.length && $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect(), walk(root2);
  67325. let observer = new MutationObserver((changes) => {
  67326. for (let change of changes)
  67327. if (change.type === "childList" && ![
  67328. ...visibleNodes,
  67329. ...hiddenNodes
  67330. ].some((node2) => node2.contains(change.target)))
  67331. for (let node2 of change.addedNodes)
  67332. (node2 instanceof HTMLElement || node2 instanceof SVGElement) && (node2.dataset.liveAnnouncer === "true" || node2.dataset.reactAriaTopLayer === "true") ? visibleNodes.add(node2) : node2 instanceof Element && walk(node2);
  67333. });
  67334. observer.observe(root2, {
  67335. childList: !0,
  67336. subtree: !0
  67337. });
  67338. let observerWrapper = {
  67339. visibleNodes,
  67340. hiddenNodes,
  67341. observe() {
  67342. observer.observe(root2, {
  67343. childList: !0,
  67344. subtree: !0
  67345. });
  67346. },
  67347. disconnect() {
  67348. observer.disconnect();
  67349. }
  67350. };
  67351. return $5e3802645cc19319$var$observerStack.push(observerWrapper), () => {
  67352. observer.disconnect();
  67353. for (let node2 of hiddenNodes) {
  67354. let count = $5e3802645cc19319$var$refCountMap.get(node2);
  67355. count != null && (count === 1 ? (setHidden(node2, !1), $5e3802645cc19319$var$refCountMap.delete(node2)) : $5e3802645cc19319$var$refCountMap.set(node2, count - 1));
  67356. }
  67357. observerWrapper === $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1] ? ($5e3802645cc19319$var$observerStack.pop(), $5e3802645cc19319$var$observerStack.length && $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].observe()) : $5e3802645cc19319$var$observerStack.splice($5e3802645cc19319$var$observerStack.indexOf(observerWrapper), 1);
  67358. };
  67359. }
  67360. function $5e3802645cc19319$export$1020fa7f77e17884(element) {
  67361. let observer = $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1];
  67362. if (observer && !observer.visibleNodes.has(element))
  67363. return observer.visibleNodes.add(element), () => {
  67364. observer.visibleNodes.delete(element);
  67365. };
  67366. }
  67367. // ../../node_modules/@react-aria/overlays/dist/usePopover.mjs
  67368. var import_react84 = __toESM(require_react(), 1);
  67369. function $f2f8a6077418541e$export$542a6fd13ac93354(props, state3) {
  67370. let { triggerRef, popoverRef, groupRef, isNonModal, isKeyboardDismissDisabled, shouldCloseOnInteractOutside, ...otherProps } = props, isSubmenu = otherProps.trigger === "SubmenuTrigger", { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({
  67371. isOpen: state3.isOpen,
  67372. onClose: state3.close,
  67373. shouldCloseOnBlur: !0,
  67374. isDismissable: !isNonModal || isSubmenu,
  67375. isKeyboardDismissDisabled,
  67376. shouldCloseOnInteractOutside
  67377. }, groupRef ?? popoverRef), { overlayProps: positionProps, arrowProps, placement, triggerAnchorPoint: origin } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
  67378. ...otherProps,
  67379. targetRef: triggerRef,
  67380. overlayRef: popoverRef,
  67381. isOpen: state3.isOpen,
  67382. onClose: isNonModal && !isSubmenu ? state3.close : null
  67383. });
  67384. return $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
  67385. isDisabled: isNonModal || !state3.isOpen
  67386. }), (0, import_react84.useEffect)(() => {
  67387. if (state3.isOpen && popoverRef.current) {
  67388. var _groupRef_current, _groupRef_current1;
  67389. return isNonModal ? $5e3802645cc19319$export$1020fa7f77e17884((_groupRef_current = groupRef?.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current) : $5e3802645cc19319$export$1c3ebcada18427bf([
  67390. (_groupRef_current1 = groupRef?.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current
  67391. ], {
  67392. shouldUseInert: !0
  67393. });
  67394. }
  67395. }, [
  67396. isNonModal,
  67397. state3.isOpen,
  67398. popoverRef,
  67399. groupRef
  67400. ]), {
  67401. popoverProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, positionProps),
  67402. arrowProps,
  67403. underlayProps,
  67404. placement,
  67405. triggerAnchorPoint: origin
  67406. };
  67407. }
  67408. // ../../node_modules/@react-aria/overlays/dist/Overlay.mjs
  67409. var import_react85 = __toESM(require_react(), 1), import_react_dom4 = __toESM(require_react_dom(), 1);
  67410. var $337b884510726a0d$export$a2200b96afd16271 = import_react85.default.createContext(null);
  67411. function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
  67412. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer = isSSR ? null : document.body, isExiting } = props, [contain, setContain] = (0, import_react85.useState)(!1), contextValue = (0, import_react85.useMemo)(() => ({
  67413. contain,
  67414. setContain
  67415. }), [
  67416. contain,
  67417. setContain
  67418. ]), { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
  67419. if (!props.portalContainer && getContainer && (portalContainer = getContainer()), !portalContainer) return null;
  67420. let contents = props.children;
  67421. return props.disableFocusManagement || (contents = import_react85.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, {
  67422. restoreFocus: !0,
  67423. contain: (props.shouldContainFocus || contain) && !isExiting
  67424. }, contents)), contents = import_react85.default.createElement($337b884510726a0d$export$a2200b96afd16271.Provider, {
  67425. value: contextValue
  67426. }, import_react85.default.createElement($f1ab8c75478c6f73$export$cf75428e0b9ed1ea, null, contents)), import_react_dom4.default.createPortal(contents, portalContainer);
  67427. }
  67428. function $337b884510726a0d$export$14c98a7594375490() {
  67429. let ctx = (0, import_react85.useContext)($337b884510726a0d$export$a2200b96afd16271), setContain = ctx?.setContain;
  67430. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  67431. setContain?.(!0);
  67432. }, [
  67433. setContain
  67434. ]);
  67435. }
  67436. // ../../node_modules/@react-aria/overlays/dist/useModalOverlay.mjs
  67437. var import_react86 = __toESM(require_react(), 1);
  67438. function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state3, ref) {
  67439. let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({
  67440. ...props,
  67441. isOpen: state3.isOpen,
  67442. onClose: state3.close
  67443. }, ref);
  67444. return $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
  67445. isDisabled: !state3.isOpen
  67446. }), $337b884510726a0d$export$14c98a7594375490(), (0, import_react86.useEffect)(() => {
  67447. if (state3.isOpen && ref.current) return $5e3802645cc19319$export$1c3ebcada18427bf([
  67448. ref.current
  67449. ], {
  67450. shouldUseInert: !0
  67451. });
  67452. }, [
  67453. state3.isOpen,
  67454. ref
  67455. ]), {
  67456. modalProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps),
  67457. underlayProps
  67458. };
  67459. }
  67460. // ../../node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs
  67461. var import_react88 = __toESM(require_react(), 1);
  67462. // ../../node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs
  67463. var import_react87 = __toESM(require_react(), 1);
  67464. function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
  67465. let [isOpen, setOpen] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || !1, props.onOpenChange), open = (0, import_react87.useCallback)(() => {
  67466. setOpen(!0);
  67467. }, [
  67468. setOpen
  67469. ]), close = (0, import_react87.useCallback)(() => {
  67470. setOpen(!1);
  67471. }, [
  67472. setOpen
  67473. ]), toggle = (0, import_react87.useCallback)(() => {
  67474. setOpen(!isOpen);
  67475. }, [
  67476. setOpen,
  67477. isOpen
  67478. ]);
  67479. return {
  67480. isOpen,
  67481. setOpen,
  67482. open,
  67483. close,
  67484. toggle
  67485. };
  67486. }
  67487. // ../../node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs
  67488. var $8796f90736e175cb$var$TOOLTIP_DELAY = 1500, $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500, $8796f90736e175cb$var$tooltips = {}, $8796f90736e175cb$var$tooltipId = 0, $8796f90736e175cb$var$globalWarmedUp = !1, $8796f90736e175cb$var$globalWarmUpTimeout = null, $8796f90736e175cb$var$globalCooldownTimeout = null;
  67489. function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
  67490. let { delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props, { isOpen, open, close } = $fc909762b330b746$export$61c6a8c84e605fb6(props), id = (0, import_react88.useMemo)(() => `${++$8796f90736e175cb$var$tooltipId}`, []), closeTimeout = (0, import_react88.useRef)(null), closeCallback = (0, import_react88.useRef)(close), ensureTooltipEntry = () => {
  67491. $8796f90736e175cb$var$tooltips[id] = hideTooltip;
  67492. }, closeOpenTooltips = () => {
  67493. for (let hideTooltipId in $8796f90736e175cb$var$tooltips) hideTooltipId !== id && ($8796f90736e175cb$var$tooltips[hideTooltipId](!0), delete $8796f90736e175cb$var$tooltips[hideTooltipId]);
  67494. }, showTooltip = () => {
  67495. closeTimeout.current && clearTimeout(closeTimeout.current), closeTimeout.current = null, closeOpenTooltips(), ensureTooltipEntry(), $8796f90736e175cb$var$globalWarmedUp = !0, open(), $8796f90736e175cb$var$globalWarmUpTimeout && (clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout), $8796f90736e175cb$var$globalWarmUpTimeout = null), $8796f90736e175cb$var$globalCooldownTimeout && (clearTimeout($8796f90736e175cb$var$globalCooldownTimeout), $8796f90736e175cb$var$globalCooldownTimeout = null);
  67496. }, hideTooltip = (immediate) => {
  67497. immediate || closeDelay <= 0 ? (closeTimeout.current && clearTimeout(closeTimeout.current), closeTimeout.current = null, closeCallback.current()) : closeTimeout.current || (closeTimeout.current = setTimeout(() => {
  67498. closeTimeout.current = null, closeCallback.current();
  67499. }, closeDelay)), $8796f90736e175cb$var$globalWarmUpTimeout && (clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout), $8796f90736e175cb$var$globalWarmUpTimeout = null), $8796f90736e175cb$var$globalWarmedUp && ($8796f90736e175cb$var$globalCooldownTimeout && clearTimeout($8796f90736e175cb$var$globalCooldownTimeout), $8796f90736e175cb$var$globalCooldownTimeout = setTimeout(() => {
  67500. delete $8796f90736e175cb$var$tooltips[id], $8796f90736e175cb$var$globalCooldownTimeout = null, $8796f90736e175cb$var$globalWarmedUp = !1;
  67501. }, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay)));
  67502. }, warmupTooltip = () => {
  67503. closeOpenTooltips(), ensureTooltipEntry(), !isOpen && !$8796f90736e175cb$var$globalWarmUpTimeout && !$8796f90736e175cb$var$globalWarmedUp ? $8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(() => {
  67504. $8796f90736e175cb$var$globalWarmUpTimeout = null, $8796f90736e175cb$var$globalWarmedUp = !0, showTooltip();
  67505. }, delay) : isOpen || showTooltip();
  67506. };
  67507. return (0, import_react88.useEffect)(() => {
  67508. closeCallback.current = close;
  67509. }, [
  67510. close
  67511. ]), (0, import_react88.useEffect)(() => () => {
  67512. closeTimeout.current && clearTimeout(closeTimeout.current), $8796f90736e175cb$var$tooltips[id] && delete $8796f90736e175cb$var$tooltips[id];
  67513. }, [
  67514. id
  67515. ]), {
  67516. isOpen,
  67517. open: (immediate) => {
  67518. !immediate && delay > 0 && !closeTimeout.current ? warmupTooltip() : showTooltip();
  67519. },
  67520. close: hideTooltip
  67521. };
  67522. }
  67523. // ../../node_modules/react-aria-components/dist/Tooltip.mjs
  67524. var import_react89 = __toESM(require_react(), 1), $4e3b923658d69c60$export$7a7623236eec67fa = (0, import_react89.createContext)(null), $4e3b923658d69c60$export$39ae08fa83328b12 = (0, import_react89.createContext)(null);
  67525. function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
  67526. let state3 = $8796f90736e175cb$export$4d40659c25ecb50b(props), ref = (0, import_react89.useRef)(null), { triggerProps, tooltipProps } = $4e1b34546679e357$export$a6da6c504e4bba8b(props, state3, ref);
  67527. return import_react89.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  67528. values: [
  67529. [
  67530. $4e3b923658d69c60$export$7a7623236eec67fa,
  67531. state3
  67532. ],
  67533. [
  67534. $4e3b923658d69c60$export$39ae08fa83328b12,
  67535. {
  67536. ...tooltipProps,
  67537. triggerRef: ref
  67538. }
  67539. ]
  67540. ]
  67541. }, import_react89.default.createElement($f645667febf57a63$export$13f3202a3e5ddd5, {
  67542. ...triggerProps,
  67543. ref
  67544. }, props.children));
  67545. }
  67546. var $4e3b923658d69c60$export$28c660c63b792dea = (0, import_react89.forwardRef)(function({ UNSTABLE_portalContainer, ...props }, ref) {
  67547. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12);
  67548. let contextState = (0, import_react89.useContext)($4e3b923658d69c60$export$7a7623236eec67fa), localState = $8796f90736e175cb$export$4d40659c25ecb50b(props), state3 = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState, isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state3.isOpen) || props.isExiting || !1;
  67549. return !state3.isOpen && !isExiting ? null : import_react89.default.createElement($f57aed4a881a3485$export$b47c3594eab58386, {
  67550. portalContainer: UNSTABLE_portalContainer
  67551. }, import_react89.default.createElement($4e3b923658d69c60$var$TooltipInner, {
  67552. ...props,
  67553. tooltipRef: ref,
  67554. isExiting
  67555. }));
  67556. });
  67557. function $4e3b923658d69c60$var$TooltipInner(props) {
  67558. let state3 = (0, import_react89.useContext)($4e3b923658d69c60$export$7a7623236eec67fa), arrowRef = (0, import_react89.useRef)(null), { overlayProps, arrowProps, placement, triggerAnchorPoint } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
  67559. placement: props.placement || "top",
  67560. targetRef: props.triggerRef,
  67561. overlayRef: props.tooltipRef,
  67562. arrowRef,
  67563. offset: props.offset,
  67564. crossOffset: props.crossOffset,
  67565. isOpen: state3.isOpen,
  67566. arrowBoundaryOffset: props.arrowBoundaryOffset,
  67567. shouldFlip: props.shouldFlip,
  67568. containerPadding: props.containerPadding,
  67569. onClose: () => state3.close(!0)
  67570. }), isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(props.tooltipRef, !!placement) || props.isEntering || !1, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  67571. ...props,
  67572. defaultClassName: "react-aria-Tooltip",
  67573. values: {
  67574. placement,
  67575. isEntering,
  67576. isExiting: props.isExiting,
  67577. state: state3
  67578. }
  67579. });
  67580. props = $3ef42575df84b30b$export$9d1611c77c2fe928(props, overlayProps);
  67581. let { tooltipProps } = $326e436e94273fe1$export$1c4b08e0eca38426(props, state3), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  67582. global: !0
  67583. });
  67584. return import_react89.default.createElement("div", {
  67585. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tooltipProps),
  67586. ref: props.tooltipRef,
  67587. style: {
  67588. ...overlayProps.style,
  67589. "--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
  67590. ...renderProps.style
  67591. },
  67592. "data-placement": placement ?? void 0,
  67593. "data-entering": isEntering || void 0,
  67594. "data-exiting": props.isExiting || void 0
  67595. }, import_react89.default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, {
  67596. value: {
  67597. ...arrowProps,
  67598. placement,
  67599. ref: arrowRef
  67600. }
  67601. }, renderProps.children));
  67602. }
  67603. // src/components/components/shared/overlayHelpers.tsx
  67604. var import_react90 = __toESM(require_react(), 1);
  67605. var import_memoizerific10 = __toESM(require_memoizerific(), 1);
  67606. init_theming();
  67607. var convertToReactAriaPlacement = (0, import_memoizerific10.default)(1e3)((p3) => p3 === "left-end" ? "left bottom" : p3 === "right-end" ? "right bottom" : p3 === "left-start" ? "left top" : p3 === "right-start" ? "right top" : p3.replace("-", " ")), Container2 = styled.div({
  67608. width: 500,
  67609. height: 500,
  67610. paddingTop: 100,
  67611. overflowY: "scroll",
  67612. background: "#eee",
  67613. position: "relative"
  67614. }), Trigger = (0, import_react90.forwardRef)((props, ref) => import_react90.default.createElement(
  67615. "button",
  67616. {
  67617. ...props,
  67618. ref,
  67619. style: {
  67620. width: 120,
  67621. height: 50,
  67622. margin: 10
  67623. }
  67624. }
  67625. ));
  67626. Trigger.displayName = "Trigger";
  67627. // src/components/components/tooltip/TooltipProvider.tsx
  67628. var TooltipProvider = ({
  67629. triggerOnFocusOnly = !1,
  67630. placement: placementProp = "top",
  67631. offset: offset3 = 8,
  67632. tooltip,
  67633. children,
  67634. defaultVisible,
  67635. startOpen,
  67636. delayShow = 400,
  67637. delayHide = 200,
  67638. visible,
  67639. onVisibleChange,
  67640. ...props
  67641. }) => {
  67642. let placement = convertToReactAriaPlacement(placementProp), child = import_react91.default.Children.only(children);
  67643. startOpen !== void 0 && deprecate("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");
  67644. let [isOpen, setIsOpen] = (0, import_react91.useState)(defaultVisible ?? startOpen ?? !1), onOpenChange = (0, import_react91.useCallback)(
  67645. (isOpen2) => {
  67646. setIsOpen(isOpen2), onVisibleChange?.(isOpen2);
  67647. },
  67648. [onVisibleChange]
  67649. );
  67650. return import_react91.default.createElement(
  67651. $4e3b923658d69c60$export$8c610744efcf8a1d,
  67652. {
  67653. delay: delayShow,
  67654. closeDelay: delayHide,
  67655. isOpen: visible ?? isOpen,
  67656. onOpenChange,
  67657. trigger: triggerOnFocusOnly ? "focus" : void 0,
  67658. ...props
  67659. },
  67660. import_react91.default.createElement($f645667febf57a63$export$35a3bebf7ef2d934, null, import_react91.default.cloneElement(child, { "aria-describedby": null })),
  67661. import_react91.default.createElement(
  67662. $4e3b923658d69c60$export$28c660c63b792dea,
  67663. {
  67664. "data-testid": "tooltip",
  67665. placement,
  67666. offset: offset3,
  67667. onOpenChange,
  67668. style: { outline: "none" },
  67669. ...props
  67670. },
  67671. tooltip
  67672. )
  67673. );
  67674. };
  67675. // src/components/components/Button/helpers/InteractiveTooltipWrapper.tsx
  67676. var InteractiveTooltipWrapper = ({ children, disableAllTooltips, shortcut, tooltip }) => {
  67677. let tooltipLabel = (0, import_react92.useMemo)(() => {
  67678. let hasShortcuts = document?.body?.getAttribute("data-shortcuts-enabled") !== "false";
  67679. if (!(!tooltip && (!shortcut || !hasShortcuts)))
  67680. return [tooltip, shortcut && hasShortcuts && `[${shortcutToHumanString(shortcut)}]`].filter(Boolean).join(" ");
  67681. }, [shortcut, tooltip]);
  67682. return tooltipLabel ? import_react92.default.createElement(
  67683. TooltipProvider,
  67684. {
  67685. placement: "top",
  67686. tooltip: import_react92.default.createElement(TooltipNote, { note: tooltipLabel }),
  67687. visible: disableAllTooltips ? !1 : void 0
  67688. },
  67689. children
  67690. ) : import_react92.default.createElement(import_react92.default.Fragment, null, children);
  67691. };
  67692. InteractiveTooltipWrapper.displayName = "InteractiveTooltipWrapper";
  67693. // src/components/components/Button/helpers/useAriaDescription.tsx
  67694. var import_react93 = __toESM(require_react(), 1);
  67695. function useAriaDescription(description = "") {
  67696. let describedbyId = description.toLowerCase().trim().replace(/\s+/g, "-");
  67697. return {
  67698. ariaDescriptionAttrs: {
  67699. "aria-describedby": description ? describedbyId : void 0
  67700. },
  67701. AriaDescription: () => description ? import_react93.default.createElement("span", { id: describedbyId, hidden: !0 }, description) : null
  67702. };
  67703. }
  67704. // src/components/components/Button/Button.tsx
  67705. var Button = (0, import_react94.forwardRef)(
  67706. ({
  67707. as = "button",
  67708. asChild = !1,
  67709. animation: animation2 = "none",
  67710. size = "small",
  67711. variant = "outline",
  67712. padding = "medium",
  67713. disabled = !1,
  67714. readOnly = !1,
  67715. active,
  67716. onClick,
  67717. ariaLabel,
  67718. ariaDescription = void 0,
  67719. tooltip = void 0,
  67720. shortcut = void 0,
  67721. disableAllTooltips = !1,
  67722. ...props
  67723. }, ref) => {
  67724. let Comp2 = asChild ? Slot2 : as, deprecated;
  67725. !readOnly && (ariaLabel === void 0 || ariaLabel === "") && (deprecated = "ariaLabel", deprecate(
  67726. `The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${props.children}.`
  67727. )), active !== void 0 && (deprecated = "active", deprecate(
  67728. "The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."
  67729. ));
  67730. let { ariaDescriptionAttrs, AriaDescription } = useAriaDescription(ariaDescription), shortcutAttribute = (0, import_react94.useMemo)(() => shortcut ? shortcutToAriaKeyshortcuts(shortcut) : void 0, [shortcut]), [isAnimating, setIsAnimating] = (0, import_react94.useState)(!1), handleClick = (event) => {
  67731. onClick && onClick(event), animation2 !== "none" && setIsAnimating(!0);
  67732. };
  67733. return (0, import_react94.useEffect)(() => {
  67734. let timer = setTimeout(() => {
  67735. isAnimating && setIsAnimating(!1);
  67736. }, 1e3);
  67737. return () => clearTimeout(timer);
  67738. }, [isAnimating]), import_react94.default.createElement(import_react94.default.Fragment, null, import_react94.default.createElement(
  67739. InteractiveTooltipWrapper,
  67740. {
  67741. disableAllTooltips,
  67742. shortcut,
  67743. tooltip: tooltip || (ariaLabel !== !1 ? ariaLabel : void 0)
  67744. },
  67745. import_react94.default.createElement(
  67746. StyledButton,
  67747. {
  67748. "data-deprecated": deprecated,
  67749. as: Comp2,
  67750. ref,
  67751. variant,
  67752. size,
  67753. padding,
  67754. $disabled: disabled || readOnly,
  67755. "aria-disabled": disabled || readOnly ? "true" : void 0,
  67756. readOnly,
  67757. active,
  67758. animating: isAnimating,
  67759. animation: animation2,
  67760. onClick: disabled || readOnly ? void 0 : handleClick,
  67761. "aria-label": !readOnly && ariaLabel !== !1 ? ariaLabel : void 0,
  67762. "aria-keyshortcuts": readOnly ? void 0 : shortcutAttribute,
  67763. ...readOnly ? {} : ariaDescriptionAttrs,
  67764. ...props
  67765. }
  67766. )
  67767. ), import_react94.default.createElement(AriaDescription, null));
  67768. }
  67769. );
  67770. Button.displayName = "Button";
  67771. var StyledButton = styled("button", {
  67772. shouldForwardProp: (prop) => isPropValid(prop)
  67773. })(
  67774. ({
  67775. theme: theme3,
  67776. variant,
  67777. size,
  67778. $disabled,
  67779. readOnly,
  67780. active,
  67781. animating,
  67782. animation: animation2 = "none",
  67783. padding
  67784. }) => ({
  67785. border: 0,
  67786. cursor: readOnly ? "inherit" : $disabled ? "not-allowed" : "pointer",
  67787. display: "inline-flex",
  67788. gap: "6px",
  67789. alignItems: "center",
  67790. justifyContent: "center",
  67791. overflow: "hidden",
  67792. padding: padding === "none" ? 0 : padding === "small" && size === "small" ? "0 7px" : padding === "small" && size === "medium" ? "0 9px" : size === "small" ? "0 10px" : size === "medium" ? "0 12px" : 0,
  67793. height: size === "small" ? "28px" : "32px",
  67794. position: "relative",
  67795. textAlign: "center",
  67796. textDecoration: "none",
  67797. transitionProperty: "background, box-shadow",
  67798. transitionDuration: "150ms",
  67799. transitionTimingFunction: "ease-out",
  67800. verticalAlign: "top",
  67801. whiteSpace: "nowrap",
  67802. userSelect: "none",
  67803. opacity: $disabled && !readOnly ? 0.5 : 1,
  67804. margin: 0,
  67805. fontSize: `${theme3.typography.size.s1}px`,
  67806. fontWeight: theme3.typography.weight.bold,
  67807. lineHeight: "1",
  67808. background: variant === "solid" ? theme3.base === "light" ? theme3.color.secondary : curriedDarken$1(0.18, theme3.color.secondary) : variant === "outline" ? theme3.button.background : variant === "ghost" && active ? curriedTransparentize$1(0.93, theme3.barSelectedColor) : "transparent",
  67809. color: variant === "solid" ? theme3.color.lightest : variant === "outline" ? theme3.input.color : variant === "ghost" && active ? theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary : variant === "ghost" ? theme3.textMutedColor : theme3.input.color,
  67810. boxShadow: variant === "outline" ? `${theme3.button.border} 0 0 0 1px inset` : "none",
  67811. borderRadius: theme3.input.borderRadius,
  67812. // Making sure that the button never shrinks below its minimum size
  67813. flexShrink: 0,
  67814. ...!readOnly && {
  67815. "&:hover": {
  67816. color: variant === "ghost" ? theme3.color.secondary : void 0,
  67817. background: (() => {
  67818. let bgColor = theme3.color.secondary;
  67819. return variant === "solid" && (bgColor = theme3.base === "light" ? curriedLighten$1(0.1, theme3.color.secondary) : curriedDarken$1(0.3, theme3.color.secondary)), variant === "outline" && (bgColor = theme3.button.background), variant === "ghost" ? curriedTransparentize$1(0.86, theme3.color.secondary) : theme3.base === "light" ? curriedDarken$1(0.02, bgColor) : curriedLighten$1(0.03, bgColor);
  67820. })()
  67821. },
  67822. "&:active": {
  67823. color: variant === "ghost" ? theme3.color.secondary : void 0,
  67824. background: (() => {
  67825. let bgColor = theme3.color.secondary;
  67826. return variant === "solid" && (bgColor = theme3.color.secondary), variant === "outline" && (bgColor = theme3.button.background), variant === "ghost" ? theme3.background.hoverable : theme3.base === "light" ? curriedDarken$1(0.02, bgColor) : curriedLighten$1(0.03, bgColor);
  67827. })()
  67828. },
  67829. "&:focus-visible": {
  67830. outline: `2px solid ${rgba(theme3.color.secondary, 1)}`,
  67831. outlineOffset: 2,
  67832. // Should ensure focus outline gets drawn above next sibling
  67833. zIndex: "1"
  67834. },
  67835. ".sb-bar &:focus-visible, .sb-list &:focus-visible": {
  67836. outlineOffset: 0
  67837. }
  67838. },
  67839. "> svg": {
  67840. flex: "0 0 auto",
  67841. animation: animating && animation2 !== "none" ? `${theme3.animation[animation2]} 1000ms ease-out` : ""
  67842. }
  67843. })
  67844. ), IconButton = (0, import_react94.forwardRef)((props, ref) => (deprecate(
  67845. "`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."
  67846. ), import_react94.default.createElement(Button, { ref, ...props, "data-deprecated": "IconButton" })));
  67847. IconButton.displayName = "IconButton";
  67848. // src/components/components/ToggleButton/ToggleButton.tsx
  67849. var import_react95 = __toESM(require_react(), 1);
  67850. init_polished_esm();
  67851. init_theming();
  67852. var ToggleButton = (0, import_react95.forwardRef)(
  67853. ({ pressed, ...props }, ref) => import_react95.default.createElement(StyledToggle, { role: "switch", "aria-checked": pressed, ref, pressed, ...props })
  67854. );
  67855. ToggleButton.displayName = "ToggleButton";
  67856. var StyledToggle = styled(Button)(
  67857. ({ theme: theme3, variant = "outline", pressed }) => ({
  67858. ...pressed ? {
  67859. ...variant === "solid" ? {
  67860. background: theme3.base === "lighten" ? curriedDarken$1(0.1, theme3.color.secondary) : curriedDarken$1(0.2, theme3.color.secondary)
  67861. } : {},
  67862. ...variant === "outline" ? {
  67863. background: curriedTransparentize$1(0.94, theme3.barSelectedColor),
  67864. boxShadow: `${theme3.barSelectedColor} 0 0 0 1px inset`,
  67865. color: theme3.barSelectedColor
  67866. } : {},
  67867. ...variant === "ghost" ? {
  67868. background: curriedTransparentize$1(0.93, theme3.barSelectedColor),
  67869. color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary
  67870. } : {}
  67871. } : {}
  67872. })
  67873. );
  67874. // src/components/components/ActionList/ActionList.tsx
  67875. var ActionListItem = styled.li(
  67876. ({ active, theme: theme3 }) => ({
  67877. display: "flex",
  67878. alignItems: "center",
  67879. justifyContent: "space-between",
  67880. flex: "0 0 auto",
  67881. overflow: "hidden",
  67882. minHeight: 32,
  67883. gap: 4,
  67884. fontSize: theme3.typography.size.s1,
  67885. fontWeight: active ? theme3.typography.weight.bold : theme3.typography.weight.regular,
  67886. color: active ? "var(--listbox-item-active-color)" : theme3.color.defaultText,
  67887. "--listbox-item-active-color": theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary,
  67888. "--listbox-item-muted-color": active ? "var(--listbox-item-active-color)" : theme3.color.mediumdark,
  67889. '&[aria-disabled="true"]': {
  67890. opacity: 0.5,
  67891. cursor: "not-allowed"
  67892. },
  67893. '&[aria-selected="true"]': {
  67894. color: "var(--listbox-item-active-color)",
  67895. fontWeight: theme3.typography.weight.bold,
  67896. "--listbox-item-muted-color": "var(--listbox-item-active-color)"
  67897. },
  67898. "&:not(:hover, :has(:focus-visible)) :not(input) + input": {
  67899. position: "absolute",
  67900. opacity: 0
  67901. },
  67902. '&[role="option"]': {
  67903. cursor: "pointer",
  67904. borderRadius: theme3.input.borderRadius,
  67905. outlineOffset: -2,
  67906. padding: "0 9px",
  67907. gap: 8,
  67908. "&:hover": {
  67909. background: curriedTransparentize$1(0.86, theme3.color.secondary)
  67910. },
  67911. "&:focus-visible": {
  67912. outline: `2px solid ${theme3.color.secondary}`
  67913. }
  67914. },
  67915. "@supports (interpolate-size: allow-keywords)": {
  67916. interpolateSize: "allow-keywords",
  67917. transitionBehavior: "allow-discrete",
  67918. transitionDuration: "var(--transition-duration, 0.2s)",
  67919. transitionProperty: "opacity, block-size, content-visibility"
  67920. },
  67921. "@media (prefers-reduced-motion: reduce)": {
  67922. transition: "none"
  67923. }
  67924. }),
  67925. ({ transitionStatus }) => {
  67926. switch (transitionStatus) {
  67927. case "preEnter":
  67928. case "exiting":
  67929. case "exited":
  67930. return {
  67931. opacity: 0,
  67932. blockSize: 0,
  67933. contentVisibility: "hidden"
  67934. };
  67935. default:
  67936. return {
  67937. opacity: 1,
  67938. blockSize: "auto",
  67939. contentVisibility: "visible"
  67940. };
  67941. }
  67942. }
  67943. ), ActionListHoverItem = styled(ActionListItem)(({ targetId }) => ({
  67944. gap: 0,
  67945. [`& [data-target-id="${targetId}"]`]: {
  67946. inlineSize: "auto",
  67947. marginLeft: 4,
  67948. opacity: 1,
  67949. "@supports (interpolate-size: allow-keywords)": {
  67950. interpolateSize: "allow-keywords",
  67951. transitionProperty: "inline-size, margin-left, opacity, padding-inline",
  67952. transitionDuration: "var(--transition-duration, 0.2s)"
  67953. }
  67954. },
  67955. [`&:not(:hover, :has(:focus-visible)) [data-target-id="${targetId}"]`]: {
  67956. inlineSize: 0,
  67957. marginLeft: 0,
  67958. opacity: 0,
  67959. paddingInline: 0
  67960. }
  67961. })), StyledButton2 = styled(Button)(({ size }) => ({
  67962. gap: size === "small" ? 6 : 8,
  67963. "&:focus-visible": {
  67964. // Prevent focus outline from being cut off by overflow: hidden
  67965. outlineOffset: -2
  67966. }
  67967. })), StyledToggleButton = styled(ToggleButton)({
  67968. "&:focus-visible": {
  67969. // Prevent focus outline from being cut off by overflow: hidden
  67970. outlineOffset: -2
  67971. }
  67972. }), ActionListButton = (0, import_react96.forwardRef)(
  67973. function({ padding = "small", size = "medium", variant = "ghost", ...props }, ref) {
  67974. return import_react96.default.createElement(StyledButton2, { ...props, variant, padding, size, ref });
  67975. }
  67976. ), ActionListToggle = (0, import_react96.forwardRef)(
  67977. function({ padding = "small", size = "medium", variant = "ghost", ...props }, ref) {
  67978. return import_react96.default.createElement(StyledToggleButton, { ...props, variant, padding, size, ref });
  67979. }
  67980. ), ActionListAction = styled(ActionListButton)(({ theme: theme3 }) => ({
  67981. height: "auto",
  67982. minHeight: 32,
  67983. flex: "0 1 100%",
  67984. textAlign: "start",
  67985. justifyContent: "space-between",
  67986. fontWeight: "inherit",
  67987. color: "inherit",
  67988. "&:hover": {
  67989. color: "inherit"
  67990. },
  67991. "& input:enabled:focus-visible": {
  67992. outline: "none"
  67993. },
  67994. "&:has(input:focus-visible)": {
  67995. outline: `2px solid ${theme3.color.secondary}`,
  67996. outlineOffset: -2
  67997. }
  67998. })), ActionListLink = (props) => import_react96.default.createElement(ActionListAction, { as: "a", ...props }), ActionListText = styled.div(({ theme: theme3 }) => ({
  67999. display: "flex",
  68000. flexDirection: "column",
  68001. justifyContent: "center",
  68002. flexGrow: 1,
  68003. minWidth: 0,
  68004. padding: "8px 0",
  68005. lineHeight: "16px",
  68006. "& > *": {
  68007. margin: 0,
  68008. whiteSpace: "normal"
  68009. },
  68010. "& > span": {
  68011. overflow: "hidden",
  68012. textOverflow: "ellipsis",
  68013. whiteSpace: "nowrap"
  68014. },
  68015. "& small": {
  68016. fontSize: "inherit",
  68017. color: theme3.textMutedColor
  68018. },
  68019. "&:first-child": {
  68020. paddingLeft: 8
  68021. },
  68022. "&:last-child": {
  68023. paddingRight: 8
  68024. },
  68025. 'button > &:first-child, [role="option"] > &:first-child': {
  68026. paddingLeft: 0
  68027. },
  68028. 'button > &:last-child, [role="option"] > &:last-child': {
  68029. paddingRight: 0
  68030. }
  68031. })), ActionListIcon = styled.div({
  68032. display: "flex",
  68033. alignItems: "center",
  68034. justifyContent: "center",
  68035. flex: "0 0 14px",
  68036. width: 14,
  68037. height: 14,
  68038. color: "var(--listbox-item-muted-color)"
  68039. }), ActionList = Object.assign(
  68040. styled.ul(({ theme: theme3, onClick }) => ({
  68041. listStyle: "none",
  68042. margin: 0,
  68043. padding: 4,
  68044. cursor: onClick ? "pointer" : "default",
  68045. "& + *": {
  68046. borderTop: `1px solid ${theme3.appBorderColor}`
  68047. }
  68048. })),
  68049. {
  68050. Item: ActionListItem,
  68051. HoverItem: ActionListHoverItem,
  68052. Button: ActionListButton,
  68053. Toggle: ActionListToggle,
  68054. Action: ActionListAction,
  68055. Link: ActionListLink,
  68056. Text: ActionListText,
  68057. Icon: ActionListIcon
  68058. }
  68059. );
  68060. // src/components/components/Collapsible/Collapsible.tsx
  68061. var import_react97 = __toESM(require_react(), 1);
  68062. init_theming();
  68063. var CollapsibleContent = styled.div(({ collapsed = !1 }) => ({
  68064. blockSize: collapsed ? 0 : "auto",
  68065. contentVisibility: collapsed ? "hidden" : "visible",
  68066. transform: collapsed ? "translateY(-10px)" : "translateY(0)",
  68067. opacity: collapsed ? 0 : 1,
  68068. overflow: "hidden",
  68069. "@supports (interpolate-size: allow-keywords)": {
  68070. interpolateSize: "allow-keywords",
  68071. transition: "all var(--transition-duration, 0.2s)",
  68072. transitionBehavior: "allow-discrete"
  68073. },
  68074. "@media (prefers-reduced-motion: reduce)": {
  68075. transition: "none"
  68076. }
  68077. })), Collapsible = Object.assign(
  68078. function({
  68079. children,
  68080. summary,
  68081. collapsed,
  68082. disabled,
  68083. initialCollapsed,
  68084. storageKey,
  68085. state: providedState,
  68086. ...props
  68087. }) {
  68088. let internalState = useCollapsible({ collapsed, disabled, initialCollapsed, storageKey }), state3 = providedState || internalState;
  68089. return import_react97.default.createElement(import_react97.default.Fragment, null, typeof summary == "function" ? summary(state3) : summary, import_react97.default.createElement(
  68090. CollapsibleContent,
  68091. {
  68092. ...props,
  68093. id: state3.contentId,
  68094. collapsed: state3.isCollapsed,
  68095. "aria-hidden": state3.isCollapsed
  68096. },
  68097. typeof children == "function" ? children(state3) : children
  68098. ));
  68099. },
  68100. {
  68101. Content: CollapsibleContent
  68102. }
  68103. ), useSessionState = (key, initialValue2) => {
  68104. let [value, setValue] = (0, import_react97.useState)(() => {
  68105. try {
  68106. return JSON.parse(sessionStorage.getItem(key)) ?? initialValue2;
  68107. } catch {
  68108. return initialValue2;
  68109. }
  68110. });
  68111. return (0, import_react97.useEffect)(() => {
  68112. try {
  68113. key && sessionStorage.setItem(key, JSON.stringify(value));
  68114. } catch {
  68115. }
  68116. }, [key, value]), [value, setValue];
  68117. }, useCollapsible = ({
  68118. collapsed,
  68119. disabled,
  68120. initialCollapsed = collapsed,
  68121. storageKey
  68122. }) => {
  68123. let [isCollapsed, setCollapsed] = useSessionState(
  68124. storageKey && `useCollapsible:${storageKey}`,
  68125. !!initialCollapsed
  68126. );
  68127. (0, import_react97.useEffect)(() => {
  68128. collapsed !== void 0 && setCollapsed(collapsed);
  68129. }, [collapsed, setCollapsed]);
  68130. let toggleCollapsed = (0, import_react97.useCallback)(
  68131. (event) => {
  68132. event?.stopPropagation(), disabled || setCollapsed((value) => !value);
  68133. },
  68134. [disabled, setCollapsed]
  68135. ), contentId = $bdb11010cef70236$export$f680877a34711e37();
  68136. return {
  68137. contentId,
  68138. isCollapsed,
  68139. isDisabled: !!disabled,
  68140. setCollapsed,
  68141. toggleCollapsed,
  68142. toggleProps: {
  68143. disabled,
  68144. onClick: toggleCollapsed,
  68145. "aria-controls": contentId,
  68146. "aria-expanded": !isCollapsed
  68147. }
  68148. };
  68149. };
  68150. // src/components/components/Card/Card.tsx
  68151. var import_react98 = __toESM(require_react(), 1);
  68152. init_theming();
  68153. var fadeInOut = keyframes({
  68154. "0%": { opacity: 0 },
  68155. "5%": { opacity: 1 },
  68156. "25%": { opacity: 1 },
  68157. "30%": { opacity: 0 }
  68158. }), spin = keyframes({
  68159. "0%": { transform: "rotate(0deg)" },
  68160. "10%": { transform: "rotate(10deg)" },
  68161. "40%": { transform: "rotate(170deg)" },
  68162. "50%": { transform: "rotate(180deg)" },
  68163. "60%": { transform: "rotate(190deg)" },
  68164. "90%": { transform: "rotate(350deg)" },
  68165. "100%": { transform: "rotate(360deg)" }
  68166. }), slide = keyframes({
  68167. to: {
  68168. backgroundPositionX: "36%"
  68169. }
  68170. }), CardContent = styled.div(({ theme: theme3 }) => ({
  68171. borderRadius: theme3.appBorderRadius,
  68172. backgroundColor: theme3.background.content,
  68173. position: "relative"
  68174. })), CardOutline = styled.div(({ animation: animation2 = "none", color: color2, theme: theme3 }) => ({
  68175. position: "relative",
  68176. width: "100%",
  68177. padding: 1,
  68178. overflow: "hidden",
  68179. backgroundColor: theme3.background.content,
  68180. borderRadius: theme3.appBorderRadius + 1,
  68181. boxShadow: `inset 0 0 0 1px ${animation2 === "none" && color2 && theme3.color[color2] || theme3.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,
  68182. transition: "box-shadow 1s",
  68183. "@supports (interpolate-size: allow-keywords)": {
  68184. interpolateSize: "allow-keywords",
  68185. transition: "all var(--transition-duration, 0.2s), box-shadow 1s",
  68186. transitionBehavior: "allow-discrete"
  68187. },
  68188. "@media (prefers-reduced-motion: reduce)": {
  68189. transition: "box-shadow 1s"
  68190. },
  68191. "&:before": {
  68192. content: '""',
  68193. display: animation2 === "none" ? "none" : "block",
  68194. position: "absolute",
  68195. left: 0,
  68196. top: 0,
  68197. width: "100%",
  68198. height: "100%",
  68199. opacity: 1,
  68200. ...animation2 === "rainbow" && {
  68201. animation: `${slide} 10s infinite linear, ${fadeInOut} 60s infinite linear`,
  68202. backgroundImage: "linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",
  68203. backgroundSize: "1000%",
  68204. backgroundPositionX: "100%"
  68205. },
  68206. ...animation2 === "spin" && {
  68207. left: "50%",
  68208. top: "50%",
  68209. marginLeft: "calc(max(100vw, 100vh) * -0.5)",
  68210. marginTop: "calc(max(100vw, 100vh) * -0.5)",
  68211. height: "max(100vw, 100vh)",
  68212. width: "max(100vw, 100vh)",
  68213. animation: `${spin} 3s linear infinite`,
  68214. backgroundImage: color2 === "negative" ? (
  68215. // Hardcoded colors to prevent themes from messing with them (orange+gold, secondary+seafoam)
  68216. "conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)"
  68217. ) : "conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"
  68218. }
  68219. }
  68220. })), Card = Object.assign(
  68221. (0, import_react98.forwardRef)(function({ outlineAnimation = "none", outlineColor, outlineAttrs = {}, ...props }, ref) {
  68222. return import_react98.default.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref, ...outlineAttrs }, import_react98.default.createElement(CardContent, { ...props }));
  68223. }),
  68224. {
  68225. Content: CardContent,
  68226. Outline: CardOutline
  68227. }
  68228. );
  68229. // src/components/components/Modal/Modal.tsx
  68230. var import_react106 = __toESM(require_react(), 1);
  68231. init_client_logger();
  68232. // ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs
  68233. var import_react99 = __toESM(require_react(), 1);
  68234. // ../../node_modules/react-transition-state/dist/esm/hooks/utils.mjs
  68235. var STATUS = ["preEnter", "entering", "entered", "preExit", "exiting", "exited", "unmounted"], getState2 = (status) => ({
  68236. _s: status,
  68237. status: STATUS[status],
  68238. isEnter: status < 3,
  68239. isMounted: status !== 6,
  68240. isResolved: status === 2 || status > 4
  68241. }), startOrEnd = (unmounted) => unmounted ? 6 : 5, getEndStatus = (status, unmountOnExit) => {
  68242. switch (status) {
  68243. case 1:
  68244. case 0:
  68245. return 2;
  68246. case 4:
  68247. case 3:
  68248. return startOrEnd(unmountOnExit);
  68249. }
  68250. }, getTimeout = (timeout) => typeof timeout == "object" ? [timeout.enter, timeout.exit] : [timeout, timeout], nextTick = (transitState, status) => setTimeout(() => {
  68251. isNaN(document.body.offsetTop) || transitState(status + 1);
  68252. }, 0);
  68253. // ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs
  68254. var updateState = (status, setState2, latestState, timeoutId, onChange) => {
  68255. clearTimeout(timeoutId.current);
  68256. let state3 = getState2(status);
  68257. setState2(state3), latestState.current = state3, onChange && onChange({
  68258. current: state3
  68259. });
  68260. }, useTransitionState = ({
  68261. enter = !0,
  68262. exit = !0,
  68263. preEnter,
  68264. preExit,
  68265. timeout,
  68266. initialEntered,
  68267. mountOnEnter,
  68268. unmountOnExit,
  68269. onStateChange: onChange
  68270. } = {}) => {
  68271. let [state3, setState2] = (0, import_react99.useState)(() => getState2(initialEntered ? 2 : startOrEnd(mountOnEnter))), latestState = (0, import_react99.useRef)(state3), timeoutId = (0, import_react99.useRef)(), [enterTimeout, exitTimeout] = getTimeout(timeout), endTransition = (0, import_react99.useCallback)(() => {
  68272. let status = getEndStatus(latestState.current._s, unmountOnExit);
  68273. status && updateState(status, setState2, latestState, timeoutId, onChange);
  68274. }, [onChange, unmountOnExit]), toggle = (0, import_react99.useCallback)((toEnter) => {
  68275. let transitState = (status) => {
  68276. switch (updateState(status, setState2, latestState, timeoutId, onChange), status) {
  68277. case 1:
  68278. enterTimeout >= 0 && (timeoutId.current = setTimeout(endTransition, enterTimeout));
  68279. break;
  68280. case 4:
  68281. exitTimeout >= 0 && (timeoutId.current = setTimeout(endTransition, exitTimeout));
  68282. break;
  68283. case 0:
  68284. case 3:
  68285. timeoutId.current = nextTick(transitState, status);
  68286. break;
  68287. }
  68288. }, enterStage = latestState.current.isEnter;
  68289. typeof toEnter != "boolean" && (toEnter = !enterStage), toEnter ? !enterStage && transitState(enter ? preEnter ? 0 : 1 : 2) : enterStage && transitState(exit ? preExit ? 3 : 4 : startOrEnd(unmountOnExit));
  68290. }, [endTransition, onChange, enter, exit, preEnter, preExit, enterTimeout, exitTimeout, unmountOnExit]);
  68291. return [state3, toggle, endTransition];
  68292. };
  68293. // ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionMap.mjs
  68294. var import_react100 = __toESM(require_react(), 1);
  68295. // src/manager/hooks/useMedia.tsx
  68296. var import_react101 = __toESM(require_react(), 1);
  68297. function useMediaQuery(query) {
  68298. let getMatches = (queryMatch) => typeof window < "u" ? window.matchMedia(queryMatch).matches : !1, [matches4, setMatches] = (0, import_react101.useState)(getMatches(query));
  68299. function handleChange() {
  68300. setMatches(getMatches(query));
  68301. }
  68302. return (0, import_react101.useEffect)(() => {
  68303. let matchMedia = window.matchMedia(query);
  68304. return handleChange(), matchMedia.addEventListener("change", handleChange), () => {
  68305. matchMedia.removeEventListener("change", handleChange);
  68306. };
  68307. }, [query]), matches4;
  68308. }
  68309. // src/components/components/Modal/Modal.styled.tsx
  68310. var Modal_styled_exports = {};
  68311. __export(Modal_styled_exports, {
  68312. Actions: () => Actions,
  68313. Close: () => Close,
  68314. CloseButton: () => CloseButton,
  68315. Col: () => Col,
  68316. Container: () => Container3,
  68317. Content: () => Content,
  68318. Description: () => Description,
  68319. Dialog: () => Dialog,
  68320. Error: () => Error2,
  68321. ErrorWrapper: () => ErrorWrapper,
  68322. Header: () => Header,
  68323. Overlay: () => Overlay,
  68324. Row: () => Row,
  68325. Title: () => Title
  68326. });
  68327. var import_react105 = __toESM(require_react(), 1);
  68328. init_client_logger();
  68329. // ../../node_modules/react-aria-components/dist/RSPContexts.mjs
  68330. var import_react102 = __toESM(require_react(), 1), $4e85f108e88277b8$export$b085522c77523c51 = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$ebe63fadcdce34ed = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$44644b8a16031b5b = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$717b2c0a523a0b53 = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$265015d6dc85bf21 = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$d688439359537581 = (0, import_react102.createContext)({});
  68331. // ../../node_modules/react-aria-components/dist/Heading.mjs
  68332. var import_react103 = __toESM(require_react(), 1), $5cb03073d3f54797$export$a8a3e93435678ff9 = (0, import_react103.forwardRef)(function(props, ref) {
  68333. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
  68334. let { children, level = 3, className, ...domProps } = props, Element2 = `h${level}`;
  68335. return import_react103.default.createElement(Element2, {
  68336. ...domProps,
  68337. ref,
  68338. className: className ?? "react-aria-Heading"
  68339. }, children);
  68340. });
  68341. // ../../node_modules/react-aria-components/dist/Text.mjs
  68342. var import_react104 = __toESM(require_react(), 1), $514c0188e459b4c0$export$9afb8bc826b033ea = (0, import_react104.createContext)({}), $514c0188e459b4c0$export$5f1af8db9871e1d6 = (0, import_react104.forwardRef)(function(props, ref) {
  68343. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $514c0188e459b4c0$export$9afb8bc826b033ea);
  68344. let { elementType: ElementType = "span", ...domProps } = props;
  68345. return import_react104.default.createElement(ElementType, {
  68346. className: "react-aria-Text",
  68347. ...domProps,
  68348. ref
  68349. });
  68350. });
  68351. // src/components/components/Modal/Modal.styled.tsx
  68352. init_theming();
  68353. var fadeIn = keyframes({
  68354. from: { opacity: 0 },
  68355. to: { opacity: 1 }
  68356. }), fadeOut = keyframes({
  68357. from: { opacity: 1 },
  68358. to: { opacity: 0 }
  68359. }), expand = keyframes({
  68360. from: { maxHeight: 0 },
  68361. to: {}
  68362. }), zoomIn = keyframes({
  68363. from: {
  68364. opacity: 0,
  68365. transform: "translate(-50%, -50%) scale(0.9)"
  68366. },
  68367. to: {
  68368. opacity: 1,
  68369. transform: "translate(-50%, -50%) scale(1)"
  68370. }
  68371. }), zoomOut = keyframes({
  68372. from: {
  68373. opacity: 1,
  68374. transform: "translate(-50%, -50%) scale(1)"
  68375. },
  68376. to: {
  68377. opacity: 0,
  68378. transform: "translate(-50%, -50%) scale(0.9)"
  68379. }
  68380. }), slideFromBottom = keyframes({
  68381. from: {
  68382. opacity: 0,
  68383. maxHeight: "0px"
  68384. },
  68385. to: {
  68386. opacity: 1,
  68387. maxHeight: "80vh"
  68388. }
  68389. }), slideToBottom = keyframes({
  68390. from: {
  68391. opacity: 1,
  68392. maxHeight: "80vh"
  68393. },
  68394. to: {
  68395. opacity: 0,
  68396. maxHeight: "0px"
  68397. }
  68398. }), Overlay = styled.div(({ $status, $transitionDuration }) => ({
  68399. backdropFilter: "blur(24px)",
  68400. background: "rgba(0, 0, 0, 0.4)",
  68401. position: "absolute",
  68402. inset: 0,
  68403. width: "100%",
  68404. height: "100%",
  68405. zIndex: 1e5,
  68406. "@media (prefers-reduced-motion: no-preference)": {
  68407. animation: $status === "exiting" || $status === "preExit" ? `${fadeOut} ${$transitionDuration}ms` : `${fadeIn} ${$transitionDuration}ms`,
  68408. animationFillMode: "forwards"
  68409. }
  68410. })), Container3 = styled.div(
  68411. ({ theme: theme3 }) => ({
  68412. backgroundColor: theme3.background.bar,
  68413. borderRadius: 6,
  68414. boxShadow: "0px 4px 67px 0px #00000040",
  68415. position: "absolute",
  68416. overflow: "auto",
  68417. zIndex: 1e5,
  68418. "&:focus-visible": {
  68419. outline: "none"
  68420. }
  68421. }),
  68422. ({ theme: theme3, width, height, $variant, $status, $transitionDuration }) => $variant === "dialog" ? {
  68423. top: "50%",
  68424. left: "50%",
  68425. width: width ?? 740,
  68426. height: height ?? "auto",
  68427. maxWidth: "calc(100% - 40px)",
  68428. maxHeight: "85vh",
  68429. "@media (prefers-reduced-motion: no-preference)": {
  68430. willChange: "transform, opacity",
  68431. animationTimingFunction: "cubic-bezier(0.32, 0.72, 0, 1)",
  68432. animation: $status === "exiting" || $status === "preExit" ? `${zoomOut} ${$transitionDuration}ms` : `${zoomIn} ${$transitionDuration}ms`,
  68433. animationFillMode: "forwards !important"
  68434. },
  68435. "@media (prefers-reduced-motion: reduce)": {
  68436. transform: "translate(-50%, -50%) scale(1)"
  68437. }
  68438. } : {
  68439. bottom: "0",
  68440. left: "0",
  68441. right: "0",
  68442. borderRadius: "10px 10px 0 0",
  68443. overflow: "hidden",
  68444. width: width ?? "100%",
  68445. height: height ?? "80%",
  68446. maxWidth: "100%",
  68447. background: theme3.background.content,
  68448. "@supports (interpolate-size: allow-keywords)": {
  68449. interpolateSize: "allow-keywords"
  68450. },
  68451. "@media (prefers-reduced-motion: no-preference)": {
  68452. animationTimingFunction: "cubic-bezier(.9,.16,.77,.64)",
  68453. animation: $status === "exiting" || $status === "preExit" ? `${slideToBottom} ${$transitionDuration}ms` : `${slideFromBottom} ${$transitionDuration}ms`,
  68454. animationFillMode: "forwards !important"
  68455. }
  68456. }
  68457. ), Close = ({ asChild, children, onClick, ...props }) => {
  68458. let { close } = (0, import_react105.useContext)(ModalContext);
  68459. if (asChild && import_react105.default.isValidElement(children)) {
  68460. let handleClick = (event) => {
  68461. onClick?.(event), children.props.onClick?.(event), close?.();
  68462. };
  68463. return import_react105.default.cloneElement(children, {
  68464. ...props,
  68465. onClick: handleClick
  68466. });
  68467. }
  68468. return import_react105.default.createElement(
  68469. Button,
  68470. {
  68471. type: "button",
  68472. padding: "small",
  68473. ariaLabel: "Close modal",
  68474. variant: "ghost",
  68475. shortcut: ["Escape"],
  68476. onClick: close
  68477. },
  68478. import_react105.default.createElement(CrossIcon, null)
  68479. );
  68480. }, Dialog = {
  68481. Close: () => (deprecate("Modal.Dialog.Close is deprecated, please use Modal.Close instead."), import_react105.default.createElement(Close, { "data-deprecated": "Modal.Dialog.Close" }))
  68482. }, CloseButton = ({ ariaLabel, ...props }) => (deprecate("Modal.CloseButton is deprecated, please use Modal.Close instead."), import_react105.default.createElement(Close, { asChild: !0 }, import_react105.default.createElement(Button, { ariaLabel: ariaLabel || "Close", "data-deprecated": "Modal.CloseButton", ...props }, import_react105.default.createElement(CrossIcon, null)))), Content = styled.div({
  68483. display: "flex",
  68484. flexDirection: "column",
  68485. margin: 16,
  68486. gap: 16
  68487. }), Row = styled.div({
  68488. display: "flex",
  68489. justifyContent: "space-between",
  68490. gap: 16
  68491. }), Col = styled.div({
  68492. display: "flex",
  68493. flexDirection: "column",
  68494. gap: 4
  68495. }), Header = ({
  68496. hasClose = !0,
  68497. onClose,
  68498. ...props
  68499. }) => import_react105.default.createElement(Row, null, import_react105.default.createElement(Col, { ...props }), hasClose && import_react105.default.createElement(Close, { onClick: onClose })), Title = styled((props) => import_react105.default.createElement($5cb03073d3f54797$export$a8a3e93435678ff9, { level: 2, ...props }))(({ theme: theme3 }) => ({
  68500. margin: 0,
  68501. fontSize: theme3.typography.size.s3,
  68502. fontWeight: theme3.typography.weight.bold
  68503. })), Description = styled($514c0188e459b4c0$export$5f1af8db9871e1d6)(({ theme: theme3 }) => ({
  68504. position: "relative",
  68505. zIndex: 1,
  68506. margin: 0,
  68507. fontSize: theme3.typography.size.s2
  68508. })), Actions = styled.div({
  68509. display: "flex",
  68510. flexDirection: "row-reverse",
  68511. gap: 8
  68512. }), ErrorWrapper = styled.div(({ theme: theme3 }) => ({
  68513. maxHeight: 100,
  68514. overflow: "auto",
  68515. "@media (prefers-reduced-motion: no-preference)": {
  68516. animation: `${expand} 300ms, ${fadeIn} 300ms`
  68517. },
  68518. backgroundColor: theme3.background.critical,
  68519. color: theme3.color.lightest,
  68520. fontSize: theme3.typography.size.s2,
  68521. "& > div": {
  68522. position: "relative",
  68523. padding: "8px 16px"
  68524. }
  68525. })), Error2 = ({
  68526. children,
  68527. ...props
  68528. }) => import_react105.default.createElement(ErrorWrapper, { ...props }, import_react105.default.createElement("div", null, children));
  68529. // src/components/components/Modal/Modal.tsx
  68530. var ModalContext = (0, import_react106.createContext)({});
  68531. function BaseModal({
  68532. container,
  68533. portalSelector,
  68534. children,
  68535. width,
  68536. height,
  68537. ariaLabel,
  68538. dismissOnClickOutside = !0,
  68539. dismissOnEscape = !0,
  68540. className,
  68541. open,
  68542. onEscapeKeyDown,
  68543. onInteractOutside,
  68544. onOpenChange,
  68545. defaultOpen,
  68546. transitionDuration = 200,
  68547. variant = "dialog",
  68548. ...props
  68549. }) {
  68550. let deprecated;
  68551. (ariaLabel === void 0 || ariaLabel === "") && (deprecated = "ariaLabel", deprecate("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")), onEscapeKeyDown !== void 0 && (deprecated = "onEscapeKeyDown", deprecate(
  68552. "The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead."
  68553. )), onInteractOutside !== void 0 && (deprecated = "onInteractOutside", deprecate(
  68554. "The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."
  68555. ));
  68556. let overlayRef = (0, import_react106.useRef)(null), reducedMotion = useMediaQuery("(prefers-reduced-motion: reduce)"), [{ status, isMounted }, toggle] = useTransitionState({
  68557. timeout: reducedMotion ? 0 : transitionDuration,
  68558. mountOnEnter: !0,
  68559. unmountOnExit: !0
  68560. }), state3 = $fc909762b330b746$export$61c6a8c84e605fb6({
  68561. isOpen: open || isMounted,
  68562. defaultOpen,
  68563. onOpenChange: (isOpen) => {
  68564. toggle(isOpen), onOpenChange?.(isOpen);
  68565. }
  68566. }), close = () => {
  68567. state3.close();
  68568. }, { modalProps, underlayProps } = $8ac8429251c45e4b$export$dbc0f175b25fb0fb(
  68569. {
  68570. isDismissable: dismissOnClickOutside,
  68571. isKeyboardDismissDisabled: !0,
  68572. shouldCloseOnInteractOutside: onInteractOutside ? (element) => {
  68573. let mockedEvent = new MouseEvent("click", {
  68574. bubbles: !0,
  68575. cancelable: !0,
  68576. relatedTarget: element
  68577. });
  68578. return onInteractOutside(mockedEvent), !mockedEvent.defaultPrevented;
  68579. } : void 0
  68580. },
  68581. state3,
  68582. overlayRef
  68583. );
  68584. if ((0, import_react106.useEffect)(() => {
  68585. let shouldBeOpen = open ?? defaultOpen ?? !1;
  68586. shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1);
  68587. }, [open, defaultOpen, isMounted, toggle]), (0, import_react106.useEffect)(() => {
  68588. isMounted && (open || defaultOpen) && onOpenChange?.(!0);
  68589. }, [isMounted]), (0, import_react106.useEffect)(() => {
  68590. if (isMounted && (open || defaultOpen) && overlayRef.current)
  68591. return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 });
  68592. }, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted")
  68593. return null;
  68594. let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, {
  68595. onKeyDown: (e) => {
  68596. e.key !== "Escape" ? modalProps.onKeyDown?.(e) : dismissOnEscape && (onEscapeKeyDown?.(e.nativeEvent), e.nativeEvent.defaultPrevented || close());
  68597. }
  68598. }), containerElement = container ?? (portalSelector ? document.querySelector(portalSelector) : void 0);
  68599. return import_react106.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { disableFocusManagement: !0, portalContainer: containerElement || void 0 }, import_react106.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, { restoreFocus: !0, contain: !0, autoFocus: !0 }, import_react106.default.createElement(
  68600. Overlay,
  68601. {
  68602. $status: status,
  68603. $transitionDuration: transitionDuration,
  68604. ...underlayProps
  68605. }
  68606. ), import_react106.default.createElement("div", { role: "dialog", "aria-label": ariaLabel, ref: overlayRef, ...finalModalProps }, import_react106.default.createElement(ModalContext.Provider, { value: { close } }, import_react106.default.createElement("div", { tabIndex: -1 }, import_react106.default.createElement(
  68607. Container3,
  68608. {
  68609. "data-deprecated": deprecated,
  68610. $variant: variant,
  68611. $status: status,
  68612. $transitionDuration: transitionDuration,
  68613. className,
  68614. width,
  68615. height,
  68616. ...props
  68617. },
  68618. children
  68619. ))))));
  68620. }
  68621. var Modal = Object.assign(BaseModal, Modal_styled_exports), ModalDecorator = (Story, { args }) => {
  68622. let [container, setContainer] = (0, import_react106.useState)(null);
  68623. return args.container || args.portalSelector ? import_react106.default.createElement(Story, { args }) : import_react106.default.createElement(import_react106.default.Fragment, null, import_react106.default.createElement($96b38030c423d352$export$78efe591171d7d45, { getContainer: () => container }, import_react106.default.createElement(Story, { args })), import_react106.default.createElement(
  68624. "div",
  68625. {
  68626. ref: (element) => setContainer(element ?? null),
  68627. style: {
  68628. width: "100%",
  68629. height: "100%",
  68630. minHeight: "600px",
  68631. transform: "translateZ(0)"
  68632. }
  68633. }
  68634. ));
  68635. };
  68636. // src/components/components/spaced/Spaced.tsx
  68637. var import_react107 = __toESM(require_react(), 1);
  68638. init_theming();
  68639. var toNumber2 = (input2) => typeof input2 == "number" ? input2 : Number(input2), Container4 = styled.div(
  68640. ({ theme: theme3, col, row = 1 }) => col ? {
  68641. display: "inline-block",
  68642. verticalAlign: "inherit",
  68643. "& > *": {
  68644. marginLeft: col * theme3.layoutMargin,
  68645. verticalAlign: "inherit"
  68646. },
  68647. [`& > *:first-child${ignoreSsrWarning}`]: {
  68648. marginLeft: 0
  68649. }
  68650. } : {
  68651. "& > *": {
  68652. marginTop: row * theme3.layoutMargin
  68653. },
  68654. [`& > *:first-child${ignoreSsrWarning}`]: {
  68655. marginTop: 0
  68656. }
  68657. },
  68658. ({ theme: theme3, outer, col, row }) => {
  68659. switch (!0) {
  68660. case !!(outer && col):
  68661. return {
  68662. marginLeft: outer * theme3.layoutMargin,
  68663. marginRight: outer * theme3.layoutMargin
  68664. };
  68665. case !!(outer && row):
  68666. return {
  68667. marginTop: outer * theme3.layoutMargin,
  68668. marginBottom: outer * theme3.layoutMargin
  68669. };
  68670. default:
  68671. return {};
  68672. }
  68673. }
  68674. ), Spaced = ({ col, row, outer, children, ...rest }) => {
  68675. let outerAmount = toNumber2(typeof outer == "number" || !outer ? outer : col || row);
  68676. return import_react107.default.createElement(Container4, { col, row, outer: outerAmount, ...rest }, children);
  68677. };
  68678. // src/components/components/placeholder/placeholder.tsx
  68679. var import_react108 = __toESM(require_react(), 1);
  68680. init_theming();
  68681. var Title2 = styled.div(({ theme: theme3 }) => ({
  68682. fontWeight: theme3.typography.weight.bold
  68683. })), Desc = styled.div(), Message = styled.div(({ theme: theme3 }) => ({
  68684. padding: 30,
  68685. textAlign: "center",
  68686. color: theme3.color.defaultText,
  68687. fontSize: theme3.typography.size.s2 - 1
  68688. })), Placeholder = ({ children, ...props }) => {
  68689. let [title, desc] = import_react108.Children.toArray(children);
  68690. return import_react108.default.createElement(Message, { ...props }, import_react108.default.createElement(Title2, null, title), desc && import_react108.default.createElement(Desc, null, desc));
  68691. };
  68692. // src/components/index.ts
  68693. init_ScrollArea();
  68694. // src/components/components/Zoom/ZoomElement.tsx
  68695. var import_react110 = __toESM(require_react(), 1);
  68696. init_theming();
  68697. // ../../node_modules/use-resize-observer/dist/bundle.esm.js
  68698. var import_react109 = __toESM(require_react());
  68699. function useResolvedElement(subscriber, refOrElement) {
  68700. var lastReportRef = (0, import_react109.useRef)(null), refOrElementRef = (0, import_react109.useRef)(null);
  68701. refOrElementRef.current = refOrElement;
  68702. var cbElementRef = (0, import_react109.useRef)(null);
  68703. (0, import_react109.useEffect)(function() {
  68704. evaluateSubscription();
  68705. });
  68706. var evaluateSubscription = (0, import_react109.useCallback)(function() {
  68707. var cbElement = cbElementRef.current, refOrElement2 = refOrElementRef.current, element = cbElement || (refOrElement2 ? refOrElement2 instanceof Element ? refOrElement2 : refOrElement2.current : null);
  68708. lastReportRef.current && lastReportRef.current.element === element && lastReportRef.current.subscriber === subscriber || (lastReportRef.current && lastReportRef.current.cleanup && lastReportRef.current.cleanup(), lastReportRef.current = {
  68709. element,
  68710. subscriber,
  68711. // Only calling the subscriber, if there's an actual element to report.
  68712. // Setting cleanup to undefined unless a subscriber returns one, as an existing cleanup function would've been just called.
  68713. cleanup: element ? subscriber(element) : void 0
  68714. });
  68715. }, [subscriber]);
  68716. return (0, import_react109.useEffect)(function() {
  68717. return function() {
  68718. lastReportRef.current && lastReportRef.current.cleanup && (lastReportRef.current.cleanup(), lastReportRef.current = null);
  68719. };
  68720. }, []), (0, import_react109.useCallback)(function(element) {
  68721. cbElementRef.current = element, evaluateSubscription();
  68722. }, [evaluateSubscription]);
  68723. }
  68724. function extractSize(entry, boxProp, sizeType) {
  68725. return entry[boxProp] ? entry[boxProp][0] ? entry[boxProp][0][sizeType] : (
  68726. // TS complains about this, because the RO entry type follows the spec and does not reflect Firefox's current
  68727. // behaviour of returning objects instead of arrays for `borderBoxSize` and `contentBoxSize`.
  68728. // @ts-ignore
  68729. entry[boxProp][sizeType]
  68730. ) : boxProp === "contentBoxSize" ? entry.contentRect[sizeType === "inlineSize" ? "width" : "height"] : void 0;
  68731. }
  68732. function useResizeObserver2(opts) {
  68733. opts === void 0 && (opts = {});
  68734. var onResize = opts.onResize, onResizeRef = (0, import_react109.useRef)(void 0);
  68735. onResizeRef.current = onResize;
  68736. var round3 = opts.round || Math.round, resizeObserverRef = (0, import_react109.useRef)(), _useState = (0, import_react109.useState)({
  68737. width: void 0,
  68738. height: void 0
  68739. }), size = _useState[0], setSize = _useState[1], didUnmount = (0, import_react109.useRef)(!1);
  68740. (0, import_react109.useEffect)(function() {
  68741. return didUnmount.current = !1, function() {
  68742. didUnmount.current = !0;
  68743. };
  68744. }, []);
  68745. var previous = (0, import_react109.useRef)({
  68746. width: void 0,
  68747. height: void 0
  68748. }), refCallback = useResolvedElement((0, import_react109.useCallback)(function(element) {
  68749. return (!resizeObserverRef.current || resizeObserverRef.current.box !== opts.box || resizeObserverRef.current.round !== round3) && (resizeObserverRef.current = {
  68750. box: opts.box,
  68751. round: round3,
  68752. instance: new ResizeObserver(function(entries) {
  68753. var entry = entries[0], boxProp = opts.box === "border-box" ? "borderBoxSize" : opts.box === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize", reportedWidth = extractSize(entry, boxProp, "inlineSize"), reportedHeight = extractSize(entry, boxProp, "blockSize"), newWidth = reportedWidth ? round3(reportedWidth) : void 0, newHeight = reportedHeight ? round3(reportedHeight) : void 0;
  68754. if (previous.current.width !== newWidth || previous.current.height !== newHeight) {
  68755. var newSize = {
  68756. width: newWidth,
  68757. height: newHeight
  68758. };
  68759. previous.current.width = newWidth, previous.current.height = newHeight, onResizeRef.current ? onResizeRef.current(newSize) : didUnmount.current || setSize(newSize);
  68760. }
  68761. })
  68762. }), resizeObserverRef.current.instance.observe(element, {
  68763. box: opts.box
  68764. }), function() {
  68765. resizeObserverRef.current && resizeObserverRef.current.instance.unobserve(element);
  68766. };
  68767. }, [opts.box, round3]), opts.ref);
  68768. return (0, import_react109.useMemo)(function() {
  68769. return {
  68770. ref: refCallback,
  68771. width: size.width,
  68772. height: size.height
  68773. };
  68774. }, [refCallback, size.width, size.height]);
  68775. }
  68776. // src/components/components/Zoom/ZoomElement.tsx
  68777. var ZoomElementWrapper = styled.div(
  68778. ({ centered = !1, scale = 1, elementHeight }) => ({
  68779. height: elementHeight || "auto",
  68780. transformOrigin: centered ? "center top" : "left top",
  68781. transform: `scale(${1 / scale})`
  68782. })
  68783. );
  68784. function ZoomElement({ centered, scale, children }) {
  68785. let componentWrapperRef = (0, import_react110.useRef)(null), [elementHeight, setElementHeight] = (0, import_react110.useState)(0), onResize = (0, import_react110.useCallback)(
  68786. ({ height }) => {
  68787. height && setElementHeight(height / scale);
  68788. },
  68789. [scale]
  68790. );
  68791. return (0, import_react110.useEffect)(() => {
  68792. componentWrapperRef.current && setElementHeight(componentWrapperRef.current.getBoundingClientRect().height);
  68793. }, [scale]), useResizeObserver2({
  68794. ref: componentWrapperRef,
  68795. onResize
  68796. }), import_react110.default.createElement(ZoomElementWrapper, { centered, scale, elementHeight }, import_react110.default.createElement("div", { ref: componentWrapperRef, className: "innerZoomElementWrapper" }, children));
  68797. }
  68798. // src/components/components/Zoom/ZoomIFrame.tsx
  68799. var import_react111 = __toESM(require_react(), 1), ZoomIFrame = class extends import_react111.Component {
  68800. constructor() {
  68801. super(...arguments);
  68802. // @ts-expect-error (non strict)
  68803. this.iframe = null;
  68804. }
  68805. componentDidMount() {
  68806. let { iFrameRef } = this.props;
  68807. this.iframe = iFrameRef.current;
  68808. }
  68809. shouldComponentUpdate(nextProps) {
  68810. let { scale, active } = this.props;
  68811. return scale !== nextProps.scale && this.setIframeInnerZoom(nextProps.scale), active !== nextProps.active && this.iframe.setAttribute("data-is-storybook", nextProps.active ? "true" : "false"), nextProps.children.props.src !== this.props.children.props.src;
  68812. }
  68813. setIframeInnerZoom(scale) {
  68814. try {
  68815. Object.assign(this.iframe.contentDocument.body.style, {
  68816. width: `${1 / scale * 100}%`,
  68817. height: `${1 / scale * 100}%`,
  68818. transform: `scale(${scale})`,
  68819. transformOrigin: "top left"
  68820. });
  68821. } catch {
  68822. this.setIframeZoom(scale);
  68823. }
  68824. }
  68825. setIframeZoom(scale) {
  68826. Object.assign(this.iframe.style, {
  68827. width: `${1 / scale * 100}%`,
  68828. height: `${1 / scale * 100}%`,
  68829. transform: `scale(${scale})`,
  68830. transformOrigin: "top left"
  68831. });
  68832. }
  68833. render() {
  68834. let { children } = this.props;
  68835. return import_react111.default.createElement(import_react111.default.Fragment, null, children);
  68836. }
  68837. };
  68838. // src/components/components/Zoom/Zoom.tsx
  68839. var Zoom = {
  68840. Element: ZoomElement,
  68841. IFrame: ZoomIFrame
  68842. };
  68843. // src/components/components/ErrorFormatter/ErrorFormatter.tsx
  68844. var import_react112 = __toESM(require_react(), 1);
  68845. init_dist();
  68846. init_theming();
  68847. var { document: document11 } = scope, ErrorName = styled.strong(({ theme: theme3 }) => ({
  68848. color: theme3.color.orange
  68849. })), ErrorImportant = styled.strong(({ theme: theme3 }) => ({
  68850. color: theme3.color.ancillary,
  68851. textDecoration: "underline"
  68852. })), ErrorDetail = styled.em(({ theme: theme3 }) => ({
  68853. color: theme3.textMutedColor
  68854. })), firstLineRegex = /(Error): (.*)\n/, linesRegexChromium = /at (?:(.*) )?\(?(.+)\)?/, linesRegexFirefox = /([^@]+)?(?:\/<)?@(.+)?/, linesRegexSafari = /([^@]+)?@(.+)?/, ErrorFormatter = ({ error }) => {
  68855. if (!error)
  68856. return import_react112.default.createElement(import_react112.Fragment, null, "This error has no stack or message");
  68857. if (!error.stack)
  68858. return import_react112.default.createElement(import_react112.Fragment, null, error.message || "This error has no stack or message");
  68859. let input2 = error.stack.toString();
  68860. input2 && error.message && !input2.includes(error.message) && (input2 = `Error: ${error.message}
  68861. ${input2}`);
  68862. let match3 = input2.match(firstLineRegex);
  68863. if (!match3)
  68864. return import_react112.default.createElement(import_react112.Fragment, null, input2);
  68865. let [, type5, name] = match3, rawLines = input2.split(/\n/).slice(1), [, ...lines] = rawLines.map((line2) => {
  68866. let result = line2.match(linesRegexChromium) || line2.match(linesRegexFirefox) || line2.match(linesRegexSafari);
  68867. return result ? {
  68868. name: (result[1] || "").replace("/<", ""),
  68869. location: result[2].replace(document11.location.origin, "")
  68870. } : null;
  68871. }).filter(Boolean);
  68872. return import_react112.default.createElement(import_react112.Fragment, null, import_react112.default.createElement("span", null, type5), ": ", import_react112.default.createElement(ErrorName, null, name), import_react112.default.createElement("br", null), lines.map(
  68873. (l, i) => l?.name ? import_react112.default.createElement(import_react112.Fragment, { key: i }, " ", "at ", import_react112.default.createElement(ErrorImportant, null, l.name), " (", import_react112.default.createElement(ErrorDetail, null, l.location), ")", import_react112.default.createElement("br", null)) : import_react112.default.createElement(import_react112.Fragment, { key: i }, " ", "at ", import_react112.default.createElement(ErrorDetail, null, l?.location), import_react112.default.createElement("br", null))
  68874. ));
  68875. };
  68876. // src/components/components/Select/Select.tsx
  68877. var import_react125 = __toESM(require_react(), 1);
  68878. init_polished_esm();
  68879. init_theming();
  68880. // src/components/components/Form/Form.tsx
  68881. init_theming();
  68882. // src/components/components/Form/Checkbox.tsx
  68883. var import_react113 = __toESM(require_react(), 1);
  68884. init_theming();
  68885. var Input = styled.input(({ theme: theme3 }) => ({
  68886. appearance: "none",
  68887. backgroundColor: theme3.input.background,
  68888. border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
  68889. borderRadius: 2,
  68890. display: "grid",
  68891. flexShrink: 0,
  68892. height: 14,
  68893. margin: 0,
  68894. placeContent: "center",
  68895. transition: "background-color 0.1s",
  68896. width: 14,
  68897. "&:enabled": {
  68898. cursor: "pointer"
  68899. },
  68900. "&:disabled": {
  68901. backgroundColor: "transparent",
  68902. borderColor: theme3.input.border
  68903. },
  68904. "&:disabled:checked, &:disabled:indeterminate": {
  68905. backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark
  68906. },
  68907. "&:checked, &:indeterminate": {
  68908. border: "none",
  68909. backgroundColor: color.secondary
  68910. },
  68911. "&:checked::before": {
  68912. content: '""',
  68913. width: 14,
  68914. height: 14,
  68915. background: `no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`
  68916. },
  68917. "&:indeterminate::before": {
  68918. content: '""',
  68919. width: 8,
  68920. height: 2,
  68921. background: "white"
  68922. },
  68923. "&:enabled:focus-visible": {
  68924. outline: `2px solid ${theme3.color.secondary}`,
  68925. outlineOffset: 2
  68926. }
  68927. })), Checkbox = (props) => import_react113.default.createElement(Input, { ...props, type: "checkbox" });
  68928. // src/components/components/Form/Field.tsx
  68929. var import_react114 = __toESM(require_react(), 1);
  68930. init_theming();
  68931. var Wrapper2 = styled.label(({ theme: theme3 }) => ({
  68932. display: "flex",
  68933. borderBottom: `1px solid ${theme3.appBorderColor}`,
  68934. margin: "0 15px",
  68935. padding: "8px 0",
  68936. "&:last-child": {
  68937. marginBottom: "3rem"
  68938. }
  68939. })), Label = styled.span(({ theme: theme3 }) => ({
  68940. minWidth: 100,
  68941. fontWeight: theme3.typography.weight.bold,
  68942. marginRight: 15,
  68943. display: "flex",
  68944. justifyContent: "flex-start",
  68945. alignItems: "center",
  68946. lineHeight: "16px"
  68947. })), Field = ({ label, children, ...props }) => import_react114.default.createElement(Wrapper2, { ...props }, label ? import_react114.default.createElement(Label, null, import_react114.default.createElement("span", null, label)) : null, children);
  68948. // src/components/components/Form/Input.tsx
  68949. var import_react115 = __toESM(require_react(), 1), import_react116 = __toESM(require_react(), 1);
  68950. init_theming();
  68951. // src/components/components/Form/styles.ts
  68952. var sizes = (({ size }) => {
  68953. switch (size) {
  68954. case "100%":
  68955. return { width: "100%" };
  68956. case "flex":
  68957. return { flex: 1 };
  68958. default:
  68959. return { display: "inline" };
  68960. }
  68961. }), alignment = (({
  68962. align: align2
  68963. }) => {
  68964. switch (align2) {
  68965. case "end":
  68966. return { textAlign: "right" };
  68967. case "center":
  68968. return { textAlign: "center" };
  68969. default:
  68970. return { textAlign: "left" };
  68971. }
  68972. }), validation = (({
  68973. valid,
  68974. theme: theme3
  68975. }) => {
  68976. switch (valid) {
  68977. case "valid":
  68978. return { boxShadow: `${theme3.color.positive} 0 0 0 1px inset !important` };
  68979. case "error":
  68980. return { boxShadow: `${theme3.color.negative} 0 0 0 1px inset !important` };
  68981. case "warn":
  68982. return {
  68983. boxShadow: `${theme3.color.warning} 0 0 0 1px inset`
  68984. };
  68985. default:
  68986. return {};
  68987. }
  68988. }), styleResets = {
  68989. // resets
  68990. appearance: "none",
  68991. border: "0 none",
  68992. boxSizing: "inherit",
  68993. display: "block",
  68994. margin: " 0",
  68995. background: "transparent",
  68996. padding: 0,
  68997. fontSize: "inherit",
  68998. position: "relative"
  68999. }, styles3 = (({ theme: theme3 }) => ({
  69000. ...styleResets,
  69001. transition: "box-shadow 200ms ease-out, opacity 200ms ease-out",
  69002. color: theme3.input.color || "inherit",
  69003. background: theme3.input.background,
  69004. boxShadow: `${theme3.input.border} 0 0 0 1px inset`,
  69005. borderRadius: theme3.input.borderRadius,
  69006. fontSize: theme3.typography.size.s2 - 1,
  69007. lineHeight: "20px",
  69008. padding: "6px 10px",
  69009. // 32
  69010. boxSizing: "border-box",
  69011. height: 32,
  69012. '&[type="file"]': {
  69013. height: "auto"
  69014. },
  69015. "&:focus": {
  69016. boxShadow: `${theme3.color.secondary} 0 0 0 1px inset`,
  69017. outline: "none",
  69018. "@media (forced-colors: active)": {
  69019. outline: "1px solid highlight"
  69020. }
  69021. },
  69022. '&[disabled], &[aria-disabled="true"]': {
  69023. background: theme3.base === "light" ? theme3.color.lighter : "transparent",
  69024. cursor: "not-allowed"
  69025. },
  69026. "&:-webkit-autofill": { WebkitBoxShadow: `0 0 0 3em ${theme3.color.lightest} inset` },
  69027. "&::placeholder": {
  69028. color: theme3.textMutedColor,
  69029. opacity: 1
  69030. }
  69031. }));
  69032. // src/components/components/Form/Input.tsx
  69033. var Wrapper3 = styled.div({
  69034. position: "relative",
  69035. width: "100%"
  69036. }), Mask = styled.div(
  69037. ({ theme: theme3 }) => ({
  69038. position: "absolute",
  69039. left: 0,
  69040. right: 0,
  69041. top: 0,
  69042. bottom: 0,
  69043. display: "flex",
  69044. alignItems: "center",
  69045. pointerEvents: "none",
  69046. overflow: "hidden",
  69047. color: theme3.textMutedColor,
  69048. "span:first-of-type": {
  69049. opacity: 0
  69050. }
  69051. }),
  69052. (props) => {
  69053. let { fontSize, lineHeight, padding } = styles3(props);
  69054. return { fontSize, lineHeight, padding };
  69055. }
  69056. ), Input2 = Object.assign(
  69057. styled(
  69058. (0, import_react116.forwardRef)(function({ size, valid, align: align2, value, suffix, ...props }, ref) {
  69059. let suffixId = $bdb11010cef70236$export$f680877a34711e37();
  69060. return import_react115.default.createElement(Wrapper3, null, import_react115.default.createElement(
  69061. "input",
  69062. {
  69063. ...props,
  69064. value,
  69065. ref,
  69066. "aria-describedby": suffix ? suffixId : void 0
  69067. }
  69068. ), suffix && import_react115.default.createElement(Mask, { "aria-hidden": !0 }, import_react115.default.createElement("span", null, value), import_react115.default.createElement("span", { id: suffixId }, suffix)));
  69069. })
  69070. )(styles3, sizes, alignment, validation, {
  69071. minHeight: 32,
  69072. width: "100%"
  69073. }),
  69074. {
  69075. displayName: "Input"
  69076. }
  69077. );
  69078. // src/components/components/Form/Radio.tsx
  69079. var import_react117 = __toESM(require_react(), 1);
  69080. init_theming();
  69081. var Input4 = styled.input(({ theme: theme3 }) => ({
  69082. appearance: "none",
  69083. backgroundColor: theme3.input.background,
  69084. border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
  69085. borderRadius: 8,
  69086. display: "grid",
  69087. flexShrink: 0,
  69088. height: 16,
  69089. margin: -1,
  69090. placeContent: "center",
  69091. transition: "background-color 0.1s",
  69092. width: 16,
  69093. "&:enabled": {
  69094. cursor: "pointer"
  69095. },
  69096. "&:disabled": {
  69097. backgroundColor: "transparent",
  69098. borderColor: theme3.input.border
  69099. },
  69100. "&:disabled:checked": {
  69101. backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark,
  69102. borderColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark
  69103. },
  69104. "&:checked": {
  69105. backgroundColor: color.secondary,
  69106. borderColor: color.secondary,
  69107. boxShadow: `inset 0 0 0 2px ${theme3.input.background}`
  69108. },
  69109. "&:enabled:focus-visible": {
  69110. outline: `2px solid ${theme3.color.secondary}`,
  69111. outlineOffset: 2
  69112. }
  69113. })), Radio = (props) => import_react117.default.createElement(Input4, { ...props, type: "radio" });
  69114. // src/components/components/Form/Select.tsx
  69115. var import_react118 = __toESM(require_react(), 1);
  69116. init_theming();
  69117. var BaseSelect = styled.select(sizes, ({ theme: theme3 }) => ({
  69118. appearance: "none",
  69119. background: `calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,
  69120. backgroundSize: 10,
  69121. padding: "6px 30px 6px 10px",
  69122. "@supports (appearance: base-select)": {
  69123. appearance: "base-select",
  69124. background: theme3.input.background,
  69125. padding: "6px 10px"
  69126. },
  69127. transition: "box-shadow 200ms ease-out, opacity 200ms ease-out",
  69128. color: theme3.input.color || "inherit",
  69129. boxShadow: `${theme3.input.border} 0 0 0 1px inset`,
  69130. borderRadius: theme3.input.borderRadius,
  69131. fontSize: theme3.typography.size.s2 - 1,
  69132. lineHeight: "20px",
  69133. boxSizing: "border-box",
  69134. border: "none",
  69135. cursor: "pointer",
  69136. "& > button": {
  69137. display: "flex",
  69138. alignItems: "center",
  69139. justifyContent: "space-between",
  69140. width: "100%",
  69141. gap: 8,
  69142. "& > svg": {
  69143. width: 14,
  69144. height: 14,
  69145. color: theme3.textMutedColor
  69146. }
  69147. },
  69148. "&:has(option:not([hidden]):checked)": {
  69149. color: theme3.color.defaultText
  69150. },
  69151. "&:focus-visible, &:focus-within": {
  69152. outline: "none",
  69153. boxShadow: `${theme3.color.secondary} 0 0 0 1px inset`
  69154. },
  69155. "&::picker-icon": {
  69156. display: "none"
  69157. },
  69158. "&::picker(select)": {
  69159. appearance: "base-select",
  69160. border: `1px solid ${theme3.input.border}`,
  69161. padding: 4,
  69162. marginTop: 4,
  69163. background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  69164. filter: `
  69165. drop-shadow(0 5px 5px rgba(0,0,0,0.05))
  69166. drop-shadow(0 0 3px rgba(0,0,0,0.1))
  69167. `,
  69168. borderRadius: theme3.appBorderRadius + 2,
  69169. fontSize: theme3.typography.size.s1,
  69170. cursor: "default",
  69171. transition: "opacity 100ms ease-in-out, transform 100ms ease-in-out",
  69172. transformOrigin: "top",
  69173. transform: "translateY(0)",
  69174. opacity: 1,
  69175. "@starting-style": {
  69176. transform: "translateY(-0.25rem) scale(0.95)",
  69177. opacity: 0
  69178. }
  69179. },
  69180. "& optgroup label": {
  69181. display: "block",
  69182. padding: "3px 6px"
  69183. },
  69184. "& option": {
  69185. lineHeight: "18px",
  69186. padding: "7px 10px",
  69187. borderRadius: 4,
  69188. outline: "none",
  69189. cursor: "pointer",
  69190. color: theme3.color.defaultText,
  69191. "&::checkmark": {
  69192. display: "none"
  69193. },
  69194. "&:hover, &:focus-visible": {
  69195. backgroundColor: theme3.background.hoverable
  69196. },
  69197. "&:checked": {
  69198. color: theme3.color.secondary,
  69199. fontWeight: theme3.typography.weight.bold
  69200. },
  69201. "&:disabled": {
  69202. backgroundColor: "transparent",
  69203. cursor: "default",
  69204. color: theme3.color.defaultText
  69205. }
  69206. }
  69207. })), Select = ({ children, ...props }) => (
  69208. // @ts-expect-error Weird props mismatch
  69209. import_react118.default.createElement(BaseSelect, { ...props }, !isTestEnvironment() && import_react118.default.createElement("button", null, import_react118.default.createElement("selectedcontent", null), import_react118.default.createElement(
  69210. "svg",
  69211. {
  69212. xmlns: "http://www.w3.org/2000/svg",
  69213. viewBox: "0 0 24 24",
  69214. fill: "none",
  69215. stroke: "currentColor",
  69216. strokeWidth: "2",
  69217. strokeLinecap: "round",
  69218. strokeLinejoin: "round",
  69219. "aria-hidden": "true"
  69220. },
  69221. import_react118.default.createElement("path", { d: "m6 9 6 6 6-6" })
  69222. )), import_react118.default.createElement("optgroup", null, children))
  69223. );
  69224. // src/components/components/Form/Textarea.tsx
  69225. var import_react122 = __toESM(require_react(), 1);
  69226. // ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js
  69227. init_extends();
  69228. init_objectWithoutPropertiesLoose();
  69229. var React60 = __toESM(require_react());
  69230. // ../../node_modules/use-latest/dist/use-latest.esm.js
  69231. var import_react120 = __toESM(require_react());
  69232. // ../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js
  69233. var import_react119 = __toESM(require_react()), index2 = import_react119.useLayoutEffect;
  69234. // ../../node_modules/use-latest/dist/use-latest.esm.js
  69235. var useLatest = function(value) {
  69236. var ref = import_react120.default.useRef(value);
  69237. return index2(function() {
  69238. ref.current = value;
  69239. }), ref;
  69240. };
  69241. // ../../node_modules/use-composed-ref/dist/use-composed-ref.esm.js
  69242. var import_react121 = __toESM(require_react()), updateRef = function(ref, value) {
  69243. if (typeof ref == "function") {
  69244. ref(value);
  69245. return;
  69246. }
  69247. ref.current = value;
  69248. }, useComposedRef = function(libRef, userRef) {
  69249. var prevUserRef = import_react121.default.useRef();
  69250. return import_react121.default.useCallback(function(instance) {
  69251. libRef.current = instance, prevUserRef.current && updateRef(prevUserRef.current, null), prevUserRef.current = userRef, userRef && updateRef(userRef, instance);
  69252. }, [userRef]);
  69253. };
  69254. // ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js
  69255. var HIDDEN_TEXTAREA_STYLE = {
  69256. "min-height": "0",
  69257. "max-height": "none",
  69258. height: "0",
  69259. visibility: "hidden",
  69260. overflow: "hidden",
  69261. position: "absolute",
  69262. "z-index": "-1000",
  69263. top: "0",
  69264. right: "0",
  69265. display: "block"
  69266. }, forceHiddenStyles = function(node2) {
  69267. Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {
  69268. node2.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important");
  69269. });
  69270. }, forceHiddenStyles$1 = forceHiddenStyles, hiddenTextarea = null, getHeight = function(node2, sizingData) {
  69271. var height = node2.scrollHeight;
  69272. return sizingData.sizingStyle.boxSizing === "border-box" ? height + sizingData.borderSize : height - sizingData.paddingSize;
  69273. };
  69274. function calculateNodeHeight(sizingData, value, minRows, maxRows) {
  69275. minRows === void 0 && (minRows = 1), maxRows === void 0 && (maxRows = 1 / 0), hiddenTextarea || (hiddenTextarea = document.createElement("textarea"), hiddenTextarea.setAttribute("tabindex", "-1"), hiddenTextarea.setAttribute("aria-hidden", "true"), forceHiddenStyles$1(hiddenTextarea)), hiddenTextarea.parentNode === null && document.body.appendChild(hiddenTextarea);
  69276. var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle, boxSizing = sizingStyle.boxSizing;
  69277. Object.keys(sizingStyle).forEach(function(_key) {
  69278. var key = _key;
  69279. hiddenTextarea.style[key] = sizingStyle[key];
  69280. }), forceHiddenStyles$1(hiddenTextarea), hiddenTextarea.value = value;
  69281. var height = getHeight(hiddenTextarea, sizingData);
  69282. hiddenTextarea.value = value, height = getHeight(hiddenTextarea, sizingData), hiddenTextarea.value = "x";
  69283. var rowHeight = hiddenTextarea.scrollHeight - paddingSize, minHeight = rowHeight * minRows;
  69284. boxSizing === "border-box" && (minHeight = minHeight + paddingSize + borderSize), height = Math.max(minHeight, height);
  69285. var maxHeight = rowHeight * maxRows;
  69286. return boxSizing === "border-box" && (maxHeight = maxHeight + paddingSize + borderSize), height = Math.min(maxHeight, height), [height, rowHeight];
  69287. }
  69288. var noop3 = function() {
  69289. }, pick2 = function(props, obj) {
  69290. return props.reduce(function(acc, prop) {
  69291. return acc[prop] = obj[prop], acc;
  69292. }, {});
  69293. }, SIZING_STYLE = [
  69294. "borderBottomWidth",
  69295. "borderLeftWidth",
  69296. "borderRightWidth",
  69297. "borderTopWidth",
  69298. "boxSizing",
  69299. "fontFamily",
  69300. "fontSize",
  69301. "fontStyle",
  69302. "fontWeight",
  69303. "letterSpacing",
  69304. "lineHeight",
  69305. "paddingBottom",
  69306. "paddingLeft",
  69307. "paddingRight",
  69308. "paddingTop",
  69309. // non-standard
  69310. "tabSize",
  69311. "textIndent",
  69312. // non-standard
  69313. "textRendering",
  69314. "textTransform",
  69315. "width",
  69316. "wordBreak",
  69317. "wordSpacing",
  69318. "scrollbarGutter"
  69319. ], isIE = !!document.documentElement.currentStyle, getSizingData = function(node2) {
  69320. var style = window.getComputedStyle(node2);
  69321. if (style === null)
  69322. return null;
  69323. var sizingStyle = pick2(SIZING_STYLE, style), boxSizing = sizingStyle.boxSizing;
  69324. if (boxSizing === "")
  69325. return null;
  69326. isIE && boxSizing === "border-box" && (sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px");
  69327. var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop), borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);
  69328. return {
  69329. sizingStyle,
  69330. paddingSize,
  69331. borderSize
  69332. };
  69333. }, getSizingData$1 = getSizingData;
  69334. function useListener(target, type5, listener) {
  69335. var latestListener = useLatest(listener);
  69336. React60.useLayoutEffect(function() {
  69337. var handler = function(ev) {
  69338. return latestListener.current(ev);
  69339. };
  69340. if (target)
  69341. return target.addEventListener(type5, handler), function() {
  69342. return target.removeEventListener(type5, handler);
  69343. };
  69344. }, []);
  69345. }
  69346. var useFormResetListener = function(libRef, listener) {
  69347. useListener(document.body, "reset", function(ev) {
  69348. libRef.current.form === ev.target && listener(ev);
  69349. });
  69350. }, useWindowResizeListener = function(listener) {
  69351. useListener(window, "resize", listener);
  69352. }, useFontsLoadedListener = function(listener) {
  69353. useListener(document.fonts, "loadingdone", listener);
  69354. }, _excluded4 = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], TextareaAutosize = function(_ref, userRef) {
  69355. var cacheMeasurements = _ref.cacheMeasurements, maxRows = _ref.maxRows, minRows = _ref.minRows, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop3 : _ref$onChange, _ref$onHeightChange = _ref.onHeightChange, onHeightChange = _ref$onHeightChange === void 0 ? noop3 : _ref$onHeightChange, props = _objectWithoutPropertiesLoose(_ref, _excluded4), isControlled = props.value !== void 0, libRef = React60.useRef(null), ref = useComposedRef(libRef, userRef), heightRef = React60.useRef(0), measurementsCacheRef = React60.useRef(), resizeTextarea = function() {
  69356. var node2 = libRef.current, nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node2);
  69357. if (nodeSizingData) {
  69358. measurementsCacheRef.current = nodeSizingData;
  69359. var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node2.value || node2.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];
  69360. heightRef.current !== height && (heightRef.current = height, node2.style.setProperty("height", height + "px", "important"), onHeightChange(height, {
  69361. rowHeight
  69362. }));
  69363. }
  69364. }, handleChange = function(event) {
  69365. isControlled || resizeTextarea(), onChange(event);
  69366. };
  69367. return React60.useLayoutEffect(resizeTextarea), useFormResetListener(libRef, function() {
  69368. if (!isControlled) {
  69369. var currentValue = libRef.current.value;
  69370. requestAnimationFrame(function() {
  69371. var node2 = libRef.current;
  69372. node2 && currentValue !== node2.value && resizeTextarea();
  69373. });
  69374. }
  69375. }), useWindowResizeListener(resizeTextarea), useFontsLoadedListener(resizeTextarea), React60.createElement("textarea", _extends({}, props, {
  69376. onChange: handleChange,
  69377. ref
  69378. }));
  69379. }, index3 = React60.forwardRef(TextareaAutosize);
  69380. // src/components/components/Form/Textarea.tsx
  69381. init_theming();
  69382. var Textarea = Object.assign(
  69383. styled(
  69384. (0, import_react122.forwardRef)(function({ size, valid, align: align2, ...props }, ref) {
  69385. return import_react122.default.createElement(index3, { ...props, ref });
  69386. })
  69387. )(styles3, sizes, alignment, validation, ({ height = 400 }) => ({
  69388. overflow: "visible",
  69389. maxHeight: height
  69390. })),
  69391. {
  69392. displayName: "Textarea"
  69393. }
  69394. );
  69395. // src/components/components/Form/Form.tsx
  69396. var Form2 = Object.assign(
  69397. styled.form({
  69398. boxSizing: "border-box",
  69399. width: "100%"
  69400. }),
  69401. {
  69402. Field,
  69403. Input: Input2,
  69404. Select,
  69405. Textarea,
  69406. Button,
  69407. Checkbox,
  69408. Radio
  69409. }
  69410. );
  69411. // src/components/components/Popover/Popover.tsx
  69412. var import_react123 = __toESM(require_react(), 1);
  69413. init_theming();
  69414. var Wrapper4 = styled.div(
  69415. ({ hasCloseButton, padding }) => ({
  69416. display: "inline-block",
  69417. position: "relative",
  69418. minHeight: hasCloseButton ? 36 : void 0,
  69419. zIndex: 2147483647,
  69420. colorScheme: "light dark",
  69421. padding
  69422. }),
  69423. ({ theme: theme3, hasChrome }) => hasChrome ? {
  69424. filter: `
  69425. drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
  69426. drop-shadow(0 1px 3px rgba(0,0,0,0.1))
  69427. `,
  69428. borderRadius: theme3.appBorderRadius + 2,
  69429. fontSize: theme3.typography.size.s1
  69430. } : {},
  69431. ({ theme: theme3, bgColor }) => bgColor === "default" && {
  69432. background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  69433. color: theme3.color.defaultText
  69434. },
  69435. ({ theme: theme3, bgColor }) => bgColor === "inverse" && {
  69436. background: theme3.base === "light" ? theme3.color.darkest : theme3.color.lightest,
  69437. color: theme3.color.inverseText
  69438. },
  69439. ({ theme: theme3, bgColor }) => (bgColor === "positive" || bgColor === "negative" || bgColor === "warning") && {
  69440. background: theme3.background[bgColor],
  69441. color: theme3.color[`${bgColor}Text`]
  69442. }
  69443. ), AbsoluteButton = styled(Button)({
  69444. position: "absolute",
  69445. top: 4,
  69446. right: 4
  69447. }), Popover = (0, import_react123.forwardRef)(
  69448. ({
  69449. children,
  69450. color: color2 = "default",
  69451. hasChrome = !0,
  69452. hideLabel = "Close",
  69453. onHide,
  69454. padding = 8,
  69455. ...props
  69456. }, ref) => import_react123.default.createElement(
  69457. Wrapper4,
  69458. {
  69459. bgColor: color2,
  69460. hasChrome,
  69461. hasCloseButton: !!onHide,
  69462. padding,
  69463. ref,
  69464. ...props
  69465. },
  69466. children,
  69467. onHide && import_react123.default.createElement(
  69468. AbsoluteButton,
  69469. {
  69470. ariaLabel: hideLabel,
  69471. onClick: onHide,
  69472. padding: "small",
  69473. variant: "ghost",
  69474. size: "small"
  69475. },
  69476. import_react123.default.createElement(CloseIcon, null)
  69477. )
  69478. )
  69479. );
  69480. Popover.displayName = "Popover";
  69481. // src/components/components/Select/SelectOption.tsx
  69482. var import_react124 = __toESM(require_react(), 1);
  69483. var SelectOption = ({
  69484. id,
  69485. title,
  69486. description,
  69487. icon,
  69488. aside,
  69489. children,
  69490. isSelected,
  69491. isActive,
  69492. onClick,
  69493. onFocus,
  69494. onKeyDown,
  69495. shouldLookDisabled = !1,
  69496. ...props
  69497. }) => import_react124.default.createElement(
  69498. ActionList.Item,
  69499. {
  69500. ...props,
  69501. id,
  69502. role: "option",
  69503. tabIndex: isActive ? 0 : -1,
  69504. "aria-selected": isSelected,
  69505. "aria-disabled": shouldLookDisabled ? !0 : void 0,
  69506. onClick,
  69507. onFocus,
  69508. onKeyDown
  69509. },
  69510. children ?? import_react124.default.createElement(import_react124.default.Fragment, null, icon && import_react124.default.createElement(ActionList.Icon, null, icon), import_react124.default.createElement(ActionList.Text, null, import_react124.default.createElement("p", null, title), description && import_react124.default.createElement("small", null, description)), aside)
  69511. );
  69512. SelectOption.displayName = "SelectOption";
  69513. // src/components/components/Select/helpers.tsx
  69514. init_theming();
  69515. var PAGE_STEP_SIZE = 5, UNDEFINED_VALUE = /* @__PURE__ */ Symbol.for("undefined");
  69516. function isLiteralValue(value) {
  69517. return value == null || typeof value == "string" || typeof value == "number" || typeof value == "boolean" || typeof value == "symbol";
  69518. }
  69519. function optionToInternal(option) {
  69520. return {
  69521. ...option,
  69522. type: "option",
  69523. value: externalToValue(option.value)
  69524. };
  69525. }
  69526. function optionOrResetToInternal(option) {
  69527. return "type" in option && option.type === "reset" ? option : optionToInternal(option);
  69528. }
  69529. function valueToExternal(value) {
  69530. if (value !== UNDEFINED_VALUE)
  69531. return value;
  69532. }
  69533. function externalToValue(value) {
  69534. return value === void 0 ? UNDEFINED_VALUE : value;
  69535. }
  69536. var Listbox = styled("ul")({
  69537. minWidth: 180,
  69538. height: "100%",
  69539. borderRadius: 6,
  69540. overflow: "hidden auto",
  69541. listStyle: "none",
  69542. margin: 0,
  69543. padding: 4
  69544. });
  69545. // src/components/components/Select/Select.tsx
  69546. function valueToId(parentId, { value }) {
  69547. return `${parentId}-opt-${String(value) ?? "sb-reset"}`;
  69548. }
  69549. var SelectedOptionCount = styled.span(({ theme: theme3 }) => ({
  69550. appearance: "none",
  69551. color: theme3.textMutedColor,
  69552. fontSize: 12
  69553. }));
  69554. function setSelectedFromDefault(options, defaultOptions2) {
  69555. return defaultOptions2 === void 0 ? [] : isLiteralValue(defaultOptions2) ? options.filter((opt) => opt.value === defaultOptions2).map(optionToInternal) : options.filter((opt) => defaultOptions2.some((def) => opt.value === def)).map(optionToInternal);
  69556. }
  69557. var StyledButton3 = styled(Button)(
  69558. ({ $isOpen: isOpen, $hasSelection: hasSelection, theme: theme3 }) => isOpen || hasSelection ? {
  69559. boxShadow: "none",
  69560. background: curriedTransparentize$1(0.93, theme3.barSelectedColor),
  69561. color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary
  69562. } : {}
  69563. ), Underlay = styled.div({
  69564. position: "fixed",
  69565. inset: 0,
  69566. // This will do for now, our popovers use the max z-index of 2147483647. We'll want to
  69567. // inherit a base from a CSS variable and add preset values to it in the future (e.g.
  69568. // 100 for underlay, 200 for overlay) if we start using Select in dialogs.
  69569. zIndex: 1e3
  69570. }), MinimalistPopover = ({ children, handleClose, triggerRef }) => {
  69571. let popoverRef = import_react125.default.useRef(null);
  69572. $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
  69573. ref: popoverRef,
  69574. onInteractOutside: handleClose
  69575. }), (0, import_react125.useEffect)(() => {
  69576. if (popoverRef.current)
  69577. return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 });
  69578. }, []);
  69579. let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
  69580. targetRef: triggerRef,
  69581. overlayRef: popoverRef,
  69582. placement: "bottom start",
  69583. offset: 8,
  69584. maxHeight: 504,
  69585. isOpen: !0
  69586. }), { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(
  69587. {
  69588. isOpen: !0,
  69589. onClose: handleClose,
  69590. isDismissable: !0,
  69591. /* We do this ourselves. */
  69592. shouldCloseOnBlur: !1,
  69593. /* We also do this ourselves. */
  69594. isKeyboardDismissDisabled: !0
  69595. },
  69596. popoverRef
  69597. ), theme3 = useTheme();
  69598. return positionProps.style = {
  69599. ...positionProps.style,
  69600. overflow: "hidden auto",
  69601. scrollbarColor: `${theme3.barTextColor} transparent`,
  69602. scrollbarWidth: "thin"
  69603. }, import_react125.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { disableFocusManagement: !0, ...overlayProps }, import_react125.default.createElement(Underlay, { ...underlayProps }), import_react125.default.createElement(Popover, { hasChrome: !0, ref: popoverRef, padding: 0, ...positionProps }, children));
  69604. }, Select2 = (0, import_react125.forwardRef)(
  69605. ({
  69606. children,
  69607. icon,
  69608. disabled = !1,
  69609. options: calleeOptions,
  69610. defaultOptions: defaultOptions2,
  69611. multiSelect = !1,
  69612. onReset,
  69613. padding = "small",
  69614. resetLabel,
  69615. onSelect,
  69616. onDeselect,
  69617. onChange,
  69618. tooltip,
  69619. ariaLabel,
  69620. showSelectedOptionTitle = !0,
  69621. ...props
  69622. }, ref) => {
  69623. let [isOpen, setIsOpen] = (0, import_react125.useState)(props.defaultOpen || !1), [shouldRefocusTrigger, setShouldRefocusTrigger] = (0, import_react125.useState)(!1), triggerRef = $df56164dff5785e2$export$4338b53315abf666(ref), id = (0, import_react125.useMemo)(() => "select-" + Math.random().toString(36).substring(2, 15), []), listboxId = `${id}-listbox`, listboxRef = (0, import_react125.useRef)(null), otState = $fc909762b330b746$export$61c6a8c84e605fb6({
  69624. isOpen: isOpen && !disabled,
  69625. onOpenChange: setIsOpen
  69626. }), handleClose = (0, import_react125.useCallback)(() => {
  69627. setIsOpen(!1), setShouldRefocusTrigger(!0);
  69628. }, []);
  69629. (0, import_react125.useEffect)(() => {
  69630. !otState.isOpen && shouldRefocusTrigger && (triggerRef.current?.focus(), setShouldRefocusTrigger(!1));
  69631. }, [otState.isOpen, shouldRefocusTrigger, triggerRef]);
  69632. let [selectedOptions, setSelectedOptions] = (0, import_react125.useState)(
  69633. setSelectedFromDefault(calleeOptions, defaultOptions2)
  69634. ), handleSelectOption = (0, import_react125.useCallback)(
  69635. (option) => {
  69636. option.type === "reset" ? (onChange?.([]), onReset?.(), setSelectedOptions([])) : setSelectedOptions(multiSelect ? (previous) => {
  69637. let newSelected = [];
  69638. return previous?.some((opt) => opt.value === option.value) ? (onDeselect?.(valueToExternal(option.value)), newSelected = previous?.filter((opt) => opt.value !== option.value) ?? []) : (onSelect?.(valueToExternal(option.value)), newSelected = [...previous ?? [], option]), onChange?.(newSelected.map((opt) => valueToExternal(opt.value))), newSelected;
  69639. } : (current) => current.every((opt) => opt.value !== option.value) ? (onSelect?.(valueToExternal(option.value)), onChange?.([valueToExternal(option.value)]), [option]) : current);
  69640. },
  69641. [multiSelect, onChange, onSelect, onDeselect, onReset]
  69642. ), resetOption = (0, import_react125.useMemo)(
  69643. () => onReset ? {
  69644. type: "reset",
  69645. value: void 0,
  69646. title: resetLabel ?? "Reset selection",
  69647. icon: import_react125.default.createElement(RefreshIcon, null),
  69648. description: void 0,
  69649. children: void 0
  69650. } : void 0,
  69651. [onReset, resetLabel]
  69652. ), options = (0, import_react125.useMemo)(
  69653. () => resetOption ? [resetOption, ...calleeOptions] : calleeOptions,
  69654. [calleeOptions, resetOption]
  69655. );
  69656. (0, import_react125.useEffect)(() => {
  69657. defaultOptions2 && setSelectedOptions(setSelectedFromDefault(calleeOptions, defaultOptions2));
  69658. }, [defaultOptions2, calleeOptions]);
  69659. let [activeOption, setActiveOptionState] = (0, import_react125.useState)(
  69660. void 0
  69661. ), setActiveOption = (0, import_react125.useCallback)(
  69662. (option, changeSelection = !0) => {
  69663. setActiveOptionState(optionOrResetToInternal(option)), !multiSelect && changeSelection && handleSelectOption(optionOrResetToInternal(option));
  69664. },
  69665. [multiSelect, handleSelectOption]
  69666. ), moveActiveOptionDown = (0, import_react125.useCallback)(
  69667. (step2 = 1) => {
  69668. if (!isOpen || !activeOption) {
  69669. setActiveOption(options[step2 === 1 ? 0 : Math.min(step2, options.length - 1)]);
  69670. return;
  69671. }
  69672. let currentIndex = options.findIndex(
  69673. (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
  69674. ), nextIndex = currentIndex + step2, newActiveOption;
  69675. nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption);
  69676. },
  69677. [isOpen, activeOption, setActiveOption, options]
  69678. ), moveActiveOptionUp = (0, import_react125.useCallback)(
  69679. (step2 = 1) => {
  69680. if (!isOpen || !activeOption) {
  69681. setActiveOption(options[Math.max(0, options.length - step2)]);
  69682. return;
  69683. }
  69684. let currentIndex = options.findIndex(
  69685. (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
  69686. ), nextIndex = currentIndex - step2, newActiveOption;
  69687. nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption);
  69688. },
  69689. [isOpen, activeOption, setActiveOption, options]
  69690. ), handleButtonKeyDown = (0, import_react125.useCallback)(
  69691. (e) => {
  69692. let openAt = (index4) => {
  69693. e.preventDefault(), setActiveOption(options[index4]), setIsOpen(!0);
  69694. }, indexOfFirstSelected = options.findIndex(
  69695. (option) => selectedOptions.some((sel) => sel.value === externalToValue(option.value))
  69696. ), hasSelection = indexOfFirstSelected !== -1, listStart = resetOption && !hasSelection ? 1 : 0, listEnd = options.length - 1;
  69697. e.key === "Enter" || e.key === " " ? openAt(hasSelection ? Math.min(indexOfFirstSelected, listEnd) : listStart) : e.key === "ArrowDown" ? openAt(hasSelection ? Math.min(indexOfFirstSelected + 1, listEnd) : listStart) : e.key === "ArrowUp" ? openAt(hasSelection ? Math.max(indexOfFirstSelected - 1, listStart) : listEnd) : e.key === "Home" ? openAt(listStart) : e.key === "End" ? openAt(listEnd) : e.key === "PageDown" ? openAt(
  69698. Math.min((hasSelection ? indexOfFirstSelected : listStart) + PAGE_STEP_SIZE, listEnd)
  69699. ) : e.key === "PageUp" && openAt(Math.max(0, (hasSelection ? indexOfFirstSelected : listEnd) - PAGE_STEP_SIZE));
  69700. },
  69701. [options, resetOption, setActiveOption, selectedOptions]
  69702. ), handleListboxKeyDown = (0, import_react125.useCallback)(
  69703. (e) => {
  69704. e.key !== "Tab" ? e.preventDefault() : handleClose(), e.key === "Escape" ? handleClose() : e.key === "ArrowDown" ? moveActiveOptionDown() : e.key === "ArrowUp" ? moveActiveOptionUp() : e.key === "Home" ? setActiveOption(options[0]) : e.key === "End" ? setActiveOption(options[options.length - 1]) : e.key === "PageDown" ? moveActiveOptionDown(PAGE_STEP_SIZE) : e.key === "PageUp" && moveActiveOptionUp(PAGE_STEP_SIZE);
  69705. },
  69706. [handleClose, moveActiveOptionDown, moveActiveOptionUp, options, setActiveOption]
  69707. );
  69708. (0, import_react125.useEffect)(() => {
  69709. if (isOpen && activeOption) {
  69710. let optionElement = document.getElementById(valueToId(id, activeOption));
  69711. optionElement && (optionElement.scrollIntoView({ block: "nearest" }), optionElement.focus());
  69712. } else isOpen && listboxRef.current?.focus();
  69713. }, [isOpen, activeOption, id]);
  69714. let finalAriaLabel = (0, import_react125.useMemo)(() => selectedOptions.length === 1 ? `${ariaLabel} ${selectedOptions[0].title}` : selectedOptions.length ? `${ariaLabel}, ${selectedOptions.length} values selected` : ariaLabel, [ariaLabel, selectedOptions]);
  69715. return import_react125.default.createElement(import_react125.default.Fragment, null, import_react125.default.createElement(
  69716. StyledButton3,
  69717. {
  69718. ...props,
  69719. variant: "ghost",
  69720. ariaLabel: finalAriaLabel,
  69721. tooltip: tooltip ?? ariaLabel,
  69722. disableAllTooltips: isOpen,
  69723. id,
  69724. ref: triggerRef,
  69725. padding,
  69726. $isOpen: isOpen,
  69727. $hasSelection: !!selectedOptions.length,
  69728. "aria-disabled": disabled,
  69729. disabled,
  69730. onClick: () => {
  69731. isOpen ? handleClose() : setIsOpen(!0);
  69732. },
  69733. tabIndex: isOpen ? -1 : 0,
  69734. onKeyDown: handleButtonKeyDown,
  69735. role: "button",
  69736. "aria-controls": isOpen ? listboxId : void 0,
  69737. "aria-expanded": isOpen,
  69738. "aria-haspopup": "listbox"
  69739. },
  69740. !multiSelect && import_react125.default.createElement(import_react125.default.Fragment, null, icon, showSelectedOptionTitle && selectedOptions[0]?.title || children),
  69741. multiSelect && import_react125.default.createElement(import_react125.default.Fragment, null, icon, children, !!selectedOptions.length && import_react125.default.createElement(
  69742. SelectedOptionCount,
  69743. {
  69744. "aria-label": `${selectedOptions.length} ${selectedOptions.length > 1 ? "items" : "item"} selected`
  69745. },
  69746. selectedOptions?.length
  69747. ))
  69748. ), otState.isOpen && import_react125.default.createElement(MinimalistPopover, { handleClose, triggerRef }, import_react125.default.createElement(
  69749. Listbox,
  69750. {
  69751. "aria-label": ariaLabel,
  69752. role: "listbox",
  69753. id: listboxId,
  69754. ref: listboxRef,
  69755. "aria-multiselectable": multiSelect,
  69756. onKeyDown: handleListboxKeyDown,
  69757. tabIndex: isOpen ? 0 : -1
  69758. },
  69759. options.map((opt) => ({
  69760. option: optionOrResetToInternal(opt),
  69761. externalOption: opt
  69762. })).map(({ externalOption, option }) => {
  69763. let isSelected = selectedOptions?.some((sel) => sel.value === option.value) && option !== resetOption, isReset = option === resetOption;
  69764. return import_react125.default.createElement(
  69765. SelectOption,
  69766. {
  69767. key: option.value === void 0 ? "sb-reset" : String(option.value),
  69768. title: option.title,
  69769. description: option.description,
  69770. aside: option.aside,
  69771. icon: !isReset && multiSelect ? (
  69772. // Purely decorative.
  69773. import_react125.default.createElement(Form2.Checkbox, { checked: isSelected, hidden: !0, role: "presentation" })
  69774. ) : option.icon,
  69775. id: valueToId(id, option),
  69776. isActive: isOpen && activeOption?.value === option.value,
  69777. isSelected,
  69778. onClick: () => {
  69779. handleSelectOption(option), multiSelect || handleClose();
  69780. },
  69781. onFocus: () => setActiveOption(externalOption, !1),
  69782. shouldLookDisabled: isReset && selectedOptions.length === 0 && multiSelect,
  69783. onKeyDown: (e) => {
  69784. e.key === "Enter" || e.key === " " ? (e.preventDefault(), handleSelectOption(option), multiSelect || handleClose()) : e.key === "Tab" && (multiSelect || handleSelectOption(option), handleClose());
  69785. }
  69786. },
  69787. option.children
  69788. );
  69789. })
  69790. )));
  69791. }
  69792. );
  69793. Select2.displayName = "Select";
  69794. // src/components/components/Popover/PopoverProvider.tsx
  69795. var import_react157 = __toESM(require_react(), 1);
  69796. init_client_logger();
  69797. // ../../node_modules/@react-aria/collections/dist/BaseCollection.mjs
  69798. var $23b9f4fcf0fe224b$export$d68d59712b04d9d1 = class {
  69799. get childNodes() {
  69800. throw new Error("childNodes is not supported");
  69801. }
  69802. clone() {
  69803. let node2 = new this.constructor(this.key);
  69804. return node2.value = this.value, node2.level = this.level, node2.hasChildNodes = this.hasChildNodes, node2.rendered = this.rendered, node2.textValue = this.textValue, node2["aria-label"] = this["aria-label"], node2.index = this.index, node2.parentKey = this.parentKey, node2.prevKey = this.prevKey, node2.nextKey = this.nextKey, node2.firstChildKey = this.firstChildKey, node2.lastChildKey = this.lastChildKey, node2.props = this.props, node2.render = this.render, node2.colSpan = this.colSpan, node2.colIndex = this.colIndex, node2;
  69805. }
  69806. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  69807. filter(collection, newCollection, filterFn) {
  69808. let clone3 = this.clone();
  69809. return newCollection.addDescendants(clone3, collection), clone3;
  69810. }
  69811. constructor(key) {
  69812. this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = key;
  69813. }
  69814. }, $23b9f4fcf0fe224b$export$b1918e978f1ee46f = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  69815. filter(collection, newCollection, filterFn) {
  69816. let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, this.firstChildKey, filterFn), newNode = this.clone();
  69817. return newNode.firstChildKey = firstKey, newNode.lastChildKey = lastKey, newNode;
  69818. }
  69819. }, $23b9f4fcf0fe224b$export$5ae2504e948afce5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  69820. };
  69821. $23b9f4fcf0fe224b$export$5ae2504e948afce5.type = "header";
  69822. var $23b9f4fcf0fe224b$export$8258a0665a675899 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  69823. };
  69824. $23b9f4fcf0fe224b$export$8258a0665a675899.type = "loader";
  69825. var $23b9f4fcf0fe224b$export$fd11f34e1d07f134 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
  69826. filter(collection, newCollection, filterFn) {
  69827. if (filterFn(this.textValue, this)) {
  69828. let clone3 = this.clone();
  69829. return newCollection.addDescendants(clone3, collection), clone3;
  69830. }
  69831. return null;
  69832. }
  69833. };
  69834. $23b9f4fcf0fe224b$export$fd11f34e1d07f134.type = "item";
  69835. var $23b9f4fcf0fe224b$export$437f11dc9b403b78 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
  69836. filter(collection, newCollection, filterFn) {
  69837. let filteredSection = super.filter(collection, newCollection, filterFn);
  69838. if (filteredSection && filteredSection.lastChildKey !== null) {
  69839. let lastChild = collection.getItem(filteredSection.lastChildKey);
  69840. if (lastChild && lastChild.type !== "header") return filteredSection;
  69841. }
  69842. return null;
  69843. }
  69844. };
  69845. $23b9f4fcf0fe224b$export$437f11dc9b403b78.type = "section";
  69846. var $23b9f4fcf0fe224b$export$408d25a4e12db025 = class {
  69847. get size() {
  69848. return this.itemCount;
  69849. }
  69850. getKeys() {
  69851. return this.keyMap.keys();
  69852. }
  69853. *[Symbol.iterator]() {
  69854. let node2 = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
  69855. for (; node2; )
  69856. yield node2, node2 = node2.nextKey != null ? this.keyMap.get(node2.nextKey) : void 0;
  69857. }
  69858. getChildren(key) {
  69859. let keyMap = this.keyMap;
  69860. return {
  69861. *[Symbol.iterator]() {
  69862. let parent = keyMap.get(key), node2 = parent?.firstChildKey != null ? keyMap.get(parent.firstChildKey) : null;
  69863. for (; node2; )
  69864. yield node2, node2 = node2.nextKey != null ? keyMap.get(node2.nextKey) : void 0;
  69865. }
  69866. };
  69867. }
  69868. getKeyBefore(key) {
  69869. let node2 = this.keyMap.get(key);
  69870. if (!node2) return null;
  69871. if (node2.prevKey != null) {
  69872. for (node2 = this.keyMap.get(node2.prevKey); node2 && node2.type !== "item" && node2.lastChildKey != null; ) node2 = this.keyMap.get(node2.lastChildKey);
  69873. var _node_key;
  69874. return (_node_key = node2?.key) !== null && _node_key !== void 0 ? _node_key : null;
  69875. }
  69876. return node2.parentKey;
  69877. }
  69878. getKeyAfter(key) {
  69879. let node2 = this.keyMap.get(key);
  69880. if (!node2) return null;
  69881. if (node2.type !== "item" && node2.firstChildKey != null) return node2.firstChildKey;
  69882. for (; node2; ) {
  69883. if (node2.nextKey != null) return node2.nextKey;
  69884. if (node2.parentKey != null) node2 = this.keyMap.get(node2.parentKey);
  69885. else return null;
  69886. }
  69887. return null;
  69888. }
  69889. getFirstKey() {
  69890. return this.firstKey;
  69891. }
  69892. getLastKey() {
  69893. let node2 = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
  69894. for (; node2?.lastChildKey != null; ) node2 = this.keyMap.get(node2.lastChildKey);
  69895. var _node_key;
  69896. return (_node_key = node2?.key) !== null && _node_key !== void 0 ? _node_key : null;
  69897. }
  69898. getItem(key) {
  69899. var _this_keyMap_get;
  69900. return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
  69901. }
  69902. at() {
  69903. throw new Error("Not implemented");
  69904. }
  69905. clone() {
  69906. let Constructor = this.constructor, collection = new Constructor();
  69907. return collection.keyMap = new Map(this.keyMap), collection.firstKey = this.firstKey, collection.lastKey = this.lastKey, collection.itemCount = this.itemCount, collection;
  69908. }
  69909. addNode(node2) {
  69910. if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
  69911. node2.type === "item" && this.keyMap.get(node2.key) == null && this.itemCount++, this.keyMap.set(node2.key, node2);
  69912. }
  69913. // Deeply add a node and its children to the collection from another collection, primarily used when filtering a collection
  69914. addDescendants(node2, oldCollection) {
  69915. this.addNode(node2);
  69916. let children = oldCollection.getChildren(node2.key);
  69917. for (let child of children) this.addDescendants(child, oldCollection);
  69918. }
  69919. removeNode(key) {
  69920. if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
  69921. let node2 = this.keyMap.get(key);
  69922. node2 != null && node2.type === "item" && this.itemCount--, this.keyMap.delete(key);
  69923. }
  69924. commit(firstKey, lastKey, isSSR = !1) {
  69925. if (this.frozen) throw new Error("Cannot commit a frozen collection");
  69926. this.firstKey = firstKey, this.lastKey = lastKey, this.frozen = !isSSR;
  69927. }
  69928. filter(filterFn) {
  69929. let newCollection = new this.constructor(), [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(this, newCollection, this.firstKey, filterFn);
  69930. return newCollection?.commit(firstKey, lastKey), newCollection;
  69931. }
  69932. constructor() {
  69933. this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
  69934. }
  69935. };
  69936. function $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, firstChildKey, filterFn) {
  69937. if (firstChildKey == null) return [
  69938. null,
  69939. null
  69940. ];
  69941. let firstNode = null, lastNode = null, currentNode = collection.getItem(firstChildKey);
  69942. for (; currentNode != null; ) {
  69943. let newNode = currentNode.filter(collection, newCollection, filterFn);
  69944. newNode != null && (newNode.nextKey = null, lastNode && (newNode.prevKey = lastNode.key, lastNode.nextKey = newNode.key), firstNode == null && (firstNode = newNode), newCollection.addNode(newNode), lastNode = newNode), currentNode = currentNode.nextKey ? collection.getItem(currentNode.nextKey) : null;
  69945. }
  69946. if (lastNode && lastNode.type === "separator") {
  69947. let prevKey = lastNode.prevKey;
  69948. newCollection.removeNode(lastNode.key), prevKey ? (lastNode = newCollection.getItem(prevKey), lastNode.nextKey = null) : lastNode = null;
  69949. }
  69950. var _firstNode_key, _lastNode_key;
  69951. return [
  69952. (_firstNode_key = firstNode?.key) !== null && _firstNode_key !== void 0 ? _firstNode_key : null,
  69953. (_lastNode_key = lastNode?.key) !== null && _lastNode_key !== void 0 ? _lastNode_key : null
  69954. ];
  69955. }
  69956. // ../../node_modules/@react-aria/collections/dist/Document.mjs
  69957. var $681cc3c98f569e39$export$410b0c854570d131 = class {
  69958. *[Symbol.iterator]() {
  69959. let node2 = this.firstChild;
  69960. for (; node2; )
  69961. yield node2, node2 = node2.nextSibling;
  69962. }
  69963. get firstChild() {
  69964. return this._firstChild;
  69965. }
  69966. set firstChild(firstChild) {
  69967. this._firstChild = firstChild, this.ownerDocument.markDirty(this);
  69968. }
  69969. get lastChild() {
  69970. return this._lastChild;
  69971. }
  69972. set lastChild(lastChild) {
  69973. this._lastChild = lastChild, this.ownerDocument.markDirty(this);
  69974. }
  69975. get previousSibling() {
  69976. return this._previousSibling;
  69977. }
  69978. set previousSibling(previousSibling) {
  69979. this._previousSibling = previousSibling, this.ownerDocument.markDirty(this);
  69980. }
  69981. get nextSibling() {
  69982. return this._nextSibling;
  69983. }
  69984. set nextSibling(nextSibling) {
  69985. this._nextSibling = nextSibling, this.ownerDocument.markDirty(this);
  69986. }
  69987. get parentNode() {
  69988. return this._parentNode;
  69989. }
  69990. set parentNode(parentNode) {
  69991. this._parentNode = parentNode, this.ownerDocument.markDirty(this);
  69992. }
  69993. get isConnected() {
  69994. var _this_parentNode;
  69995. return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || !1;
  69996. }
  69997. invalidateChildIndices(child) {
  69998. (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = child, this.ownerDocument.markDirty(this));
  69999. }
  70000. updateChildIndices() {
  70001. let node2 = this._minInvalidChildIndex;
  70002. for (; node2; )
  70003. node2.index = node2.previousSibling ? node2.previousSibling.index + 1 : 0, node2 = node2.nextSibling;
  70004. this._minInvalidChildIndex = null;
  70005. }
  70006. appendChild(child) {
  70007. child.parentNode && child.parentNode.removeChild(child), this.firstChild == null && (this.firstChild = child), this.lastChild ? (this.lastChild.nextSibling = child, child.index = this.lastChild.index + 1, child.previousSibling = this.lastChild) : (child.previousSibling = null, child.index = 0), child.parentNode = this, child.nextSibling = null, this.lastChild = child, this.ownerDocument.markDirty(this), this.isConnected && this.ownerDocument.queueUpdate();
  70008. }
  70009. insertBefore(newNode, referenceNode) {
  70010. if (referenceNode == null) return this.appendChild(newNode);
  70011. newNode.parentNode && newNode.parentNode.removeChild(newNode), newNode.nextSibling = referenceNode, newNode.previousSibling = referenceNode.previousSibling, newNode.index = referenceNode.index - 1, this.firstChild === referenceNode ? this.firstChild = newNode : referenceNode.previousSibling && (referenceNode.previousSibling.nextSibling = newNode), referenceNode.previousSibling = newNode, newNode.parentNode = referenceNode.parentNode, this.invalidateChildIndices(newNode), this.isConnected && this.ownerDocument.queueUpdate();
  70012. }
  70013. removeChild(child) {
  70014. child.parentNode !== this || !this.ownerDocument.isMounted || (this._minInvalidChildIndex === child && (this._minInvalidChildIndex = null), child.nextSibling && (this.invalidateChildIndices(child.nextSibling), child.nextSibling.previousSibling = child.previousSibling), child.previousSibling && (child.previousSibling.nextSibling = child.nextSibling), this.firstChild === child && (this.firstChild = child.nextSibling), this.lastChild === child && (this.lastChild = child.previousSibling), child.parentNode = null, child.nextSibling = null, child.previousSibling = null, child.index = 0, this.ownerDocument.markDirty(child), this.isConnected && this.ownerDocument.queueUpdate());
  70015. }
  70016. addEventListener() {
  70017. }
  70018. removeEventListener() {
  70019. }
  70020. get previousVisibleSibling() {
  70021. let node2 = this.previousSibling;
  70022. for (; node2 && node2.isHidden; ) node2 = node2.previousSibling;
  70023. return node2;
  70024. }
  70025. get nextVisibleSibling() {
  70026. let node2 = this.nextSibling;
  70027. for (; node2 && node2.isHidden; ) node2 = node2.nextSibling;
  70028. return node2;
  70029. }
  70030. get firstVisibleChild() {
  70031. let node2 = this.firstChild;
  70032. for (; node2 && node2.isHidden; ) node2 = node2.nextSibling;
  70033. return node2;
  70034. }
  70035. get lastVisibleChild() {
  70036. let node2 = this.lastChild;
  70037. for (; node2 && node2.isHidden; ) node2 = node2.previousSibling;
  70038. return node2;
  70039. }
  70040. constructor(ownerDocument) {
  70041. this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = ownerDocument;
  70042. }
  70043. }, $681cc3c98f569e39$export$dc064fe9e59310fd = class _$681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 {
  70044. get index() {
  70045. return this._index;
  70046. }
  70047. set index(index4) {
  70048. this._index = index4, this.ownerDocument.markDirty(this);
  70049. }
  70050. get level() {
  70051. var _this_node;
  70052. return this.parentNode instanceof _$681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.level + (((_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.type) === "item" ? 1 : 0) : 0;
  70053. }
  70054. /**
  70055. * Lazily gets a mutable instance of a Node. If the node has already
  70056. * been cloned during this update cycle, it just returns the existing one.
  70057. */
  70058. getMutableNode() {
  70059. return this.node == null ? null : (this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node);
  70060. }
  70061. updateNode() {
  70062. var _this_parentNode_node, _this_previousVisibleSibling_node, _this_previousVisibleSibling, _nextSibling_node, _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
  70063. let nextSibling = this.nextVisibleSibling, node2 = this.getMutableNode();
  70064. if (node2 != null) {
  70065. node2.index = this.index, node2.level = this.level;
  70066. var _this_parentNode_node_key;
  70067. node2.parentKey = this.parentNode instanceof _$681cc3c98f569e39$export$dc064fe9e59310fd && (_this_parentNode_node_key = (_this_parentNode_node = this.parentNode.node) === null || _this_parentNode_node === void 0 ? void 0 : _this_parentNode_node.key) !== null && _this_parentNode_node_key !== void 0 ? _this_parentNode_node_key : null;
  70068. var _this_previousVisibleSibling_node_key;
  70069. node2.prevKey = (_this_previousVisibleSibling_node_key = (_this_previousVisibleSibling = this.previousVisibleSibling) === null || _this_previousVisibleSibling === void 0 || (_this_previousVisibleSibling_node = _this_previousVisibleSibling.node) === null || _this_previousVisibleSibling_node === void 0 ? void 0 : _this_previousVisibleSibling_node.key) !== null && _this_previousVisibleSibling_node_key !== void 0 ? _this_previousVisibleSibling_node_key : null;
  70070. var _nextSibling_node_key;
  70071. node2.nextKey = (_nextSibling_node_key = nextSibling == null || (_nextSibling_node = nextSibling.node) === null || _nextSibling_node === void 0 ? void 0 : _nextSibling_node.key) !== null && _nextSibling_node_key !== void 0 ? _nextSibling_node_key : null, node2.hasChildNodes = !!this.firstChild;
  70072. var _this_firstVisibleChild_node_key;
  70073. node2.firstChildKey = (_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 || (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null;
  70074. var _this_lastVisibleChild_node_key;
  70075. if (node2.lastChildKey = (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 || (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, (node2.colSpan != null || node2.colIndex != null) && nextSibling) {
  70076. var _node_colIndex, _node_colSpan;
  70077. let nextColIndex = ((_node_colIndex = node2.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node2.index) + ((_node_colSpan = node2.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
  70078. if (nextSibling.node != null && nextColIndex !== nextSibling.node.colIndex) {
  70079. let siblingNode = nextSibling.getMutableNode();
  70080. siblingNode.colIndex = nextColIndex;
  70081. }
  70082. }
  70083. }
  70084. }
  70085. setProps(obj, ref, CollectionNodeClass, rendered, render) {
  70086. let node2, { value: value1, textValue, id, ...props } = obj;
  70087. if (this.node == null ? (node2 = new CollectionNodeClass(id ?? `react-aria-${++this.ownerDocument.nodeId}`), this.node = node2) : node2 = this.getMutableNode(), props.ref = ref, node2.props = props, node2.rendered = rendered, node2.render = render, node2.value = value1, node2.textValue = textValue || (typeof props.children == "string" ? props.children : "") || obj["aria-label"] || "", id != null && id !== node2.key) throw new Error("Cannot change the id of an item");
  70088. props.colSpan != null && (node2.colSpan = props.colSpan), this.isConnected && this.ownerDocument.queueUpdate();
  70089. }
  70090. get style() {
  70091. let element = this;
  70092. return {
  70093. get display() {
  70094. return element.isHidden ? "none" : "";
  70095. },
  70096. set display(value) {
  70097. let isHidden3 = value === "none";
  70098. if (element.isHidden !== isHidden3) {
  70099. var _element_parentNode, _element_parentNode1;
  70100. (((_element_parentNode = element.parentNode) === null || _element_parentNode === void 0 ? void 0 : _element_parentNode.firstVisibleChild) === element || ((_element_parentNode1 = element.parentNode) === null || _element_parentNode1 === void 0 ? void 0 : _element_parentNode1.lastVisibleChild) === element) && element.ownerDocument.markDirty(element.parentNode);
  70101. let prev2 = element.previousVisibleSibling, next2 = element.nextVisibleSibling;
  70102. prev2 && element.ownerDocument.markDirty(prev2), next2 && element.ownerDocument.markDirty(next2), element.isHidden = isHidden3, element.ownerDocument.markDirty(element);
  70103. }
  70104. }
  70105. };
  70106. }
  70107. hasAttribute() {
  70108. }
  70109. setAttribute() {
  70110. }
  70111. setAttributeNS() {
  70112. }
  70113. removeAttribute() {
  70114. }
  70115. constructor(type5, ownerDocument) {
  70116. super(ownerDocument), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
  70117. }
  70118. }, $681cc3c98f569e39$export$b34a105447964f9f = class extends $681cc3c98f569e39$export$410b0c854570d131 {
  70119. get isConnected() {
  70120. return this.isMounted;
  70121. }
  70122. createElement(type5) {
  70123. return new $681cc3c98f569e39$export$dc064fe9e59310fd(type5, this);
  70124. }
  70125. getMutableCollection() {
  70126. return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
  70127. }
  70128. markDirty(node2) {
  70129. this.dirtyNodes.add(node2);
  70130. }
  70131. addNode(element) {
  70132. if (element.isHidden || element.node == null) return;
  70133. let collection = this.getMutableCollection();
  70134. if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child);
  70135. collection.addNode(element.node);
  70136. }
  70137. removeNode(node2) {
  70138. if (node2.node == null) return;
  70139. for (let child of node2) this.removeNode(child);
  70140. this.getMutableCollection().removeNode(node2.node.key);
  70141. }
  70142. /** Finalizes the collection update, updating all nodes and freezing the collection. */
  70143. getCollection() {
  70144. return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
  70145. }
  70146. updateCollection() {
  70147. for (let element of this.dirtyNodes) element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden) ? this.removeNode(element) : element.updateChildIndices();
  70148. for (let element of this.dirtyNodes) element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (element.isConnected && !element.isHidden && (element.updateNode(), this.addNode(element)), element.isMutated = !1);
  70149. if (this.dirtyNodes.clear(), this.nextCollection) {
  70150. var _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild, _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key;
  70151. this.nextCollection.commit((_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 || (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null, (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 || (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
  70152. }
  70153. }
  70154. queueUpdate() {
  70155. if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
  70156. this.queuedRender = !0, this.inSubscription = !0;
  70157. for (let fn4 of this.subscriptions) fn4();
  70158. this.inSubscription = !1;
  70159. }
  70160. }
  70161. subscribe(fn4) {
  70162. return this.subscriptions.add(fn4), () => this.subscriptions.delete(fn4);
  70163. }
  70164. resetAfterSSR() {
  70165. this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
  70166. }
  70167. constructor(collection) {
  70168. super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = collection, this.nextCollection = collection;
  70169. }
  70170. };
  70171. // ../../node_modules/@react-aria/collections/dist/useCachedChildren.mjs
  70172. var import_react126 = __toESM(require_react(), 1);
  70173. function $e948873055cbafe4$export$727c8fc270210f13(props) {
  70174. let { children, items, idScope, addIdAndValue, dependencies = [] } = props, cache = (0, import_react126.useMemo)(() => /* @__PURE__ */ new WeakMap(), dependencies);
  70175. return (0, import_react126.useMemo)(() => {
  70176. if (items && typeof children == "function") {
  70177. let res = [];
  70178. for (let item of items) {
  70179. let rendered = cache.get(item);
  70180. if (!rendered) {
  70181. rendered = children(item);
  70182. var _rendered_props_id, _ref;
  70183. let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
  70184. if (key == null) throw new Error("Could not determine key for item");
  70185. idScope && (key = idScope + ":" + key), rendered = (0, import_react126.cloneElement)(rendered, addIdAndValue ? {
  70186. key,
  70187. id: key,
  70188. value: item
  70189. } : {
  70190. key
  70191. }), cache.set(item, rendered);
  70192. }
  70193. res.push(rendered);
  70194. }
  70195. return res;
  70196. } else if (typeof children != "function") return children;
  70197. }, [
  70198. children,
  70199. items,
  70200. cache,
  70201. idScope,
  70202. addIdAndValue
  70203. ]);
  70204. }
  70205. // ../../node_modules/@react-aria/collections/dist/Hidden.mjs
  70206. var import_react127 = __toESM(require_react(), 1);
  70207. if (typeof HTMLTemplateElement < "u") {
  70208. let getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
  70209. Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
  70210. configurable: !0,
  70211. enumerable: !0,
  70212. get: function() {
  70213. return this.dataset.reactAriaHidden ? this.content.firstChild : getFirstChild.call(this);
  70214. }
  70215. });
  70216. }
  70217. var $f39a9eba43920ace$export$94b6d0abf7d33e8c = (0, import_react127.createContext)(!1);
  70218. function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
  70219. if ((0, import_react127.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c))
  70220. return import_react127.default.createElement(import_react127.default.Fragment, null, props.children);
  70221. let children = import_react127.default.createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {
  70222. value: !0
  70223. }, props.children);
  70224. return import_react127.default.createElement("template", {
  70225. "data-react-aria-hidden": !0
  70226. }, children);
  70227. }
  70228. function $f39a9eba43920ace$export$86427a43e3e48ebb(fn4) {
  70229. let Wrapper9 = (props, ref) => (0, import_react127.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c) ? null : fn4(props, ref);
  70230. return Wrapper9.displayName = fn4.displayName || fn4.name, (0, import_react127.forwardRef)(Wrapper9);
  70231. }
  70232. function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
  70233. return (0, import_react127.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);
  70234. }
  70235. // ../../node_modules/@react-aria/collections/dist/CollectionBuilder.mjs
  70236. var import_react_dom5 = __toESM(require_react_dom(), 1);
  70237. var import_react128 = __toESM(require_react(), 1);
  70238. var import_shim = __toESM(require_shim(), 1), $e1995378a142960e$var$ShallowRenderContext = (0, import_react128.createContext)(!1), $e1995378a142960e$var$CollectionDocumentContext = (0, import_react128.createContext)(null);
  70239. function $e1995378a142960e$export$bf788dd355e3a401(props) {
  70240. if ((0, import_react128.useContext)($e1995378a142960e$var$CollectionDocumentContext))
  70241. return props.content;
  70242. let { collection, document: document13 } = $e1995378a142960e$var$useCollectionDocument(props.createCollection);
  70243. return import_react128.default.createElement(import_react128.default.Fragment, null, import_react128.default.createElement($f39a9eba43920ace$export$8dc98ba7eadeaa56, null, import_react128.default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {
  70244. value: document13
  70245. }, props.content)), import_react128.default.createElement($e1995378a142960e$var$CollectionInner, {
  70246. render: props.children,
  70247. collection
  70248. }));
  70249. }
  70250. function $e1995378a142960e$var$CollectionInner({ collection, render }) {
  70251. return render(collection);
  70252. }
  70253. function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
  70254. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), isSSRRef = (0, import_react128.useRef)(isSSR);
  70255. isSSRRef.current = isSSR;
  70256. let getSnapshotWrapper = (0, import_react128.useCallback)(() => isSSRRef.current ? getServerSnapshot() : getSnapshot(), [
  70257. getSnapshot,
  70258. getServerSnapshot
  70259. ]);
  70260. return (0, import_shim.useSyncExternalStore)(subscribe, getSnapshotWrapper);
  70261. }
  70262. var $e1995378a142960e$var$useSyncExternalStore = typeof import_react128.default.useSyncExternalStore == "function" ? import_react128.default.useSyncExternalStore : $e1995378a142960e$var$useSyncExternalStoreFallback;
  70263. function $e1995378a142960e$var$useCollectionDocument(createCollection) {
  70264. let [document13] = (0, import_react128.useState)(() => new $681cc3c98f569e39$export$b34a105447964f9f(createCollection?.() || new $23b9f4fcf0fe224b$export$408d25a4e12db025())), subscribe = (0, import_react128.useCallback)((fn4) => document13.subscribe(fn4), [
  70265. document13
  70266. ]), getSnapshot = (0, import_react128.useCallback)(() => {
  70267. let collection2 = document13.getCollection();
  70268. return document13.isSSR && document13.resetAfterSSR(), collection2;
  70269. }, [
  70270. document13
  70271. ]), getServerSnapshot = (0, import_react128.useCallback)(() => (document13.isSSR = !0, document13.getCollection()), [
  70272. document13
  70273. ]), collection = $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
  70274. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (document13.isMounted = !0, () => {
  70275. document13.isMounted = !1;
  70276. }), [
  70277. document13
  70278. ]), {
  70279. collection,
  70280. document: document13
  70281. };
  70282. }
  70283. var $e1995378a142960e$var$SSRContext = (0, import_react128.createContext)(null);
  70284. function $e1995378a142960e$var$createCollectionNodeClass(type5) {
  70285. var _class;
  70286. return _class = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  70287. }, _class.type = type5, _class;
  70288. }
  70289. function $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, rendered, children, render) {
  70290. typeof CollectionNodeClass == "string" && (CollectionNodeClass = $e1995378a142960e$var$createCollectionNodeClass(CollectionNodeClass));
  70291. let itemRef = (0, import_react128.useCallback)((element) => {
  70292. element?.setProps(props, ref, CollectionNodeClass, rendered, render);
  70293. }, [
  70294. props,
  70295. ref,
  70296. rendered,
  70297. render,
  70298. CollectionNodeClass
  70299. ]), parentNode = (0, import_react128.useContext)($e1995378a142960e$var$SSRContext);
  70300. if (parentNode) {
  70301. let element = parentNode.ownerDocument.nodesByProps.get(props);
  70302. return element || (element = parentNode.ownerDocument.createElement(CollectionNodeClass.type), element.setProps(props, ref, CollectionNodeClass, rendered, render), parentNode.appendChild(element), parentNode.ownerDocument.updateCollection(), parentNode.ownerDocument.nodesByProps.set(props, element)), children ? import_react128.default.createElement($e1995378a142960e$var$SSRContext.Provider, {
  70303. value: element
  70304. }, children) : null;
  70305. }
  70306. return import_react128.default.createElement(CollectionNodeClass.type, {
  70307. ref: itemRef
  70308. }, children);
  70309. }
  70310. function $e1995378a142960e$export$18af5c7a9e9b3664(CollectionNodeClass, render) {
  70311. let Component5 = ({ node: node2 }) => render(node2.props, node2.props.ref, node2), Result = (0, import_react128.forwardRef)((props, ref) => {
  70312. let focusableProps = (0, import_react128.useContext)($f645667febf57a63$export$f9762fab77588ecb);
  70313. if (!(0, import_react128.useContext)($e1995378a142960e$var$ShallowRenderContext)) {
  70314. if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
  70315. return render(props, ref);
  70316. }
  70317. return $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, "children" in props ? props.children : null, null, (node2) => (
  70318. // Forward FocusableContext to real DOM tree so tooltips work.
  70319. import_react128.default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
  70320. value: focusableProps
  70321. }, import_react128.default.createElement(Component5, {
  70322. node: node2
  70323. }))
  70324. ));
  70325. });
  70326. return Result.displayName = render.name, Result;
  70327. }
  70328. function $e1995378a142960e$export$e953bb1cd0f19726(CollectionNodeClass, render, useChildren = $e1995378a142960e$var$useCollectionChildren) {
  70329. let Component5 = ({ node: node2 }) => render(node2.props, node2.props.ref, node2), Result = (0, import_react128.forwardRef)((props, ref) => {
  70330. let children = useChildren(props);
  70331. var _useSSRCollectionNode;
  70332. return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, null, children, (node2) => import_react128.default.createElement(Component5, {
  70333. node: node2
  70334. }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : import_react128.default.createElement(import_react128.default.Fragment, null);
  70335. });
  70336. return Result.displayName = render.name, Result;
  70337. }
  70338. function $e1995378a142960e$var$useCollectionChildren(options) {
  70339. return $e948873055cbafe4$export$727c8fc270210f13({
  70340. ...options,
  70341. addIdAndValue: !0
  70342. });
  70343. }
  70344. var $e1995378a142960e$var$CollectionContext = (0, import_react128.createContext)(null);
  70345. function $e1995378a142960e$export$fb8073518f34e6ec(props) {
  70346. let ctx = (0, import_react128.useContext)($e1995378a142960e$var$CollectionContext), dependencies = (ctx?.dependencies || []).concat(props.dependencies), idScope = props.idScope || ctx?.idScope, children = $e1995378a142960e$var$useCollectionChildren({
  70347. ...props,
  70348. idScope,
  70349. dependencies
  70350. });
  70351. return (0, import_react128.useContext)($e1995378a142960e$var$CollectionDocumentContext) && (children = import_react128.default.createElement($e1995378a142960e$var$CollectionRoot, null, children)), ctx = (0, import_react128.useMemo)(() => ({
  70352. dependencies,
  70353. idScope
  70354. }), [
  70355. idScope,
  70356. ...dependencies
  70357. ]), import_react128.default.createElement($e1995378a142960e$var$CollectionContext.Provider, {
  70358. value: ctx
  70359. }, children);
  70360. }
  70361. function $e1995378a142960e$var$CollectionRoot({ children }) {
  70362. let doc = (0, import_react128.useContext)($e1995378a142960e$var$CollectionDocumentContext), wrappedChildren = (0, import_react128.useMemo)(() => import_react128.default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {
  70363. value: null
  70364. }, import_react128.default.createElement($e1995378a142960e$var$ShallowRenderContext.Provider, {
  70365. value: !0
  70366. }, children)), [
  70367. children
  70368. ]);
  70369. return $b5e257d569688ac6$export$535bd6ca7f90a273() ? import_react128.default.createElement($e1995378a142960e$var$SSRContext.Provider, {
  70370. value: doc
  70371. }, wrappedChildren) : (0, import_react_dom5.createPortal)(wrappedChildren, doc);
  70372. }
  70373. // ../../node_modules/react-aria-components/dist/Label.mjs
  70374. var import_react129 = __toESM(require_react(), 1), $01b77f81d0f07f68$export$75b6ee27786ba447 = (0, import_react129.createContext)({}), $01b77f81d0f07f68$export$b04be29aa201d4f5 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, ref) {
  70375. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
  70376. let { elementType: ElementType = "label", ...labelProps } = props;
  70377. return import_react129.default.createElement(ElementType, {
  70378. className: "react-aria-Label",
  70379. ...labelProps,
  70380. ref
  70381. });
  70382. });
  70383. // ../../node_modules/@react-aria/label/dist/useLabel.mjs
  70384. function $d191a55c9702f145$export$8467354a121f1b9f(props) {
  70385. let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
  70386. id = $bdb11010cef70236$export$f680877a34711e37(id);
  70387. let labelId = $bdb11010cef70236$export$f680877a34711e37(), labelProps = {};
  70388. label && (ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId, labelProps = {
  70389. id: labelId,
  70390. htmlFor: labelElementType === "label" ? id : void 0
  70391. });
  70392. let fieldProps = $313b98861ee5dd6c$export$d6875122194c7b44({
  70393. id,
  70394. "aria-label": ariaLabel,
  70395. "aria-labelledby": ariaLabelledby
  70396. });
  70397. return {
  70398. labelProps,
  70399. fieldProps
  70400. };
  70401. }
  70402. // ../../node_modules/@react-aria/progress/dist/useProgressBar.mjs
  70403. function $204d9ebcedfb8806$export$ed5abd763a836edc(props) {
  70404. let { value = 0, minValue = 0, maxValue = 100, valueLabel, isIndeterminate, formatOptions = {
  70405. style: "percent"
  70406. } } = props, domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70407. labelable: !0
  70408. }), { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({
  70409. ...props,
  70410. // Progress bar is not an HTML input element so it
  70411. // shouldn't be labeled by a <label> element.
  70412. labelElementType: "span"
  70413. });
  70414. value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
  70415. let percentage = (value - minValue) / (maxValue - minValue), formatter2 = $a916eb452884faea$export$b7a616150fdb9f44(formatOptions);
  70416. if (!isIndeterminate && !valueLabel) {
  70417. let valueToFormat = formatOptions.style === "percent" ? percentage : value;
  70418. valueLabel = formatter2.format(valueToFormat);
  70419. }
  70420. return {
  70421. progressBarProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
  70422. ...fieldProps,
  70423. "aria-valuenow": isIndeterminate ? void 0 : value,
  70424. "aria-valuemin": minValue,
  70425. "aria-valuemax": maxValue,
  70426. "aria-valuetext": isIndeterminate ? void 0 : valueLabel,
  70427. role: "progressbar"
  70428. }),
  70429. labelProps
  70430. };
  70431. }
  70432. // ../../node_modules/react-aria-components/dist/ProgressBar.mjs
  70433. var import_react130 = __toESM(require_react(), 1), $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = (0, import_react130.createContext)(null), $0393f8ab869a0f1a$export$c17561cb55d4db30 = (0, import_react130.forwardRef)(function(props, ref) {
  70434. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129);
  70435. let { value = 0, minValue = 0, maxValue = 100, isIndeterminate = !1 } = props;
  70436. value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
  70437. let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]), { progressBarProps, labelProps } = $204d9ebcedfb8806$export$ed5abd763a836edc({
  70438. ...props,
  70439. label
  70440. }), percentage = isIndeterminate ? void 0 : (value - minValue) / (maxValue - minValue) * 100, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  70441. ...props,
  70442. defaultClassName: "react-aria-ProgressBar",
  70443. values: {
  70444. percentage,
  70445. valueText: progressBarProps["aria-valuetext"],
  70446. isIndeterminate
  70447. }
  70448. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70449. global: !0
  70450. });
  70451. return import_react130.default.createElement("div", {
  70452. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, progressBarProps),
  70453. ref,
  70454. slot: props.slot || void 0
  70455. }, import_react130.default.createElement($01b77f81d0f07f68$export$75b6ee27786ba447.Provider, {
  70456. value: {
  70457. ...labelProps,
  70458. ref: labelRef,
  70459. elementType: "span"
  70460. }
  70461. }, renderProps.children));
  70462. });
  70463. // ../../node_modules/react-aria-components/dist/Button.mjs
  70464. init_import();
  70465. // ../../node_modules/@react-aria/button/dist/useButton.mjs
  70466. function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
  70467. let { elementType = "button", isDisabled: isDisabled3, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type: type5 = "button" } = props, additionalProps;
  70468. elementType === "button" ? additionalProps = {
  70469. type: type5,
  70470. disabled: isDisabled3,
  70471. form: props.form,
  70472. formAction: props.formAction,
  70473. formEncType: props.formEncType,
  70474. formMethod: props.formMethod,
  70475. formNoValidate: props.formNoValidate,
  70476. formTarget: props.formTarget,
  70477. name: props.name,
  70478. value: props.value
  70479. } : additionalProps = {
  70480. role: "button",
  70481. href: elementType === "a" && !isDisabled3 ? href : void 0,
  70482. target: elementType === "a" ? target : void 0,
  70483. type: elementType === "input" ? type5 : void 0,
  70484. disabled: elementType === "input" ? isDisabled3 : void 0,
  70485. "aria-disabled": !isDisabled3 || elementType === "input" ? void 0 : isDisabled3,
  70486. rel: elementType === "a" ? rel : void 0
  70487. };
  70488. let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
  70489. onPressStart,
  70490. onPressEnd,
  70491. onPressChange,
  70492. onPress,
  70493. onPressUp,
  70494. onClick,
  70495. isDisabled: isDisabled3,
  70496. preventFocusOnPress,
  70497. ref
  70498. }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref);
  70499. allowFocusWhenDisabled && (focusableProps.tabIndex = isDisabled3 ? -1 : focusableProps.tabIndex);
  70500. let buttonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, pressProps, $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70501. labelable: !0
  70502. }));
  70503. return {
  70504. isPressed,
  70505. buttonProps: $3ef42575df84b30b$export$9d1611c77c2fe928(additionalProps, buttonProps, {
  70506. "aria-haspopup": props["aria-haspopup"],
  70507. "aria-expanded": props["aria-expanded"],
  70508. "aria-controls": props["aria-controls"],
  70509. "aria-pressed": props["aria-pressed"],
  70510. "aria-current": props["aria-current"],
  70511. "aria-disabled": props["aria-disabled"]
  70512. })
  70513. };
  70514. }
  70515. // ../../node_modules/@react-aria/button/node_modules/@react-aria/toolbar/dist/useToolbar.mjs
  70516. var import_react131 = __toESM(require_react(), 1);
  70517. // ../../node_modules/react-aria-components/dist/Button.mjs
  70518. var import_react132 = __toESM(require_react(), 1), $d2b4bc8c273e7be6$export$24d547caef80ccd1 = (0, import_react132.createContext)({}), $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, ref) {
  70519. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1), props = $d2b4bc8c273e7be6$var$disablePendingProps(props);
  70520. let ctx = props, { isPending } = ctx, { buttonProps, isPressed } = $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
  70521. ...props,
  70522. isDisabled: props.isDisabled || isPending
  70523. }), renderValues = {
  70524. isHovered,
  70525. isPressed: (ctx.isPressed || isPressed) && !isPending,
  70526. isFocused,
  70527. isFocusVisible,
  70528. isDisabled: props.isDisabled || !1,
  70529. isPending: isPending ?? !1
  70530. }, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  70531. ...props,
  70532. values: renderValues,
  70533. defaultClassName: "react-aria-Button"
  70534. }), buttonId = $bdb11010cef70236$export$f680877a34711e37(buttonProps.id), progressId = $bdb11010cef70236$export$f680877a34711e37(), ariaLabelledby = buttonProps["aria-labelledby"];
  70535. isPending && (ariaLabelledby ? ariaLabelledby = `${ariaLabelledby} ${progressId}` : buttonProps["aria-label"] && (ariaLabelledby = `${buttonId} ${progressId}`));
  70536. let wasPending = (0, import_react132.useRef)(isPending);
  70537. (0, import_react132.useEffect)(() => {
  70538. let message = {
  70539. "aria-labelledby": ariaLabelledby || buttonId
  70540. };
  70541. !wasPending.current && isFocused && isPending ? $319e236875307eab$export$a9b970dcc4ae71a9(message, "assertive") : wasPending.current && isFocused && !isPending && $319e236875307eab$export$a9b970dcc4ae71a9(message, "assertive"), wasPending.current = isPending;
  70542. }, [
  70543. isPending,
  70544. isFocused,
  70545. ariaLabelledby,
  70546. buttonId
  70547. ]);
  70548. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70549. global: !0
  70550. });
  70551. return delete DOMProps.onClick, import_react132.default.createElement("button", {
  70552. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, buttonProps, focusProps, hoverProps),
  70553. // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
  70554. // We do this by changing the button's type to button.
  70555. type: buttonProps.type === "submit" && isPending ? "button" : buttonProps.type,
  70556. id: buttonId,
  70557. ref,
  70558. "aria-labelledby": ariaLabelledby,
  70559. slot: props.slot || void 0,
  70560. "aria-disabled": isPending ? "true" : buttonProps["aria-disabled"],
  70561. "data-disabled": props.isDisabled || void 0,
  70562. "data-pressed": renderValues.isPressed || void 0,
  70563. "data-hovered": isHovered || void 0,
  70564. "data-focused": isFocused || void 0,
  70565. "data-pending": isPending || void 0,
  70566. "data-focus-visible": isFocusVisible || void 0
  70567. }, import_react132.default.createElement($0393f8ab869a0f1a$export$e9f3bf65a26ce129.Provider, {
  70568. value: {
  70569. id: progressId
  70570. }
  70571. }, renderProps.children));
  70572. });
  70573. function $d2b4bc8c273e7be6$var$disablePendingProps(props) {
  70574. return props.isPending && (props.onPress = void 0, props.onPressStart = void 0, props.onPressEnd = void 0, props.onPressChange = void 0, props.onPressUp = void 0, props.onKeyDown = void 0, props.onKeyUp = void 0, props.onClick = void 0, props.href = void 0), props;
  70575. }
  70576. // ../../node_modules/react-aria-components/dist/Popover.mjs
  70577. var import_react133 = __toESM(require_react(), 1);
  70578. var $07b14b47974efb58$export$9b9a0cd73afb7ca4 = (0, import_react133.createContext)(null), $07b14b47974efb58$var$PopoverGroupContext = (0, import_react133.createContext)(null), $07b14b47974efb58$export$5b6b19405a83ff9d = (0, import_react133.forwardRef)(function(props, ref) {
  70579. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $07b14b47974efb58$export$9b9a0cd73afb7ca4);
  70580. let contextState = (0, import_react133.useContext)($de32f1b87079253c$export$d2f961adcb0afbe), localState = $fc909762b330b746$export$61c6a8c84e605fb6(props), state3 = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState, isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state3.isOpen) || props.isExiting || !1, isHidden3 = $f39a9eba43920ace$export$b5d7cc18bb8d2b59(), { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
  70581. if (isHidden3) {
  70582. let children = props.children;
  70583. return typeof children == "function" && (children = children({
  70584. trigger: props.trigger || null,
  70585. placement: "bottom",
  70586. isEntering: !1,
  70587. isExiting: !1,
  70588. defaultChildren: null
  70589. })), import_react133.default.createElement(import_react133.default.Fragment, null, children);
  70590. }
  70591. return state3 && !state3.isOpen && !isExiting ? null : import_react133.default.createElement($07b14b47974efb58$var$PopoverInner, {
  70592. ...props,
  70593. triggerRef: props.triggerRef,
  70594. state: state3,
  70595. popoverRef: ref,
  70596. isExiting,
  70597. dir: direction
  70598. });
  70599. });
  70600. function $07b14b47974efb58$var$PopoverInner({ state: state3, isExiting, UNSTABLE_portalContainer, clearContexts, ...props }) {
  70601. let arrowRef = (0, import_react133.useRef)(null), containerRef = (0, import_react133.useRef)(null), groupCtx = (0, import_react133.useContext)($07b14b47974efb58$var$PopoverGroupContext), isSubPopover = groupCtx && props.trigger === "SubmenuTrigger";
  70602. var _props_offset;
  70603. let { popoverProps, underlayProps, arrowProps, placement, triggerAnchorPoint } = $f2f8a6077418541e$export$542a6fd13ac93354({
  70604. ...props,
  70605. offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
  70606. arrowRef,
  70607. // If this is a submenu/subdialog, use the root popover's container
  70608. // to detect outside interaction and add aria-hidden.
  70609. groupRef: isSubPopover ? groupCtx : containerRef
  70610. }, state3), ref = props.popoverRef, isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(ref, !!placement) || props.isEntering || !1, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  70611. ...props,
  70612. defaultClassName: "react-aria-Popover",
  70613. values: {
  70614. trigger: props.trigger || null,
  70615. placement,
  70616. isEntering,
  70617. isExiting
  70618. }
  70619. }), shouldBeDialog = !props.isNonModal || props.trigger === "SubmenuTrigger", [isDialog, setDialog] = (0, import_react133.useState)(!1);
  70620. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  70621. ref.current && setDialog(shouldBeDialog && !ref.current.querySelector("[role=dialog]"));
  70622. }, [
  70623. ref,
  70624. shouldBeDialog
  70625. ]), (0, import_react133.useEffect)(() => {
  70626. isDialog && props.trigger !== "SubmenuTrigger" && ref.current && !ref.current.contains(document.activeElement) && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
  70627. }, [
  70628. isDialog,
  70629. ref,
  70630. props.trigger
  70631. ]);
  70632. let children = (0, import_react133.useMemo)(() => {
  70633. let children2 = renderProps.children;
  70634. if (clearContexts) for (let Context of clearContexts) children2 = import_react133.default.createElement(Context.Provider, {
  70635. value: null
  70636. }, children2);
  70637. return children2;
  70638. }, [
  70639. renderProps.children,
  70640. clearContexts
  70641. ]), style = {
  70642. ...popoverProps.style,
  70643. "--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
  70644. ...renderProps.style
  70645. }, overlay = import_react133.default.createElement("div", {
  70646. ...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70647. global: !0
  70648. }), popoverProps),
  70649. ...renderProps,
  70650. role: isDialog ? "dialog" : void 0,
  70651. tabIndex: isDialog ? -1 : void 0,
  70652. "aria-label": props["aria-label"],
  70653. "aria-labelledby": props["aria-labelledby"],
  70654. ref,
  70655. slot: props.slot || void 0,
  70656. style,
  70657. dir: props.dir,
  70658. "data-trigger": props.trigger,
  70659. "data-placement": placement,
  70660. "data-entering": isEntering || void 0,
  70661. "data-exiting": isExiting || void 0
  70662. }, !props.isNonModal && import_react133.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
  70663. onDismiss: state3.close
  70664. }), import_react133.default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, {
  70665. value: {
  70666. ...arrowProps,
  70667. placement,
  70668. ref: arrowRef
  70669. }
  70670. }, children), import_react133.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
  70671. onDismiss: state3.close
  70672. }));
  70673. if (!isSubPopover) return import_react133.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
  70674. ...props,
  70675. shouldContainFocus: isDialog,
  70676. isExiting,
  70677. portalContainer: UNSTABLE_portalContainer
  70678. }, !props.isNonModal && state3.isOpen && import_react133.default.createElement("div", {
  70679. "data-testid": "underlay",
  70680. ...underlayProps,
  70681. style: {
  70682. position: "fixed",
  70683. inset: 0
  70684. }
  70685. }), import_react133.default.createElement("div", {
  70686. ref: containerRef,
  70687. style: {
  70688. display: "contents"
  70689. }
  70690. }, import_react133.default.createElement($07b14b47974efb58$var$PopoverGroupContext.Provider, {
  70691. value: containerRef
  70692. }, overlay)));
  70693. var _ref;
  70694. return import_react133.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
  70695. ...props,
  70696. shouldContainFocus: isDialog,
  70697. isExiting,
  70698. portalContainer: (_ref = UNSTABLE_portalContainer ?? groupCtx?.current) !== null && _ref !== void 0 ? _ref : void 0
  70699. }, overlay);
  70700. }
  70701. // ../../node_modules/react-aria-components/dist/Collection.mjs
  70702. var import_react134 = __toESM(require_react(), 1), $7135fc7d473fd974$export$d40e14dec8b060a8 = (0, import_react134.createContext)(null), $7135fc7d473fd974$export$6e2c8f0811a474ce = $e1995378a142960e$export$e953bb1cd0f19726("section", (props, ref, section) => {
  70703. let { name, render } = (0, import_react134.useContext)($7135fc7d473fd974$export$d40e14dec8b060a8);
  70704. return render(props, ref, section, "react-aria-Section");
  70705. }), $7135fc7d473fd974$export$a164736487e3f0ae = {
  70706. CollectionRoot({ collection, renderDropIndicator }) {
  70707. return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator);
  70708. },
  70709. CollectionBranch({ collection, parent, renderDropIndicator }) {
  70710. return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator);
  70711. }
  70712. };
  70713. function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) {
  70714. return $e948873055cbafe4$export$727c8fc270210f13({
  70715. items: parent ? collection.getChildren(parent.key) : collection,
  70716. dependencies: [
  70717. renderDropIndicator
  70718. ],
  70719. children(node2) {
  70720. let rendered = node2.render(node2);
  70721. return !renderDropIndicator || node2.type !== "item" ? rendered : import_react134.default.createElement(import_react134.default.Fragment, null, renderDropIndicator({
  70722. type: "item",
  70723. key: node2.key,
  70724. dropPosition: "before"
  70725. }), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node2, renderDropIndicator));
  70726. }
  70727. });
  70728. }
  70729. function $7135fc7d473fd974$export$2dbbd341daed716d(collection, node2, renderDropIndicator) {
  70730. let key = node2.key, keyAfter = collection.getKeyAfter(key), nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
  70731. for (; nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item"; )
  70732. keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key), nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
  70733. let nextItemInSameLevel = node2.nextKey != null ? collection.getItem(node2.nextKey) : null;
  70734. for (; nextItemInSameLevel != null && nextItemInSameLevel.type !== "item"; ) nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null;
  70735. let afterIndicators = [];
  70736. if (nextItemInSameLevel == null) {
  70737. let current = node2;
  70738. for (; current && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level); ) {
  70739. let indicator = renderDropIndicator({
  70740. type: "item",
  70741. key: current.key,
  70742. dropPosition: "after"
  70743. });
  70744. (0, import_react134.isValidElement)(indicator) && afterIndicators.push((0, import_react134.cloneElement)(indicator, {
  70745. key: `${current.key}-after`
  70746. })), current = current.parentKey != null ? collection.getItem(current.parentKey) : null;
  70747. }
  70748. }
  70749. return afterIndicators;
  70750. }
  70751. var $7135fc7d473fd974$export$4feb769f8ddf26c5 = (0, import_react134.createContext)($7135fc7d473fd974$export$a164736487e3f0ae);
  70752. function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
  70753. return (0, import_react134.useMemo)(() => focusedKey != null ? /* @__PURE__ */ new Set([
  70754. focusedKey
  70755. ]) : null, [
  70756. focusedKey
  70757. ]);
  70758. }
  70759. // ../../node_modules/react-aria-components/dist/context.mjs
  70760. var import_react135 = __toESM(require_react(), 1), $8e6cc465cc68f603$export$b0d3ecf7112093a7 = (0, import_react135.createContext)(null), $8e6cc465cc68f603$export$698f465ec27e93df = (0, import_react135.createContext)(null);
  70761. // ../../node_modules/react-aria-components/dist/Header.mjs
  70762. var import_react136 = __toESM(require_react(), 1), $72a5793c14baf454$export$e0e4026c12a8bdbb = (0, import_react136.createContext)({}), $72a5793c14baf454$export$8b251419efc915eb = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$5ae2504e948afce5, function(props, ref) {
  70763. return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb), import_react136.default.createElement("header", {
  70764. className: "react-aria-Header",
  70765. ...props,
  70766. ref
  70767. }, props.children);
  70768. });
  70769. // ../../node_modules/react-aria-components/dist/Keyboard.mjs
  70770. var import_react137 = __toESM(require_react(), 1), $63df2425e2108aa8$export$744d98a3b8a94e1c = (0, import_react137.createContext)({}), $63df2425e2108aa8$export$16e4d70cc375e707 = (0, import_react137.forwardRef)(function(props, ref) {
  70771. return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $63df2425e2108aa8$export$744d98a3b8a94e1c), import_react137.default.createElement("kbd", {
  70772. dir: "ltr",
  70773. ...props,
  70774. ref
  70775. });
  70776. });
  70777. // ../../node_modules/@react-aria/separator/dist/useSeparator.mjs
  70778. function $f4b273590fab9f93$export$52210f68a14655d0(props) {
  70779. let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70780. labelable: !0
  70781. }), ariaOrientation;
  70782. return props.orientation === "vertical" && (ariaOrientation = "vertical"), props.elementType !== "hr" ? {
  70783. separatorProps: {
  70784. ...domProps,
  70785. role: "separator",
  70786. "aria-orientation": ariaOrientation
  70787. }
  70788. } : {
  70789. separatorProps: domProps
  70790. };
  70791. }
  70792. // ../../node_modules/react-aria-components/dist/Separator.mjs
  70793. var import_react138 = __toESM(require_react(), 1), $431f98aba6844401$export$6615d83f6de245ce = (0, import_react138.createContext)({}), $431f98aba6844401$export$7750289ca694c0b5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  70794. filter(collection, newCollection) {
  70795. let prevItem = newCollection.getItem(this.prevKey);
  70796. if (prevItem && prevItem.type !== "separator") {
  70797. let clone3 = this.clone();
  70798. return newCollection.addDescendants(clone3, collection), clone3;
  70799. }
  70800. return null;
  70801. }
  70802. };
  70803. $431f98aba6844401$export$7750289ca694c0b5.type = "separator";
  70804. var $431f98aba6844401$export$1ff3c3f08ae963c0 = $e1995378a142960e$export$18af5c7a9e9b3664($431f98aba6844401$export$7750289ca694c0b5, function(props, ref) {
  70805. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $431f98aba6844401$export$6615d83f6de245ce);
  70806. let { elementType, orientation, style, className, slot, ...otherProps } = props, Element2 = elementType || "hr";
  70807. Element2 === "hr" && orientation === "vertical" && (Element2 = "div");
  70808. let { separatorProps } = $f4b273590fab9f93$export$52210f68a14655d0({
  70809. ...otherProps,
  70810. elementType,
  70811. orientation
  70812. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70813. global: !0
  70814. });
  70815. return import_react138.default.createElement(Element2, {
  70816. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, separatorProps),
  70817. style,
  70818. className: className ?? "react-aria-Separator",
  70819. ref,
  70820. slot: slot || void 0
  70821. });
  70822. });
  70823. // ../../node_modules/@react-aria/menu/dist/ar-AE.mjs
  70824. var $c0398ad35c3639b7$exports = {};
  70825. $c0398ad35c3639b7$exports = {
  70826. longPressMessage: "\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"
  70827. };
  70828. // ../../node_modules/@react-aria/menu/dist/bg-BG.mjs
  70829. var $7af657c4165927c3$exports = {};
  70830. $7af657c4165927c3$exports = {
  70831. longPressMessage: "\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"
  70832. };
  70833. // ../../node_modules/@react-aria/menu/dist/cs-CZ.mjs
  70834. var $d95d4da6d531ab81$exports = {};
  70835. $d95d4da6d531ab81$exports = {
  70836. longPressMessage: "Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"
  70837. };
  70838. // ../../node_modules/@react-aria/menu/dist/da-DK.mjs
  70839. var $24ebda9c775dca17$exports = {};
  70840. $24ebda9c775dca17$exports = {
  70841. longPressMessage: "Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"
  70842. };
  70843. // ../../node_modules/@react-aria/menu/dist/de-DE.mjs
  70844. var $743e0dfca6cab1e9$exports = {};
  70845. $743e0dfca6cab1e9$exports = {
  70846. longPressMessage: "Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"
  70847. };
  70848. // ../../node_modules/@react-aria/menu/dist/el-GR.mjs
  70849. var $a2f41026e05f1c84$exports = {};
  70850. $a2f41026e05f1c84$exports = {
  70851. longPressMessage: "\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"
  70852. };
  70853. // ../../node_modules/@react-aria/menu/dist/en-US.mjs
  70854. var $43b800e97c901737$exports = {};
  70855. $43b800e97c901737$exports = {
  70856. longPressMessage: "Long press or press Alt + ArrowDown to open menu"
  70857. };
  70858. // ../../node_modules/@react-aria/menu/dist/es-ES.mjs
  70859. var $442f5f6ac211e29f$exports = {};
  70860. $442f5f6ac211e29f$exports = {
  70861. longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"
  70862. };
  70863. // ../../node_modules/@react-aria/menu/dist/et-EE.mjs
  70864. var $dff280acfeb2d8ac$exports = {};
  70865. $dff280acfeb2d8ac$exports = {
  70866. longPressMessage: "Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"
  70867. };
  70868. // ../../node_modules/@react-aria/menu/dist/fi-FI.mjs
  70869. var $51608325613944d7$exports = {};
  70870. $51608325613944d7$exports = {
  70871. longPressMessage: "Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"
  70872. };
  70873. // ../../node_modules/@react-aria/menu/dist/fr-FR.mjs
  70874. var $c4a1b1eabeaa87be$exports = {};
  70875. $c4a1b1eabeaa87be$exports = {
  70876. longPressMessage: "Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."
  70877. };
  70878. // ../../node_modules/@react-aria/menu/dist/he-IL.mjs
  70879. var $8c74815cdee18d1b$exports = {};
  70880. $8c74815cdee18d1b$exports = {
  70881. longPressMessage: "\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"
  70882. };
  70883. // ../../node_modules/@react-aria/menu/dist/hr-HR.mjs
  70884. var $fd0e9ef6a7fe0ec9$exports = {};
  70885. $fd0e9ef6a7fe0ec9$exports = {
  70886. longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"
  70887. };
  70888. // ../../node_modules/@react-aria/menu/dist/hu-HU.mjs
  70889. var $a89a74a39eba465a$exports = {};
  70890. $a89a74a39eba465a$exports = {
  70891. longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"
  70892. };
  70893. // ../../node_modules/@react-aria/menu/dist/it-IT.mjs
  70894. var $edc7c66594a0ae8a$exports = {};
  70895. $edc7c66594a0ae8a$exports = {
  70896. longPressMessage: "Premere a lungo o premere Alt + Freccia gi\xF9 per aprire il menu"
  70897. };
  70898. // ../../node_modules/@react-aria/menu/dist/ja-JP.mjs
  70899. var $f1ab51510712db52$exports = {};
  70900. $f1ab51510712db52$exports = {
  70901. longPressMessage: "\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"
  70902. };
  70903. // ../../node_modules/@react-aria/menu/dist/ko-KR.mjs
  70904. var $f9b672d9b82fa3d6$exports = {};
  70905. $f9b672d9b82fa3d6$exports = {
  70906. longPressMessage: "\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"
  70907. };
  70908. // ../../node_modules/@react-aria/menu/dist/lt-LT.mjs
  70909. var $a385f3910feda499$exports = {};
  70910. $a385f3910feda499$exports = {
  70911. longPressMessage: "Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."
  70912. };
  70913. // ../../node_modules/@react-aria/menu/dist/lv-LV.mjs
  70914. var $4f1bde932c441789$exports = {};
  70915. $4f1bde932c441789$exports = {
  70916. longPressMessage: "Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"
  70917. };
  70918. // ../../node_modules/@react-aria/menu/dist/nb-NO.mjs
  70919. var $914a51a8a594d5be$exports = {};
  70920. $914a51a8a594d5be$exports = {
  70921. longPressMessage: "Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"
  70922. };
  70923. // ../../node_modules/@react-aria/menu/dist/nl-NL.mjs
  70924. var $89aaf803103bb500$exports = {};
  70925. $89aaf803103bb500$exports = {
  70926. longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"
  70927. };
  70928. // ../../node_modules/@react-aria/menu/dist/pl-PL.mjs
  70929. var $c685891476dbaaca$exports = {};
  70930. $c685891476dbaaca$exports = {
  70931. longPressMessage: "Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"
  70932. };
  70933. // ../../node_modules/@react-aria/menu/dist/pt-BR.mjs
  70934. var $885879b9b10c2959$exports = {};
  70935. $885879b9b10c2959$exports = {
  70936. longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"
  70937. };
  70938. // ../../node_modules/@react-aria/menu/dist/pt-PT.mjs
  70939. var $6b39616688a51692$exports = {};
  70940. $6b39616688a51692$exports = {
  70941. longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"
  70942. };
  70943. // ../../node_modules/@react-aria/menu/dist/ro-RO.mjs
  70944. var $f26362aed63f47e2$exports = {};
  70945. $f26362aed63f47e2$exports = {
  70946. longPressMessage: "Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"
  70947. };
  70948. // ../../node_modules/@react-aria/menu/dist/ru-RU.mjs
  70949. var $06cbade644558bf0$exports = {};
  70950. $06cbade644558bf0$exports = {
  70951. longPressMessage: "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"
  70952. };
  70953. // ../../node_modules/@react-aria/menu/dist/sk-SK.mjs
  70954. var $0a391ff68f9d59b1$exports = {};
  70955. $0a391ff68f9d59b1$exports = {
  70956. longPressMessage: "Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"
  70957. };
  70958. // ../../node_modules/@react-aria/menu/dist/sl-SI.mjs
  70959. var $8193cf0e649c7928$exports = {};
  70960. $8193cf0e649c7928$exports = {
  70961. longPressMessage: "Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"
  70962. };
  70963. // ../../node_modules/@react-aria/menu/dist/sr-SP.mjs
  70964. var $f398debcce5a5c55$exports = {};
  70965. $f398debcce5a5c55$exports = {
  70966. longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"
  70967. };
  70968. // ../../node_modules/@react-aria/menu/dist/sv-SE.mjs
  70969. var $9e9fef000aa4c013$exports = {};
  70970. $9e9fef000aa4c013$exports = {
  70971. longPressMessage: "H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"
  70972. };
  70973. // ../../node_modules/@react-aria/menu/dist/tr-TR.mjs
  70974. var $c016c8183bbe3d68$exports = {};
  70975. $c016c8183bbe3d68$exports = {
  70976. longPressMessage: "Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"
  70977. };
  70978. // ../../node_modules/@react-aria/menu/dist/uk-UA.mjs
  70979. var $ca4f6c8462244e62$exports = {};
  70980. $ca4f6c8462244e62$exports = {
  70981. longPressMessage: "\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"
  70982. };
  70983. // ../../node_modules/@react-aria/menu/dist/zh-CN.mjs
  70984. var $2d9960c02ccac927$exports = {};
  70985. $2d9960c02ccac927$exports = {
  70986. longPressMessage: "\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"
  70987. };
  70988. // ../../node_modules/@react-aria/menu/dist/zh-TW.mjs
  70989. var $f1b682a4c8c5631c$exports = {};
  70990. $f1b682a4c8c5631c$exports = {
  70991. longPressMessage: "\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"
  70992. };
  70993. // ../../node_modules/@react-aria/menu/dist/intlStrings.mjs
  70994. var $2cbb7ca666678a14$exports = {};
  70995. $2cbb7ca666678a14$exports = {
  70996. "ar-AE": $c0398ad35c3639b7$exports,
  70997. "bg-BG": $7af657c4165927c3$exports,
  70998. "cs-CZ": $d95d4da6d531ab81$exports,
  70999. "da-DK": $24ebda9c775dca17$exports,
  71000. "de-DE": $743e0dfca6cab1e9$exports,
  71001. "el-GR": $a2f41026e05f1c84$exports,
  71002. "en-US": $43b800e97c901737$exports,
  71003. "es-ES": $442f5f6ac211e29f$exports,
  71004. "et-EE": $dff280acfeb2d8ac$exports,
  71005. "fi-FI": $51608325613944d7$exports,
  71006. "fr-FR": $c4a1b1eabeaa87be$exports,
  71007. "he-IL": $8c74815cdee18d1b$exports,
  71008. "hr-HR": $fd0e9ef6a7fe0ec9$exports,
  71009. "hu-HU": $a89a74a39eba465a$exports,
  71010. "it-IT": $edc7c66594a0ae8a$exports,
  71011. "ja-JP": $f1ab51510712db52$exports,
  71012. "ko-KR": $f9b672d9b82fa3d6$exports,
  71013. "lt-LT": $a385f3910feda499$exports,
  71014. "lv-LV": $4f1bde932c441789$exports,
  71015. "nb-NO": $914a51a8a594d5be$exports,
  71016. "nl-NL": $89aaf803103bb500$exports,
  71017. "pl-PL": $c685891476dbaaca$exports,
  71018. "pt-BR": $885879b9b10c2959$exports,
  71019. "pt-PT": $6b39616688a51692$exports,
  71020. "ro-RO": $f26362aed63f47e2$exports,
  71021. "ru-RU": $06cbade644558bf0$exports,
  71022. "sk-SK": $0a391ff68f9d59b1$exports,
  71023. "sl-SI": $8193cf0e649c7928$exports,
  71024. "sr-SP": $f398debcce5a5c55$exports,
  71025. "sv-SE": $9e9fef000aa4c013$exports,
  71026. "tr-TR": $c016c8183bbe3d68$exports,
  71027. "uk-UA": $ca4f6c8462244e62$exports,
  71028. "zh-CN": $2d9960c02ccac927$exports,
  71029. "zh-TW": $f1b682a4c8c5631c$exports
  71030. };
  71031. // ../../node_modules/@react-aria/menu/dist/utils.mjs
  71032. var $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
  71033. // ../../node_modules/@react-aria/selection/dist/utils.mjs
  71034. function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
  71035. return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
  71036. }
  71037. function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
  71038. var _collectionRef_current, _collectionRef_current1;
  71039. let selector = `[data-key="${CSS.escape(String(key))}"]`, collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
  71040. return collection && (selector = `[data-collection="${CSS.escape(collection)}"]${selector}`), (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
  71041. }
  71042. var $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap();
  71043. function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
  71044. let id = $bdb11010cef70236$export$f680877a34711e37();
  71045. return $feb5ffebff200149$var$collectionMap.set(collection, id), id;
  71046. }
  71047. function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
  71048. return $feb5ffebff200149$var$collectionMap.get(collection);
  71049. }
  71050. // ../../node_modules/@react-aria/selection/dist/useTypeSelect.mjs
  71051. var import_react139 = __toESM(require_react(), 1), $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
  71052. function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
  71053. let { keyboardDelegate, selectionManager, onTypeSelect } = options, state3 = (0, import_react139.useRef)({
  71054. search: "",
  71055. timeout: void 0
  71056. }).current, onKeyDown = (e) => {
  71057. let character2 = $fb3050f43d946246$var$getStringForKey(e.key);
  71058. if (!(!character2 || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target) || state3.search.length === 0 && character2 === " ")) {
  71059. if (character2 === " " && state3.search.trim().length > 0 && (e.preventDefault(), "continuePropagation" in e || e.stopPropagation()), state3.search += character2, keyboardDelegate.getKeyForSearch != null) {
  71060. let key = keyboardDelegate.getKeyForSearch(state3.search, selectionManager.focusedKey);
  71061. key == null && (key = keyboardDelegate.getKeyForSearch(state3.search)), key != null && (selectionManager.setFocusedKey(key), onTypeSelect && onTypeSelect(key));
  71062. }
  71063. clearTimeout(state3.timeout), state3.timeout = setTimeout(() => {
  71064. state3.search = "";
  71065. }, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);
  71066. }
  71067. };
  71068. return {
  71069. typeSelectProps: {
  71070. // Using a capturing listener to catch the keydown event before
  71071. // other hooks in order to handle the Spacebar event.
  71072. onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : void 0
  71073. }
  71074. };
  71075. }
  71076. function $fb3050f43d946246$var$getStringForKey(key) {
  71077. return key.length === 1 || !/^[A-Z]/i.test(key) ? key : "";
  71078. }
  71079. // ../../node_modules/@react-aria/selection/dist/useSelectableCollection.mjs
  71080. var import_react_dom6 = __toESM(require_react_dom(), 1), import_react140 = __toESM(require_react(), 1);
  71081. function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
  71082. let { selectionManager: manager, keyboardDelegate: delegate, ref, autoFocus = !1, shouldFocusWrap = !1, disallowEmptySelection = !1, disallowSelectAll = !1, escapeKeyBehavior = "clearSelection", selectOnFocus = manager.selectionBehavior === "replace", disallowTypeAhead = !1, shouldUseVirtualFocus, allowsTabNavigation = !1, isVirtualized, scrollRef = ref, linkBehavior = "action" } = options, { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572(), onKeyDown = (e) => {
  71083. var _ref_current;
  71084. if (e.altKey && e.key === "Tab" && e.preventDefault(), !(!((_ref_current = ref.current) === null || _ref_current === void 0) && _ref_current.contains(e.target))) return;
  71085. let navigateToKey = (key, childFocus) => {
  71086. if (key != null) {
  71087. if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
  71088. (0, import_react_dom6.flushSync)(() => {
  71089. manager.setFocusedKey(key, childFocus);
  71090. });
  71091. let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key), itemProps = manager.getItemProps(key);
  71092. item && router.open(item, e, itemProps.href, itemProps.routerOptions);
  71093. return;
  71094. }
  71095. if (manager.setFocusedKey(key, childFocus), manager.isLink(key) && linkBehavior === "override") return;
  71096. e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(key) : selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e) && manager.replaceSelection(key);
  71097. }
  71098. };
  71099. switch (e.key) {
  71100. case "ArrowDown":
  71101. if (delegate.getKeyBelow) {
  71102. var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
  71103. let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
  71104. nextKey == null && shouldFocusWrap && (nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71105. }
  71106. break;
  71107. case "ArrowUp":
  71108. if (delegate.getKeyAbove) {
  71109. var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
  71110. let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
  71111. nextKey == null && shouldFocusWrap && (nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71112. }
  71113. break;
  71114. case "ArrowLeft":
  71115. if (delegate.getKeyLeftOf) {
  71116. var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
  71117. let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
  71118. nextKey == null && shouldFocusWrap && (nextKey = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey, direction === "rtl" ? "first" : "last"));
  71119. }
  71120. break;
  71121. case "ArrowRight":
  71122. if (delegate.getKeyRightOf) {
  71123. var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
  71124. let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
  71125. nextKey == null && shouldFocusWrap && (nextKey = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey, direction === "rtl" ? "last" : "first"));
  71126. }
  71127. break;
  71128. case "Home":
  71129. if (delegate.getFirstKey) {
  71130. if (manager.focusedKey === null && e.shiftKey) return;
  71131. e.preventDefault();
  71132. let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
  71133. manager.setFocusedKey(firstKey), firstKey != null && ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(firstKey) : selectOnFocus && manager.replaceSelection(firstKey));
  71134. }
  71135. break;
  71136. case "End":
  71137. if (delegate.getLastKey) {
  71138. if (manager.focusedKey === null && e.shiftKey) return;
  71139. e.preventDefault();
  71140. let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
  71141. manager.setFocusedKey(lastKey), lastKey != null && ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(lastKey) : selectOnFocus && manager.replaceSelection(lastKey));
  71142. }
  71143. break;
  71144. case "PageDown":
  71145. if (delegate.getKeyPageBelow && manager.focusedKey != null) {
  71146. let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
  71147. nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71148. }
  71149. break;
  71150. case "PageUp":
  71151. if (delegate.getKeyPageAbove && manager.focusedKey != null) {
  71152. let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
  71153. nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71154. }
  71155. break;
  71156. case "a":
  71157. $21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== !0 && (e.preventDefault(), manager.selectAll());
  71158. break;
  71159. case "Escape":
  71160. escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0 && (e.stopPropagation(), e.preventDefault(), manager.clearSelection());
  71161. break;
  71162. case "Tab":
  71163. if (!allowsTabNavigation) {
  71164. if (e.shiftKey) ref.current.focus();
  71165. else {
  71166. let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, {
  71167. tabbable: !0
  71168. }), next2, last2;
  71169. do
  71170. last2 = walker.lastChild(), last2 && (next2 = last2);
  71171. while (last2);
  71172. next2 && !next2.contains(document.activeElement) && $7215afc6de606d6b$export$de79e2c695e052f3(next2);
  71173. }
  71174. break;
  71175. }
  71176. }
  71177. }, scrollPos = (0, import_react140.useRef)({
  71178. top: 0,
  71179. left: 0
  71180. });
  71181. $e9faafb641e167db$export$90fc3a17d93f704c(scrollRef, "scroll", isVirtualized ? void 0 : () => {
  71182. var _scrollRef_current, _scrollRef_current1, _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
  71183. scrollPos.current = {
  71184. top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
  71185. left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
  71186. };
  71187. });
  71188. let onFocus = (e) => {
  71189. if (manager.isFocused) {
  71190. e.currentTarget.contains(e.target) || manager.setFocused(!1);
  71191. return;
  71192. }
  71193. if (e.currentTarget.contains(e.target)) {
  71194. if (manager.setFocused(!0), manager.focusedKey == null) {
  71195. var _delegate_getLastKey, _delegate_getFirstKey;
  71196. let navigateToKey = (key) => {
  71197. key != null && (manager.setFocusedKey(key), selectOnFocus && !manager.isSelected(key) && manager.replaceSelection(key));
  71198. }, relatedTarget = e.relatedTarget;
  71199. var _manager_lastSelectedKey, _manager_firstSelectedKey;
  71200. relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING ? navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) : navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
  71201. } else !isVirtualized && scrollRef.current && (scrollRef.current.scrollTop = scrollPos.current.top, scrollRef.current.scrollLeft = scrollPos.current.left);
  71202. if (manager.focusedKey != null && scrollRef.current) {
  71203. let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
  71204. element instanceof HTMLElement && (!element.contains(document.activeElement) && !shouldUseVirtualFocus && $7215afc6de606d6b$export$de79e2c695e052f3(element), $507fabe10e71c6fb$export$630ff653c5ada6a9() === "keyboard" && $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
  71205. containingElement: ref.current
  71206. }));
  71207. }
  71208. }
  71209. }, onBlur = (e) => {
  71210. e.currentTarget.contains(e.relatedTarget) || manager.setFocused(!1);
  71211. }, shouldVirtualFocusFirst = (0, import_react140.useRef)(!1);
  71212. $e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, shouldUseVirtualFocus ? (e) => {
  71213. let { detail } = e;
  71214. e.stopPropagation(), manager.setFocused(!0), detail?.focusStrategy === "first" && (shouldVirtualFocusFirst.current = !0);
  71215. } : void 0);
  71216. let updateActiveDescendant = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
  71217. var _delegate_getFirstKey, _delegate_getFirstKey1;
  71218. let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
  71219. if (keyToFocus == null) {
  71220. let previousActiveElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
  71221. $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current), $55f9b1ae81f22853$export$2b35b76d2e30e129(previousActiveElement, null), manager.collection.size > 0 && (shouldVirtualFocusFirst.current = !1);
  71222. } else
  71223. manager.setFocusedKey(keyToFocus), shouldVirtualFocusFirst.current = !1;
  71224. });
  71225. $ca9b37712f007381$export$72ef708ab07251f1(() => {
  71226. shouldVirtualFocusFirst.current && updateActiveDescendant();
  71227. }, [
  71228. manager.collection,
  71229. updateActiveDescendant
  71230. ]);
  71231. let resetFocusFirstFlag = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
  71232. manager.collection.size > 0 && (shouldVirtualFocusFirst.current = !1);
  71233. });
  71234. $ca9b37712f007381$export$72ef708ab07251f1(() => {
  71235. resetFocusFirstFlag();
  71236. }, [
  71237. manager.focusedKey,
  71238. resetFocusFirstFlag
  71239. ]), $e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, shouldUseVirtualFocus ? (e) => {
  71240. var _e_detail;
  71241. e.stopPropagation(), manager.setFocused(!1), !((_e_detail = e.detail) === null || _e_detail === void 0) && _e_detail.clearFocusKey && manager.setFocusedKey(null);
  71242. } : void 0);
  71243. let autoFocusRef = (0, import_react140.useRef)(autoFocus), didAutoFocusRef = (0, import_react140.useRef)(!1);
  71244. (0, import_react140.useEffect)(() => {
  71245. if (autoFocusRef.current) {
  71246. var _delegate_getFirstKey, _delegate_getLastKey;
  71247. let focusedKey = null;
  71248. var _delegate_getFirstKey1;
  71249. autoFocus === "first" && (focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null);
  71250. var _delegate_getLastKey1;
  71251. autoFocus === "last" && (focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null);
  71252. let selectedKeys = manager.selectedKeys;
  71253. if (selectedKeys.size) {
  71254. for (let key of selectedKeys) if (manager.canSelectItem(key)) {
  71255. focusedKey = key;
  71256. break;
  71257. }
  71258. }
  71259. manager.setFocused(!0), manager.setFocusedKey(focusedKey), focusedKey == null && !shouldUseVirtualFocus && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current), manager.collection.size > 0 && (autoFocusRef.current = !1, didAutoFocusRef.current = !0);
  71260. }
  71261. });
  71262. let lastFocusedKey = (0, import_react140.useRef)(manager.focusedKey), raf = (0, import_react140.useRef)(null);
  71263. (0, import_react140.useEffect)(() => {
  71264. if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
  71265. let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9(), element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
  71266. if (!(element instanceof HTMLElement))
  71267. return;
  71268. (modality === "keyboard" || didAutoFocusRef.current) && (raf.current && cancelAnimationFrame(raf.current), raf.current = requestAnimationFrame(() => {
  71269. scrollRef.current && ($2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element), modality !== "virtual" && $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
  71270. containingElement: ref.current
  71271. }));
  71272. }));
  71273. }
  71274. !shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current), lastFocusedKey.current = manager.focusedKey, didAutoFocusRef.current = !1;
  71275. }), (0, import_react140.useEffect)(() => () => {
  71276. raf.current && cancelAnimationFrame(raf.current);
  71277. }, []), $e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
  71278. e.preventDefault(), manager.setFocused(!0);
  71279. });
  71280. let handlers = {
  71281. onKeyDown,
  71282. onFocus,
  71283. onBlur,
  71284. onMouseDown(e) {
  71285. scrollRef.current === e.target && e.preventDefault();
  71286. }
  71287. }, { typeSelectProps } = $fb3050f43d946246$export$e32c88dfddc6e1d8({
  71288. keyboardDelegate: delegate,
  71289. selectionManager: manager
  71290. });
  71291. disallowTypeAhead || (handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers));
  71292. let tabIndex;
  71293. shouldUseVirtualFocus || (tabIndex = manager.focusedKey == null ? 0 : -1);
  71294. let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
  71295. return {
  71296. collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
  71297. tabIndex,
  71298. "data-collection": collectionId
  71299. })
  71300. };
  71301. }
  71302. // ../../node_modules/@react-aria/selection/dist/useSelectableItem.mjs
  71303. var import_react141 = __toESM(require_react(), 1);
  71304. function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
  71305. let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled: isDisabled3, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options, router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
  71306. id = $bdb11010cef70236$export$f680877a34711e37(id);
  71307. let onSelect = (e) => {
  71308. if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
  71309. else {
  71310. if (manager.selectionMode === "none") return;
  71311. if (manager.isLink(key)) {
  71312. if (linkBehavior === "selection" && ref.current) {
  71313. let itemProps2 = manager.getItemProps(key);
  71314. router.open(ref.current, e, itemProps2.href, itemProps2.routerOptions), manager.setSelectedKeys(manager.selectedKeys);
  71315. return;
  71316. } else if (linkBehavior === "override" || linkBehavior === "none") return;
  71317. }
  71318. manager.selectionMode === "single" ? manager.isSelected(key) && !manager.disallowEmptySelection ? manager.toggleSelection(key) : manager.replaceSelection(key) : e && e.shiftKey ? manager.extendSelection(key) : manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? manager.toggleSelection(key) : manager.replaceSelection(key);
  71319. }
  71320. };
  71321. (0, import_react141.useEffect)(() => {
  71322. key === manager.focusedKey && manager.isFocused && (shouldUseVirtualFocus ? $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current) : focus ? focus() : document.activeElement !== ref.current && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current));
  71323. }, [
  71324. ref,
  71325. key,
  71326. manager.focusedKey,
  71327. manager.childFocusStrategy,
  71328. manager.isFocused,
  71329. shouldUseVirtualFocus
  71330. ]), isDisabled3 = isDisabled3 || manager.isDisabled(key);
  71331. let itemProps = {};
  71332. !shouldUseVirtualFocus && !isDisabled3 ? itemProps = {
  71333. tabIndex: key === manager.focusedKey ? 0 : -1,
  71334. onFocus(e) {
  71335. e.target === ref.current && manager.setFocusedKey(key);
  71336. }
  71337. } : isDisabled3 && (itemProps.onMouseDown = (e) => {
  71338. e.preventDefault();
  71339. });
  71340. let isLinkOverride = manager.isLink(key) && linkBehavior === "override", isActionOverride = onAction && options.UNSTABLE_itemBehavior === "action", hasLinkAction = manager.isLink(key) && linkBehavior !== "selection" && linkBehavior !== "none", allowsSelection = !isDisabled3 && manager.canSelectItem(key) && !isLinkOverride && !isActionOverride, allowsActions = (onAction || hasLinkAction) && !isDisabled3, hasPrimaryAction = allowsActions && (manager.selectionBehavior === "replace" ? !allowsSelection : !allowsSelection || manager.isEmpty), hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === "replace", hasAction = hasPrimaryAction || hasSecondaryAction, modality = (0, import_react141.useRef)(null), longPressEnabled = hasAction && allowsSelection, longPressEnabledOnPressStart = (0, import_react141.useRef)(!1), hadPrimaryActionOnPressStart = (0, import_react141.useRef)(!1), collectionItemProps = manager.getItemProps(key), performAction = (e) => {
  71341. if (onAction) {
  71342. var _ref_current;
  71343. onAction(), (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.dispatchEvent(new CustomEvent("react-aria-item-action", {
  71344. bubbles: !0
  71345. }));
  71346. }
  71347. hasLinkAction && ref.current && router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions);
  71348. }, itemPressProps = {
  71349. ref
  71350. };
  71351. if (shouldSelectOnPressUp ? (itemPressProps.onPressStart = (e) => {
  71352. modality.current = e.pointerType, longPressEnabledOnPressStart.current = longPressEnabled, e.pointerType === "keyboard" && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey()) && onSelect(e);
  71353. }, allowsDifferentPressOrigin ? (itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
  71354. e.pointerType === "mouse" && allowsSelection && onSelect(e);
  71355. }, itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
  71356. e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection && onSelect(e);
  71357. }) : itemPressProps.onPress = (e) => {
  71358. if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== "mouse") {
  71359. if (e.pointerType === "keyboard" && !$880e95eb8b93ba9a$var$isActionKey()) return;
  71360. performAction(e);
  71361. } else e.pointerType !== "keyboard" && allowsSelection && onSelect(e);
  71362. }) : (itemPressProps.onPressStart = (e) => {
  71363. modality.current = e.pointerType, longPressEnabledOnPressStart.current = longPressEnabled, hadPrimaryActionOnPressStart.current = hasPrimaryAction, allowsSelection && (e.pointerType === "mouse" && !hasPrimaryAction || e.pointerType === "keyboard" && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey())) && onSelect(e);
  71364. }, itemPressProps.onPress = (e) => {
  71365. (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && hasAction && $880e95eb8b93ba9a$var$isActionKey() || e.pointerType === "mouse" && hadPrimaryActionOnPressStart.current) && (hasAction ? performAction(e) : allowsSelection && onSelect(e));
  71366. }), itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection), itemProps["data-key"] = key, itemPressProps.preventFocusOnPress = shouldUseVirtualFocus, shouldUseVirtualFocus && (itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
  71367. onPressStart(e) {
  71368. e.pointerType !== "touch" && (manager.setFocused(!0), manager.setFocusedKey(key));
  71369. },
  71370. onPress(e) {
  71371. e.pointerType === "touch" && (manager.setFocused(!0), manager.setFocusedKey(key));
  71372. }
  71373. })), collectionItemProps)
  71374. for (let key2 of [
  71375. "onPressStart",
  71376. "onPressEnd",
  71377. "onPressChange",
  71378. "onPress",
  71379. "onPressUp",
  71380. "onClick"
  71381. ]) collectionItemProps[key2] && (itemPressProps[key2] = $ff5963eb1fccf552$export$e08e3b67e392101e(itemPressProps[key2], collectionItemProps[key2]));
  71382. let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps), onDoubleClick = hasSecondaryAction ? (e) => {
  71383. modality.current === "mouse" && (e.stopPropagation(), e.preventDefault(), performAction(e));
  71384. } : void 0, { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
  71385. isDisabled: !longPressEnabled,
  71386. onLongPress(e) {
  71387. e.pointerType === "touch" && (onSelect(e), manager.setSelectionBehavior("toggle"));
  71388. }
  71389. }), onDragStartCapture = (e) => {
  71390. modality.current === "touch" && longPressEnabledOnPressStart.current && e.preventDefault();
  71391. }, onClick = linkBehavior !== "none" && manager.isLink(key) ? (e) => {
  71392. $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening || e.preventDefault();
  71393. } : void 0;
  71394. return {
  71395. itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
  71396. itemProps,
  71397. allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled3 ? pressProps : {},
  71398. longPressEnabled ? longPressProps : {},
  71399. {
  71400. onDoubleClick,
  71401. onDragStartCapture,
  71402. onClick,
  71403. id
  71404. },
  71405. // Prevent DOM focus from moving on mouse down when using virtual focus
  71406. shouldUseVirtualFocus ? {
  71407. onMouseDown: (e) => e.preventDefault()
  71408. } : void 0
  71409. ),
  71410. isPressed,
  71411. isSelected: manager.isSelected(key),
  71412. isFocused: manager.isFocused && manager.focusedKey === key,
  71413. isDisabled: isDisabled3,
  71414. allowsSelection,
  71415. hasAction
  71416. };
  71417. }
  71418. function $880e95eb8b93ba9a$var$isActionKey() {
  71419. let event = window.event;
  71420. return event?.key === "Enter";
  71421. }
  71422. function $880e95eb8b93ba9a$var$isSelectionKey() {
  71423. let event = window.event;
  71424. return event?.key === " " || event?.code === "Space";
  71425. }
  71426. // ../../node_modules/@react-aria/selection/dist/DOMLayoutDelegate.mjs
  71427. var $657e4dc4a6e88df0$export$8f5ed9ff9f511381 = class {
  71428. getItemRect(key) {
  71429. let container = this.ref.current;
  71430. if (!container) return null;
  71431. let item = key != null ? $feb5ffebff200149$export$c3d8340acf92597f(this.ref, key) : null;
  71432. if (!item) return null;
  71433. let containerRect = container.getBoundingClientRect(), itemRect = item.getBoundingClientRect();
  71434. return {
  71435. x: itemRect.left - containerRect.left - container.clientLeft + container.scrollLeft,
  71436. y: itemRect.top - containerRect.top - container.clientTop + container.scrollTop,
  71437. width: itemRect.width,
  71438. height: itemRect.height
  71439. };
  71440. }
  71441. getContentSize() {
  71442. let container = this.ref.current;
  71443. var _container_scrollWidth, _container_scrollHeight;
  71444. return {
  71445. width: (_container_scrollWidth = container?.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0,
  71446. height: (_container_scrollHeight = container?.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0
  71447. };
  71448. }
  71449. getVisibleRect() {
  71450. let container = this.ref.current;
  71451. var _container_scrollLeft, _container_scrollTop, _container_clientWidth, _container_clientHeight;
  71452. return {
  71453. x: (_container_scrollLeft = container?.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0,
  71454. y: (_container_scrollTop = container?.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0,
  71455. width: (_container_clientWidth = container?.clientWidth) !== null && _container_clientWidth !== void 0 ? _container_clientWidth : 0,
  71456. height: (_container_clientHeight = container?.clientHeight) !== null && _container_clientHeight !== void 0 ? _container_clientHeight : 0
  71457. };
  71458. }
  71459. constructor(ref) {
  71460. this.ref = ref;
  71461. }
  71462. };
  71463. // ../../node_modules/@react-aria/selection/dist/ListKeyboardDelegate.mjs
  71464. var $2a25aae57d74318e$export$a05409b8bb224a5a = class {
  71465. isDisabled(item) {
  71466. var _item_props;
  71467. return this.disabledBehavior === "all" && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
  71468. }
  71469. findNextNonDisabled(key, getNext) {
  71470. let nextKey = key;
  71471. for (; nextKey != null; ) {
  71472. let item = this.collection.getItem(nextKey);
  71473. if (item?.type === "item" && !this.isDisabled(item)) return nextKey;
  71474. nextKey = getNext(nextKey);
  71475. }
  71476. return null;
  71477. }
  71478. getNextKey(key) {
  71479. let nextKey = key;
  71480. return nextKey = this.collection.getKeyAfter(nextKey), this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyAfter(key2));
  71481. }
  71482. getPreviousKey(key) {
  71483. let nextKey = key;
  71484. return nextKey = this.collection.getKeyBefore(nextKey), this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyBefore(key2));
  71485. }
  71486. findKey(key, nextKey, shouldSkip) {
  71487. let tempKey = key, itemRect = this.layoutDelegate.getItemRect(tempKey);
  71488. if (!itemRect || tempKey == null) return null;
  71489. let prevRect = itemRect;
  71490. do {
  71491. if (tempKey = nextKey(tempKey), tempKey == null) break;
  71492. itemRect = this.layoutDelegate.getItemRect(tempKey);
  71493. } while (itemRect && shouldSkip(prevRect, itemRect) && tempKey != null);
  71494. return tempKey;
  71495. }
  71496. isSameRow(prevRect, itemRect) {
  71497. return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;
  71498. }
  71499. isSameColumn(prevRect, itemRect) {
  71500. return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;
  71501. }
  71502. getKeyBelow(key) {
  71503. return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(key, (key2) => this.getNextKey(key2), this.isSameRow) : this.getNextKey(key);
  71504. }
  71505. getKeyAbove(key) {
  71506. return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(key, (key2) => this.getPreviousKey(key2), this.isSameRow) : this.getPreviousKey(key);
  71507. }
  71508. getNextColumn(key, right2) {
  71509. return right2 ? this.getPreviousKey(key) : this.getNextKey(key);
  71510. }
  71511. getKeyRightOf(key) {
  71512. let layoutDelegateMethod = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
  71513. return this.layoutDelegate[layoutDelegateMethod] ? (key = this.layoutDelegate[layoutDelegateMethod](key), this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(key, this.direction === "rtl") : this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(key, this.direction === "rtl") : null;
  71514. }
  71515. getKeyLeftOf(key) {
  71516. let layoutDelegateMethod = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
  71517. return this.layoutDelegate[layoutDelegateMethod] ? (key = this.layoutDelegate[layoutDelegateMethod](key), this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(key, this.direction === "ltr") : this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(key, this.direction === "ltr") : null;
  71518. }
  71519. getFirstKey() {
  71520. let key = this.collection.getFirstKey();
  71521. return this.findNextNonDisabled(key, (key2) => this.collection.getKeyAfter(key2));
  71522. }
  71523. getLastKey() {
  71524. let key = this.collection.getLastKey();
  71525. return this.findNextNonDisabled(key, (key2) => this.collection.getKeyBefore(key2));
  71526. }
  71527. getKeyPageAbove(key) {
  71528. let menu = this.ref.current, itemRect = this.layoutDelegate.getItemRect(key);
  71529. if (!itemRect) return null;
  71530. if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getFirstKey();
  71531. let nextKey = key;
  71532. if (this.orientation === "horizontal") {
  71533. let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);
  71534. for (; itemRect && itemRect.x > pageX && nextKey != null; )
  71535. nextKey = this.getKeyAbove(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71536. } else {
  71537. let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);
  71538. for (; itemRect && itemRect.y > pageY && nextKey != null; )
  71539. nextKey = this.getKeyAbove(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71540. }
  71541. return nextKey ?? this.getFirstKey();
  71542. }
  71543. getKeyPageBelow(key) {
  71544. let menu = this.ref.current, itemRect = this.layoutDelegate.getItemRect(key);
  71545. if (!itemRect) return null;
  71546. if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getLastKey();
  71547. let nextKey = key;
  71548. if (this.orientation === "horizontal") {
  71549. let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);
  71550. for (; itemRect && itemRect.x < pageX && nextKey != null; )
  71551. nextKey = this.getKeyBelow(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71552. } else {
  71553. let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);
  71554. for (; itemRect && itemRect.y < pageY && nextKey != null; )
  71555. nextKey = this.getKeyBelow(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71556. }
  71557. return nextKey ?? this.getLastKey();
  71558. }
  71559. getKeyForSearch(search, fromKey) {
  71560. if (!this.collator) return null;
  71561. let collection = this.collection, key = fromKey || this.getFirstKey();
  71562. for (; key != null; ) {
  71563. let item = collection.getItem(key);
  71564. if (!item) return null;
  71565. let substring = item.textValue.slice(0, search.length);
  71566. if (item.textValue && this.collator.compare(substring, search) === 0) return key;
  71567. key = this.getNextKey(key);
  71568. }
  71569. return null;
  71570. }
  71571. constructor(...args) {
  71572. if (args.length === 1) {
  71573. let opts = args[0];
  71574. this.collection = opts.collection, this.ref = opts.ref, this.collator = opts.collator, this.disabledKeys = opts.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = opts.disabledBehavior || "all", this.orientation = opts.orientation || "vertical", this.direction = opts.direction, this.layout = opts.layout || "stack", this.layoutDelegate = opts.layoutDelegate || new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(opts.ref);
  71575. } else
  71576. this.collection = args[0], this.disabledKeys = args[1], this.ref = args[2], this.collator = args[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(this.ref);
  71577. this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
  71578. }
  71579. };
  71580. // ../../node_modules/@react-aria/selection/dist/useSelectableList.mjs
  71581. var import_react142 = __toESM(require_react(), 1);
  71582. function $982254629710d113$export$b95089534ab7c1fd(props) {
  71583. let { selectionManager, collection, disabledKeys, ref, keyboardDelegate, layoutDelegate } = props, collator = $325a3faab7a68acd$export$a16aca283550c30d({
  71584. usage: "search",
  71585. sensitivity: "base"
  71586. }), disabledBehavior = selectionManager.disabledBehavior, delegate = (0, import_react142.useMemo)(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
  71587. collection,
  71588. disabledKeys,
  71589. disabledBehavior,
  71590. ref,
  71591. collator,
  71592. layoutDelegate
  71593. }), [
  71594. keyboardDelegate,
  71595. layoutDelegate,
  71596. collection,
  71597. disabledKeys,
  71598. ref,
  71599. collator,
  71600. disabledBehavior
  71601. ]), { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
  71602. ...props,
  71603. ref,
  71604. selectionManager,
  71605. keyboardDelegate: delegate
  71606. });
  71607. return {
  71608. listProps: collectionProps
  71609. };
  71610. }
  71611. // ../../node_modules/@react-aria/menu/dist/useMenu.mjs
  71612. function $d5336fe17ce95402$export$38eaa17faae8f579(props, state3, ref) {
  71613. let { shouldFocusWrap = !0, onKeyDown, onKeyUp, ...otherProps } = props;
  71614. !props["aria-label"] && props["aria-labelledby"];
  71615. let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  71616. labelable: !0
  71617. }), { listProps } = $982254629710d113$export$b95089534ab7c1fd({
  71618. ...otherProps,
  71619. ref,
  71620. selectionManager: state3.selectionManager,
  71621. collection: state3.collection,
  71622. disabledKeys: state3.disabledKeys,
  71623. shouldFocusWrap,
  71624. linkBehavior: "override"
  71625. });
  71626. return $fc79756100351201$export$6f49b4016bfc8d56.set(state3, {
  71627. onClose: props.onClose,
  71628. onAction: props.onAction,
  71629. shouldUseVirtualFocus: props.shouldUseVirtualFocus
  71630. }), {
  71631. menuProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
  71632. onKeyDown,
  71633. onKeyUp
  71634. }, {
  71635. role: "menu",
  71636. ...listProps,
  71637. onKeyDown: (e) => {
  71638. var _listProps_onKeyDown;
  71639. (e.key !== "Escape" || props.shouldUseVirtualFocus) && ((_listProps_onKeyDown = listProps.onKeyDown) === null || _listProps_onKeyDown === void 0 || _listProps_onKeyDown.call(listProps, e));
  71640. }
  71641. })
  71642. };
  71643. }
  71644. // ../../node_modules/@react-stately/collections/dist/Item.mjs
  71645. var import_react143 = __toESM(require_react(), 1);
  71646. function $c1d7fb2ec91bae71$var$Item(props) {
  71647. return null;
  71648. }
  71649. $c1d7fb2ec91bae71$var$Item.getCollectionNode = function* (props, context) {
  71650. let { childItems, title, children } = props, rendered = props.title || props.children, textValue = props.textValue || (typeof rendered == "string" ? rendered : "") || props["aria-label"] || "";
  71651. !textValue && context?.suppressTextValueWarning, yield {
  71652. type: "item",
  71653. props,
  71654. rendered,
  71655. textValue,
  71656. "aria-label": props["aria-label"],
  71657. hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),
  71658. *childNodes() {
  71659. if (childItems) for (let child of childItems) yield {
  71660. type: "item",
  71661. value: child
  71662. };
  71663. else if (title) {
  71664. let items = [];
  71665. import_react143.default.Children.forEach(children, (child) => {
  71666. items.push({
  71667. type: "item",
  71668. element: child
  71669. });
  71670. }), yield* items;
  71671. }
  71672. }
  71673. };
  71674. };
  71675. function $c1d7fb2ec91bae71$var$hasChildItems(props) {
  71676. return props.hasChildItems != null ? props.hasChildItems : !!(props.childItems || props.title && import_react143.default.Children.count(props.children) > 0);
  71677. }
  71678. var $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;
  71679. // ../../node_modules/@react-stately/collections/dist/Section.mjs
  71680. var import_react144 = __toESM(require_react(), 1);
  71681. function $9fc4852771d079eb$var$Section(props) {
  71682. return null;
  71683. }
  71684. $9fc4852771d079eb$var$Section.getCollectionNode = function* (props) {
  71685. let { children, title, items } = props;
  71686. yield {
  71687. type: "section",
  71688. props,
  71689. hasChildNodes: !0,
  71690. rendered: title,
  71691. "aria-label": props["aria-label"],
  71692. *childNodes() {
  71693. if (typeof children == "function") {
  71694. if (!items) throw new Error("props.children was a function but props.items is missing");
  71695. for (let item of items) yield {
  71696. type: "item",
  71697. value: item,
  71698. renderer: children
  71699. };
  71700. } else {
  71701. let items2 = [];
  71702. import_react144.default.Children.forEach(children, (child) => {
  71703. items2.push({
  71704. type: "item",
  71705. element: child
  71706. });
  71707. }), yield* items2;
  71708. }
  71709. }
  71710. };
  71711. };
  71712. // ../../node_modules/@react-stately/collections/dist/CollectionBuilder.mjs
  71713. var import_react145 = __toESM(require_react(), 1), $eb2240fc39a57fa5$export$bf788dd355e3a401 = class {
  71714. build(props, context) {
  71715. return this.context = context, $eb2240fc39a57fa5$var$iterable(() => this.iterateCollection(props));
  71716. }
  71717. *iterateCollection(props) {
  71718. let { children, items } = props;
  71719. if (import_react145.default.isValidElement(children) && children.type === import_react145.default.Fragment) yield* this.iterateCollection({
  71720. children: children.props.children,
  71721. items
  71722. });
  71723. else if (typeof children == "function") {
  71724. if (!items) throw new Error("props.children was a function but props.items is missing");
  71725. let index4 = 0;
  71726. for (let item of items)
  71727. yield* this.getFullNode({
  71728. value: item,
  71729. index: index4
  71730. }, {
  71731. renderer: children
  71732. }), index4++;
  71733. } else {
  71734. let items2 = [];
  71735. import_react145.default.Children.forEach(children, (child) => {
  71736. child && items2.push(child);
  71737. });
  71738. let index4 = 0;
  71739. for (let item of items2) {
  71740. let nodes = this.getFullNode({
  71741. element: item,
  71742. index: index4
  71743. }, {});
  71744. for (let node2 of nodes)
  71745. index4++, yield node2;
  71746. }
  71747. }
  71748. }
  71749. getKey(item, partialNode, state3, parentKey) {
  71750. if (item.key != null) return item.key;
  71751. if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
  71752. let v = partialNode.value;
  71753. if (v != null) {
  71754. var _v_key;
  71755. let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
  71756. if (key == null) throw new Error("No key found for item");
  71757. return key;
  71758. }
  71759. return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
  71760. }
  71761. getChildState(state3, partialNode) {
  71762. return {
  71763. renderer: partialNode.renderer || state3.renderer
  71764. };
  71765. }
  71766. *getFullNode(partialNode, state3, parentKey, parentNode) {
  71767. if (import_react145.default.isValidElement(partialNode.element) && partialNode.element.type === import_react145.default.Fragment) {
  71768. let children = [];
  71769. import_react145.default.Children.forEach(partialNode.element.props.children, (child) => {
  71770. children.push(child);
  71771. });
  71772. var _partialNode_index;
  71773. let index4 = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;
  71774. for (let child of children) yield* this.getFullNode({
  71775. element: child,
  71776. index: index4++
  71777. }, state3, parentKey, parentNode);
  71778. return;
  71779. }
  71780. let element = partialNode.element;
  71781. if (!element && partialNode.value && state3 && state3.renderer) {
  71782. let cached = this.cache.get(partialNode.value);
  71783. if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
  71784. cached.index = partialNode.index, cached.parentKey = parentNode ? parentNode.key : null, yield cached;
  71785. return;
  71786. }
  71787. element = state3.renderer(partialNode.value);
  71788. }
  71789. if (import_react145.default.isValidElement(element)) {
  71790. let type5 = element.type;
  71791. if (typeof type5 != "function" && typeof type5.getCollectionNode != "function") {
  71792. let name = element.type;
  71793. throw new Error(`Unknown element <${name}> in collection.`);
  71794. }
  71795. let childNodes = type5.getCollectionNode(element.props, this.context);
  71796. var _partialNode_index1;
  71797. let index4 = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0, result = childNodes.next();
  71798. for (; !result.done && result.value; ) {
  71799. let childNode = result.value;
  71800. partialNode.index = index4;
  71801. var _childNode_key;
  71802. let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;
  71803. nodeKey == null && (nodeKey = childNode.element ? null : this.getKey(element, partialNode, state3, parentKey));
  71804. let children = [
  71805. ...this.getFullNode({
  71806. ...childNode,
  71807. key: nodeKey,
  71808. index: index4,
  71809. wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
  71810. }, this.getChildState(state3, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode)
  71811. ];
  71812. for (let node3 of children) {
  71813. var _childNode_value, _ref;
  71814. node3.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null, node3.value && this.cache.set(node3.value, node3);
  71815. var _parentNode_type;
  71816. if (partialNode.type && node3.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node3.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode?.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : "unknown parent type")}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
  71817. index4++, yield node3;
  71818. }
  71819. result = childNodes.next(children);
  71820. }
  71821. return;
  71822. }
  71823. if (partialNode.key == null || partialNode.type == null) return;
  71824. let builder = this;
  71825. var _partialNode_value, _partialNode_textValue;
  71826. let node2 = {
  71827. type: partialNode.type,
  71828. props: partialNode.props,
  71829. key: partialNode.key,
  71830. parentKey: parentNode ? parentNode.key : null,
  71831. value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,
  71832. level: parentNode ? parentNode.level + 1 : 0,
  71833. index: partialNode.index,
  71834. rendered: partialNode.rendered,
  71835. textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : "",
  71836. "aria-label": partialNode["aria-label"],
  71837. wrapper: partialNode.wrapper,
  71838. shouldInvalidate: partialNode.shouldInvalidate,
  71839. hasChildNodes: partialNode.hasChildNodes || !1,
  71840. childNodes: $eb2240fc39a57fa5$var$iterable(function* () {
  71841. if (!partialNode.hasChildNodes || !partialNode.childNodes) return;
  71842. let index4 = 0;
  71843. for (let child of partialNode.childNodes()) {
  71844. child.key != null && (child.key = `${node2.key}${child.key}`);
  71845. let nodes = builder.getFullNode({
  71846. ...child,
  71847. index: index4
  71848. }, builder.getChildState(state3, child), node2.key, node2);
  71849. for (let node3 of nodes)
  71850. index4++, yield node3;
  71851. }
  71852. })
  71853. };
  71854. yield node2;
  71855. }
  71856. constructor() {
  71857. this.cache = /* @__PURE__ */ new WeakMap();
  71858. }
  71859. };
  71860. function $eb2240fc39a57fa5$var$iterable(iterator) {
  71861. let cache = [], iterable = null;
  71862. return {
  71863. *[Symbol.iterator]() {
  71864. for (let item of cache) yield item;
  71865. iterable || (iterable = iterator());
  71866. for (let item of iterable)
  71867. cache.push(item), yield item;
  71868. }
  71869. };
  71870. }
  71871. function $eb2240fc39a57fa5$var$compose(outer, inner) {
  71872. if (outer && inner) return (element) => outer(inner(element));
  71873. if (outer) return outer;
  71874. if (inner) return inner;
  71875. }
  71876. function $eb2240fc39a57fa5$var$capitalize(str2) {
  71877. return str2[0].toUpperCase() + str2.slice(1);
  71878. }
  71879. // ../../node_modules/@react-stately/collections/dist/useCollection.mjs
  71880. var import_react146 = __toESM(require_react(), 1);
  71881. function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {
  71882. let builder = (0, import_react146.useMemo)(() => new $eb2240fc39a57fa5$export$bf788dd355e3a401(), []), { children, items, collection } = props;
  71883. return (0, import_react146.useMemo)(() => {
  71884. if (collection) return collection;
  71885. let nodes = builder.build({
  71886. children,
  71887. items
  71888. }, context);
  71889. return factory(nodes);
  71890. }, [
  71891. builder,
  71892. children,
  71893. items,
  71894. collection,
  71895. context,
  71896. factory
  71897. ]);
  71898. }
  71899. // ../../node_modules/@react-stately/collections/dist/getChildNodes.mjs
  71900. function $c5a24bc478652b5f$export$1005530eda016c13(node2, collection) {
  71901. return typeof collection.getChildren == "function" ? collection.getChildren(node2.key) : node2.childNodes;
  71902. }
  71903. function $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {
  71904. return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);
  71905. }
  71906. function $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index4) {
  71907. if (index4 < 0) return;
  71908. let i = 0;
  71909. for (let item of iterable) {
  71910. if (i === index4) return item;
  71911. i++;
  71912. }
  71913. }
  71914. function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a3, b) {
  71915. if (a3.parentKey === b.parentKey) return a3.index - b.index;
  71916. let aAncestors = [
  71917. ...$c5a24bc478652b5f$var$getAncestors(collection, a3),
  71918. a3
  71919. ], bAncestors = [
  71920. ...$c5a24bc478652b5f$var$getAncestors(collection, b),
  71921. b
  71922. ], firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a4, i) => a4 !== bAncestors[i]);
  71923. return firstNonMatchingAncestor !== -1 ? (a3 = aAncestors[firstNonMatchingAncestor], b = bAncestors[firstNonMatchingAncestor], a3.index - b.index) : aAncestors.findIndex((node2) => node2 === b) >= 0 ? 1 : (bAncestors.findIndex((node2) => node2 === a3) >= 0, -1);
  71924. }
  71925. function $c5a24bc478652b5f$var$getAncestors(collection, node2) {
  71926. let parents = [], currNode = node2;
  71927. for (; currNode?.parentKey != null; )
  71928. currNode = collection.getItem(currNode.parentKey), currNode && parents.unshift(currNode);
  71929. return parents;
  71930. }
  71931. // ../../node_modules/@react-stately/collections/dist/getItemCount.mjs
  71932. var $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap();
  71933. function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
  71934. let count = $453cc9f0df89c0a5$var$cache.get(collection);
  71935. if (count != null) return count;
  71936. let counter = 0, countItems = (items) => {
  71937. for (let item of items)
  71938. item.type === "section" ? countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection)) : item.type === "item" && counter++;
  71939. };
  71940. return countItems(collection), $453cc9f0df89c0a5$var$cache.set(collection, counter), counter;
  71941. }
  71942. // ../../node_modules/@react-aria/menu/dist/useMenuItem.mjs
  71943. var import_react147 = __toESM(require_react(), 1);
  71944. function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state3, ref) {
  71945. let { id, key, closeOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart, onPressUp: pressUpProp, onPress, onPressChange: pressChangeProp, onPressEnd, onClick: onClickProp, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state3.selectionManager } = props, isTrigger = !!hasPopup, isTriggerExpanded = isTrigger && props["aria-expanded"] === "true";
  71946. var _props_isDisabled;
  71947. let isDisabled3 = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : selectionManager.isDisabled(key);
  71948. var _props_isSelected;
  71949. let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : selectionManager.isSelected(key), data = $fc79756100351201$export$6f49b4016bfc8d56.get(state3), item = state3.collection.getItem(key), onClose = props.onClose || data.onClose, router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572(), performAction = () => {
  71950. var _item_props;
  71951. if (!isTrigger && (!(item == null || (_item_props = item.props) === null || _item_props === void 0) && _item_props.onAction ? item.props.onAction() : props.onAction && props.onAction(key), data.onAction)) {
  71952. let onAction = data.onAction;
  71953. onAction(key);
  71954. }
  71955. }, role = "menuitem";
  71956. isTrigger || (selectionManager.selectionMode === "single" ? role = "menuitemradio" : selectionManager.selectionMode === "multiple" && (role = "menuitemcheckbox"));
  71957. let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), keyboardId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), ariaProps = {
  71958. id,
  71959. "aria-disabled": isDisabled3 || void 0,
  71960. role,
  71961. "aria-label": props["aria-label"],
  71962. "aria-labelledby": labelId,
  71963. "aria-describedby": [
  71964. descriptionId,
  71965. keyboardId
  71966. ].filter(Boolean).join(" ") || void 0,
  71967. "aria-controls": props["aria-controls"],
  71968. "aria-haspopup": hasPopup,
  71969. "aria-expanded": props["aria-expanded"]
  71970. };
  71971. selectionManager.selectionMode !== "none" && !isTrigger && (ariaProps["aria-checked"] = isSelected), isVirtualized && (ariaProps["aria-posinset"] = item?.index, ariaProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state3.collection));
  71972. let isPressedRef = (0, import_react147.useRef)(!1), onPressChange = (isPressed2) => {
  71973. pressChangeProp?.(isPressed2), isPressedRef.current = isPressed2;
  71974. }, interaction = (0, import_react147.useRef)(null), onPressUp = (e) => {
  71975. e.pointerType !== "keyboard" && (interaction.current = {
  71976. pointerType: e.pointerType
  71977. }), e.pointerType === "mouse" && (isPressedRef.current || e.target.click()), pressUpProp?.(e);
  71978. }, onClick = (e) => {
  71979. var _interaction_current, _interaction_current1;
  71980. onClickProp?.(e), performAction(), $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, item.props.href, item?.props.routerOptions);
  71981. let shouldClose = ((_interaction_current = interaction.current) === null || _interaction_current === void 0 ? void 0 : _interaction_current.pointerType) === "keyboard" ? ((_interaction_current1 = interaction.current) === null || _interaction_current1 === void 0 ? void 0 : _interaction_current1.key) === "Enter" || selectionManager.selectionMode === "none" || selectionManager.isLink(key) : selectionManager.selectionMode !== "multiple" || selectionManager.isLink(key);
  71982. shouldClose = closeOnSelect ?? shouldClose, onClose && !isTrigger && shouldClose && onClose(), interaction.current = null;
  71983. }, { itemProps, isFocused } = $880e95eb8b93ba9a$export$ecf600387e221c37({
  71984. id,
  71985. selectionManager,
  71986. key,
  71987. ref,
  71988. shouldSelectOnPressUp: !0,
  71989. allowsDifferentPressOrigin: !0,
  71990. // Disable all handling of links in useSelectable item
  71991. // because we handle it ourselves. The behavior of menus
  71992. // is slightly different from other collections because
  71993. // actions are performed on key down rather than key up.
  71994. linkBehavior: "none",
  71995. shouldUseVirtualFocus: data.shouldUseVirtualFocus
  71996. }), { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
  71997. onPressStart,
  71998. onPress,
  71999. onPressUp,
  72000. onPressChange,
  72001. onPressEnd,
  72002. isDisabled: isDisabled3
  72003. }), { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
  72004. isDisabled: isDisabled3,
  72005. onHoverStart(e) {
  72006. !$507fabe10e71c6fb$export$b9b3dfddab17db27() && !(isTriggerExpanded && hasPopup) && (selectionManager.setFocused(!0), selectionManager.setFocusedKey(key)), hoverStartProp?.(e);
  72007. },
  72008. onHoverChange,
  72009. onHoverEnd
  72010. }), { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd({
  72011. onKeyDown: (e) => {
  72012. if (e.repeat) {
  72013. e.continuePropagation();
  72014. return;
  72015. }
  72016. switch (e.key) {
  72017. case " ":
  72018. interaction.current = {
  72019. pointerType: "keyboard",
  72020. key: " "
  72021. }, e.target.click();
  72022. break;
  72023. case "Enter":
  72024. interaction.current = {
  72025. pointerType: "keyboard",
  72026. key: "Enter"
  72027. }, e.target.tagName !== "A" && e.target.click();
  72028. break;
  72029. default:
  72030. isTrigger || e.continuePropagation(), onKeyDown?.(e);
  72031. break;
  72032. }
  72033. },
  72034. onKeyUp
  72035. }), { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
  72036. onBlur,
  72037. onFocus,
  72038. onFocusChange
  72039. }), domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item?.props);
  72040. delete domProps.id;
  72041. let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item?.props);
  72042. return {
  72043. menuItemProps: {
  72044. ...ariaProps,
  72045. ...$3ef42575df84b30b$export$9d1611c77c2fe928(
  72046. domProps,
  72047. linkProps,
  72048. isTrigger ? {
  72049. onFocus: itemProps.onFocus,
  72050. "data-collection": itemProps["data-collection"],
  72051. "data-key": itemProps["data-key"]
  72052. } : itemProps,
  72053. pressProps,
  72054. hoverProps,
  72055. keyboardProps,
  72056. focusProps,
  72057. // Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
  72058. data.shouldUseVirtualFocus || isTrigger ? {
  72059. onMouseDown: (e) => e.preventDefault()
  72060. } : void 0,
  72061. isDisabled3 ? void 0 : {
  72062. onClick
  72063. }
  72064. ),
  72065. // If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
  72066. tabIndex: itemProps.tabIndex != null && isTriggerExpanded && !data.shouldUseVirtualFocus ? -1 : itemProps.tabIndex
  72067. },
  72068. labelProps: {
  72069. id: labelId
  72070. },
  72071. descriptionProps: {
  72072. id: descriptionId
  72073. },
  72074. keyboardShortcutProps: {
  72075. id: keyboardId
  72076. },
  72077. isFocused,
  72078. isFocusVisible: isFocused && selectionManager.isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27() && !isTriggerExpanded,
  72079. isSelected,
  72080. isPressed,
  72081. isDisabled: isDisabled3
  72082. };
  72083. }
  72084. // ../../node_modules/@react-aria/menu/dist/useMenuSection.mjs
  72085. function $3e5eb2498db5b506$export$73f7a44322579622(props) {
  72086. let { heading, "aria-label": ariaLabel } = props, headingId = $bdb11010cef70236$export$f680877a34711e37();
  72087. return {
  72088. itemProps: {
  72089. role: "presentation"
  72090. },
  72091. headingProps: heading ? {
  72092. // Techincally, menus cannot contain headings according to ARIA.
  72093. // We hide the heading from assistive technology, using role="presentation",
  72094. // and only use it as a label for the nested group.
  72095. id: headingId,
  72096. role: "presentation"
  72097. } : {},
  72098. groupProps: {
  72099. role: "group",
  72100. "aria-label": ariaLabel,
  72101. "aria-labelledby": heading ? headingId : void 0
  72102. }
  72103. };
  72104. }
  72105. // ../../node_modules/@react-aria/menu/dist/useSafelyMouseToSubmenu.mjs
  72106. var import_react148 = __toESM(require_react(), 1);
  72107. var $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS = 2, $d275435c250248f8$var$THROTTLE_TIME = 50, $d275435c250248f8$var$TIMEOUT_TIME = 1e3, $d275435c250248f8$var$ANGLE_PADDING = Math.PI / 12;
  72108. function $d275435c250248f8$export$85ec83e04c95f50a(options) {
  72109. let { menuRef, submenuRef, isOpen, isDisabled: isDisabled3 } = options, prevPointerPos = (0, import_react148.useRef)(void 0), submenuRect = (0, import_react148.useRef)(void 0), lastProcessedTime = (0, import_react148.useRef)(0), timeout = (0, import_react148.useRef)(void 0), autoCloseTimeout = (0, import_react148.useRef)(void 0), submenuSide = (0, import_react148.useRef)(void 0), movementsTowardsSubmenuCount = (0, import_react148.useRef)(2), [preventPointerEvents, setPreventPointerEvents] = (0, import_react148.useState)(!1);
  72110. $9daab02d461809db$export$683480f191c0e3ea({
  72111. ref: submenuRef,
  72112. onResize: () => {
  72113. submenuRef.current && (submenuRect.current = submenuRef.current.getBoundingClientRect(), submenuSide.current = void 0);
  72114. }
  72115. });
  72116. let reset2 = () => {
  72117. setPreventPointerEvents(!1), movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS, prevPointerPos.current = void 0;
  72118. }, modality = $507fabe10e71c6fb$export$98e20ec92f614cfe(), onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  72119. preventPointerEvents && e.preventDefault();
  72120. });
  72121. (0, import_react148.useEffect)(() => {
  72122. preventPointerEvents && menuRef.current ? menuRef.current.style.pointerEvents = "none" : menuRef.current.style.pointerEvents = "";
  72123. }, [
  72124. menuRef,
  72125. preventPointerEvents
  72126. ]), (0, import_react148.useEffect)(() => {
  72127. let submenu = submenuRef.current, menu = menuRef.current;
  72128. if (isDisabled3 || !submenu || !isOpen || modality !== "pointer" || !menu) {
  72129. reset2();
  72130. return;
  72131. }
  72132. submenuRect.current = submenu.getBoundingClientRect();
  72133. let onPointerMove = (e) => {
  72134. if (e.pointerType === "touch" || e.pointerType === "pen") return;
  72135. let currentTime = Date.now();
  72136. if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME) return;
  72137. clearTimeout(timeout.current), clearTimeout(autoCloseTimeout.current);
  72138. let { clientX: mouseX, clientY: mouseY } = e;
  72139. if (!prevPointerPos.current) {
  72140. prevPointerPos.current = {
  72141. x: mouseX,
  72142. y: mouseY
  72143. };
  72144. return;
  72145. }
  72146. if (!submenuRect.current) return;
  72147. if (submenuSide.current || (submenuSide.current = mouseX > submenuRect.current.right ? "left" : "right"), mouseX < menu.getBoundingClientRect().left || mouseX > menu.getBoundingClientRect().right || mouseY < menu.getBoundingClientRect().top || mouseY > menu.getBoundingClientRect().bottom) {
  72148. reset2();
  72149. return;
  72150. }
  72151. let prevMouseX = prevPointerPos.current.x, prevMouseY = prevPointerPos.current.y, toSubmenuX = submenuSide.current === "right" ? submenuRect.current.left - prevMouseX : prevMouseX - submenuRect.current.right, angleTop = Math.atan2(prevMouseY - submenuRect.current.top, toSubmenuX) + $d275435c250248f8$var$ANGLE_PADDING, angleBottom = Math.atan2(prevMouseY - submenuRect.current.bottom, toSubmenuX) - $d275435c250248f8$var$ANGLE_PADDING, anglePointer = Math.atan2(prevMouseY - mouseY, submenuSide.current === "left" ? -(mouseX - prevMouseX) : mouseX - prevMouseX), isMovingTowardsSubmenu = anglePointer < angleTop && anglePointer > angleBottom;
  72152. movementsTowardsSubmenuCount.current = isMovingTowardsSubmenu ? Math.min(movementsTowardsSubmenuCount.current + 1, $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) : Math.max(movementsTowardsSubmenuCount.current - 1, 0), movementsTowardsSubmenuCount.current >= $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS ? setPreventPointerEvents(!0) : setPreventPointerEvents(!1), lastProcessedTime.current = currentTime, prevPointerPos.current = {
  72153. x: mouseX,
  72154. y: mouseY
  72155. }, isMovingTowardsSubmenu && (timeout.current = setTimeout(() => {
  72156. reset2(), autoCloseTimeout.current = setTimeout(() => {
  72157. let target = document.elementFromPoint(mouseX, mouseY);
  72158. target && menu.contains(target) && target.dispatchEvent(new PointerEvent("pointerover", {
  72159. bubbles: !0,
  72160. cancelable: !0
  72161. }));
  72162. }, 100);
  72163. }, $d275435c250248f8$var$TIMEOUT_TIME));
  72164. };
  72165. return window.addEventListener("pointermove", onPointerMove), window.addEventListener("pointerdown", onPointerDown, !0), () => {
  72166. window.removeEventListener("pointermove", onPointerMove), window.removeEventListener("pointerdown", onPointerDown, !0), clearTimeout(timeout.current), clearTimeout(autoCloseTimeout.current), movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
  72167. };
  72168. }, [
  72169. isDisabled3,
  72170. isOpen,
  72171. menuRef,
  72172. modality,
  72173. setPreventPointerEvents,
  72174. onPointerDown,
  72175. submenuRef
  72176. ]);
  72177. }
  72178. // ../../node_modules/@react-aria/menu/dist/useSubmenuTrigger.mjs
  72179. var import_react149 = __toESM(require_react(), 1);
  72180. function $0065b146e7192841$export$7138b0d059a6e743(props, state3, ref) {
  72181. let { parentMenuRef, submenuRef, type: type5 = "menu", isDisabled: isDisabled3, delay = 200, shouldUseVirtualFocus } = props, submenuTriggerId = $bdb11010cef70236$export$f680877a34711e37(), overlayId = $bdb11010cef70236$export$f680877a34711e37(), { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), openTimeout = (0, import_react149.useRef)(void 0), cancelOpenTimeout = (0, import_react149.useCallback)(() => {
  72182. openTimeout.current && (clearTimeout(openTimeout.current), openTimeout.current = void 0);
  72183. }, [
  72184. openTimeout
  72185. ]), onSubmenuOpen = $8ae05eaa5c114e9c$export$7f54fc3180508a52((focusStrategy) => {
  72186. cancelOpenTimeout(), state3.open(focusStrategy);
  72187. }), onSubmenuClose = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
  72188. cancelOpenTimeout(), state3.close();
  72189. });
  72190. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => {
  72191. cancelOpenTimeout();
  72192. }, [
  72193. cancelOpenTimeout
  72194. ]);
  72195. let submenuKeyDown = (e) => {
  72196. if (e.currentTarget.contains(document.activeElement))
  72197. switch (e.key) {
  72198. case "ArrowLeft":
  72199. direction === "ltr" && e.currentTarget.contains(e.target) && (e.preventDefault(), e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current));
  72200. break;
  72201. case "ArrowRight":
  72202. direction === "rtl" && e.currentTarget.contains(e.target) && (e.preventDefault(), e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current));
  72203. break;
  72204. case "Escape":
  72205. var _submenuRef_current;
  72206. !((_submenuRef_current = submenuRef.current) === null || _submenuRef_current === void 0) && _submenuRef_current.contains(e.target) && (e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current));
  72207. break;
  72208. }
  72209. };
  72210. var _state_focusStrategy;
  72211. let submenuProps = {
  72212. id: overlayId,
  72213. "aria-labelledby": submenuTriggerId,
  72214. submenuLevel: state3.submenuLevel,
  72215. ...type5 === "menu" && {
  72216. onClose: state3.closeAll,
  72217. autoFocus: (_state_focusStrategy = state3.focusStrategy) !== null && _state_focusStrategy !== void 0 ? _state_focusStrategy : void 0,
  72218. onKeyDown: submenuKeyDown
  72219. }
  72220. }, submenuTriggerKeyDown = (e) => {
  72221. switch (e.key) {
  72222. case "ArrowRight":
  72223. isDisabled3 || (direction === "ltr" ? (e.preventDefault(), state3.isOpen || onSubmenuOpen("first"), type5 === "menu" && submenuRef?.current && document.activeElement === ref?.current && $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current)) : state3.isOpen ? onSubmenuClose() : e.continuePropagation());
  72224. break;
  72225. case "ArrowLeft":
  72226. isDisabled3 || (direction === "rtl" ? (e.preventDefault(), state3.isOpen || onSubmenuOpen("first"), type5 === "menu" && submenuRef?.current && document.activeElement === ref?.current && $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current)) : state3.isOpen ? onSubmenuClose() : e.continuePropagation());
  72227. break;
  72228. default:
  72229. e.continuePropagation();
  72230. break;
  72231. }
  72232. }, onPressStart = (e) => {
  72233. !isDisabled3 && (e.pointerType === "virtual" || e.pointerType === "keyboard") && onSubmenuOpen("first");
  72234. }, onPress = (e) => {
  72235. !isDisabled3 && (e.pointerType === "touch" || e.pointerType === "mouse") && onSubmenuOpen();
  72236. }, onHoverChange = (isHovered) => {
  72237. isDisabled3 || (isHovered && !state3.isOpen ? openTimeout.current || (openTimeout.current = setTimeout(() => {
  72238. onSubmenuOpen();
  72239. }, delay)) : isHovered || cancelOpenTimeout());
  72240. };
  72241. $e9faafb641e167db$export$90fc3a17d93f704c(parentMenuRef, "focusin", (e) => {
  72242. var _parentMenuRef_current;
  72243. state3.isOpen && (!((_parentMenuRef_current = parentMenuRef.current) === null || _parentMenuRef_current === void 0) && _parentMenuRef_current.contains(e.target)) && e.target !== ref.current && onSubmenuClose();
  72244. });
  72245. let shouldCloseOnInteractOutside = (target) => target !== ref.current;
  72246. return $d275435c250248f8$export$85ec83e04c95f50a({
  72247. menuRef: parentMenuRef,
  72248. submenuRef,
  72249. isOpen: state3.isOpen,
  72250. isDisabled: isDisabled3
  72251. }), {
  72252. submenuTriggerProps: {
  72253. id: submenuTriggerId,
  72254. "aria-controls": state3.isOpen ? overlayId : void 0,
  72255. "aria-haspopup": isDisabled3 ? void 0 : type5,
  72256. "aria-expanded": state3.isOpen ? "true" : "false",
  72257. onPressStart,
  72258. onPress,
  72259. onHoverChange,
  72260. onKeyDown: submenuTriggerKeyDown,
  72261. isOpen: state3.isOpen
  72262. },
  72263. submenuProps,
  72264. popoverProps: {
  72265. isNonModal: !0,
  72266. shouldCloseOnInteractOutside
  72267. }
  72268. };
  72269. }
  72270. // ../../node_modules/@react-stately/menu/dist/useMenuTriggerState.mjs
  72271. var import_react150 = __toESM(require_react(), 1);
  72272. function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
  72273. let overlayTriggerState = $fc909762b330b746$export$61c6a8c84e605fb6(props), [focusStrategy, setFocusStrategy] = (0, import_react150.useState)(null), [expandedKeysStack, setExpandedKeysStack] = (0, import_react150.useState)([]), closeAll = () => {
  72274. setExpandedKeysStack([]), overlayTriggerState.close();
  72275. };
  72276. return {
  72277. focusStrategy,
  72278. ...overlayTriggerState,
  72279. open(focusStrategy2 = null) {
  72280. setFocusStrategy(focusStrategy2), overlayTriggerState.open();
  72281. },
  72282. toggle(focusStrategy2 = null) {
  72283. setFocusStrategy(focusStrategy2), overlayTriggerState.toggle();
  72284. },
  72285. close() {
  72286. closeAll();
  72287. },
  72288. expandedKeysStack,
  72289. openSubmenu: (triggerKey, level) => {
  72290. setExpandedKeysStack((oldStack) => level > oldStack.length ? oldStack : [
  72291. ...oldStack.slice(0, level),
  72292. triggerKey
  72293. ]);
  72294. },
  72295. closeSubmenu: (triggerKey, level) => {
  72296. setExpandedKeysStack((oldStack) => oldStack[level] === triggerKey ? oldStack.slice(0, level) : oldStack);
  72297. }
  72298. };
  72299. }
  72300. // ../../node_modules/@react-stately/menu/dist/useSubmenuTriggerState.mjs
  72301. var import_react151 = __toESM(require_react(), 1);
  72302. function $e5614764aa47eb35$export$cfc51cf86138bf98(props, state3) {
  72303. let { triggerKey } = props, { expandedKeysStack, openSubmenu, closeSubmenu, close: closeAll } = state3, [submenuLevel] = (0, import_react151.useState)(expandedKeysStack?.length), isOpen = (0, import_react151.useMemo)(() => expandedKeysStack[submenuLevel] === triggerKey, [
  72304. expandedKeysStack,
  72305. triggerKey,
  72306. submenuLevel
  72307. ]), [focusStrategy, setFocusStrategy] = (0, import_react151.useState)(null), open = (0, import_react151.useCallback)((focusStrategy2) => {
  72308. setFocusStrategy(focusStrategy2 ?? null), openSubmenu(triggerKey, submenuLevel);
  72309. }, [
  72310. openSubmenu,
  72311. submenuLevel,
  72312. triggerKey
  72313. ]), close = (0, import_react151.useCallback)(() => {
  72314. setFocusStrategy(null), closeSubmenu(triggerKey, submenuLevel);
  72315. }, [
  72316. closeSubmenu,
  72317. submenuLevel,
  72318. triggerKey
  72319. ]), toggle = (0, import_react151.useCallback)((focusStrategy2) => {
  72320. setFocusStrategy(focusStrategy2 ?? null), isOpen ? close() : open(focusStrategy2);
  72321. }, [
  72322. close,
  72323. open,
  72324. isOpen
  72325. ]);
  72326. return (0, import_react151.useMemo)(() => ({
  72327. focusStrategy,
  72328. isOpen,
  72329. open,
  72330. close,
  72331. closeAll,
  72332. submenuLevel,
  72333. // TODO: Placeholders that aren't used but give us parity with OverlayTriggerState so we can use this in Popover. Refactor if we update Popover via
  72334. // https://github.com/adobe/react-spectrum/pull/4976#discussion_r1336472863
  72335. setOpen: () => {
  72336. },
  72337. toggle
  72338. }), [
  72339. isOpen,
  72340. open,
  72341. close,
  72342. closeAll,
  72343. focusStrategy,
  72344. toggle,
  72345. submenuLevel
  72346. ]);
  72347. }
  72348. // ../../node_modules/@react-stately/tree/dist/TreeCollection.mjs
  72349. var $05ca4cd7c4a5a999$export$863faf230ee2118a = class {
  72350. *[Symbol.iterator]() {
  72351. yield* this.iterable;
  72352. }
  72353. get size() {
  72354. return this.keyMap.size;
  72355. }
  72356. getKeys() {
  72357. return this.keyMap.keys();
  72358. }
  72359. getKeyBefore(key) {
  72360. let node2 = this.keyMap.get(key);
  72361. var _node_prevKey;
  72362. return node2 && (_node_prevKey = node2.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null;
  72363. }
  72364. getKeyAfter(key) {
  72365. let node2 = this.keyMap.get(key);
  72366. var _node_nextKey;
  72367. return node2 && (_node_nextKey = node2.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null;
  72368. }
  72369. getFirstKey() {
  72370. return this.firstKey;
  72371. }
  72372. getLastKey() {
  72373. return this.lastKey;
  72374. }
  72375. getItem(key) {
  72376. var _this_keyMap_get;
  72377. return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
  72378. }
  72379. at(idx) {
  72380. let keys3 = [
  72381. ...this.getKeys()
  72382. ];
  72383. return this.getItem(keys3[idx]);
  72384. }
  72385. constructor(nodes, { expandedKeys } = {}) {
  72386. this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = nodes, expandedKeys = expandedKeys || /* @__PURE__ */ new Set();
  72387. let visit = (node2) => {
  72388. if (this.keyMap.set(node2.key, node2), node2.childNodes && (node2.type === "section" || expandedKeys.has(node2.key))) for (let child of node2.childNodes) visit(child);
  72389. };
  72390. for (let node2 of nodes) visit(node2);
  72391. let last2 = null, index4 = 0;
  72392. for (let [key, node2] of this.keyMap)
  72393. last2 ? (last2.nextKey = key, node2.prevKey = last2.key) : (this.firstKey = key, node2.prevKey = void 0), node2.type === "item" && (node2.index = index4++), last2 = node2, last2.nextKey = void 0;
  72394. var _last_key;
  72395. this.lastKey = (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null;
  72396. }
  72397. };
  72398. // ../../node_modules/@react-stately/selection/dist/Selection.mjs
  72399. var $e40ea825a81a3709$export$52baac22726c72bf = class _$e40ea825a81a3709$export$52baac22726c72bf extends Set {
  72400. constructor(keys3, anchorKey, currentKey) {
  72401. super(keys3), keys3 instanceof _$e40ea825a81a3709$export$52baac22726c72bf ? (this.anchorKey = anchorKey ?? keys3.anchorKey, this.currentKey = currentKey ?? keys3.currentKey) : (this.anchorKey = anchorKey ?? null, this.currentKey = currentKey ?? null);
  72402. }
  72403. };
  72404. // ../../node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs
  72405. var import_react152 = __toESM(require_react(), 1);
  72406. function $7af3f5b51489e0b5$var$equalSets(setA, setB) {
  72407. if (setA.size !== setB.size) return !1;
  72408. for (let item of setA)
  72409. if (!setB.has(item)) return !1;
  72410. return !0;
  72411. }
  72412. function $7af3f5b51489e0b5$export$253fe78d46329472(props) {
  72413. let { selectionMode = "none", disallowEmptySelection = !1, allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior = "all" } = props, isFocusedRef = (0, import_react152.useRef)(!1), [, setFocused] = (0, import_react152.useState)(!1), focusedKeyRef = (0, import_react152.useRef)(null), childFocusStrategyRef = (0, import_react152.useRef)(null), [, setFocusedKey] = (0, import_react152.useState)(null), selectedKeysProp = (0, import_react152.useMemo)(() => $7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [
  72414. props.selectedKeys
  72415. ]), defaultSelectedKeys = (0, import_react152.useMemo)(() => $7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new $e40ea825a81a3709$export$52baac22726c72bf()), [
  72416. props.defaultSelectedKeys
  72417. ]), [selectedKeys, setSelectedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange), disabledKeysProp = (0, import_react152.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [
  72418. props.disabledKeys
  72419. ]), [selectionBehavior, setSelectionBehavior] = (0, import_react152.useState)(selectionBehaviorProp);
  72420. selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys == "object" && selectedKeys.size === 0 && setSelectionBehavior("replace");
  72421. let lastSelectionBehavior = (0, import_react152.useRef)(selectionBehaviorProp);
  72422. return (0, import_react152.useEffect)(() => {
  72423. selectionBehaviorProp !== lastSelectionBehavior.current && (setSelectionBehavior(selectionBehaviorProp), lastSelectionBehavior.current = selectionBehaviorProp);
  72424. }, [
  72425. selectionBehaviorProp
  72426. ]), {
  72427. selectionMode,
  72428. disallowEmptySelection,
  72429. selectionBehavior,
  72430. setSelectionBehavior,
  72431. get isFocused() {
  72432. return isFocusedRef.current;
  72433. },
  72434. setFocused(f4) {
  72435. isFocusedRef.current = f4, setFocused(f4);
  72436. },
  72437. get focusedKey() {
  72438. return focusedKeyRef.current;
  72439. },
  72440. get childFocusStrategy() {
  72441. return childFocusStrategyRef.current;
  72442. },
  72443. setFocusedKey(k, childFocusStrategy = "first") {
  72444. focusedKeyRef.current = k, childFocusStrategyRef.current = childFocusStrategy, setFocusedKey(k);
  72445. },
  72446. selectedKeys,
  72447. setSelectedKeys(keys3) {
  72448. (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys3, selectedKeys)) && setSelectedKeys(keys3);
  72449. },
  72450. disabledKeys: disabledKeysProp,
  72451. disabledBehavior
  72452. };
  72453. }
  72454. function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
  72455. return selection ? selection === "all" ? "all" : new $e40ea825a81a3709$export$52baac22726c72bf(selection) : defaultValue;
  72456. }
  72457. // ../../node_modules/@react-stately/selection/dist/SelectionManager.mjs
  72458. var $d496c0a20b6e58ec$export$6c8a5aaad13c9852 = class _$d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
  72459. /**
  72460. * The type of selection that is allowed in the collection.
  72461. */
  72462. get selectionMode() {
  72463. return this.state.selectionMode;
  72464. }
  72465. /**
  72466. * Whether the collection allows empty selection.
  72467. */
  72468. get disallowEmptySelection() {
  72469. return this.state.disallowEmptySelection;
  72470. }
  72471. /**
  72472. * The selection behavior for the collection.
  72473. */
  72474. get selectionBehavior() {
  72475. return this.state.selectionBehavior;
  72476. }
  72477. /**
  72478. * Sets the selection behavior for the collection.
  72479. */
  72480. setSelectionBehavior(selectionBehavior) {
  72481. this.state.setSelectionBehavior(selectionBehavior);
  72482. }
  72483. /**
  72484. * Whether the collection is currently focused.
  72485. */
  72486. get isFocused() {
  72487. return this.state.isFocused;
  72488. }
  72489. /**
  72490. * Sets whether the collection is focused.
  72491. */
  72492. setFocused(isFocused) {
  72493. this.state.setFocused(isFocused);
  72494. }
  72495. /**
  72496. * The current focused key in the collection.
  72497. */
  72498. get focusedKey() {
  72499. return this.state.focusedKey;
  72500. }
  72501. /** Whether the first or last child of the focused key should receive focus. */
  72502. get childFocusStrategy() {
  72503. return this.state.childFocusStrategy;
  72504. }
  72505. /**
  72506. * Sets the focused key.
  72507. */
  72508. setFocusedKey(key, childFocusStrategy) {
  72509. (key == null || this.collection.getItem(key)) && this.state.setFocusedKey(key, childFocusStrategy);
  72510. }
  72511. /**
  72512. * The currently selected keys in the collection.
  72513. */
  72514. get selectedKeys() {
  72515. return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
  72516. }
  72517. /**
  72518. * The raw selection value for the collection.
  72519. * Either 'all' for select all, or a set of keys.
  72520. */
  72521. get rawSelection() {
  72522. return this.state.selectedKeys;
  72523. }
  72524. /**
  72525. * Returns whether a key is selected.
  72526. */
  72527. isSelected(key) {
  72528. if (this.state.selectionMode === "none") return !1;
  72529. let mappedKey = this.getKey(key);
  72530. return mappedKey == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(mappedKey) : this.state.selectedKeys.has(mappedKey);
  72531. }
  72532. /**
  72533. * Whether the selection is empty.
  72534. */
  72535. get isEmpty() {
  72536. return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
  72537. }
  72538. /**
  72539. * Whether all items in the collection are selected.
  72540. */
  72541. get isSelectAll() {
  72542. if (this.isEmpty) return !1;
  72543. if (this.state.selectedKeys === "all") return !0;
  72544. if (this._isSelectAll != null) return this._isSelectAll;
  72545. let allKeys = this.getSelectAllKeys(), selectedKeys = this.state.selectedKeys;
  72546. return this._isSelectAll = allKeys.every((k) => selectedKeys.has(k)), this._isSelectAll;
  72547. }
  72548. get firstSelectedKey() {
  72549. let first = null;
  72550. for (let key of this.state.selectedKeys) {
  72551. let item = this.collection.getItem(key);
  72552. (!first || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, first) < 0) && (first = item);
  72553. }
  72554. var _first_key;
  72555. return (_first_key = first?.key) !== null && _first_key !== void 0 ? _first_key : null;
  72556. }
  72557. get lastSelectedKey() {
  72558. let last2 = null;
  72559. for (let key of this.state.selectedKeys) {
  72560. let item = this.collection.getItem(key);
  72561. (!last2 || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, last2) > 0) && (last2 = item);
  72562. }
  72563. var _last_key;
  72564. return (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null;
  72565. }
  72566. get disabledKeys() {
  72567. return this.state.disabledKeys;
  72568. }
  72569. get disabledBehavior() {
  72570. return this.state.disabledBehavior;
  72571. }
  72572. /**
  72573. * Extends the selection to the given key.
  72574. */
  72575. extendSelection(toKey2) {
  72576. if (this.selectionMode === "none") return;
  72577. if (this.selectionMode === "single") {
  72578. this.replaceSelection(toKey2);
  72579. return;
  72580. }
  72581. let mappedToKey = this.getKey(toKey2);
  72582. if (mappedToKey == null) return;
  72583. let selection;
  72584. if (this.state.selectedKeys === "all") selection = new $e40ea825a81a3709$export$52baac22726c72bf([
  72585. mappedToKey
  72586. ], mappedToKey, mappedToKey);
  72587. else {
  72588. let selectedKeys = this.state.selectedKeys;
  72589. var _selectedKeys_anchorKey;
  72590. let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey;
  72591. selection = new $e40ea825a81a3709$export$52baac22726c72bf(selectedKeys, anchorKey, mappedToKey);
  72592. var _selectedKeys_currentKey;
  72593. for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey)) selection.delete(key);
  72594. for (let key of this.getKeyRange(mappedToKey, anchorKey)) this.canSelectItem(key) && selection.add(key);
  72595. }
  72596. this.state.setSelectedKeys(selection);
  72597. }
  72598. getKeyRange(from2, to) {
  72599. let fromItem = this.collection.getItem(from2), toItem = this.collection.getItem(to);
  72600. return fromItem && toItem ? $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, fromItem, toItem) <= 0 ? this.getKeyRangeInternal(from2, to) : this.getKeyRangeInternal(to, from2) : [];
  72601. }
  72602. getKeyRangeInternal(from2, to) {
  72603. var _this_layoutDelegate;
  72604. if (!((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0) && _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from2, to);
  72605. let keys3 = [], key = from2;
  72606. for (; key != null; ) {
  72607. let item = this.collection.getItem(key);
  72608. if (item && (item.type === "item" || item.type === "cell" && this.allowsCellSelection) && keys3.push(key), key === to) return keys3;
  72609. key = this.collection.getKeyAfter(key);
  72610. }
  72611. return [];
  72612. }
  72613. getKey(key) {
  72614. let item = this.collection.getItem(key);
  72615. if (!item || item.type === "cell" && this.allowsCellSelection) return key;
  72616. for (; item && item.type !== "item" && item.parentKey != null; ) item = this.collection.getItem(item.parentKey);
  72617. return !item || item.type !== "item" ? null : item.key;
  72618. }
  72619. /**
  72620. * Toggles whether the given key is selected.
  72621. */
  72622. toggleSelection(key) {
  72623. if (this.selectionMode === "none") return;
  72624. if (this.selectionMode === "single" && !this.isSelected(key)) {
  72625. this.replaceSelection(key);
  72626. return;
  72627. }
  72628. let mappedKey = this.getKey(key);
  72629. if (mappedKey == null) return;
  72630. let keys3 = new $e40ea825a81a3709$export$52baac22726c72bf(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
  72631. keys3.has(mappedKey) ? keys3.delete(mappedKey) : this.canSelectItem(mappedKey) && (keys3.add(mappedKey), keys3.anchorKey = mappedKey, keys3.currentKey = mappedKey), !(this.disallowEmptySelection && keys3.size === 0) && this.state.setSelectedKeys(keys3);
  72632. }
  72633. /**
  72634. * Replaces the selection with only the given key.
  72635. */
  72636. replaceSelection(key) {
  72637. if (this.selectionMode === "none") return;
  72638. let mappedKey = this.getKey(key);
  72639. if (mappedKey == null) return;
  72640. let selection = this.canSelectItem(mappedKey) ? new $e40ea825a81a3709$export$52baac22726c72bf([
  72641. mappedKey
  72642. ], mappedKey, mappedKey) : new $e40ea825a81a3709$export$52baac22726c72bf();
  72643. this.state.setSelectedKeys(selection);
  72644. }
  72645. /**
  72646. * Replaces the selection with the given keys.
  72647. */
  72648. setSelectedKeys(keys3) {
  72649. if (this.selectionMode === "none") return;
  72650. let selection = new $e40ea825a81a3709$export$52baac22726c72bf();
  72651. for (let key of keys3) {
  72652. let mappedKey = this.getKey(key);
  72653. if (mappedKey != null && (selection.add(mappedKey), this.selectionMode === "single"))
  72654. break;
  72655. }
  72656. this.state.setSelectedKeys(selection);
  72657. }
  72658. getSelectAllKeys() {
  72659. let keys3 = [], addKeys = (key) => {
  72660. for (; key != null; ) {
  72661. if (this.canSelectItem(key)) {
  72662. var _getFirstItem;
  72663. let item = this.collection.getItem(key);
  72664. item?.type === "item" && keys3.push(key);
  72665. var _getFirstItem_key;
  72666. item?.hasChildNodes && (this.allowsCellSelection || item.type !== "item") && addKeys((_getFirstItem_key = (_getFirstItem = $c5a24bc478652b5f$export$fbdeaa6a76694f71($c5a24bc478652b5f$export$1005530eda016c13(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key) !== null && _getFirstItem_key !== void 0 ? _getFirstItem_key : null);
  72667. }
  72668. key = this.collection.getKeyAfter(key);
  72669. }
  72670. };
  72671. return addKeys(this.collection.getFirstKey()), keys3;
  72672. }
  72673. /**
  72674. * Selects all items in the collection.
  72675. */
  72676. selectAll() {
  72677. !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
  72678. }
  72679. /**
  72680. * Removes all keys from the selection.
  72681. */
  72682. clearSelection() {
  72683. !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new $e40ea825a81a3709$export$52baac22726c72bf());
  72684. }
  72685. /**
  72686. * Toggles between select all and an empty selection.
  72687. */
  72688. toggleSelectAll() {
  72689. this.isSelectAll ? this.clearSelection() : this.selectAll();
  72690. }
  72691. select(key, e) {
  72692. this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(key) && !this.disallowEmptySelection ? this.toggleSelection(key) : this.replaceSelection(key) : this.selectionBehavior === "toggle" || e && (e.pointerType === "touch" || e.pointerType === "virtual") ? this.toggleSelection(key) : this.replaceSelection(key));
  72693. }
  72694. /**
  72695. * Returns whether the current selection is equal to the given selection.
  72696. */
  72697. isSelectionEqual(selection) {
  72698. if (selection === this.state.selectedKeys) return !0;
  72699. let selectedKeys = this.selectedKeys;
  72700. if (selection.size !== selectedKeys.size) return !1;
  72701. for (let key of selection)
  72702. if (!selectedKeys.has(key)) return !1;
  72703. for (let key of selectedKeys)
  72704. if (!selection.has(key)) return !1;
  72705. return !0;
  72706. }
  72707. canSelectItem(key) {
  72708. var _item_props;
  72709. if (this.state.selectionMode === "none" || this.state.disabledKeys.has(key)) return !1;
  72710. let item = this.collection.getItem(key);
  72711. return !(!item || !(item == null || (_item_props = item.props) === null || _item_props === void 0) && _item_props.isDisabled || item.type === "cell" && !this.allowsCellSelection);
  72712. }
  72713. isDisabled(key) {
  72714. var _this_collection_getItem_props, _this_collection_getItem;
  72715. return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(key) || !!(!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 || (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0) && _this_collection_getItem_props.isDisabled));
  72716. }
  72717. isLink(key) {
  72718. var _this_collection_getItem_props, _this_collection_getItem;
  72719. return !!(!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 || (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0) && _this_collection_getItem_props.href);
  72720. }
  72721. getItemProps(key) {
  72722. var _this_collection_getItem;
  72723. return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
  72724. }
  72725. withCollection(collection) {
  72726. return new _$d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, {
  72727. allowsCellSelection: this.allowsCellSelection,
  72728. layoutDelegate: this.layoutDelegate || void 0
  72729. });
  72730. }
  72731. constructor(collection, state3, options) {
  72732. this.collection = collection, this.state = state3;
  72733. var _options_allowsCellSelection;
  72734. this.allowsCellSelection = (_options_allowsCellSelection = options?.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : !1, this._isSelectAll = null, this.layoutDelegate = options?.layoutDelegate || null;
  72735. }
  72736. };
  72737. // ../../node_modules/@react-stately/tree/dist/useTreeState.mjs
  72738. var import_react153 = __toESM(require_react(), 1);
  72739. function $875d6693e12af071$export$728d6ba534403756(props) {
  72740. let { onExpandedChange } = props, [expandedKeys, setExpandedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.expandedKeys ? new Set(props.expandedKeys) : void 0, props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : /* @__PURE__ */ new Set(), onExpandedChange), selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), disabledKeys = (0, import_react153.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [
  72741. props.disabledKeys
  72742. ]), tree = $7613b1592d41b092$export$6cd28814d92fa9c9(props, (0, import_react153.useCallback)((nodes) => new $05ca4cd7c4a5a999$export$863faf230ee2118a(nodes, {
  72743. expandedKeys
  72744. }), [
  72745. expandedKeys
  72746. ]), null);
  72747. return (0, import_react153.useEffect)(() => {
  72748. selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey) && selectionState.setFocusedKey(null);
  72749. }, [
  72750. tree,
  72751. selectionState.focusedKey
  72752. ]), {
  72753. collection: tree,
  72754. expandedKeys,
  72755. disabledKeys,
  72756. toggleKey: (key) => {
  72757. setExpandedKeys($875d6693e12af071$var$toggleKey(expandedKeys, key));
  72758. },
  72759. setExpandedKeys,
  72760. selectionManager: new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(tree, selectionState)
  72761. };
  72762. }
  72763. function $875d6693e12af071$var$toggleKey(set3, key) {
  72764. let res = new Set(set3);
  72765. return res.has(key) ? res.delete(key) : res.add(key), res;
  72766. }
  72767. // ../../node_modules/react-aria-components/dist/Menu.mjs
  72768. var import_react154 = __toESM(require_react(), 1), $3674c52c6b3c5bce$export$c7e742effb1c51e2 = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$export$24aad8519b95b41b = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$export$795aec4671cbae19 = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$var$SelectionManagerContext = (0, import_react154.createContext)(null);
  72769. var $3674c52c6b3c5bce$var$SubmenuTriggerContext = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$var$SubmenuTriggerNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  72770. filter(collection, newCollection, filterFn) {
  72771. let triggerNode = collection.getItem(this.firstChildKey);
  72772. if (triggerNode && filterFn(triggerNode.textValue, this)) {
  72773. let clone3 = this.clone();
  72774. return newCollection.addDescendants(clone3, collection), clone3;
  72775. }
  72776. return null;
  72777. }
  72778. };
  72779. $3674c52c6b3c5bce$var$SubmenuTriggerNode.type = "submenutrigger";
  72780. var $3674c52c6b3c5bce$export$ecabc99eeffab7ca = $e1995378a142960e$export$e953bb1cd0f19726($3674c52c6b3c5bce$var$SubmenuTriggerNode, (props, ref, item) => {
  72781. let { CollectionBranch } = (0, import_react154.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), state3 = (0, import_react154.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), rootMenuTriggerState = (0, import_react154.useContext)($3674c52c6b3c5bce$export$795aec4671cbae19), submenuTriggerState = $e5614764aa47eb35$export$cfc51cf86138bf98({
  72782. triggerKey: item.key
  72783. }, rootMenuTriggerState), submenuRef = (0, import_react154.useRef)(null), itemRef = $df56164dff5785e2$export$4338b53315abf666(ref), { parentMenuRef, shouldUseVirtualFocus } = (0, import_react154.useContext)($3674c52c6b3c5bce$var$SubmenuTriggerContext), { submenuTriggerProps, submenuProps, popoverProps } = $0065b146e7192841$export$7138b0d059a6e743({
  72784. parentMenuRef,
  72785. submenuRef,
  72786. delay: props.delay,
  72787. shouldUseVirtualFocus
  72788. }, submenuTriggerState, itemRef);
  72789. return import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  72790. values: [
  72791. [
  72792. $3674c52c6b3c5bce$var$MenuItemContext,
  72793. {
  72794. ...submenuTriggerProps,
  72795. onAction: void 0,
  72796. ref: itemRef
  72797. }
  72798. ],
  72799. [
  72800. $3674c52c6b3c5bce$export$c7e742effb1c51e2,
  72801. {
  72802. ref: submenuRef,
  72803. ...submenuProps
  72804. }
  72805. ],
  72806. [
  72807. $de32f1b87079253c$export$d2f961adcb0afbe,
  72808. submenuTriggerState
  72809. ],
  72810. [
  72811. $07b14b47974efb58$export$9b9a0cd73afb7ca4,
  72812. {
  72813. trigger: "SubmenuTrigger",
  72814. triggerRef: itemRef,
  72815. placement: "end top",
  72816. "aria-labelledby": submenuProps["aria-labelledby"],
  72817. ...popoverProps
  72818. }
  72819. ]
  72820. ]
  72821. }, import_react154.default.createElement(CollectionBranch, {
  72822. collection: state3.collection,
  72823. parent: item
  72824. }), props.children[1]);
  72825. }, (props) => props.children[0]), $3674c52c6b3c5bce$export$d9b273488cd8ce6f = (0, import_react154.forwardRef)(function(props, ref) {
  72826. return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3674c52c6b3c5bce$export$c7e742effb1c51e2), import_react154.default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
  72827. content: import_react154.default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props)
  72828. }, (collection) => import_react154.default.createElement($3674c52c6b3c5bce$var$MenuInner, {
  72829. props,
  72830. collection,
  72831. menuRef: ref
  72832. }));
  72833. });
  72834. function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
  72835. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $8e6cc465cc68f603$export$b0d3ecf7112093a7);
  72836. let { filter, ...autocompleteMenuProps } = props, filteredCollection = (0, import_react154.useMemo)(() => filter ? collection.filter(filter) : collection, [
  72837. collection,
  72838. filter
  72839. ]), state3 = $875d6693e12af071$export$728d6ba534403756({
  72840. ...props,
  72841. collection: filteredCollection,
  72842. children: void 0
  72843. }), triggerState = (0, import_react154.useContext)($3674c52c6b3c5bce$export$795aec4671cbae19), { isVirtualized, CollectionRoot } = (0, import_react154.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), { menuProps } = $d5336fe17ce95402$export$38eaa17faae8f579({
  72844. ...props,
  72845. isVirtualized,
  72846. onClose: props.onClose || triggerState?.close
  72847. }, state3, ref), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  72848. defaultClassName: "react-aria-Menu",
  72849. className: props.className,
  72850. style: props.style,
  72851. values: {
  72852. isEmpty: state3.collection.size === 0
  72853. }
  72854. }), emptyState = null;
  72855. state3.collection.size === 0 && props.renderEmptyState && (emptyState = import_react154.default.createElement("div", {
  72856. role: "menuitem",
  72857. style: {
  72858. display: "contents"
  72859. }
  72860. }, props.renderEmptyState()));
  72861. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  72862. global: !0
  72863. });
  72864. return import_react154.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, import_react154.default.createElement("div", {
  72865. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuProps),
  72866. ref,
  72867. slot: props.slot || void 0,
  72868. "data-empty": state3.collection.size === 0 || void 0,
  72869. onScroll: props.onScroll
  72870. }, import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  72871. values: [
  72872. [
  72873. $3674c52c6b3c5bce$export$24aad8519b95b41b,
  72874. state3
  72875. ],
  72876. [
  72877. $431f98aba6844401$export$6615d83f6de245ce,
  72878. {
  72879. elementType: "div"
  72880. }
  72881. ],
  72882. [
  72883. $7135fc7d473fd974$export$d40e14dec8b060a8,
  72884. {
  72885. name: "MenuSection",
  72886. render: $3674c52c6b3c5bce$var$MenuSectionInner
  72887. }
  72888. ],
  72889. [
  72890. $3674c52c6b3c5bce$var$SubmenuTriggerContext,
  72891. {
  72892. parentMenuRef: ref,
  72893. shouldUseVirtualFocus: autocompleteMenuProps?.shouldUseVirtualFocus
  72894. }
  72895. ],
  72896. [
  72897. $3674c52c6b3c5bce$var$MenuItemContext,
  72898. null
  72899. ],
  72900. [
  72901. $8e6cc465cc68f603$export$b0d3ecf7112093a7,
  72902. null
  72903. ],
  72904. [
  72905. $8e6cc465cc68f603$export$698f465ec27e93df,
  72906. null
  72907. ],
  72908. [
  72909. $3674c52c6b3c5bce$var$SelectionManagerContext,
  72910. state3.selectionManager
  72911. ],
  72912. /* Ensure root MenuTriggerState is defined, in case Menu is rendered outside a MenuTrigger. */
  72913. /* We assume the context can never change between defined and undefined. */
  72914. /* eslint-disable-next-line react-hooks/rules-of-hooks */
  72915. [
  72916. $3674c52c6b3c5bce$export$795aec4671cbae19,
  72917. triggerState ?? $a28c903ee9ad8dc5$export$79fefeb1c2091ac3({})
  72918. ]
  72919. ]
  72920. }, import_react154.default.createElement(CollectionRoot, {
  72921. collection: state3.collection,
  72922. persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state3.selectionManager.focusedKey),
  72923. scrollRef: ref
  72924. })), emptyState));
  72925. }
  72926. var $3674c52c6b3c5bce$var$GroupSelectionManager = class extends $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
  72927. get focusedKey() {
  72928. return this.parent.focusedKey;
  72929. }
  72930. get isFocused() {
  72931. return this.parent.isFocused;
  72932. }
  72933. setFocusedKey(key, childFocusStrategy) {
  72934. return this.parent.setFocusedKey(key, childFocusStrategy);
  72935. }
  72936. setFocused(isFocused) {
  72937. this.parent.setFocused(isFocused);
  72938. }
  72939. get childFocusStrategy() {
  72940. return this.parent.childFocusStrategy;
  72941. }
  72942. constructor(parent, state3) {
  72943. super(parent.collection, state3), this.parent = parent;
  72944. }
  72945. };
  72946. function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className = "react-aria-MenuSection") {
  72947. var _section_props, _section_props1;
  72948. let state3 = (0, import_react154.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), { CollectionBranch } = (0, import_react154.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
  72949. var _section_props_arialabel;
  72950. let { headingProps, groupProps } = $3e5eb2498db5b506$export$73f7a44322579622({
  72951. heading,
  72952. "aria-label": (_section_props_arialabel = section.props["aria-label"]) !== null && _section_props_arialabel !== void 0 ? _section_props_arialabel : void 0
  72953. }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  72954. defaultClassName: className,
  72955. className: (_section_props = section.props) === null || _section_props === void 0 ? void 0 : _section_props.className,
  72956. style: (_section_props1 = section.props) === null || _section_props1 === void 0 ? void 0 : _section_props1.style,
  72957. values: {}
  72958. }), parent = (0, import_react154.useContext)($3674c52c6b3c5bce$var$SelectionManagerContext), selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), manager = props.selectionMode != null ? new $3674c52c6b3c5bce$var$GroupSelectionManager(parent, selectionState) : parent, DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  72959. global: !0
  72960. });
  72961. return delete DOMProps.id, import_react154.default.createElement("section", {
  72962. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
  72963. ref
  72964. }, import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  72965. values: [
  72966. [
  72967. $72a5793c14baf454$export$e0e4026c12a8bdbb,
  72968. {
  72969. ...headingProps,
  72970. ref: headingRef
  72971. }
  72972. ],
  72973. [
  72974. $3674c52c6b3c5bce$var$SelectionManagerContext,
  72975. manager
  72976. ]
  72977. ]
  72978. }, import_react154.default.createElement(CollectionBranch, {
  72979. collection: state3.collection,
  72980. parent: section
  72981. })));
  72982. }
  72983. var $3674c52c6b3c5bce$export$4b1545b4f2016d26 = $e1995378a142960e$export$e953bb1cd0f19726($23b9f4fcf0fe224b$export$437f11dc9b403b78, $3674c52c6b3c5bce$var$MenuSectionInner), $3674c52c6b3c5bce$var$MenuItemContext = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$fd11f34e1d07f134, function(props, forwardedRef, item) {
  72984. var _useSlottedContext;
  72985. [props, forwardedRef] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, forwardedRef, $3674c52c6b3c5bce$var$MenuItemContext);
  72986. let id = (_useSlottedContext = $64fa3d84918910a7$export$fabf2dc03a41866e($3674c52c6b3c5bce$var$MenuItemContext)) === null || _useSlottedContext === void 0 ? void 0 : _useSlottedContext.id, state3 = (0, import_react154.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), selectionManager = (0, import_react154.useContext)($3674c52c6b3c5bce$var$SelectionManagerContext), { menuItemProps, labelProps, descriptionProps, keyboardShortcutProps, ...states } = $a2e5df62f93c7633$export$9d32628fc2aea7da({
  72987. ...props,
  72988. id,
  72989. key: item.key,
  72990. selectionManager
  72991. }, state3, ref), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
  72992. isDisabled: states.isDisabled
  72993. }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  72994. ...props,
  72995. id: void 0,
  72996. children: item.rendered,
  72997. defaultClassName: "react-aria-MenuItem",
  72998. values: {
  72999. ...states,
  73000. isHovered,
  73001. isFocusVisible: states.isFocusVisible,
  73002. selectionMode: selectionManager.selectionMode,
  73003. selectionBehavior: selectionManager.selectionBehavior,
  73004. hasSubmenu: !!props["aria-haspopup"],
  73005. isOpen: props["aria-expanded"] === "true"
  73006. }
  73007. }), ElementType = props.href ? "a" : "div", DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  73008. global: !0
  73009. });
  73010. return delete DOMProps.id, delete DOMProps.onClick, import_react154.default.createElement(ElementType, {
  73011. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuItemProps, hoverProps),
  73012. ref,
  73013. "data-disabled": states.isDisabled || void 0,
  73014. "data-hovered": isHovered || void 0,
  73015. "data-focused": states.isFocused || void 0,
  73016. "data-focus-visible": states.isFocusVisible || void 0,
  73017. "data-pressed": states.isPressed || void 0,
  73018. "data-selected": states.isSelected || void 0,
  73019. "data-selection-mode": selectionManager.selectionMode === "none" ? void 0 : selectionManager.selectionMode,
  73020. "data-has-submenu": !!props["aria-haspopup"] || void 0,
  73021. "data-open": props["aria-expanded"] === "true" || void 0
  73022. }, import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73023. values: [
  73024. [
  73025. $514c0188e459b4c0$export$9afb8bc826b033ea,
  73026. {
  73027. slots: {
  73028. [$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps,
  73029. label: labelProps,
  73030. description: descriptionProps
  73031. }
  73032. }
  73033. ],
  73034. [
  73035. $63df2425e2108aa8$export$744d98a3b8a94e1c,
  73036. keyboardShortcutProps
  73037. ]
  73038. ]
  73039. }, renderProps.children));
  73040. });
  73041. // ../../node_modules/@react-aria/dialog/dist/useDialog.mjs
  73042. var import_react155 = __toESM(require_react(), 1);
  73043. function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
  73044. let { role = "dialog" } = props, titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
  73045. titleId = props["aria-label"] ? void 0 : titleId;
  73046. let isRefocusing = (0, import_react155.useRef)(!1);
  73047. return (0, import_react155.useEffect)(() => {
  73048. if (ref.current && !ref.current.contains(document.activeElement)) {
  73049. $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
  73050. let timeout = setTimeout(() => {
  73051. (document.activeElement === ref.current || document.activeElement === document.body) && (isRefocusing.current = !0, ref.current && (ref.current.blur(), $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current)), isRefocusing.current = !1);
  73052. }, 500);
  73053. return () => {
  73054. clearTimeout(timeout);
  73055. };
  73056. }
  73057. }, [
  73058. ref
  73059. ]), $337b884510726a0d$export$14c98a7594375490(), {
  73060. dialogProps: {
  73061. ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  73062. labelable: !0
  73063. }),
  73064. role,
  73065. tabIndex: -1,
  73066. "aria-labelledby": props["aria-labelledby"] || titleId,
  73067. // Prevent blur events from reaching useOverlay, which may cause
  73068. // popovers to close. Since focus is contained within the dialog,
  73069. // we don't want this to occur due to the above useEffect.
  73070. onBlur: (e) => {
  73071. isRefocusing.current && e.stopPropagation();
  73072. }
  73073. },
  73074. titleProps: {
  73075. id: titleId
  73076. }
  73077. };
  73078. }
  73079. // ../../node_modules/react-aria-components/dist/Dialog.mjs
  73080. var import_react156 = __toESM(require_react(), 1), $de32f1b87079253c$export$8b93a07348a7730c = (0, import_react156.createContext)(null), $de32f1b87079253c$export$d2f961adcb0afbe = (0, import_react156.createContext)(null);
  73081. function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
  73082. let state3 = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props), buttonRef = (0, import_react156.useRef)(null), { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({
  73083. type: "dialog"
  73084. }, state3, buttonRef), [buttonWidth, setButtonWidth] = (0, import_react156.useState)(null), onResize = (0, import_react156.useCallback)(() => {
  73085. buttonRef.current && setButtonWidth(buttonRef.current.offsetWidth + "px");
  73086. }, [
  73087. buttonRef
  73088. ]);
  73089. return $9daab02d461809db$export$683480f191c0e3ea({
  73090. ref: buttonRef,
  73091. onResize
  73092. }), triggerProps.id = $bdb11010cef70236$export$f680877a34711e37(), overlayProps["aria-labelledby"] = triggerProps.id, import_react156.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73093. values: [
  73094. [
  73095. $de32f1b87079253c$export$d2f961adcb0afbe,
  73096. state3
  73097. ],
  73098. [
  73099. $3674c52c6b3c5bce$export$795aec4671cbae19,
  73100. state3
  73101. ],
  73102. [
  73103. $de32f1b87079253c$export$8b93a07348a7730c,
  73104. overlayProps
  73105. ],
  73106. [
  73107. $07b14b47974efb58$export$9b9a0cd73afb7ca4,
  73108. {
  73109. trigger: "DialogTrigger",
  73110. triggerRef: buttonRef,
  73111. "aria-labelledby": overlayProps["aria-labelledby"],
  73112. style: {
  73113. "--trigger-width": buttonWidth
  73114. }
  73115. }
  73116. ]
  73117. ]
  73118. }, import_react156.default.createElement($f1ab8c75478c6f73$export$3351871ee4b288b8, {
  73119. ...triggerProps,
  73120. ref: buttonRef,
  73121. isPressed: state3.isOpen
  73122. }, props.children));
  73123. }
  73124. var $de32f1b87079253c$export$3ddf2d174ce01153 = (0, import_react156.forwardRef)(function(props, ref) {
  73125. let originalAriaLabelledby = props["aria-labelledby"];
  73126. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $de32f1b87079253c$export$8b93a07348a7730c);
  73127. let { dialogProps, titleProps } = $40df3f8667284809$export$d55e7ee900f34e93({
  73128. ...props,
  73129. // Only pass aria-labelledby from props, not context.
  73130. // Context is used as a fallback below.
  73131. "aria-labelledby": originalAriaLabelledby
  73132. }, ref), state3 = (0, import_react156.useContext)($de32f1b87079253c$export$d2f961adcb0afbe);
  73133. !dialogProps["aria-label"] && !dialogProps["aria-labelledby"] && props["aria-labelledby"] && (dialogProps["aria-labelledby"] = props["aria-labelledby"]);
  73134. let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  73135. defaultClassName: "react-aria-Dialog",
  73136. className: props.className,
  73137. style: props.style,
  73138. children: props.children,
  73139. values: {
  73140. close: state3?.close || (() => {
  73141. })
  73142. }
  73143. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  73144. global: !0
  73145. });
  73146. return import_react156.default.createElement("section", {
  73147. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, dialogProps),
  73148. ref,
  73149. slot: props.slot || void 0
  73150. }, import_react156.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73151. values: [
  73152. [
  73153. $4e85f108e88277b8$export$d688439359537581,
  73154. {
  73155. slots: {
  73156. [$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
  73157. title: {
  73158. ...titleProps,
  73159. level: 2
  73160. }
  73161. }
  73162. }
  73163. ],
  73164. [
  73165. $d2b4bc8c273e7be6$export$24d547caef80ccd1,
  73166. {
  73167. slots: {
  73168. [$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
  73169. close: {
  73170. onPress: () => state3?.close()
  73171. }
  73172. }
  73173. }
  73174. ]
  73175. ]
  73176. }, renderProps.children));
  73177. });
  73178. // src/components/components/Popover/PopoverProvider.tsx
  73179. var PopoverProvider = ({
  73180. ariaLabel,
  73181. placement: placementProp = "bottom-start",
  73182. hasChrome = !0,
  73183. hasCloseButton = !1,
  73184. closeLabel,
  73185. offset: offset3 = 8,
  73186. padding,
  73187. popover,
  73188. children,
  73189. defaultVisible,
  73190. visible,
  73191. onVisibleChange,
  73192. ...props
  73193. }) => {
  73194. ariaLabel || deprecate(
  73195. "The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose."
  73196. );
  73197. let placement = convertToReactAriaPlacement(placementProp), [isOpen, setIsOpen] = (0, import_react157.useState)(defaultVisible ?? !1), onOpenChange = (0, import_react157.useCallback)(
  73198. (isOpen2) => {
  73199. setIsOpen(isOpen2), onVisibleChange?.(isOpen2);
  73200. },
  73201. [onVisibleChange]
  73202. ), onHide = (0, import_react157.useCallback)(() => onOpenChange(!1), [onOpenChange]);
  73203. return import_react157.default.createElement(
  73204. $de32f1b87079253c$export$2e1e1122cf0cba88,
  73205. {
  73206. defaultOpen: defaultVisible,
  73207. isOpen: visible ?? isOpen,
  73208. onOpenChange,
  73209. ...props
  73210. },
  73211. import_react157.default.createElement(
  73212. $3b117e43dc0ca95d$export$27c701ed9e449e99,
  73213. null,
  73214. /* React-aria does not inject aria-haspopup='dialog' to support legacy screen readers, so we do it ourselves. */
  73215. (0, import_react157.cloneElement)(
  73216. children,
  73217. // @ts-expect-error aria-haspopup is a valid ARIA attribute but cloneElement types are too strict
  73218. { "aria-haspopup": "dialog" }
  73219. )
  73220. ),
  73221. import_react157.default.createElement(
  73222. $07b14b47974efb58$export$5b6b19405a83ff9d,
  73223. {
  73224. "aria-label": ariaLabel,
  73225. placement,
  73226. offset: offset3,
  73227. style: { outline: "none" }
  73228. },
  73229. import_react157.default.createElement(
  73230. Popover,
  73231. {
  73232. hasChrome,
  73233. hideLabel: closeLabel,
  73234. onHide: hasCloseButton ? onHide : void 0,
  73235. padding
  73236. },
  73237. typeof popover == "function" ? popover({ onHide }) : popover
  73238. )
  73239. )
  73240. );
  73241. };
  73242. // src/components/components/tooltip/Tooltip.tsx
  73243. var import_react158 = __toESM(require_react(), 1);
  73244. var Tooltip2 = (0, import_react158.forwardRef)((props, ref) => import_react158.default.createElement(Popover, { ref, ...props }));
  73245. Tooltip2.displayName = "Tooltip";
  73246. // src/components/components/tooltip/lazy-WithTooltip.tsx
  73247. var import_react160 = __toESM(require_react(), 1), LazyWithTooltip = (0, import_react160.lazy)(
  73248. () => Promise.resolve().then(() => (init_WithTooltip(), WithTooltip_exports)).then((mod) => ({ default: mod.WithTooltip }))
  73249. ), WithTooltip = (props) => import_react160.default.createElement(import_react160.Suspense, { fallback: import_react160.default.createElement("div", null) }, import_react160.default.createElement(LazyWithTooltip, { ...props })), LazyWithTooltipPure = (0, import_react160.lazy)(
  73250. () => Promise.resolve().then(() => (init_WithTooltip(), WithTooltip_exports)).then((mod) => ({ default: mod.WithTooltipPure }))
  73251. ), WithTooltipPure2 = (props) => import_react160.default.createElement(import_react160.Suspense, { fallback: import_react160.default.createElement("div", null) }, import_react160.default.createElement(LazyWithTooltipPure, { ...props }));
  73252. // src/components/components/tooltip/TooltipMessage.tsx
  73253. var import_react161 = __toESM(require_react(), 1);
  73254. init_client_logger();
  73255. init_theming();
  73256. var Title3 = styled.div(({ theme: theme3 }) => ({
  73257. fontWeight: theme3.typography.weight.bold
  73258. })), Desc2 = styled.span(), Links = styled.div(({ theme: theme3 }) => ({
  73259. marginTop: 8,
  73260. textAlign: "center",
  73261. "> *": {
  73262. margin: "0 8px",
  73263. fontWeight: theme3.typography.weight.bold
  73264. }
  73265. })), Message2 = styled.div(({ theme: theme3 }) => ({
  73266. color: theme3.color.defaultText,
  73267. lineHeight: "18px"
  73268. })), MessageWrapper = styled.div({
  73269. padding: 15,
  73270. width: 280,
  73271. boxSizing: "border-box"
  73272. }), TooltipMessage = ({ title, desc, links }) => (deprecate(
  73273. "`TooltipMessage` is deprecated and will be removed in Storybook 11, use `Popover` and `PopoverProvider` instead."
  73274. ), import_react161.default.createElement(MessageWrapper, { "data-deprecated": "TooltipMessage" }, import_react161.default.createElement(Message2, null, title && import_react161.default.createElement(Title3, null, title), desc && import_react161.default.createElement(Desc2, null, desc)), links && import_react161.default.createElement(Links, null, links.map(({ title: linkTitle, ...other }) => import_react161.default.createElement(Link2, { ...other, key: linkTitle }, linkTitle)))));
  73275. // src/components/components/tooltip/TooltipLinkList.tsx
  73276. var import_react163 = __toESM(require_react(), 1);
  73277. init_client_logger();
  73278. init_theming();
  73279. // src/components/components/tooltip/ListItem.tsx
  73280. var import_react162 = __toESM(require_react(), 1);
  73281. init_client_logger();
  73282. var import_memoizerific12 = __toESM(require_memoizerific(), 1);
  73283. init_theming();
  73284. var Title4 = styled(({ active, loading, disabled, ...rest }) => import_react162.default.createElement("span", { ...rest }))(
  73285. ({ theme: theme3 }) => ({
  73286. color: theme3.color.defaultText,
  73287. // Previously was theme.typography.weight.normal but this weight does not exists in Theme
  73288. fontWeight: theme3.typography.weight.regular
  73289. }),
  73290. ({ active, theme: theme3 }) => active ? {
  73291. color: theme3.color.secondary,
  73292. fontWeight: theme3.typography.weight.bold
  73293. } : {},
  73294. ({ loading, theme: theme3 }) => loading ? {
  73295. display: "inline-block",
  73296. flex: "none",
  73297. ...theme3.animation.inlineGlow
  73298. } : {},
  73299. ({ disabled, theme: theme3 }) => disabled ? {
  73300. color: theme3.textMutedColor
  73301. } : {}
  73302. ), Right = styled.span({
  73303. display: "flex",
  73304. "& svg": {
  73305. height: 12,
  73306. width: 12,
  73307. margin: "3px 0",
  73308. verticalAlign: "top"
  73309. }
  73310. }), Center = styled.span(
  73311. {
  73312. flex: 1,
  73313. textAlign: "left",
  73314. display: "flex",
  73315. flexDirection: "column",
  73316. minWidth: 0
  73317. // required for overflow
  73318. },
  73319. ({ isIndented }) => isIndented ? { marginLeft: 24 } : {}
  73320. ), CenterText = styled.span(
  73321. ({ theme: theme3 }) => ({
  73322. fontSize: "11px",
  73323. lineHeight: "14px"
  73324. }),
  73325. ({ active, theme: theme3 }) => active ? {
  73326. color: theme3.color.secondary
  73327. } : {},
  73328. ({ theme: theme3, disabled }) => disabled ? {
  73329. color: theme3.textMutedColor
  73330. } : {}
  73331. ), Left = styled.span(
  73332. ({ active, theme: theme3 }) => active ? {
  73333. color: theme3.color.secondary
  73334. } : {},
  73335. () => ({
  73336. display: "flex",
  73337. maxWidth: 14
  73338. })
  73339. ), Item = styled.button(
  73340. ({ theme: theme3 }) => ({
  73341. width: "100%",
  73342. minWidth: 0,
  73343. // required for overflow
  73344. border: "none",
  73345. borderRadius: theme3.appBorderRadius,
  73346. background: "none",
  73347. fontSize: theme3.typography.size.s1,
  73348. transition: "background 150ms ease-out",
  73349. color: theme3.color.dark,
  73350. textDecoration: "none",
  73351. justifyContent: "space-between",
  73352. lineHeight: "18px",
  73353. padding: "7px 10px",
  73354. display: "flex",
  73355. alignItems: "center",
  73356. "& > * + *": {
  73357. paddingLeft: 10
  73358. },
  73359. "&:focus-visible": {
  73360. outline: `2px solid ${theme3.color.secondary}`,
  73361. outlineOffset: 0
  73362. }
  73363. }),
  73364. ({ theme: theme3, href, onClick }) => (href || onClick) && {
  73365. cursor: "pointer",
  73366. "&:hover": {
  73367. background: theme3.background.hoverable
  73368. },
  73369. "&:hover svg": {
  73370. opacity: 1
  73371. }
  73372. },
  73373. ({ theme: theme3, as }) => as === "label" && {
  73374. "&:has(input:not(:disabled))": {
  73375. cursor: "pointer",
  73376. "&:hover": {
  73377. background: theme3.background.hoverable
  73378. }
  73379. }
  73380. },
  73381. ({ disabled }) => disabled && { cursor: "not-allowed" }
  73382. ), getItemProps = (0, import_memoizerific12.default)(100)(({ onClick, input: input2, href, LinkWrapper }) => ({
  73383. ...onClick && {
  73384. as: "button",
  73385. role: "button",
  73386. onClick
  73387. },
  73388. ...input2 && {
  73389. as: "label"
  73390. },
  73391. ...href && {
  73392. as: "a",
  73393. role: "link",
  73394. href,
  73395. ...LinkWrapper && {
  73396. as: LinkWrapper,
  73397. to: href
  73398. }
  73399. }
  73400. })), ListItem = (0, import_react162.forwardRef)((props, ref) => {
  73401. let {
  73402. loading = !1,
  73403. title = import_react162.default.createElement("span", null, "Loading state"),
  73404. center = null,
  73405. right: right2 = null,
  73406. active = !1,
  73407. disabled = !1,
  73408. isIndented = !1,
  73409. href = void 0,
  73410. onClick = void 0,
  73411. icon,
  73412. input: input2,
  73413. LinkWrapper = void 0,
  73414. ...rest
  73415. } = props, commonProps = { active, disabled }, itemProps = getItemProps(props), left2 = icon || input2;
  73416. return deprecate(
  73417. "`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."
  73418. ), import_react162.default.createElement(Item, { "data-deprecated": "ListItem", ref, ...rest, ...commonProps, ...itemProps }, import_react162.default.createElement(import_react162.default.Fragment, null, left2 && import_react162.default.createElement(Left, { ...commonProps }, left2), title || center ? import_react162.default.createElement(Center, { isIndented: isIndented && !left2 }, title && import_react162.default.createElement(Title4, { ...commonProps, loading }, title), center && import_react162.default.createElement(CenterText, { ...commonProps }, center)) : null, right2 && import_react162.default.createElement(Right, { ...commonProps }, right2)));
  73419. });
  73420. ListItem.displayName = "ListItem";
  73421. var ListItem_default = ListItem;
  73422. // src/components/components/tooltip/TooltipLinkList.tsx
  73423. var List = styled.div(
  73424. {
  73425. minWidth: 180,
  73426. overflow: "hidden",
  73427. overflowY: "auto",
  73428. maxHeight: 15.5 * 32 + 8
  73429. // 15.5 items at 32px each + 8px padding
  73430. },
  73431. ({ theme: theme3 }) => ({
  73432. borderRadius: theme3.appBorderRadius + 2
  73433. }),
  73434. ({ theme: theme3 }) => theme3.base === "dark" ? { background: theme3.background.content } : {}
  73435. ), Group = styled.div(({ theme: theme3 }) => ({
  73436. padding: 4,
  73437. "& + &": {
  73438. borderTop: `1px solid ${theme3.appBorderColor}`
  73439. }
  73440. })), Item2 = ({ id, onClick, ...rest }) => {
  73441. let { active, disabled, title, href } = rest, handleClick = (0, import_react163.useCallback)(
  73442. (event) => onClick?.(event, { id, active, disabled, title, href }),
  73443. [onClick, id, active, disabled, title, href]
  73444. );
  73445. return import_react163.default.createElement(ListItem_default, { id: `list-item-${id}`, ...rest, ...onClick && { onClick: handleClick } });
  73446. }, TooltipLinkList = ({ links, LinkWrapper, ...props }) => {
  73447. deprecate(
  73448. "`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead."
  73449. );
  73450. let groups = Array.isArray(links[0]) ? links : [links], isIndented = groups.some(
  73451. (group) => group.some((link) => "icon" in link && link.icon || "input" in link && link.input)
  73452. );
  73453. return import_react163.default.createElement(List, { "data-deprecated": "TooltipLinkList", ...props, className: "sb-list" }, groups.filter((group) => group.length).map((group, index4) => import_react163.default.createElement(Group, { key: group.map((link) => link.id).join(`~${index4}~`) }, group.map((link) => "content" in link ? import_react163.default.createElement(import_react163.Fragment, { key: link.id }, link.content) : import_react163.default.createElement(Item2, { key: link.id, isIndented, LinkWrapper, ...link })))));
  73454. };
  73455. // src/components/components/Tabs/Tabs.tsx
  73456. var import_react169 = __toESM(require_react(), 1);
  73457. init_client_logger();
  73458. init_theming();
  73459. // src/components/components/Bar/Bar.tsx
  73460. var import_react164 = __toESM(require_react(), 1);
  73461. init_client_logger();
  73462. init_theming();
  73463. var StyledBar = styled.div(
  73464. ({ backgroundColor, border = !1, innerStyle = {}, scrollable, theme: theme3 }) => ({
  73465. color: theme3.barTextColor,
  73466. width: "100%",
  73467. minHeight: 40,
  73468. flexShrink: 0,
  73469. // TODO in Storybook 11: Apply background regardless of border.
  73470. scrollbarColor: `${theme3.barTextColor} ${border ? backgroundColor || theme3.barBg : "transparent"}`,
  73471. scrollbarWidth: "thin",
  73472. overflow: scrollable ? "auto" : "hidden",
  73473. overflowY: "hidden",
  73474. display: "flex",
  73475. alignItems: "center",
  73476. gap: scrollable ? 0 : 6,
  73477. paddingInline: scrollable ? 0 : 6,
  73478. // TODO in Storybook 11: Apply background regardless of border.
  73479. ...border ? {
  73480. boxShadow: `${theme3.appBorderColor} 0 -1px 0 0 inset`,
  73481. background: backgroundColor || theme3.barBg
  73482. } : {},
  73483. ...innerStyle
  73484. })
  73485. ), HeightPreserver = styled.div(({ innerStyle }) => ({
  73486. minHeight: 40,
  73487. display: "flex",
  73488. alignItems: "center",
  73489. width: "100%",
  73490. gap: 6,
  73491. paddingInline: 6,
  73492. ...innerStyle
  73493. })), Bar = (0, import_react164.forwardRef)(
  73494. ({ scrollable = !0, children, innerStyle, ...rest }, ref) => import_react164.default.createElement(
  73495. StyledBar,
  73496. {
  73497. ...rest,
  73498. ref,
  73499. innerStyle: scrollable ? void 0 : innerStyle,
  73500. scrollable
  73501. },
  73502. scrollable ? import_react164.default.createElement(HeightPreserver, { innerStyle }, children) : children
  73503. )
  73504. );
  73505. Bar.displayName = "Bar";
  73506. var Side = styled.div(
  73507. {
  73508. display: "flex",
  73509. whiteSpace: "nowrap",
  73510. flexBasis: "auto",
  73511. marginLeft: 3,
  73512. marginRight: 10
  73513. },
  73514. ({ scrollable }) => scrollable ? { flexShrink: 0 } : {},
  73515. ({ left: left2 }) => left2 ? {
  73516. "& > *": {
  73517. marginLeft: 4
  73518. }
  73519. } : {},
  73520. ({ right: right2 }) => right2 ? {
  73521. gap: 6
  73522. } : {}
  73523. );
  73524. Side.displayName = "Side";
  73525. var BarInner = styled.div(({ bgColor }) => ({
  73526. display: "flex",
  73527. justifyContent: "space-between",
  73528. position: "relative",
  73529. flexWrap: "nowrap",
  73530. flexShrink: 0,
  73531. height: 40,
  73532. width: "100%",
  73533. backgroundColor: bgColor || ""
  73534. })), BarWithoutPadding = styled(Bar)({
  73535. paddingInline: 0
  73536. }), FlexBar = ({ children, backgroundColor, className = "", ...rest }) => {
  73537. deprecate('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');
  73538. let [left2, right2] = import_react164.Children.toArray(children);
  73539. return import_react164.default.createElement(
  73540. BarWithoutPadding,
  73541. {
  73542. "data-deprecated": "FlexBar",
  73543. backgroundColor,
  73544. className: `sb-bar ${className}`,
  73545. ...rest
  73546. },
  73547. import_react164.default.createElement(BarInner, { bgColor: backgroundColor }, import_react164.default.createElement(Side, { scrollable: rest.scrollable, left: !0 }, left2), right2 ? import_react164.default.createElement(Side, { right: !0 }, right2) : null)
  73548. );
  73549. };
  73550. FlexBar.displayName = "FlexBar";
  73551. // src/components/components/Tabs/Button.tsx
  73552. var import_react165 = __toESM(require_react(), 1);
  73553. init_client_logger();
  73554. init_theming();
  73555. var isLink = (obj) => typeof obj.props.href == "string", isButton = (obj) => typeof obj.props.href != "string";
  73556. function ForwardRefFunction({ children, ...rest }, ref) {
  73557. let o = { props: rest, ref };
  73558. if (isLink(o))
  73559. return import_react165.default.createElement("a", { ref: o.ref, ...o.props }, children);
  73560. if (isButton(o))
  73561. return import_react165.default.createElement("button", { ref: o.ref, type: "button", ...o.props }, children);
  73562. throw new Error("invalid props");
  73563. }
  73564. var ButtonOrLink = (0, import_react165.forwardRef)(ForwardRefFunction);
  73565. ButtonOrLink.displayName = "ButtonOrLink";
  73566. var StyledTabButton = styled(ButtonOrLink, { shouldForwardProp: isPropValid })(
  73567. {
  73568. whiteSpace: "normal",
  73569. display: "inline-flex",
  73570. overflow: "hidden",
  73571. verticalAlign: "top",
  73572. justifyContent: "center",
  73573. alignItems: "center",
  73574. textAlign: "center",
  73575. textDecoration: "none",
  73576. "&:empty": {
  73577. display: "none"
  73578. },
  73579. "&[hidden]": {
  73580. display: "none"
  73581. }
  73582. },
  73583. ({ theme: theme3 }) => ({
  73584. padding: "0 15px",
  73585. transition: "color 0.2s linear, border-bottom-color 0.2s linear",
  73586. height: 40,
  73587. lineHeight: "12px",
  73588. cursor: "pointer",
  73589. background: "transparent",
  73590. border: "0 solid transparent",
  73591. borderTop: "3px solid transparent",
  73592. borderBottom: "3px solid transparent",
  73593. fontWeight: "bold",
  73594. fontSize: 13,
  73595. "&:focus": {
  73596. outline: "0 none",
  73597. borderBottomColor: theme3.barSelectedColor
  73598. }
  73599. }),
  73600. ({ active, textColor, theme: theme3 }) => active ? {
  73601. color: textColor || theme3.barSelectedColor,
  73602. borderBottomColor: theme3.barSelectedColor
  73603. } : {
  73604. color: textColor || theme3.barTextColor,
  73605. borderBottomColor: "transparent",
  73606. "&:hover": {
  73607. color: theme3.barHoverColor
  73608. }
  73609. }
  73610. ), TabButton = (0, import_react165.forwardRef)((props, ref) => (deprecate("The `TabButton` component is deprecated. Use `TabList` instead."), import_react165.default.createElement(StyledTabButton, { "data-deprecated": "TabButton", ref, ...props })));
  73611. TabButton.displayName = "TabButton";
  73612. // src/components/components/Tabs/EmptyTabContent.tsx
  73613. var import_react166 = __toESM(require_react(), 1);
  73614. init_theming();
  73615. var Wrapper6 = styled.div(({ theme: theme3 }) => ({
  73616. height: "100%",
  73617. display: "flex",
  73618. padding: 30,
  73619. alignItems: "center",
  73620. justifyContent: "center",
  73621. flexDirection: "column",
  73622. gap: 15,
  73623. background: theme3.background.content
  73624. })), Content2 = styled.div({
  73625. display: "flex",
  73626. flexDirection: "column",
  73627. gap: 4,
  73628. maxWidth: 415
  73629. }), Title5 = styled.div(({ theme: theme3 }) => ({
  73630. fontWeight: theme3.typography.weight.bold,
  73631. fontSize: theme3.typography.size.s2 - 1,
  73632. textAlign: "center",
  73633. color: theme3.color.defaultText
  73634. })), Footer = styled.div(({ theme: theme3 }) => ({
  73635. fontSize: theme3.typography.size.s2 - 1
  73636. })), Description2 = styled.div(({ theme: theme3 }) => ({
  73637. fontWeight: theme3.typography.weight.regular,
  73638. fontSize: theme3.typography.size.s2 - 1,
  73639. textAlign: "center",
  73640. color: theme3.textMutedColor
  73641. })), EmptyTabContent = ({ title, description, footer }) => import_react166.default.createElement(Wrapper6, null, import_react166.default.createElement(Content2, null, import_react166.default.createElement(Title5, null, title), description && import_react166.default.createElement(Description2, null, description)), footer && import_react166.default.createElement(Footer, null, footer));
  73642. // src/components/components/Tabs/Tabs.helpers.tsx
  73643. var import_react167 = __toESM(require_react(), 1);
  73644. init_client_logger();
  73645. init_theming();
  73646. var VisuallyHidden = styled.div(
  73647. ({ active }) => active ? { display: "block" } : { display: "none" }
  73648. ), childrenToList = (children) => (deprecate("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."), import_react167.Children.toArray(children).map(
  73649. // @ts-expect-error (non strict)
  73650. ({
  73651. props: { title, id, color: color2, children: childrenOfChild }
  73652. }) => {
  73653. let content = Array.isArray(
  73654. childrenOfChild
  73655. ) ? childrenOfChild[0] : childrenOfChild;
  73656. return {
  73657. title,
  73658. id,
  73659. ...color2 ? { color: color2 } : {},
  73660. render: typeof content == "function" ? content : ({ active }) => import_react167.default.createElement(VisuallyHidden, { active, role: "tabpanel" }, content)
  73661. };
  73662. }
  73663. ));
  73664. // src/components/components/Tabs/Tabs.hooks.tsx
  73665. var import_react168 = __toESM(require_react(), 1);
  73666. init_client_logger();
  73667. init_theming();
  73668. var CollapseIcon2 = styled.span(({ theme: theme3, isActive }) => ({
  73669. display: "inline-block",
  73670. width: 0,
  73671. height: 0,
  73672. marginLeft: 8,
  73673. color: isActive ? theme3.color.secondary : theme3.color.mediumdark,
  73674. borderRight: "3px solid transparent",
  73675. borderLeft: "3px solid transparent",
  73676. borderTop: "3px solid",
  73677. transition: "transform .1s ease-out"
  73678. })), AddonButton = styled(TabButton)(({ active, theme: theme3, preActive }) => `
  73679. color: ${preActive || active ? theme3.barSelectedColor : theme3.barTextColor};
  73680. .addon-collapsible-icon {
  73681. color: ${preActive || active ? theme3.barSelectedColor : theme3.barTextColor};
  73682. }
  73683. &:hover {
  73684. color: ${theme3.barHoverColor};
  73685. .addon-collapsible-icon {
  73686. color: ${theme3.barHoverColor};
  73687. }
  73688. }
  73689. `);
  73690. function useList(list) {
  73691. deprecate("The `useList` tabs hook is deprecated. Use `TabsView` instead.");
  73692. let tabBarRef = (0, import_react168.useRef)(), addonsRef = (0, import_react168.useRef)(), tabRefs = (0, import_react168.useRef)(/* @__PURE__ */ new Map()), { width: tabBarWidth = 1 } = useResizeObserver2({
  73693. // @ts-expect-error (non strict)
  73694. ref: tabBarRef
  73695. }), [visibleList, setVisibleList] = (0, import_react168.useState)(list), [invisibleList, setInvisibleList] = (0, import_react168.useState)([]), previousList = (0, import_react168.useRef)(list), AddonTab = (0, import_react168.useCallback)(
  73696. ({
  73697. menuName,
  73698. actions
  73699. }) => {
  73700. let isAddonsActive = invisibleList.some(({ active }) => active), [isTooltipVisible, setTooltipVisible] = (0, import_react168.useState)(!1);
  73701. return import_react168.default.createElement(import_react168.default.Fragment, null, import_react168.default.createElement(
  73702. PopoverProvider,
  73703. {
  73704. ariaLabel: "Additional tabs",
  73705. visible: isTooltipVisible,
  73706. onVisibleChange: setTooltipVisible,
  73707. placement: "bottom",
  73708. popover: import_react168.default.createElement(
  73709. TooltipLinkList,
  73710. {
  73711. links: invisibleList.map(({ title, id, color: color2, active }) => ({
  73712. id,
  73713. title,
  73714. color: color2,
  73715. active,
  73716. onClick: (e) => {
  73717. e.preventDefault(), actions.onSelect(id);
  73718. }
  73719. }))
  73720. }
  73721. )
  73722. },
  73723. import_react168.default.createElement(
  73724. AddonButton,
  73725. {
  73726. id: "addons-menu-button",
  73727. ref: addonsRef,
  73728. active: isAddonsActive,
  73729. preActive: isTooltipVisible,
  73730. style: { visibility: invisibleList.length ? "visible" : "hidden" },
  73731. "aria-hidden": !invisibleList.length,
  73732. className: "tabbutton",
  73733. type: "button",
  73734. role: "tab"
  73735. },
  73736. menuName,
  73737. import_react168.default.createElement(
  73738. CollapseIcon2,
  73739. {
  73740. className: "addon-collapsible-icon",
  73741. isActive: isAddonsActive || isTooltipVisible
  73742. }
  73743. )
  73744. )
  73745. ), invisibleList.map(({ title, id, color: color2 }, index4) => {
  73746. let indexId = `index-${index4}`;
  73747. return import_react168.default.createElement(
  73748. TabButton,
  73749. {
  73750. id: `tabbutton-${sanitize(id) ?? indexId}`,
  73751. style: { visibility: "hidden" },
  73752. "aria-hidden": !0,
  73753. tabIndex: -1,
  73754. ref: (ref) => {
  73755. tabRefs.current.set(id, ref);
  73756. },
  73757. className: "tabbutton",
  73758. type: "button",
  73759. key: id,
  73760. textColor: color2,
  73761. role: "tab"
  73762. },
  73763. title
  73764. );
  73765. }));
  73766. },
  73767. [invisibleList]
  73768. ), setTabLists = (0, import_react168.useCallback)(() => {
  73769. if (!tabBarRef.current || !addonsRef.current)
  73770. return;
  73771. let { x, width } = tabBarRef.current.getBoundingClientRect(), { width: widthAddonsTab } = addonsRef.current.getBoundingClientRect(), rightBorder = invisibleList.length ? x + width - widthAddonsTab : x + width, newVisibleList = [], widthSum = 0, newInvisibleList = list.filter((item) => {
  73772. let { id } = item, tabButton = tabRefs.current.get(id), { width: tabWidth = 0 } = tabButton?.getBoundingClientRect() || {}, crossBorder = x + widthSum + tabWidth > rightBorder;
  73773. return (!crossBorder || !tabButton) && newVisibleList.push(item), widthSum += tabWidth, crossBorder;
  73774. });
  73775. (newVisibleList.length !== visibleList.length || previousList.current !== list) && (setVisibleList(newVisibleList), setInvisibleList(newInvisibleList), previousList.current = list);
  73776. }, [invisibleList.length, list, visibleList]);
  73777. return (0, import_react168.useLayoutEffect)(setTabLists, [setTabLists, tabBarWidth]), {
  73778. tabRefs,
  73779. addonsRef,
  73780. tabBarRef,
  73781. visibleList,
  73782. invisibleList,
  73783. AddonTab
  73784. };
  73785. }
  73786. // src/components/components/Tabs/Tabs.tsx
  73787. var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper7 = styled.div(
  73788. ({ theme: theme3, bordered }) => bordered ? {
  73789. backgroundClip: "padding-box",
  73790. border: `1px solid ${theme3.appBorderColor}`,
  73791. borderRadius: theme3.appBorderRadius,
  73792. overflow: "hidden",
  73793. boxSizing: "border-box"
  73794. } : {},
  73795. ({ absolute }) => absolute ? {
  73796. width: "100%",
  73797. height: "100%",
  73798. boxSizing: "border-box",
  73799. display: "flex",
  73800. flexDirection: "column"
  73801. } : {
  73802. display: "block"
  73803. }
  73804. ), StyledTabBar = styled.div({
  73805. overflow: "hidden",
  73806. "&:first-of-type": {
  73807. marginLeft: -3
  73808. },
  73809. whiteSpace: "nowrap",
  73810. flexGrow: 1
  73811. }), TabBar = (0, import_react169.forwardRef)(
  73812. (props, ref) => (deprecate("The `TabBar` component is deprecated. Use `TabsView` instead."), import_react169.default.createElement(StyledTabBar, { "data-deprecated": "TabBar", ...props, ref }))
  73813. );
  73814. TabBar.displayName = "TabBar";
  73815. var Content3 = styled.div(
  73816. {
  73817. display: "block",
  73818. position: "relative",
  73819. container: "tab-content / inline-size"
  73820. },
  73821. ({ theme: theme3 }) => ({
  73822. fontSize: theme3.typography.size.s2 - 1,
  73823. background: theme3.background.content
  73824. }),
  73825. ({ bordered, theme: theme3 }) => bordered ? {
  73826. borderRadius: `0 0 ${theme3.appBorderRadius - 1}px ${theme3.appBorderRadius - 1}px`
  73827. } : {},
  73828. ({ absolute, bordered }) => absolute ? {
  73829. height: `calc(100% - ${bordered ? 42 : 40}px)`,
  73830. position: "absolute",
  73831. left: 0 + (bordered ? 1 : 0),
  73832. right: 0 + (bordered ? 1 : 0),
  73833. bottom: 0 + (bordered ? 1 : 0),
  73834. top: 40 + (bordered ? 1 : 0),
  73835. overflow: "auto",
  73836. [`& > *:first-child${ignoreSsrWarning2}`]: {
  73837. position: "absolute",
  73838. left: 0 + (bordered ? 1 : 0),
  73839. right: 0 + (bordered ? 1 : 0),
  73840. bottom: 0 + (bordered ? 1 : 0),
  73841. top: 0 + (bordered ? 1 : 0),
  73842. height: `calc(100% - ${bordered ? 2 : 0}px)`,
  73843. overflow: "auto"
  73844. }
  73845. } : {}
  73846. ), TabWrapper = (0, import_react169.forwardRef)(
  73847. ({ active, render, children }, ref) => (deprecate("The `TabWrapper` component is deprecated. Use `TabsView` instead."), import_react169.default.createElement(VisuallyHidden, { "data-deprecated": "TabWrapper", ref, active }, render ? render() : children))
  73848. );
  73849. TabWrapper.displayName = "TabWrapper";
  73850. var TabErrorBoundary = class extends import_react169.Component {
  73851. constructor(props) {
  73852. super(props), this.state = { hasError: !1 };
  73853. }
  73854. static getDerivedStateFromError() {
  73855. return { hasError: !0 };
  73856. }
  73857. componentDidCatch(error, info) {
  73858. console.error("Error rendering addon panel"), console.error(error), console.error(info.componentStack);
  73859. }
  73860. render() {
  73861. return this.state.hasError && this.props.active ? import_react169.default.createElement(
  73862. EmptyTabContent,
  73863. {
  73864. title: "This addon has errors",
  73865. description: "Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."
  73866. }
  73867. ) : this.props.children;
  73868. }
  73869. }, Tabs = (0, import_react169.memo)(
  73870. ({
  73871. children,
  73872. selected = null,
  73873. actions,
  73874. absolute = !1,
  73875. bordered = !1,
  73876. tools = null,
  73877. backgroundColor,
  73878. id: htmlId = null,
  73879. menuName = "Tabs",
  73880. emptyState,
  73881. showToolsWhenEmpty
  73882. }) => {
  73883. deprecate("The `Tabs` component is deprecated. Use `TabsView` instead.");
  73884. let list = (0, import_react169.useMemo)(
  73885. () => childrenToList(children).map((i, index4) => ({
  73886. ...i,
  73887. active: selected ? i.id === selected : index4 === 0
  73888. })),
  73889. [children, selected]
  73890. ), { visibleList, tabBarRef, tabRefs, AddonTab } = useList(list), EmptyContent = emptyState ?? import_react169.default.createElement(EmptyTabContent, { title: "Nothing found" });
  73891. return !showToolsWhenEmpty && list.length === 0 ? EmptyContent : (
  73892. // @ts-expect-error (non strict)
  73893. import_react169.default.createElement(Wrapper7, { "data-deprecated": "Tabs", absolute, bordered, id: htmlId }, import_react169.default.createElement(FlexBar, { scrollable: !1, border: !0, backgroundColor }, import_react169.default.createElement(TabBar, { style: { whiteSpace: "normal" }, ref: tabBarRef, role: "tablist" }, visibleList.map(({ title, id, active, color: color2 }, index4) => {
  73894. let indexId = `index-${index4}`;
  73895. return import_react169.default.createElement(
  73896. TabButton,
  73897. {
  73898. id: `tabbutton-${sanitize(id) ?? indexId}`,
  73899. ref: (ref) => {
  73900. tabRefs.current.set(id, ref);
  73901. },
  73902. className: `tabbutton ${active ? "tabbutton-active" : ""}`,
  73903. type: "button",
  73904. key: id,
  73905. active,
  73906. textColor: color2,
  73907. onClick: (e) => {
  73908. e.preventDefault(), actions.onSelect(id);
  73909. },
  73910. role: "tab",
  73911. "aria-selected": active
  73912. },
  73913. typeof title == "function" ? import_react169.default.createElement("title", null) : title
  73914. );
  73915. }), import_react169.default.createElement(AddonTab, { menuName, actions })), tools), import_react169.default.createElement(Content3, { id: "panel-tab-content", bordered, absolute }, list.length ? list.map(({ id, active, render }) => import_react169.default.createElement(TabErrorBoundary, { key: id, active }, import_react169.default.createElement(render, { active }, null))) : EmptyContent))
  73916. );
  73917. }
  73918. );
  73919. Tabs.displayName = "Tabs";
  73920. var TabsState = class extends import_react169.Component {
  73921. constructor(props) {
  73922. super(props);
  73923. this.handlers = {
  73924. onSelect: (id) => this.setState({ selected: id })
  73925. };
  73926. deprecate("The `TabsState` class is deprecated. Use `TabsView` instead."), this.state = {
  73927. selected: props.initial
  73928. };
  73929. }
  73930. render() {
  73931. let { bordered = !1, absolute = !1, children, backgroundColor, menuName } = this.props, { selected } = this.state;
  73932. return import_react169.default.createElement(
  73933. Tabs,
  73934. {
  73935. bordered,
  73936. absolute,
  73937. selected,
  73938. backgroundColor,
  73939. menuName,
  73940. actions: this.handlers
  73941. },
  73942. children
  73943. );
  73944. }
  73945. };
  73946. TabsState.defaultProps = {
  73947. children: [],
  73948. // @ts-expect-error (non strict)
  73949. initial: null,
  73950. absolute: !1,
  73951. bordered: !1,
  73952. backgroundColor: "",
  73953. // @ts-expect-error (non strict)
  73954. menuName: void 0
  73955. };
  73956. // src/components/components/Bar/Separator.tsx
  73957. var import_react170 = __toESM(require_react(), 1);
  73958. init_theming();
  73959. var Separator2 = styled.span(
  73960. ({ theme: theme3 }) => ({
  73961. display: "inline-block",
  73962. width: 1,
  73963. height: 20,
  73964. background: theme3.appBorderColor,
  73965. marginLeft: 2,
  73966. marginRight: 2
  73967. }),
  73968. ({ force }) => force ? {} : {
  73969. "& + &": {
  73970. display: "none"
  73971. }
  73972. }
  73973. );
  73974. Separator2.displayName = "Separator";
  73975. var interleaveSeparators = (list) => list.reduce(
  73976. (acc, item, index4) => item ? import_react170.default.createElement(import_react170.Fragment, { key: item.id || item.key || `f-${index4}` }, acc, index4 > 0 ? import_react170.default.createElement(Separator2, { key: `s-${index4}` }) : null, item.render() || item) : acc,
  73977. null
  73978. );
  73979. // src/components/components/addon-panel/addon-panel.tsx
  73980. var import_react171 = __toESM(require_react(), 1);
  73981. init_theming();
  73982. init_ScrollArea();
  73983. var usePrevious = (value) => {
  73984. let ref = (0, import_react171.useRef)();
  73985. return (0, import_react171.useEffect)(() => {
  73986. ref.current = value;
  73987. }, [value]), ref.current;
  73988. }, useUpdate = (update2, value) => {
  73989. let previousValue = usePrevious(value);
  73990. return update2 ? value : previousValue;
  73991. }, Div2 = styled.div(({ theme: theme3 }) => ({
  73992. fontSize: theme3.typography.size.s2 - 1,
  73993. height: "100%"
  73994. })), AddonPanel = ({
  73995. active,
  73996. children,
  73997. hasScrollbar = !0,
  73998. hasHorizontalScrollbar = !1
  73999. }) => (
  74000. // the hidden attribute is an valid html element that's both accessible and works to visually hide content
  74001. import_react171.default.createElement(Div2, { hidden: !active }, hasScrollbar || hasHorizontalScrollbar ? import_react171.default.createElement(ScrollArea2, { vertical: hasScrollbar, horizontal: hasHorizontalScrollbar }, useUpdate(active, children)) : useUpdate(active, children))
  74002. );
  74003. // src/components/components/Toolbar/Toolbar.tsx
  74004. var import_react173 = __toESM(require_react(), 1);
  74005. // ../../node_modules/@react-aria/toolbar/dist/useToolbar.mjs
  74006. var import_react172 = __toESM(require_react(), 1);
  74007. function $2680b1829e803644$export$fa142eb1681c5202(props, ref) {
  74008. let { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props, [isInToolbar, setInToolbar] = (0, import_react172.useState)(!1);
  74009. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  74010. var _ref_current_parentElement;
  74011. setInToolbar(!!(ref.current && (!((_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0) && _ref_current_parentElement.closest('[role="toolbar"]'))));
  74012. });
  74013. let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), shouldReverse = direction === "rtl" && orientation === "horizontal", focusManager = $9bf71ea28793e738$export$c5251b9e124bf29(ref), onKeyDown = (e) => {
  74014. if (e.currentTarget.contains(e.target)) {
  74015. if (orientation === "horizontal" && e.key === "ArrowRight" || orientation === "vertical" && e.key === "ArrowDown")
  74016. shouldReverse ? focusManager.focusPrevious() : focusManager.focusNext();
  74017. else if (orientation === "horizontal" && e.key === "ArrowLeft" || orientation === "vertical" && e.key === "ArrowUp")
  74018. shouldReverse ? focusManager.focusNext() : focusManager.focusPrevious();
  74019. else if (e.key === "Tab") {
  74020. e.stopPropagation(), lastFocused.current = document.activeElement, e.shiftKey ? focusManager.focusFirst() : focusManager.focusLast();
  74021. return;
  74022. } else
  74023. return;
  74024. e.stopPropagation(), e.preventDefault();
  74025. }
  74026. }, lastFocused = (0, import_react172.useRef)(null), onBlur = (e) => {
  74027. !e.currentTarget.contains(e.relatedTarget) && !lastFocused.current && (lastFocused.current = e.target);
  74028. }, onFocus = (e) => {
  74029. var _ref_current;
  74030. if (lastFocused.current && !e.currentTarget.contains(e.relatedTarget) && (!((_ref_current = ref.current) === null || _ref_current === void 0) && _ref_current.contains(e.target))) {
  74031. var _lastFocused_current;
  74032. (_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 || _lastFocused_current.focus(), lastFocused.current = null;
  74033. }
  74034. };
  74035. return {
  74036. toolbarProps: {
  74037. ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74038. labelable: !0
  74039. }),
  74040. role: isInToolbar ? "group" : "toolbar",
  74041. "aria-orientation": orientation,
  74042. "aria-label": ariaLabel,
  74043. "aria-labelledby": ariaLabel == null ? ariaLabelledBy : void 0,
  74044. onKeyDownCapture: isInToolbar ? void 0 : onKeyDown,
  74045. onFocusCapture: isInToolbar ? void 0 : onFocus,
  74046. onBlurCapture: isInToolbar ? void 0 : onBlur
  74047. }
  74048. };
  74049. }
  74050. // src/components/components/Toolbar/Toolbar.tsx
  74051. var AbstractToolbar = ({
  74052. "aria-label": ariaLabel,
  74053. "aria-labelledby": ariaLabelledby,
  74054. ...rest
  74055. }) => {
  74056. let ref = (0, import_react173.useRef)(null), { toolbarProps } = $2680b1829e803644$export$fa142eb1681c5202(
  74057. {
  74058. "aria-label": ariaLabel,
  74059. "aria-labelledby": ariaLabelledby,
  74060. orientation: "horizontal"
  74061. },
  74062. ref
  74063. );
  74064. return import_react173.default.createElement("div", { ref, ...toolbarProps, ...rest });
  74065. }, Toolbar = ({
  74066. "aria-label": ariaLabel,
  74067. "aria-labelledby": ariaLabelledby,
  74068. ...rest
  74069. }) => {
  74070. let ref = (0, import_react173.useRef)(null), { toolbarProps } = $2680b1829e803644$export$fa142eb1681c5202(
  74071. {
  74072. "aria-label": ariaLabel,
  74073. "aria-labelledby": ariaLabelledby,
  74074. orientation: "horizontal"
  74075. },
  74076. ref
  74077. );
  74078. return import_react173.default.createElement(Bar, { ref, ...toolbarProps, ...rest });
  74079. };
  74080. // src/components/components/Tabs/TabList.tsx
  74081. var import_react175 = __toESM(require_react(), 1);
  74082. // ../../node_modules/@react-aria/tabs/dist/utils.mjs
  74083. var $99b62ae3ff97ec45$export$c5f62239608282b6 = /* @__PURE__ */ new WeakMap();
  74084. function $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, role) {
  74085. return state3 ? (typeof key == "string" && (key = key.replace(/\s+/g, "")), `${$99b62ae3ff97ec45$export$c5f62239608282b6.get(state3)}-${role}-${key}`) : "";
  74086. }
  74087. // ../../node_modules/@react-aria/tabs/dist/useTab.mjs
  74088. function $0175d55c2a017ebc$export$fdf4756d5b8ef90a(props, state3, ref) {
  74089. let { key, isDisabled: propsDisabled, shouldSelectOnPressUp } = props, { selectionManager: manager, selectedKey } = state3, isSelected = key === selectedKey, isDisabled3 = propsDisabled || state3.isDisabled || state3.selectionManager.isDisabled(key), { itemProps, isPressed } = $880e95eb8b93ba9a$export$ecf600387e221c37({
  74090. selectionManager: manager,
  74091. key,
  74092. ref,
  74093. isDisabled: isDisabled3,
  74094. shouldSelectOnPressUp,
  74095. linkBehavior: "selection"
  74096. }), tabId = $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, "tab"), tabPanelId = $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, "tabpanel"), { tabIndex } = itemProps, item = state3.collection.getItem(key), domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item?.props, {
  74097. labelable: !0
  74098. });
  74099. delete domProps.id;
  74100. let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item?.props), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
  74101. isDisabled: isDisabled3
  74102. }, ref);
  74103. return {
  74104. tabProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusableProps, linkProps, itemProps, {
  74105. id: tabId,
  74106. "aria-selected": isSelected,
  74107. "aria-disabled": isDisabled3 || void 0,
  74108. "aria-controls": isSelected ? tabPanelId : void 0,
  74109. tabIndex: isDisabled3 ? void 0 : tabIndex,
  74110. role: "tab"
  74111. }),
  74112. isSelected,
  74113. isDisabled: isDisabled3,
  74114. isPressed
  74115. };
  74116. }
  74117. // ../../node_modules/@react-aria/tabs/dist/useTabPanel.mjs
  74118. function $34bce698202e07cb$export$fae0121b5afe572d(props, state3, ref) {
  74119. let tabIndex = $83013635b024ae3d$export$eac1895992b9f3d6(ref) ? void 0 : 0;
  74120. var _props_id;
  74121. let id = $99b62ae3ff97ec45$export$567fc7097e064344(state3, (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : state3?.selectedKey, "tabpanel"), tabPanelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
  74122. ...props,
  74123. id,
  74124. "aria-labelledby": $99b62ae3ff97ec45$export$567fc7097e064344(state3, state3?.selectedKey, "tab")
  74125. });
  74126. return {
  74127. tabPanelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(tabPanelProps, {
  74128. tabIndex,
  74129. role: "tabpanel",
  74130. "aria-describedby": props["aria-describedby"],
  74131. "aria-details": props["aria-details"]
  74132. })
  74133. };
  74134. }
  74135. // ../../node_modules/@react-aria/tabs/dist/TabsKeyboardDelegate.mjs
  74136. var $bfc6f2d60b8a4c40$export$15010ca3c1abe90b = class {
  74137. getKeyLeftOf(key) {
  74138. return this.flipDirection ? this.getNextKey(key) : this.getPreviousKey(key);
  74139. }
  74140. getKeyRightOf(key) {
  74141. return this.flipDirection ? this.getPreviousKey(key) : this.getNextKey(key);
  74142. }
  74143. isDisabled(key) {
  74144. var _this_collection_getItem_props, _this_collection_getItem;
  74145. return this.disabledKeys.has(key) || !!(!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 || (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0) && _this_collection_getItem_props.isDisabled);
  74146. }
  74147. getFirstKey() {
  74148. let key = this.collection.getFirstKey();
  74149. return key != null && this.isDisabled(key) && (key = this.getNextKey(key)), key;
  74150. }
  74151. getLastKey() {
  74152. let key = this.collection.getLastKey();
  74153. return key != null && this.isDisabled(key) && (key = this.getPreviousKey(key)), key;
  74154. }
  74155. getKeyAbove(key) {
  74156. return this.tabDirection ? null : this.getPreviousKey(key);
  74157. }
  74158. getKeyBelow(key) {
  74159. return this.tabDirection ? null : this.getNextKey(key);
  74160. }
  74161. getNextKey(startKey) {
  74162. let key = startKey;
  74163. do
  74164. key = this.collection.getKeyAfter(key), key == null && (key = this.collection.getFirstKey());
  74165. while (key != null && this.isDisabled(key));
  74166. return key;
  74167. }
  74168. getPreviousKey(startKey) {
  74169. let key = startKey;
  74170. do
  74171. key = this.collection.getKeyBefore(key), key == null && (key = this.collection.getLastKey());
  74172. while (key != null && this.isDisabled(key));
  74173. return key;
  74174. }
  74175. constructor(collection, direction, orientation, disabledKeys = /* @__PURE__ */ new Set()) {
  74176. this.collection = collection, this.flipDirection = direction === "rtl" && orientation === "horizontal", this.disabledKeys = disabledKeys, this.tabDirection = orientation === "horizontal";
  74177. }
  74178. };
  74179. // ../../node_modules/@react-aria/tabs/dist/useTabList.mjs
  74180. var import_react174 = __toESM(require_react(), 1);
  74181. function $58d314389b21fa3f$export$773e389e644c5874(props, state3, ref) {
  74182. let { orientation = "horizontal", keyboardActivation = "automatic" } = props, { collection, selectionManager: manager, disabledKeys } = state3, { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), delegate = (0, import_react174.useMemo)(() => new $bfc6f2d60b8a4c40$export$15010ca3c1abe90b(collection, direction, orientation, disabledKeys), [
  74183. collection,
  74184. disabledKeys,
  74185. orientation,
  74186. direction
  74187. ]), { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
  74188. ref,
  74189. selectionManager: manager,
  74190. keyboardDelegate: delegate,
  74191. selectOnFocus: keyboardActivation === "automatic",
  74192. disallowEmptySelection: !0,
  74193. scrollRef: ref,
  74194. linkBehavior: "selection"
  74195. }), tabsId = $bdb11010cef70236$export$f680877a34711e37();
  74196. $99b62ae3ff97ec45$export$c5f62239608282b6.set(state3, tabsId);
  74197. let tabListLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
  74198. ...props,
  74199. id: tabsId
  74200. });
  74201. return {
  74202. tabListProps: {
  74203. ...$3ef42575df84b30b$export$9d1611c77c2fe928(collectionProps, tabListLabelProps),
  74204. role: "tablist",
  74205. "aria-orientation": orientation,
  74206. tabIndex: void 0
  74207. }
  74208. };
  74209. }
  74210. // src/components/components/Tabs/TabList.tsx
  74211. init_theming();
  74212. var StyledTabButton2 = styled.button(
  74213. {
  74214. whiteSpace: "normal",
  74215. display: "inline-flex",
  74216. overflow: "hidden",
  74217. verticalAlign: "top",
  74218. justifyContent: "center",
  74219. alignItems: "center",
  74220. textAlign: "center",
  74221. textDecoration: "none",
  74222. scrollSnapAlign: "start",
  74223. "&:empty": {
  74224. display: "none"
  74225. },
  74226. "&[hidden]": {
  74227. display: "none"
  74228. }
  74229. },
  74230. ({ theme: theme3 }) => ({
  74231. padding: "0 15px",
  74232. transition: "color 0.2s linear, border-bottom-color 0.2s linear",
  74233. height: 40,
  74234. lineHeight: "12px",
  74235. cursor: "pointer",
  74236. background: "transparent",
  74237. border: "0 solid transparent",
  74238. borderTop: "3px solid transparent",
  74239. borderBottom: "3px solid transparent",
  74240. fontWeight: "bold",
  74241. fontSize: 13,
  74242. "&:focus-visible": {
  74243. outline: "0 none",
  74244. boxShadow: `inset 0 0 0 2px ${theme3.barSelectedColor}`
  74245. }
  74246. }),
  74247. ({ isSelected, theme: theme3 }) => isSelected ? {
  74248. color: theme3.barSelectedColor,
  74249. borderBottomColor: theme3.barSelectedColor
  74250. } : {
  74251. color: theme3.barTextColor,
  74252. borderBottomColor: "transparent",
  74253. "&:hover": {
  74254. color: theme3.barHoverColor
  74255. }
  74256. }
  74257. ), TabListContainer = styled.div({
  74258. display: "flex",
  74259. alignItems: "center",
  74260. flexShrink: 0,
  74261. position: "relative",
  74262. overflow: "hidden"
  74263. }), ScrollContainer = styled.div({
  74264. display: "flex",
  74265. overflowX: "auto",
  74266. scrollbarWidth: "none",
  74267. msOverflowStyle: "none",
  74268. WebkitScrollbar: "none",
  74269. scrollSnapType: "x mandatory",
  74270. flex: 1,
  74271. "&::-webkit-scrollbar": {
  74272. display: "none"
  74273. }
  74274. }), StyledTabList = styled.div({
  74275. display: "flex",
  74276. flexShrink: 0
  74277. }), SCROLL_BUTTON_WIDTH = 28, ScrollButtonContainer = styled.div(({ $showStartBorder, $showEndBorder, theme: theme3 }) => ({
  74278. flexShrink: 0,
  74279. display: "flex",
  74280. alignItems: "center",
  74281. justifyContent: "center",
  74282. padding: 6,
  74283. boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme3.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme3.appBorderColor}` : "none"
  74284. })), ScrollButton = styled(Button)({
  74285. flexShrink: 0,
  74286. paddingInline: 0,
  74287. width: 16
  74288. }), TabButton2 = ({ item, state: state3 }) => {
  74289. let { rendered } = item, tabRef = import_react175.default.useRef(null), typedState = state3, { tabProps, isDisabled: isDisabled3, isPressed, isSelected } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a(item, typedState, tabRef);
  74290. return import_react175.default.createElement(
  74291. StyledTabButton2,
  74292. {
  74293. ...tabProps,
  74294. isDisabled: isDisabled3,
  74295. isPressed,
  74296. isSelected,
  74297. className: `tabbutton ${isSelected ? "tabbutton-active" : ""}`,
  74298. ref: tabRef
  74299. },
  74300. rendered
  74301. );
  74302. }, TabList = ({ state: state3, ...rest }) => {
  74303. let containerRef = (0, import_react175.useRef)(null), scrollContainerRef = (0, import_react175.useRef)(null), tabListRef = (0, import_react175.useRef)(null), { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874(
  74304. { orientation: "horizontal" },
  74305. state3,
  74306. tabListRef
  74307. ), [showScrollButtons, setShowScrollButtons] = (0, import_react175.useState)(!1), [canScrollLeft, setCanScrollLeft] = (0, import_react175.useState)(!1), [canScrollRight, setCanScrollRight] = (0, import_react175.useState)(!1), updateScrollState = (0, import_react175.useCallback)(() => {
  74308. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74309. if (!scrollContainer || !container)
  74310. return;
  74311. let { scrollLeft, scrollWidth, clientWidth } = scrollContainer, availableWidth = container.clientWidth - (showScrollButtons ? SCROLL_BUTTON_WIDTH * 2 : 0), needsScrolling = scrollWidth > availableWidth;
  74312. setShowScrollButtons(needsScrolling), needsScrolling ? (setCanScrollLeft(scrollLeft > 0), setCanScrollRight(scrollLeft < scrollWidth - clientWidth)) : (setCanScrollLeft(!1), setCanScrollRight(!1));
  74313. }, [showScrollButtons]), throttledUpdateScrollState = (0, import_react175.useCallback)(() => {
  74314. updateScrollState();
  74315. }, [updateScrollState]);
  74316. (0, import_react175.useEffect)(() => {
  74317. let scrollContainer = scrollContainerRef.current;
  74318. if (!scrollContainer || typeof window > "u")
  74319. return;
  74320. scrollContainer.addEventListener("scroll", throttledUpdateScrollState, { passive: !0 });
  74321. let resizeObserver = null;
  74322. typeof ResizeObserver < "u" && (resizeObserver = new ResizeObserver(throttledUpdateScrollState), resizeObserver.observe(scrollContainer));
  74323. let timeoutId = setTimeout(throttledUpdateScrollState, 0);
  74324. return () => {
  74325. clearTimeout(timeoutId), scrollContainer.removeEventListener("scroll", throttledUpdateScrollState), resizeObserver && resizeObserver.disconnect();
  74326. };
  74327. }, [throttledUpdateScrollState]);
  74328. let scroll = (0, import_react175.useCallback)((direction) => {
  74329. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74330. if (!scrollContainer || !container || typeof window > "u")
  74331. return;
  74332. let availableWidth = container.clientWidth - SCROLL_BUTTON_WIDTH * 2, scrollDistance = direction === "backward" ? -availableWidth : availableWidth;
  74333. typeof scrollContainer.scrollBy == "function" ? scrollContainer.scrollBy({ left: scrollDistance, behavior: "smooth" }) : scrollContainer.scrollLeft += scrollDistance;
  74334. }, []), scrollBackward = (0, import_react175.useCallback)(() => scroll("backward"), [scroll]), scrollForward = (0, import_react175.useCallback)(() => scroll("forward"), [scroll]);
  74335. return import_react175.default.createElement(TabListContainer, { ...rest, ref: containerRef, "data-show-scroll-buttons": showScrollButtons }, showScrollButtons && import_react175.default.createElement(ScrollButtonContainer, { $showEndBorder: canScrollLeft }, import_react175.default.createElement(
  74336. ScrollButton,
  74337. {
  74338. variant: "ghost",
  74339. padding: "small",
  74340. size: "small",
  74341. ariaLabel: "Scroll backward",
  74342. disabled: !canScrollLeft,
  74343. onClick: scrollBackward,
  74344. tabIndex: -1
  74345. },
  74346. import_react175.default.createElement(ChevronSmallLeftIcon, null)
  74347. )), import_react175.default.createElement(ScrollContainer, { ref: scrollContainerRef }, import_react175.default.createElement(StyledTabList, { ref: tabListRef, ...tabListProps }, [...state3.collection].map((item) => import_react175.default.createElement(TabButton2, { key: item.key, item, state: state3 })))), showScrollButtons && import_react175.default.createElement(ScrollButtonContainer, { $showStartBorder: canScrollRight }, import_react175.default.createElement(
  74348. ScrollButton,
  74349. {
  74350. variant: "ghost",
  74351. padding: "small",
  74352. size: "small",
  74353. ariaLabel: "Scroll forward",
  74354. disabled: !canScrollRight,
  74355. onClick: scrollForward,
  74356. tabIndex: -1
  74357. },
  74358. import_react175.default.createElement(ChevronSmallRightIcon, null)
  74359. )));
  74360. };
  74361. // src/components/components/Tabs/TabPanel.tsx
  74362. var import_react176 = __toESM(require_react(), 1);
  74363. init_theming();
  74364. init_ScrollArea();
  74365. var Panel = styled.div({
  74366. overflowY: "hidden",
  74367. height: "100%"
  74368. }), TabPanel = ({
  74369. hasScrollbar = !0,
  74370. renderAllChildren = !1,
  74371. state: state3
  74372. }) => {
  74373. let ref = (0, import_react176.useRef)(null), typedState = state3, { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(typedState.selectedItem ?? {}, typedState, ref);
  74374. return (renderAllChildren ? [...typedState.collection] : [typedState.selectedItem]).filter((item) => !!item).map((item) => {
  74375. let isSelected = typedState.selectedKey === item.key;
  74376. return import_react176.default.createElement(
  74377. Panel,
  74378. {
  74379. key: item.key,
  74380. ref: isSelected ? ref : void 0,
  74381. ...isSelected ? tabPanelProps : {},
  74382. id: isSelected ? `${tabPanelProps.id}`.replace(/null$/, `${item.key}`) : void 0,
  74383. hidden: isSelected ? void 0 : !0
  74384. },
  74385. hasScrollbar ? import_react176.default.createElement(ScrollArea2, { vertical: !0 }, item.props.children) : item.props.children
  74386. );
  74387. });
  74388. };
  74389. // src/components/components/Tabs/TabsView.tsx
  74390. var import_react180 = __toESM(require_react(), 1);
  74391. // ../../node_modules/@react-stately/list/dist/ListCollection.mjs
  74392. var $a02d57049d202695$export$d085fb9e920b5ca7 = class {
  74393. *[Symbol.iterator]() {
  74394. yield* this.iterable;
  74395. }
  74396. get size() {
  74397. return this._size;
  74398. }
  74399. getKeys() {
  74400. return this.keyMap.keys();
  74401. }
  74402. getKeyBefore(key) {
  74403. let node2 = this.keyMap.get(key);
  74404. var _node_prevKey;
  74405. return node2 && (_node_prevKey = node2.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null;
  74406. }
  74407. getKeyAfter(key) {
  74408. let node2 = this.keyMap.get(key);
  74409. var _node_nextKey;
  74410. return node2 && (_node_nextKey = node2.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null;
  74411. }
  74412. getFirstKey() {
  74413. return this.firstKey;
  74414. }
  74415. getLastKey() {
  74416. return this.lastKey;
  74417. }
  74418. getItem(key) {
  74419. var _this_keyMap_get;
  74420. return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
  74421. }
  74422. at(idx) {
  74423. let keys3 = [
  74424. ...this.getKeys()
  74425. ];
  74426. return this.getItem(keys3[idx]);
  74427. }
  74428. getChildren(key) {
  74429. let node2 = this.keyMap.get(key);
  74430. return node2?.childNodes || [];
  74431. }
  74432. constructor(nodes) {
  74433. this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = nodes;
  74434. let visit = (node2) => {
  74435. if (this.keyMap.set(node2.key, node2), node2.childNodes && node2.type === "section") for (let child of node2.childNodes) visit(child);
  74436. };
  74437. for (let node2 of nodes) visit(node2);
  74438. let last2 = null, index4 = 0, size = 0;
  74439. for (let [key, node2] of this.keyMap)
  74440. last2 ? (last2.nextKey = key, node2.prevKey = last2.key) : (this.firstKey = key, node2.prevKey = void 0), node2.type === "item" && (node2.index = index4++), (node2.type === "section" || node2.type === "item") && size++, last2 = node2, last2.nextKey = void 0;
  74441. this._size = size;
  74442. var _last_key;
  74443. this.lastKey = (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null;
  74444. }
  74445. };
  74446. // ../../node_modules/@react-stately/list/dist/useListState.mjs
  74447. var import_react177 = __toESM(require_react(), 1);
  74448. function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
  74449. let { filter, layoutDelegate } = props, selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), disabledKeys = (0, import_react177.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [
  74450. props.disabledKeys
  74451. ]), factory = (0, import_react177.useCallback)((nodes) => filter ? new $a02d57049d202695$export$d085fb9e920b5ca7(filter(nodes)) : new $a02d57049d202695$export$d085fb9e920b5ca7(nodes), [
  74452. filter
  74453. ]), context = (0, import_react177.useMemo)(() => ({
  74454. suppressTextValueWarning: props.suppressTextValueWarning
  74455. }), [
  74456. props.suppressTextValueWarning
  74457. ]), collection = $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context), selectionManager = (0, import_react177.useMemo)(() => new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, selectionState, {
  74458. layoutDelegate
  74459. }), [
  74460. collection,
  74461. selectionState,
  74462. layoutDelegate
  74463. ]);
  74464. return $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager), {
  74465. collection,
  74466. disabledKeys,
  74467. selectionManager
  74468. };
  74469. }
  74470. function $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) {
  74471. let cachedCollection = (0, import_react177.useRef)(null);
  74472. (0, import_react177.useEffect)(() => {
  74473. if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) {
  74474. let startItem = cachedCollection.current.getItem(selectionManager.focusedKey), cachedItemNodes = [
  74475. ...cachedCollection.current.getKeys()
  74476. ].map((key) => {
  74477. let itemNode = cachedCollection.current.getItem(key);
  74478. return itemNode?.type === "item" ? itemNode : null;
  74479. }).filter((node2) => node2 !== null), itemNodes = [
  74480. ...collection.getKeys()
  74481. ].map((key) => {
  74482. let itemNode = collection.getItem(key);
  74483. return itemNode?.type === "item" ? itemNode : null;
  74484. }).filter((node2) => node2 !== null);
  74485. var _cachedItemNodes_length, _itemNodes_length;
  74486. let diff2 = ((_cachedItemNodes_length = cachedItemNodes?.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes?.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);
  74487. var _startItem_index, _startItem_index1, _itemNodes_length1;
  74488. let index4 = Math.min(diff2 > 1 ? Math.max(((_startItem_index = startItem?.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff2 + 1, 0) : (_startItem_index1 = startItem?.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes?.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1), newNode = null, isReverseSearching = !1;
  74489. for (; index4 >= 0; ) {
  74490. if (!selectionManager.isDisabled(itemNodes[index4].key)) {
  74491. newNode = itemNodes[index4];
  74492. break;
  74493. }
  74494. if (index4 < itemNodes.length - 1 && !isReverseSearching) index4++;
  74495. else {
  74496. isReverseSearching = !0;
  74497. var _startItem_index2, _startItem_index3;
  74498. index4 > ((_startItem_index2 = startItem?.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0) && (index4 = (_startItem_index3 = startItem?.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0), index4--;
  74499. }
  74500. }
  74501. selectionManager.setFocusedKey(newNode ? newNode.key : null);
  74502. }
  74503. cachedCollection.current = collection;
  74504. }, [
  74505. collection,
  74506. selectionManager
  74507. ]);
  74508. }
  74509. // ../../node_modules/@react-stately/list/dist/useSingleSelectListState.mjs
  74510. var import_react178 = __toESM(require_react(), 1);
  74511. function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
  74512. var _props_defaultSelectedKey;
  74513. let [selectedKey, setSelectedKey] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange), selectedKeys = (0, import_react178.useMemo)(() => selectedKey != null ? [
  74514. selectedKey
  74515. ] : [], [
  74516. selectedKey
  74517. ]), { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({
  74518. ...props,
  74519. selectionMode: "single",
  74520. disallowEmptySelection: !0,
  74521. allowDuplicateSelectionEvents: !0,
  74522. selectedKeys,
  74523. onSelectionChange: (keys3) => {
  74524. if (keys3 === "all") return;
  74525. var _keys_values_next_value;
  74526. let key = (_keys_values_next_value = keys3.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
  74527. key === selectedKey && props.onSelectionChange && props.onSelectionChange(key), setSelectedKey(key);
  74528. }
  74529. }), selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null;
  74530. return {
  74531. collection,
  74532. disabledKeys,
  74533. selectionManager,
  74534. selectedKey,
  74535. setSelectedKey,
  74536. selectedItem
  74537. };
  74538. }
  74539. // ../../node_modules/@react-stately/tabs/dist/useTabListState.mjs
  74540. var import_react179 = __toESM(require_react(), 1);
  74541. function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
  74542. var _props_defaultSelectedKey, _ref;
  74543. let state3 = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
  74544. ...props,
  74545. onSelectionChange: props.onSelectionChange ? (key) => {
  74546. var _props_onSelectionChange;
  74547. key != null && ((_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 || _props_onSelectionChange.call(props, key));
  74548. } : void 0,
  74549. suppressTextValueWarning: !0,
  74550. defaultSelectedKey: (_ref = (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : $76f919a04c5a7d14$var$findDefaultSelectedKey(props.collection, props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set())) !== null && _ref !== void 0 ? _ref : void 0
  74551. }), { selectionManager, collection, selectedKey: currentSelectedKey } = state3, lastSelectedKey = (0, import_react179.useRef)(currentSelectedKey);
  74552. return (0, import_react179.useEffect)(() => {
  74553. let selectedKey = currentSelectedKey;
  74554. props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) && (selectedKey = $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, state3.disabledKeys), selectedKey != null && selectionManager.setSelectedKeys([
  74555. selectedKey
  74556. ])), (selectedKey != null && selectionManager.focusedKey == null || !selectionManager.isFocused && selectedKey !== lastSelectedKey.current) && selectionManager.setFocusedKey(selectedKey), lastSelectedKey.current = selectedKey;
  74557. }), {
  74558. ...state3,
  74559. isDisabled: props.isDisabled || !1
  74560. };
  74561. }
  74562. function $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, disabledKeys) {
  74563. let selectedKey = null;
  74564. if (collection) {
  74565. var _collection_getItem_props, _collection_getItem, _collection_getItem_props1, _collection_getItem1;
  74566. for (selectedKey = collection.getFirstKey(); selectedKey != null && (disabledKeys.has(selectedKey) || !((_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 || (_collection_getItem_props = _collection_getItem.props) === null || _collection_getItem_props === void 0) && _collection_getItem_props.isDisabled) && selectedKey !== collection.getLastKey(); ) selectedKey = collection.getKeyAfter(selectedKey);
  74567. selectedKey != null && (disabledKeys.has(selectedKey) || !((_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 || (_collection_getItem_props1 = _collection_getItem1.props) === null || _collection_getItem_props1 === void 0) && _collection_getItem_props1.isDisabled) && selectedKey === collection.getLastKey() && (selectedKey = collection.getFirstKey());
  74568. }
  74569. return selectedKey;
  74570. }
  74571. // src/components/components/Tabs/TabsView.tsx
  74572. init_theming();
  74573. var useTabsState = ({
  74574. defaultSelected,
  74575. onSelectionChange,
  74576. selected,
  74577. tabs
  74578. }) => $76f919a04c5a7d14$export$4ba071daf4e486({
  74579. children: tabs.map(({ children: Children10, id, "aria-label": ariaLabel, title: Title6 }) => import_react180.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: id, "aria-label": ariaLabel, title: typeof Title6 == "function" ? import_react180.default.createElement(Title6, null) : Title6 }, typeof Children10 == "function" ? import_react180.default.createElement(Children10, null) : Children10)),
  74580. disabledKeys: tabs.filter(({ isDisabled: isDisabled3 }) => isDisabled3).map(({ id }) => id),
  74581. defaultSelectedKey: defaultSelected,
  74582. onSelectionChange: (key) => onSelectionChange?.(`${key}`),
  74583. selectedKey: selected
  74584. }), Container5 = styled.div({
  74585. display: "flex",
  74586. flexDirection: "column",
  74587. height: "100%"
  74588. }), FlexTabPanel = styled(TabPanel)(() => ({
  74589. flex: 1
  74590. })), FlexTabList = styled(TabList)(({ $simulatedGap }) => ({
  74591. flex: "1 1 0%",
  74592. '&[data-show-scroll-buttons="true"]': { marginInlineEnd: $simulatedGap }
  74593. })), TabsView = ({
  74594. backgroundColor,
  74595. barInnerStyle,
  74596. defaultSelected,
  74597. emptyState,
  74598. onSelectionChange,
  74599. panelProps = {},
  74600. selected,
  74601. showToolsWhenEmpty,
  74602. tabs,
  74603. tools,
  74604. ...props
  74605. }) => {
  74606. let state3 = useTabsState({
  74607. defaultSelected,
  74608. onSelectionChange,
  74609. selected,
  74610. tabs
  74611. }), EmptyContent = emptyState ?? import_react180.default.createElement(EmptyTabContent, { title: "Nothing found" }), hasContent = tabs.length > 0;
  74612. return !showToolsWhenEmpty && !hasContent ? EmptyContent : import_react180.default.createElement(Container5, { ...props }, import_react180.default.createElement(
  74613. Bar,
  74614. {
  74615. scrollable: !1,
  74616. border: !0,
  74617. backgroundColor,
  74618. innerStyle: {
  74619. display: "flex",
  74620. justifyContent: "space-between",
  74621. paddingInlineStart: 0,
  74622. paddingInlineEnd: 10,
  74623. // A11y: the tools must be before the tab list in the DOM for correct tab order.
  74624. // This lets us control order without adding a wrapper div, leading to better flex
  74625. // behavior on tools for our callees (e.g. containerType: 'inline-size' in a11y-addon).
  74626. "> *:not(:last-child)": {
  74627. order: 2
  74628. },
  74629. "> *": {
  74630. flexShrink: 0
  74631. },
  74632. ...barInnerStyle,
  74633. gap: 0
  74634. }
  74635. },
  74636. tools,
  74637. hasContent ? import_react180.default.createElement(FlexTabList, { state: state3, $simulatedGap: barInnerStyle?.gap ?? 6 }) : import_react180.default.createElement("div", null)
  74638. ), hasContent ? import_react180.default.createElement(FlexTabPanel, { state: state3, ...panelProps }) : EmptyContent);
  74639. };
  74640. // src/components/components/Tabs/StatelessTabList.tsx
  74641. var import_react182 = __toESM(require_react(), 1);
  74642. // ../../node_modules/react-aria-components/dist/Tabs.mjs
  74643. var import_react181 = __toESM(require_react(), 1), $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f = (0, import_react181.createContext)(null), $5e8ad37a45e1c704$export$364712098d2aa57c = (0, import_react181.createContext)(null), $5e8ad37a45e1c704$export$b2539bed5023c21c = (0, import_react181.forwardRef)(function(props, ref) {
  74644. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f);
  74645. let { children, orientation = "horizontal" } = props;
  74646. return children = (0, import_react181.useMemo)(() => typeof children == "function" ? children({
  74647. orientation,
  74648. defaultChildren: null
  74649. }) : children, [
  74650. children,
  74651. orientation
  74652. ]), import_react181.default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
  74653. content: children
  74654. }, (collection) => import_react181.default.createElement($5e8ad37a45e1c704$var$TabsInner, {
  74655. props,
  74656. collection,
  74657. tabsRef: ref
  74658. }));
  74659. });
  74660. function $5e8ad37a45e1c704$var$TabsInner({ props, tabsRef: ref, collection }) {
  74661. let { orientation = "horizontal" } = props, state3 = $76f919a04c5a7d14$export$4ba071daf4e486({
  74662. ...props,
  74663. collection,
  74664. children: void 0
  74665. }), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({
  74666. within: !0
  74667. }), values = (0, import_react181.useMemo)(() => ({
  74668. orientation,
  74669. isFocusWithin: isFocused,
  74670. isFocusVisible
  74671. }), [
  74672. orientation,
  74673. isFocused,
  74674. isFocusVisible
  74675. ]), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74676. ...props,
  74677. defaultClassName: "react-aria-Tabs",
  74678. values
  74679. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74680. global: !0
  74681. });
  74682. return import_react181.default.createElement("div", {
  74683. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, focusProps),
  74684. ref,
  74685. slot: props.slot || void 0,
  74686. "data-focused": isFocused || void 0,
  74687. "data-orientation": orientation,
  74688. "data-focus-visible": isFocusVisible || void 0,
  74689. "data-disabled": state3.isDisabled || void 0
  74690. }, import_react181.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  74691. values: [
  74692. [
  74693. $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f,
  74694. props
  74695. ],
  74696. [
  74697. $5e8ad37a45e1c704$export$364712098d2aa57c,
  74698. state3
  74699. ]
  74700. ]
  74701. }, renderProps.children));
  74702. }
  74703. var $5e8ad37a45e1c704$export$e51a686c67fdaa2d = (0, import_react181.forwardRef)(function(props, ref) {
  74704. return (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c) ? import_react181.default.createElement($5e8ad37a45e1c704$var$TabListInner, {
  74705. props,
  74706. forwardedRef: ref
  74707. }) : import_react181.default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props);
  74708. });
  74709. function $5e8ad37a45e1c704$var$TabListInner({ props, forwardedRef: ref }) {
  74710. let state3 = (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), { CollectionRoot } = (0, import_react181.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), { orientation = "horizontal", keyboardActivation = "automatic" } = $64fa3d84918910a7$export$fabf2dc03a41866e($5e8ad37a45e1c704$export$cfa7aa87c26e7d1f), objectRef = $df56164dff5785e2$export$4338b53315abf666(ref), { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874({
  74711. ...props,
  74712. orientation,
  74713. keyboardActivation
  74714. }, state3, objectRef), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74715. ...props,
  74716. children: null,
  74717. defaultClassName: "react-aria-TabList",
  74718. values: {
  74719. orientation,
  74720. state: state3
  74721. }
  74722. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74723. global: !0
  74724. });
  74725. return delete DOMProps.id, import_react181.default.createElement("div", {
  74726. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tabListProps),
  74727. ref: objectRef,
  74728. "data-orientation": orientation || void 0
  74729. }, import_react181.default.createElement(CollectionRoot, {
  74730. collection: state3.collection,
  74731. persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state3.selectionManager.focusedKey)
  74732. }));
  74733. }
  74734. var $5e8ad37a45e1c704$var$TabItemNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  74735. };
  74736. $5e8ad37a45e1c704$var$TabItemNode.type = "item";
  74737. var $5e8ad37a45e1c704$export$3e41faf802a29e71 = $e1995378a142960e$export$18af5c7a9e9b3664($5e8ad37a45e1c704$var$TabItemNode, (props, forwardedRef, item) => {
  74738. let state3 = (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), { tabProps, isSelected, isDisabled: isDisabled3, isPressed } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a({
  74739. key: item.key,
  74740. ...props
  74741. }, state3, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
  74742. isDisabled: isDisabled3,
  74743. onHoverStart: props.onHoverStart,
  74744. onHoverEnd: props.onHoverEnd,
  74745. onHoverChange: props.onHoverChange
  74746. }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74747. ...props,
  74748. id: void 0,
  74749. children: item.rendered,
  74750. defaultClassName: "react-aria-Tab",
  74751. values: {
  74752. isSelected,
  74753. isDisabled: isDisabled3,
  74754. isFocused,
  74755. isFocusVisible,
  74756. isPressed,
  74757. isHovered
  74758. }
  74759. }), ElementType = item.props.href ? "a" : "div", DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74760. global: !0
  74761. });
  74762. return delete DOMProps.id, delete DOMProps.onClick, import_react181.default.createElement(ElementType, {
  74763. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tabProps, focusProps, hoverProps),
  74764. ref,
  74765. "data-selected": isSelected || void 0,
  74766. "data-disabled": isDisabled3 || void 0,
  74767. "data-focused": isFocused || void 0,
  74768. "data-focus-visible": isFocusVisible || void 0,
  74769. "data-pressed": isPressed || void 0,
  74770. "data-hovered": isHovered || void 0
  74771. }, renderProps.children);
  74772. }), $5e8ad37a45e1c704$export$3d96ec278d3efce4 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, forwardedRef) {
  74773. let state3 = (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), { id, ...otherProps } = props, { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(props, state3, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(), isSelected = state3.selectedKey === props.id, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74774. ...props,
  74775. defaultClassName: "react-aria-TabPanel",
  74776. values: {
  74777. isFocused,
  74778. isFocusVisible,
  74779. // @ts-ignore - compatibility with React < 19
  74780. isInert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected),
  74781. state: state3
  74782. }
  74783. });
  74784. if (!isSelected && !props.shouldForceMount) return null;
  74785. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps, {
  74786. global: !0
  74787. });
  74788. delete DOMProps.id;
  74789. let domProps = isSelected ? $3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, tabPanelProps, focusProps, renderProps) : renderProps;
  74790. return import_react181.default.createElement("div", {
  74791. ...domProps,
  74792. ref,
  74793. "data-focused": isFocused || void 0,
  74794. "data-focus-visible": isFocusVisible || void 0,
  74795. // @ts-ignore
  74796. inert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected || props.inert),
  74797. "data-inert": isSelected ? void 0 : "true"
  74798. }, import_react181.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  74799. values: [
  74800. [
  74801. $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f,
  74802. null
  74803. ],
  74804. [
  74805. $5e8ad37a45e1c704$export$364712098d2aa57c,
  74806. null
  74807. ]
  74808. ]
  74809. }, import_react181.default.createElement($7135fc7d473fd974$export$4feb769f8ddf26c5.Provider, {
  74810. value: $7135fc7d473fd974$export$a164736487e3f0ae
  74811. }, renderProps.children)));
  74812. });
  74813. // src/components/components/Tabs/StatelessTabList.tsx
  74814. init_theming();
  74815. var Root2 = styled.div({
  74816. display: "flex",
  74817. alignItems: "center",
  74818. flexShrink: 0,
  74819. position: "relative",
  74820. overflow: "hidden"
  74821. }), ScrollContainer2 = styled.div({
  74822. display: "flex",
  74823. overflowX: "auto",
  74824. scrollbarWidth: "none",
  74825. msOverflowStyle: "none",
  74826. WebkitScrollbar: "none",
  74827. scrollSnapType: "x mandatory",
  74828. flex: 1,
  74829. "&::-webkit-scrollbar": {
  74830. display: "none"
  74831. }
  74832. }), StyledTabList2 = styled($5e8ad37a45e1c704$export$e51a686c67fdaa2d)({
  74833. display: "flex",
  74834. flexShrink: 0
  74835. }), SCROLL_BUTTON_WIDTH2 = 28, ScrollButtonContainer2 = styled.div(({ $showStartBorder, $showEndBorder, theme: theme3 }) => ({
  74836. flexShrink: 0,
  74837. display: "flex",
  74838. alignItems: "center",
  74839. justifyContent: "center",
  74840. padding: 6,
  74841. boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme3.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme3.appBorderColor}` : "none"
  74842. })), ScrollButton2 = styled(Button)({
  74843. flexShrink: 0,
  74844. paddingInline: 0,
  74845. width: 16
  74846. }), StatelessTabList = ({ children, ...rest }) => {
  74847. let containerRef = (0, import_react182.useRef)(null), scrollContainerRef = (0, import_react182.useRef)(null), [showScrollButtons, setShowScrollButtons] = (0, import_react182.useState)(!1), [canScrollLeft, setCanScrollLeft] = (0, import_react182.useState)(!1), [canScrollRight, setCanScrollRight] = (0, import_react182.useState)(!1), updateScrollState = (0, import_react182.useCallback)(() => {
  74848. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74849. if (!scrollContainer || !container)
  74850. return;
  74851. let { scrollLeft, scrollWidth, clientWidth } = scrollContainer, availableWidth = container.clientWidth - (showScrollButtons ? SCROLL_BUTTON_WIDTH2 * 2 : 0), needsScrolling = scrollWidth > availableWidth;
  74852. setShowScrollButtons(needsScrolling), needsScrolling ? (setCanScrollLeft(scrollLeft > 0), setCanScrollRight(scrollLeft < scrollWidth - clientWidth)) : (setCanScrollLeft(!1), setCanScrollRight(!1));
  74853. }, [showScrollButtons]), throttledUpdateScrollState = (0, import_react182.useCallback)(() => {
  74854. updateScrollState();
  74855. }, [updateScrollState]);
  74856. (0, import_react182.useEffect)(() => {
  74857. let scrollContainer = scrollContainerRef.current;
  74858. if (!scrollContainer || typeof window > "u")
  74859. return;
  74860. scrollContainer.addEventListener("scroll", throttledUpdateScrollState, { passive: !0 });
  74861. let resizeObserver = null;
  74862. typeof ResizeObserver < "u" && (resizeObserver = new ResizeObserver(throttledUpdateScrollState), resizeObserver.observe(scrollContainer));
  74863. let timeoutId = setTimeout(throttledUpdateScrollState, 0);
  74864. return () => {
  74865. clearTimeout(timeoutId), scrollContainer.removeEventListener("scroll", throttledUpdateScrollState), resizeObserver && resizeObserver.disconnect();
  74866. };
  74867. }, [throttledUpdateScrollState]);
  74868. let scroll = (0, import_react182.useCallback)((direction) => {
  74869. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74870. if (!scrollContainer || !container || typeof window > "u")
  74871. return;
  74872. let availableWidth = container.clientWidth - SCROLL_BUTTON_WIDTH2 * 2, scrollDistance = direction === "backward" ? -availableWidth : availableWidth;
  74873. typeof scrollContainer.scrollBy == "function" ? scrollContainer.scrollBy({ left: scrollDistance, behavior: "smooth" }) : scrollContainer.scrollLeft += scrollDistance;
  74874. }, []), scrollBackward = (0, import_react182.useCallback)(() => scroll("backward"), [scroll]), scrollForward = (0, import_react182.useCallback)(() => scroll("forward"), [scroll]);
  74875. return import_react182.default.createElement(Root2, { ref: containerRef, className: `tablist ${showScrollButtons ? "tablist-has-scroll" : ""}` }, showScrollButtons && import_react182.default.createElement(ScrollButtonContainer2, { $showEndBorder: canScrollLeft }, import_react182.default.createElement(
  74876. ScrollButton2,
  74877. {
  74878. variant: "ghost",
  74879. padding: "small",
  74880. size: "small",
  74881. ariaLabel: "Scroll backward",
  74882. disabled: !canScrollLeft,
  74883. onClick: scrollBackward,
  74884. tabIndex: -1
  74885. },
  74886. import_react182.default.createElement(ChevronSmallLeftIcon, null)
  74887. )), import_react182.default.createElement(ScrollContainer2, { ref: scrollContainerRef }, import_react182.default.createElement(StyledTabList2, { ...rest }, children)), showScrollButtons && import_react182.default.createElement(ScrollButtonContainer2, { $showStartBorder: canScrollRight }, import_react182.default.createElement(
  74888. ScrollButton2,
  74889. {
  74890. variant: "ghost",
  74891. padding: "small",
  74892. size: "small",
  74893. ariaLabel: "Scroll forward",
  74894. disabled: !canScrollRight,
  74895. onClick: scrollForward,
  74896. tabIndex: -1
  74897. },
  74898. import_react182.default.createElement(ChevronSmallRightIcon, null)
  74899. )));
  74900. };
  74901. // src/components/components/Tabs/StatelessTabPanel.tsx
  74902. var import_react183 = __toESM(require_react(), 1);
  74903. init_theming();
  74904. init_ScrollArea();
  74905. var Root3 = styled($5e8ad37a45e1c704$export$3d96ec278d3efce4)({
  74906. overflowY: "hidden",
  74907. height: "100%",
  74908. display: "block",
  74909. '&[inert="true"]': { display: "none" }
  74910. }), StatelessTabPanel = ({
  74911. children,
  74912. hasScrollbar = !0,
  74913. name,
  74914. ...rest
  74915. }) => import_react183.default.createElement(Root3, { ...rest, shouldForceMount: !0, id: name }, hasScrollbar ? import_react183.default.createElement(ScrollArea2, { vertical: !0 }, children) : children);
  74916. // src/components/components/Tabs/StatelessTabsView.tsx
  74917. var import_react184 = __toESM(require_react(), 1);
  74918. init_theming();
  74919. var Container6 = styled($5e8ad37a45e1c704$export$b2539bed5023c21c)(({ $simulatedGap }) => ({
  74920. display: "flex",
  74921. flexDirection: "column",
  74922. height: "100%",
  74923. ".tablist": {
  74924. flex: "1 1 100%"
  74925. },
  74926. ".tablist.tablist-has-scroll": {
  74927. marginInlineEnd: $simulatedGap
  74928. },
  74929. "& > :not(:first-child)": { flex: 1 }
  74930. })), StatelessTabsView = ({
  74931. backgroundColor,
  74932. barInnerStyle,
  74933. children,
  74934. defaultSelected,
  74935. emptyState,
  74936. onSelectionChange,
  74937. selected,
  74938. showToolsWhenEmpty,
  74939. tools,
  74940. ...props
  74941. }) => {
  74942. let EmptyContent = emptyState ?? import_react184.default.createElement(EmptyTabContent, { title: "Nothing found" }), [tabListChild, ...tabPanelChildren] = import_react184.default.Children.toArray(children), hasContent = tabPanelChildren && tabPanelChildren.length > 0;
  74943. return !showToolsWhenEmpty && !hasContent ? EmptyContent : import_react184.default.createElement(
  74944. Container6,
  74945. {
  74946. ...props,
  74947. $simulatedGap: barInnerStyle?.gap ?? 6,
  74948. defaultSelectedKey: defaultSelected,
  74949. onSelectionChange: (k) => onSelectionChange?.(k ? `${k}` : ""),
  74950. selectedKey: selected
  74951. },
  74952. import_react184.default.createElement(
  74953. Bar,
  74954. {
  74955. scrollable: !1,
  74956. border: !0,
  74957. backgroundColor,
  74958. innerStyle: {
  74959. display: "flex",
  74960. justifyContent: "space-between",
  74961. paddingInlineStart: 0,
  74962. paddingInlineEnd: 10,
  74963. // A11y: the tools must be before the tab list in the DOM for correct tab order.
  74964. // This lets us control order without adding a wrapper div, leading to better flex
  74965. // behavior on tools for our callees (e.g. containerType: 'inline-size' in a11y-addon).
  74966. "> *:not(:last-child)": {
  74967. order: 2
  74968. },
  74969. "> *": {
  74970. flexShrink: 0
  74971. },
  74972. ...barInnerStyle,
  74973. gap: 0
  74974. }
  74975. },
  74976. tools,
  74977. hasContent ? tabListChild : import_react184.default.createElement("div", null)
  74978. ),
  74979. hasContent ? tabPanelChildren : EmptyContent
  74980. );
  74981. };
  74982. // src/components/components/Tabs/StatelessTab.tsx
  74983. var import_react185 = __toESM(require_react(), 1);
  74984. init_theming();
  74985. var StyledTab = styled($5e8ad37a45e1c704$export$3e41faf802a29e71)(({ theme: theme3 }) => ({
  74986. whiteSpace: "normal",
  74987. display: "inline-flex",
  74988. overflow: "hidden",
  74989. verticalAlign: "top",
  74990. justifyContent: "center",
  74991. alignItems: "center",
  74992. textAlign: "center",
  74993. textDecoration: "none",
  74994. scrollSnapAlign: "start",
  74995. "&:empty": {
  74996. display: "none"
  74997. },
  74998. "&[hidden]": {
  74999. display: "none"
  75000. },
  75001. padding: "0 15px",
  75002. transition: "color 0.2s linear, border-bottom-color 0.2s linear",
  75003. height: 40,
  75004. lineHeight: "12px",
  75005. cursor: "pointer",
  75006. background: "transparent",
  75007. border: "0 solid transparent",
  75008. borderTop: "3px solid transparent",
  75009. borderBottom: "3px solid transparent",
  75010. fontWeight: "bold",
  75011. fontSize: 13,
  75012. "&:focus-visible": {
  75013. outline: "0 none",
  75014. boxShadow: `inset 0 0 0 2px ${theme3.barSelectedColor}`
  75015. },
  75016. color: theme3.barTextColor,
  75017. borderBottomColor: "transparent",
  75018. "&:hover": {
  75019. color: theme3.barHoverColor
  75020. },
  75021. "&[data-selected]": {
  75022. color: theme3.barSelectedColor,
  75023. borderBottomColor: theme3.barSelectedColor
  75024. }
  75025. })), StatelessTab = ({ name, ...props }) => import_react185.default.createElement(StyledTab, { id: name, ...props });
  75026. // src/components/brand/StorybookLogo.tsx
  75027. var import_react186 = __toESM(require_react(), 1), StorybookLogo = ({ alt, ...props }) => import_react186.default.createElement("svg", { width: "200px", height: "40px", viewBox: "0 0 200 40", ...props, role: "img" }, alt ? import_react186.default.createElement("title", null, alt) : null, import_react186.default.createElement("defs", null, import_react186.default.createElement(
  75028. "path",
  75029. {
  75030. d: "M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",
  75031. id: "a"
  75032. }
  75033. )), import_react186.default.createElement("g", { fill: "none", fillRule: "evenodd" }, import_react186.default.createElement(
  75034. "path",
  75035. {
  75036. d: "M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",
  75037. fill: "currentColor"
  75038. }
  75039. ), import_react186.default.createElement("mask", { id: "b", fill: "#fff" }, import_react186.default.createElement("use", { xlinkHref: "#a" })), import_react186.default.createElement("use", { fill: "#FF4785", fillRule: "nonzero", xlinkHref: "#a" }), import_react186.default.createElement(
  75040. "path",
  75041. {
  75042. d: "M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",
  75043. fill: "#FFF",
  75044. fillRule: "nonzero",
  75045. mask: "url(#b)"
  75046. }
  75047. )));
  75048. // src/components/brand/StorybookIcon.tsx
  75049. var import_react187 = __toESM(require_react(), 1), StorybookIcon3 = (props) => import_react187.default.createElement("svg", { viewBox: "0 0 64 64", ...props }, import_react187.default.createElement("title", null, "Storybook icon"), import_react187.default.createElement("g", { id: "Artboard", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, import_react187.default.createElement(
  75050. "path",
  75051. {
  75052. d: "M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",
  75053. id: "path-1",
  75054. fill: "#FF4785",
  75055. fillRule: "nonzero"
  75056. }
  75057. ), import_react187.default.createElement(
  75058. "path",
  75059. {
  75060. d: "M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",
  75061. id: "path9_fill-path",
  75062. fill: "#FFFFFF",
  75063. fillRule: "nonzero"
  75064. }
  75065. ), import_react187.default.createElement(
  75066. "path",
  75067. {
  75068. d: "M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",
  75069. id: "Path",
  75070. fill: "#FFFFFF"
  75071. }
  75072. )));
  75073. // src/components/components/Loader/Loader.tsx
  75074. var import_react188 = __toESM(require_react(), 1);
  75075. init_polished_esm();
  75076. init_theming();
  75077. // src/components/components/shared/animation.ts
  75078. init_theming();
  75079. var rotate3602 = keyframes`
  75080. from {
  75081. transform: rotate(0deg);
  75082. }
  75083. to {
  75084. transform: rotate(360deg);
  75085. }
  75086. `;
  75087. // src/components/components/Loader/Loader.tsx
  75088. var LoaderWrapper = styled.div(({ size = 32 }) => ({
  75089. borderRadius: "50%",
  75090. cursor: "progress",
  75091. display: "inline-block",
  75092. overflow: "hidden",
  75093. position: "absolute",
  75094. transition: "all 200ms ease-out",
  75095. verticalAlign: "top",
  75096. top: "50%",
  75097. left: "50%",
  75098. marginTop: -(size / 2),
  75099. marginLeft: -(size / 2),
  75100. height: size,
  75101. width: size,
  75102. zIndex: 4,
  75103. borderWidth: 2,
  75104. borderStyle: "solid",
  75105. borderColor: "rgba(97, 97, 97, 0.29)",
  75106. borderTopColor: "rgb(100,100,100)",
  75107. animation: `${rotate3602} 0.7s linear infinite`,
  75108. mixBlendMode: "difference"
  75109. })), ProgressWrapper = styled.div({
  75110. position: "absolute",
  75111. display: "flex",
  75112. flexDirection: "column",
  75113. justifyContent: "center",
  75114. alignItems: "center",
  75115. width: "100%",
  75116. height: "100%"
  75117. }), ProgressTrack = styled.div(({ theme: theme3 }) => ({
  75118. position: "relative",
  75119. width: "80%",
  75120. marginBottom: "0.75rem",
  75121. maxWidth: 300,
  75122. height: 5,
  75123. borderRadius: 5,
  75124. background: curriedTransparentize$1(0.8, theme3.color.secondary),
  75125. overflow: "hidden",
  75126. cursor: "progress"
  75127. })), ProgressBar2 = styled.div(({ theme: theme3 }) => ({
  75128. position: "absolute",
  75129. top: 0,
  75130. left: 0,
  75131. height: "100%",
  75132. background: theme3.color.secondary
  75133. })), ProgressMessage = styled.div(({ theme: theme3 }) => ({
  75134. minHeight: "2em",
  75135. fontSize: `${theme3.typography.size.s1}px`,
  75136. color: theme3.textMutedColor
  75137. })), ErrorIcon = styled(LightningOffIcon)(({ theme: theme3 }) => ({
  75138. width: 20,
  75139. height: 20,
  75140. marginBottom: "0.5rem",
  75141. color: theme3.textMutedColor
  75142. })), ellipsis = keyframes`
  75143. from { content: "..." }
  75144. 33% { content: "." }
  75145. 66% { content: ".." }
  75146. to { content: "..." }
  75147. `, Ellipsis = styled.span({
  75148. "&::after": {
  75149. content: "'...'",
  75150. animation: `${ellipsis} 1s linear infinite`,
  75151. animationDelay: "1s",
  75152. display: "inline-block",
  75153. width: "1em",
  75154. height: "auto"
  75155. }
  75156. }), Loader = ({ progress, error, size, ...props }) => {
  75157. if (error)
  75158. return import_react188.default.createElement(ProgressWrapper, { "aria-label": error.toString(), "aria-live": "polite", role: "status", ...props }, import_react188.default.createElement(ErrorIcon, null), import_react188.default.createElement(ProgressMessage, null, error.message));
  75159. if (progress) {
  75160. let { value, modules } = progress, { message } = progress;
  75161. return modules && (message += ` ${modules.complete} / ${modules.total} modules`), import_react188.default.createElement(
  75162. ProgressWrapper,
  75163. {
  75164. "aria-label": "Content is loading...",
  75165. "aria-live": "polite",
  75166. "aria-valuemin": 0,
  75167. "aria-valuemax": 100,
  75168. "aria-valuenow": value * 100,
  75169. "aria-valuetext": message,
  75170. role: "progressbar",
  75171. ...props
  75172. },
  75173. import_react188.default.createElement(ProgressTrack, null, import_react188.default.createElement(ProgressBar2, { style: { width: `${value * 100}%` } })),
  75174. import_react188.default.createElement(ProgressMessage, null, message, value < 1 && import_react188.default.createElement(Ellipsis, { key: message }))
  75175. );
  75176. }
  75177. return import_react188.default.createElement(
  75178. LoaderWrapper,
  75179. {
  75180. "aria-label": "Content is loading...",
  75181. "aria-live": "polite",
  75182. role: "status",
  75183. size,
  75184. ...props
  75185. }
  75186. );
  75187. };
  75188. // src/components/components/ProgressSpinner/ProgressSpinner.tsx
  75189. var import_react189 = __toESM(require_react(), 1);
  75190. init_theming();
  75191. var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes({
  75192. "0%": {
  75193. transform: "rotate(0deg)"
  75194. },
  75195. "100%": {
  75196. transform: "rotate(360deg)"
  75197. }
  75198. }), Wrapper8 = styled.div(({ size }) => ({
  75199. display: "inline-flex",
  75200. alignItems: "center",
  75201. justifyContent: "center",
  75202. position: "relative",
  75203. minWidth: size,
  75204. minHeight: size
  75205. })), Circle = styled.svg(
  75206. ({ size, width }) => ({
  75207. position: "absolute",
  75208. width: `${size}px!important`,
  75209. height: `${size}px!important`,
  75210. transform: "rotate(-90deg)",
  75211. circle: {
  75212. r: (size - Math.ceil(width)) / 2,
  75213. cx: size / 2,
  75214. cy: size / 2,
  75215. opacity: 0.15,
  75216. fill: "transparent",
  75217. stroke: "currentColor",
  75218. strokeWidth: width,
  75219. strokeLinecap: "round",
  75220. strokeDasharray: Math.PI * (size - Math.ceil(width))
  75221. }
  75222. }),
  75223. ({ progress }) => progress && {
  75224. circle: {
  75225. opacity: 0.75
  75226. }
  75227. },
  75228. ({ spinner }) => spinner && {
  75229. animation: `${rotate} 1s linear infinite`,
  75230. circle: {
  75231. opacity: 0.25
  75232. }
  75233. }
  75234. ), ProgressSpinner = ({
  75235. percentage = void 0,
  75236. running = !0,
  75237. size = 24,
  75238. width = 1.5,
  75239. children = null,
  75240. ...props
  75241. }) => typeof percentage == "number" ? import_react189.default.createElement(Wrapper8, { size, ...props }, children, import_react189.default.createElement(Circle, { size, width, xmlns: XMLNS }, import_react189.default.createElement("circle", null)), running && import_react189.default.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, import_react189.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), import_react189.default.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, import_react189.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : import_react189.default.createElement(Wrapper8, { size, ...props }, children);
  75242. // src/components/components/utils/getStoryHref.ts
  75243. init_client_logger();
  75244. function parseQuery(queryString) {
  75245. let query = {}, pairs = queryString.split("&");
  75246. for (let i = 0; i < pairs.length; i++) {
  75247. let pair = pairs[i].split("=");
  75248. query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || "");
  75249. }
  75250. return query;
  75251. }
  75252. var getStoryHref = (baseUrl, storyId, additionalParams = {}) => {
  75253. deprecate(
  75254. "getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead"
  75255. );
  75256. let [url, paramsStr] = baseUrl.split("?"), params = paramsStr ? {
  75257. ...parseQuery(paramsStr),
  75258. ...additionalParams,
  75259. id: storyId
  75260. } : {
  75261. ...additionalParams,
  75262. id: storyId
  75263. };
  75264. return `${url}?${Object.entries(params).map((item) => `${item[0]}=${item[1]}`).join("&")}`;
  75265. };
  75266. // src/components/components/clipboard/ClipboardCode.tsx
  75267. var import_react190 = __toESM(require_react(), 1);
  75268. init_theming();
  75269. var Code3 = styled.pre`
  75270. line-height: 18px;
  75271. padding: 11px 1rem;
  75272. white-space: pre-wrap;
  75273. background: rgba(0, 0, 0, 0.05);
  75274. color: ${color.darkest};
  75275. border-radius: 3px;
  75276. margin: 1rem 0;
  75277. width: 100%;
  75278. display: block;
  75279. overflow: hidden;
  75280. font-family: ${typography.fonts.mono};
  75281. font-size: ${typography.size.s2 - 1}px;
  75282. `, ClipboardCode = ({ code, ...props }) => import_react190.default.createElement(Code3, { id: "clipboard-code", ...props }, code);
  75283. // src/components/index.ts
  75284. var components2 = components, resetComponents = {};
  75285. Object.keys(components).forEach((key) => {
  75286. resetComponents[key] = (0, import_react191.forwardRef)((props, ref) => (0, import_react191.createElement)(key, { ...props, ref }));
  75287. });
  75288. // src/manager/globals/runtime.ts
  75289. init_theming();
  75290. init_create();
  75291. var globalsNameValueMap = {
  75292. react: REACT,
  75293. "react-dom": REACT_DOM,
  75294. "react-dom/client": REACT_DOM_CLIENT,
  75295. "@storybook/icons": dist_exports2,
  75296. "storybook/manager-api": manager_api_exports,
  75297. "storybook/theming": theming_exports,
  75298. "storybook/theming/create": create_exports,
  75299. "storybook/test": test_exports,
  75300. "storybook/internal/channels": channels_exports,
  75301. "storybook/internal/client-logger": client_logger_exports,
  75302. "storybook/internal/components": components_exports,
  75303. "storybook/internal/core-events": core_events_exports,
  75304. "storybook/internal/manager-errors": manager_errors_exports,
  75305. "storybook/internal/router": router_exports,
  75306. "storybook/internal/types": types_exports
  75307. };
  75308. // src/manager/utils/prepareForTelemetry.ts
  75309. init_dist();
  75310. var import_browser_dtector = __toESM(require_browser_dtector_umd_min(), 1), browserInfo;
  75311. function getBrowserInfo() {
  75312. return browserInfo || (browserInfo = new import_browser_dtector.default(scope.navigator?.userAgent).getBrowserInfo()), browserInfo;
  75313. }
  75314. var errorMessages = [
  75315. // It's a harmless issue with react-resize-detector that supposedly will be gone when we move to React 18.
  75316. // https://github.com/maslianok/react-resize-detector/issues/45#issuecomment-1500958024
  75317. "ResizeObserver loop completed with undelivered notifications.",
  75318. "ResizeObserver loop limit exceeded",
  75319. // Safari does not seem to provide any helpful info on window.onerror
  75320. // https://bugs.webkit.org/show_bug.cgi?id=132945
  75321. "Script error.",
  75322. // When react-dev-tools is installed as a browser extension, it will log this error
  75323. "React is running in production mode"
  75324. ], shouldSkipError = (error) => errorMessages.includes(error?.message);
  75325. function prepareForTelemetry(originalError) {
  75326. let error = originalError;
  75327. return (originalError.target === scope || originalError.currentTarget === scope || originalError.srcElement === scope) && (error = new Error(originalError.message), error.name = originalError.name || error.name), originalError.fromStorybook || (error = new UncaughtManagerError({ error })), error.browserInfo = getBrowserInfo(), error;
  75328. }
  75329. // src/manager/globals-runtime.ts
  75330. globalPackages.forEach((key) => {
  75331. globalThis[globalsNameReferenceMap[key]] = globalsNameValueMap[key];
  75332. });
  75333. var queuedErrors = [];
  75334. globalThis.sendTelemetryError = (error) => {
  75335. if (shouldSkipError(error))
  75336. return;
  75337. let channel = globalThis.__STORYBOOK_ADDONS_CHANNEL__, preparedError = prepareForTelemetry(error);
  75338. if (!channel) {
  75339. queuedErrors.push(preparedError);
  75340. return;
  75341. }
  75342. for (; queuedErrors.length > 0; ) {
  75343. let queuedError = queuedErrors.shift();
  75344. channel.emit(TELEMETRY_ERROR, queuedError);
  75345. }
  75346. channel.emit(TELEMETRY_ERROR, preparedError);
  75347. };
  75348. globalThis.addEventListener("error", (args) => {
  75349. let error = args.error || args;
  75350. globalThis.sendTelemetryError(error);
  75351. });
  75352. globalThis.addEventListener("unhandledrejection", ({ reason }) => {
  75353. globalThis.sendTelemetryError(reason);
  75354. });